From 9aea2a3583d387f5bf0538bab03d8948be779006 Mon Sep 17 00:00:00 2001 From: Stephan Lo Date: Fri, 7 Nov 2025 11:50:58 +0100 Subject: [PATCH] feat(docs): add comprehensive documentation platform architecture and guides Created a complete documentation system for new documentors, including interactive architecture diagrams and step-by-step guides for all documentation workflows. New LikeC4 architecture project (resources/doc-likec4/): - Created documentation-platform.c4 model with 252 lines covering: * Actors: documentor, reviewer, CI system, edge platform * Tools: Hugo, LikeC4, Git, VS Code, markdownlint, htmltest * Processes: local development, testing, CI/CD pipeline * Repositories: git repo, cloudlet registry - Defined 6 comprehensive views: * overview: Complete documentation platform ecosystem * localDevelopment: Local writing and preview workflow * cicdPipeline: Automated testing and validation * deploymentFlow: From commit to production * fullWorkflow: End-to-end documentation lifecycle * testingCapabilities: Quality assurance toolchain New documentation pages (content/en/docs/documentation/): - _index.md: Overview and introduction for new documentors - local-development.md: Setting up local environment, live preview - testing.md: Running markdown, HTML, and link validation - cicd.md: Understanding automated CI/CD pipeline - publishing.md: Deployment to Edge Connect Munich cloudlet - quick-reference.md: Command reference and common tasks Hugo shortcode for embedding LikeC4 diagrams: - Created layouts/shortcodes/likec4-view.html - Supports loading state with animated indicator - Graceful error handling for missing views - Automatic shadow DOM checking to ensure webcomponent loaded - Usage: {{< likec4-view view="viewId" project="projectName" >}} Supporting documentation: - resources/LIKEC4-REGENERATION.md: Guide for regenerating webcomponents - All diagrams are interactive and explorable in the browser - Views include zoom, pan, and element inspection This implementation provides: 1. Self-documenting documentation platform ("meta-documentation") 2. Visual learning for complex workflows via interactive diagrams 3. Clear separation of concerns (6 focused views vs 1 overwhelming diagram) 4. Onboarding path for new team members 5. Living architecture documentation that evolves with the platform All new documentation passes markdown linting and builds successfully. --- content/en/docs/documentation/_index.md | 43 ++ content/en/docs/documentation/cicd.md | 264 +++++++ .../docs/documentation/local-development.md | 196 +++++ content/en/docs/documentation/publishing.md | 339 +++++++++ .../en/docs/documentation/quick-reference.md | 275 +++++++ content/en/docs/documentation/testing.md | 229 ++++++ layouts/shortcodes/likec4-view.html | 53 ++ resources/LIKEC4-REGENERATION.md | 73 ++ resources/doc-likec4/README.md | 82 +++ .../doc-likec4/documentation-platform.c4 | 371 ++++++++++ resources/doc-likec4/likec4.config.json | 3 + resources/doc-likec4/node_modules | 1 + resources/doc-likec4/package.json | 15 + static/js/likec4-doc-webcomponent.js | 675 ++++++++++++++++++ 14 files changed, 2619 insertions(+) create mode 100644 content/en/docs/documentation/_index.md create mode 100644 content/en/docs/documentation/cicd.md create mode 100644 content/en/docs/documentation/local-development.md create mode 100644 content/en/docs/documentation/publishing.md create mode 100644 content/en/docs/documentation/quick-reference.md create mode 100644 content/en/docs/documentation/testing.md create mode 100644 layouts/shortcodes/likec4-view.html create mode 100644 resources/LIKEC4-REGENERATION.md create mode 100644 resources/doc-likec4/README.md create mode 100644 resources/doc-likec4/documentation-platform.c4 create mode 100644 resources/doc-likec4/likec4.config.json create mode 120000 resources/doc-likec4/node_modules create mode 100644 resources/doc-likec4/package.json create mode 100644 static/js/likec4-doc-webcomponent.js diff --git a/content/en/docs/documentation/_index.md b/content/en/docs/documentation/_index.md new file mode 100644 index 0000000..4123ec3 --- /dev/null +++ b/content/en/docs/documentation/_index.md @@ -0,0 +1,43 @@ +--- +title: "Documentation About Documentation" +linkTitle: "Documentation" +weight: 10 +description: > + Learn how to create, maintain, and publish documentation for the developer platform. +--- + +Welcome to the meta-documentation! This section explains how our documentation platform works and guides you through the documentor role. + +## What is a Documentor? + +A **Documentor** is responsible for creating, maintaining, and publishing the developer platform documentation. This includes: + +- Writing and updating content in Markdown +- Creating architecture diagrams with LikeC4 +- Testing locally before committing +- Following the CI/CD pipeline to production + +## Documentation Platform Architecture + +Our documentation is built on a modern stack: + +- **Hugo** with the **Docsy** theme for static site generation +- **LikeC4** for architecture visualization +- **Taskfile** for local development automation +- **GitHub Actions** for continuous testing +- **Edge deployment** for hosting + +### System Overview + +{{< likec4-view view="overview" project="documentation-platform" >}} + +This high-level view shows all major components of the documentation platform. + +## Getting Started + +Continue to the next sections to learn about: + +1. [Local Development](local-development/) - How to work on documentation locally +2. [Testing](testing/) - Quality assurance processes +3. [CI/CD Pipeline](cicd/) - Automated testing and deployment +4. [Publishing](publishing/) - How documentation reaches production diff --git a/content/en/docs/documentation/cicd.md b/content/en/docs/documentation/cicd.md new file mode 100644 index 0000000..f79f4fe --- /dev/null +++ b/content/en/docs/documentation/cicd.md @@ -0,0 +1,264 @@ +--- +title: "CI/CD Pipeline" +linkTitle: "CI/CD" +weight: 40 +description: > + Automated testing and container build process. +--- + +## Overview + +Our documentation uses a continuous integration and deployment pipeline to ensure quality and automate deployment. + +{{< likec4-view view="cicdPipeline" project="documentation-platform" >}} + +## GitHub Actions Workflow + +The CI/CD pipeline is defined in `.github/workflows/test.yml` and runs on: + +- **Pushes to `main` branch** +- **Pull requests to `main` branch** + +### Workflow Steps + +#### 1. Checkout Code + +```yaml +- uses: actions/checkout@v4 + with: + submodules: recursive + fetch-depth: 0 +``` + +- Clones repository with full history +- Includes Git submodules (Hugo modules) + +#### 2. Setup Hugo + +```yaml +- name: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: 'latest' + extended: true +``` + +- Installs Hugo Extended +- Uses latest stable version + +#### 3. Setup Node.js + +```yaml +- name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '24' + cache: 'npm' +``` + +- Installs Node.js v24 +- Caches npm dependencies for faster builds + +#### 4. Install Dependencies + +```bash +npm ci +go install github.com/wjdp/htmltest@latest +``` + +- Installs npm packages (markdownlint, htmlvalidate) +- Installs htmltest for link checking + +#### 5. Run Tests + +```bash +npm run test:build +npm run test:markdown +npm run test:html +``` + +- Validates Hugo build +- Lints Markdown files +- Validates HTML output + +#### 6. Link Checking + +```yaml +- name: Run link checker + run: htmltest + continue-on-error: true +``` + +- Checks all links +- Continues even if links fail (soft requirement) + +#### 7. Upload Results + +```yaml +- name: Upload htmltest results + uses: actions/upload-artifact@v4 + if: always() + with: + name: htmltest-report + path: tmp/.htmltest/ +``` + +- Uploads link check report +- Available for download from GitHub Actions + +## Container Build Process + +After tests pass, a container image is built: + +```bash +task build:oci-image +``` + +### Build Process + +1. **Reads version information** from `.env.versions`: + - `NODE_VERSION` + - `GO_VERSION` + - `HUGO_VERSION` + +2. **Builds Docker image** using `Dockerfile`: + - Multi-stage build + - Hugo generates static site + - Nginx serves the content + +3. **Tags image** with: + - `latest` + - Git commit SHA (short) + +### Dockerfile Structure + +```dockerfile +# Build stage +FROM node:${NODE_VERSION} as builder +# Install Hugo, build dependencies +# Run: hugo --gc --minify +# Output: public/ directory + +# Runtime stage +FROM nginx:alpine +# Copy public/ to /usr/share/nginx/html/ +# Configure Nginx +``` + +### Testing the Container + +```bash +task test:oci-image +``` + +This: + +1. Builds the image +2. Starts container on port 8080 +3. Tests HTTP endpoint +4. Cleans up container + +## Package.json Scripts + +The `package.json` defines test scripts: + +```json +{ + "scripts": { + "test:build": "hugo --gc --minify --logLevel info", + "test:markdown": "markdownlint 'content/**/*.md'", + "test:html": "htmlvalidate 'public/**/*.html'" + } +} +``` + +## Running CI Locally + +Simulate the CI environment locally: + +```bash +task ci +``` + +This runs the same tests as GitHub Actions. + +## Monitoring CI Results + +### Successful Build + +✅ All tests pass → Ready to deploy + +### Failed Build + +❌ Tests fail: + +1. Click on the failed workflow in GitHub Actions +2. Expand the failed step +3. Read the error message +4. Fix locally: `task test:` +5. Commit and push fix + +### Viewing Artifacts + +1. Go to GitHub Actions +2. Click on workflow run +3. Scroll to "Artifacts" section +4. Download `htmltest-report` + +## Best Practices + +1. **Don't push to main directly** - Use feature branches and PRs +2. **Wait for CI before merging** - Green checkmark required +3. **Fix broken builds immediately** - Don't let main stay red +4. **Review CI logs** - Understand why tests fail +5. **Update dependencies** - Keep versions current in `.env.versions` + +## Continuous Deployment + +After successful CI: + +1. Container image is built +2. Image is pushed to registry +3. Deployment process begins (see [Publishing](../publishing/)) + +## Troubleshooting + +### Tests pass locally but fail in CI + +**Possible causes:** + +- Different Hugo version +- Different Node.js version +- Missing dependencies +- Environment-specific issues + +**Solution:** Check versions in `.env.versions` and ensure local matches CI + +### Build timeouts + +**Possible causes:** + +- Link checker taking too long +- Large number of external links + +**Solution:** + +- Use `continue-on-error: true` for link checks +- Configure `.htmltest.yml` to skip slow checks + +### Cache issues + +**Solution:** Clear GitHub Actions cache: + +```yaml +- uses: actions/cache@v4 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} +``` + +Update the cache key to force refresh. + +## Next Steps + +Learn about [deployment to Edge environment](../publishing/). diff --git a/content/en/docs/documentation/local-development.md b/content/en/docs/documentation/local-development.md new file mode 100644 index 0000000..3934f19 --- /dev/null +++ b/content/en/docs/documentation/local-development.md @@ -0,0 +1,196 @@ +--- +title: "Local Development" +linkTitle: "Local Development" +weight: 20 +description: > + Set up your local environment and learn the documentor workflow. +--- + +## Prerequisites + +Before you start, ensure you have: + +- **Devbox** or the following tools installed: + - Hugo Extended (latest version) + - Node.js (v24+) + - Go (for htmltest) + - Git + +## Installation + +1. Clone the repository: + + ```bash + git clone + cd ipceicis-developerframework + ``` + +2. Install dependencies: + + ```bash + task deps:install + ``` + +## Local Development Workflow + +{{< likec4-view view="localDevelopment" project="documentation-platform" >}} + +### Starting the Development Server + +The easiest way to work locally is to start the Hugo development server: + +```bash +task serve +``` + +This will: + +- Generate build information (git commit, version) +- Start Hugo server on `http://localhost:1313` +- Enable hot reload - changes appear instantly in the browser + +### Content Structure + +```text +content/ +└── en/ # English content + ├── _index.md # Homepage + ├── blog/ # Blog posts + └── docs/ # Documentation + ├── architecture/ # Architecture docs + ├── decisions/ # ADRs + └── v1/ # Version-specific docs +``` + +### Creating Content + +1. **Add a new documentation page:** + + ```bash + # Create a new markdown file + vim content/en/docs/your-topic/_index.md + ``` + +2. **Add frontmatter:** + + ```yaml + --- + title: "Your Topic" + linkTitle: "Your Topic" + weight: 10 + description: > + Brief description of your topic. + --- + ``` + +3. **Write your content** in Markdown + +4. **Preview changes** - they appear immediately if `task serve` is running + +### Creating Architecture Diagrams + +Architecture diagrams are created with LikeC4: + +1. **Navigate to the appropriate LikeC4 project:** + - `resources/edp-likec4/` - Platform architecture + - `resources/doc-likec4/` - Documentation platform architecture + +2. **Edit or create `.c4` files** with your model + +3. **Regenerate webcomponents:** + + ```bash + task likec4:generate + ``` + +4. **Embed diagrams in Markdown:** + + ```markdown + {{< likec4-view view="localDevelopment" title="Local Development Workflow" >}} + ``` + + Available views: + - `overview` - Complete system overview + - `localDevelopment` - Documentor workflow + - `cicdPipeline` - CI/CD process + - `deploymentFlow` - Edge deployment + - `fullWorkflow` - End-to-end workflow + - `testingCapabilities` - Testing overview + +## Available Tasks + +View all available tasks: + +```bash +task --list +``` + +### Common Development Tasks + +| Task | Description | +|------|-------------| +| `task serve` | Start development server with hot reload | +| `task build` | Build production-ready site | +| `task build:dev` | Build development version | +| `task clean` | Remove build artifacts | +| `task test` | Run all tests | +| `task test:quick` | Run tests without link checking | + +## Quick Testing + +Before committing, run quick tests: + +```bash +task test:quick +``` + +This validates: + +- Hugo build succeeds +- Markdown syntax is correct + +For comprehensive testing, including link checking: + +```bash +task test +``` + +## Tips for Documentors + +1. **Write in present tense** - "The system processes..." not "The system will process..." +2. **Use code blocks** with syntax highlighting +3. **Include diagrams** for complex concepts +4. **Test locally** before pushing +5. **Keep it concise** - readers appreciate brevity +6. **Update regularly** - stale docs are worse than no docs + +## Troubleshooting + +### Port 1313 already in use + +```bash +# Find and kill the process +lsof -ti:1313 | xargs kill -9 +``` + +### Build errors + +```bash +# Clean and rebuild +task clean +task build:dev +``` + +### Missing dependencies + +```bash +# Reinstall all dependencies +task deps:install +``` + +## Next Steps + +Now that you can develop locally, learn about: + +- [Testing processes](../testing/) +- [CI/CD pipeline](../cicd/) diff --git a/content/en/docs/documentation/publishing.md b/content/en/docs/documentation/publishing.md new file mode 100644 index 0000000..cd9f195 --- /dev/null +++ b/content/en/docs/documentation/publishing.md @@ -0,0 +1,339 @@ +--- +title: "Publishing to Edge" +linkTitle: "Publishing" +weight: 50 +description: > + How documentation is deployed to the edge environment. +--- + +## Deployment Overview + +After successful CI/CD, the documentation is deployed to an edge computing environment. + +{{< likec4-view view="deploymentFlow" project="documentation-platform" >}} + +## Deployment Architecture + +### Edge Connect Platform + +Our documentation is deployed using **Edge Connect**, which orchestrates deployments to edge cloudlets. + +Configuration: `edgeconnectdeployment.yaml` + +```yaml +kind: edgeconnect-deployment +metadata: + name: "edpdoc" + appVersion: "1.0.0" + organization: "edp2" +spec: + k8sApp: + manifestFile: "./k8s-deployment.yaml" + infraTemplate: + - region: "EU" + cloudletOrg: "TelekomOP" + cloudletName: "Munich" + flavorName: "EU.small" +``` + +**Key settings:** + +- **Deployment name:** `edpdoc` +- **Region:** EU (Munich) +- **Cloudlet:** TelekomOP Munich +- **Flavor:** EU.small (resource allocation) + +### Kubernetes Deployment + +The application runs on Kubernetes: `k8s-deployment.yaml` + +#### Service Definition + +```yaml +apiVersion: v1 +kind: Service +metadata: + name: edpdoc + labels: + run: edpdoc +spec: + type: LoadBalancer + ports: + - name: tcp80 + protocol: TCP + port: 80 + targetPort: 80 + selector: + run: edpdoc +``` + +- **Type:** LoadBalancer (external access) +- **Port:** 80 (HTTP) +- **Selector:** Routes traffic to pods with label `run: edpdoc` + +#### Deployment Configuration + +```yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: edpdoc +spec: + replicas: 1 + selector: + matchLabels: + run: edpdoc + template: + metadata: + labels: + run: edpdoc + mexDeployGen: kubernetes-basic + spec: + containers: + - name: edpdoc + image: ###IMAGETAG### + imagePullPolicy: Always + ports: + - containerPort: 80 + protocol: TCP +``` + +- **Replicas:** 1 (single instance) +- **Image:** Injected by deployment pipeline (`###IMAGETAG###` placeholder) +- **Pull policy:** Always (ensures latest version) + +### Network Configuration + +Outbound connections are configured in `edgeconnectdeployment.yaml`: + +```yaml +network: + outboundConnections: + - protocol: "tcp" + portRangeMin: 80 + portRangeMax: 80 + remoteCIDR: "0.0.0.0/0" + - protocol: "tcp" + portRangeMin: 443 + portRangeMax: 443 + remoteCIDR: "0.0.0.0/0" +``` + +- **Port 80:** HTTP outbound +- **Port 443:** HTTPS outbound +- **CIDR:** `0.0.0.0/0` (all destinations) + +## Deployment Process + +### 1. Container Image Ready + +After CI passes: + +- Docker image built with `task build:oci-image` +- Tagged with git commit SHA +- Pushed to container registry + +### 2. Edge Connect Orchestration + +Edge Connect: + +1. Pulls container image +2. Reads `edgeconnectdeployment.yaml` +3. Provisions resources on Munich cloudlet +4. Applies Kubernetes manifests + +### 3. Kubernetes Deployment + +Kubernetes: + +1. Creates deployment with 1 replica +2. Pulls container image (`imagePullPolicy: Always`) +3. Starts pod running Nginx + static Hugo site +4. Creates LoadBalancer service +5. Assigns external IP + +### 4. Service Available + +Documentation is now accessible: + +- **Protocol:** HTTP +- **Port:** 80 +- **IP:** Assigned by LoadBalancer + +## Complete Workflow + +{{< likec4-view view="fullWorkflow" project="documentation-platform" >}} + +### End-to-End Process + +1. **Documentor writes content** (Markdown, LikeC4 models) +2. **Local testing** with `task serve` and `task test` +3. **Commit and push** to Git repository +4. **GitHub Actions triggered** on push to main +5. **CI tests run** (build, markdown, HTML, links) +6. **Container image built** if tests pass +7. **Image pushed** to registry +8. **Edge deployment triggered** +9. **Kubernetes applies** manifests +10. **Service available** on edge cloudlet + +## Monitoring Deployment + +### Check Deployment Status + +```bash +kubectl get deployments -n +kubectl get pods -n +kubectl get services -n +``` + +### View Logs + +```bash +kubectl logs deployment/edpdoc -n +``` + +### Access Documentation + +Find the LoadBalancer external IP: + +```bash +kubectl get service edpdoc -n +``` + +Access via: `http://` + +## Rollback + +If issues occur after deployment: + +### Option 1: Revert Commit + +```bash +git revert +git push origin main +``` + +CI will rebuild and redeploy. + +### Option 2: Manual Rollback + +```bash +kubectl rollout undo deployment/edpdoc -n +``` + +Returns to previous deployment version. + +### Option 3: Deploy Specific Version + +Update image tag in deployment: + +```bash +kubectl set image deployment/edpdoc edpdoc=/: -n +``` + +## Scaling + +Currently: **1 replica** + +To scale for higher traffic: + +```yaml +spec: + replicas: 3 +``` + +Then apply: + +```bash +kubectl apply -f k8s-deployment.yaml +``` + +Or scale dynamically: + +```bash +kubectl scale deployment/edpdoc --replicas=3 -n +``` + +## Security Considerations + +1. **Image scanning** - Scan container images for vulnerabilities +2. **Resource limits** - Set CPU/memory limits in deployment +3. **Network policies** - Restrict pod-to-pod communication +4. **HTTPS** - Consider adding TLS termination (Ingress) + +## Performance Optimization + +1. **CDN** - Add CDN in front of LoadBalancer +2. **Caching** - Configure Nginx caching headers +3. **Compression** - Enable gzip in Nginx +4. **Image optimization** - Compress images in documentation + +## Troubleshooting + +### Pod not starting + +```bash +kubectl describe pod -n +``` + +Check: + +- Image pull errors +- Resource constraints +- Configuration errors + +### Service unreachable + +```bash +kubectl describe service edpdoc -n +``` + +Check: + +- LoadBalancer IP assigned +- Port configuration +- Network policies + +### Old content served + +Check: + +- `imagePullPolicy: Always` in deployment +- Image tag is updated +- Pod has restarted + +Force pod restart: + +```bash +kubectl rollout restart deployment/edpdoc -n +``` + +## Best Practices + +1. **Test before deploying** - Always run `task test` locally +2. **Use feature branches** - Don't deploy directly from local +3. **Monitor after deployment** - Check logs and access +4. **Document changes** - Update RELEASE.md +5. **Version control** - Tag releases in Git + +## Future Enhancements + +Potential improvements: + +- **Blue-green deployment** - Zero-downtime updates +- **Canary releases** - Gradual rollout to subset of users +- **Auto-scaling** - HorizontalPodAutoscaler based on traffic +- **Multi-region** - Deploy to multiple cloudlets +- **HTTPS** - TLS certificates and Ingress controller + +## Summary + +The deployment process is automated and reliable: + +✅ **CI ensures quality** - Tests prevent broken deployments +✅ **Edge infrastructure** - Low-latency access from EU +✅ **Kubernetes orchestration** - Reliable, scalable platform +✅ **Simple rollback** - Easy to recover from issues + +As a documentor, focus on content quality. The platform handles deployment automatically! 🚀 diff --git a/content/en/docs/documentation/quick-reference.md b/content/en/docs/documentation/quick-reference.md new file mode 100644 index 0000000..8c5c407 --- /dev/null +++ b/content/en/docs/documentation/quick-reference.md @@ -0,0 +1,275 @@ +--- +title: "Quick Reference" +linkTitle: "Quick Reference" +weight: 60 +description: > + Cheat sheet for common documentor tasks. +--- + +## Common Commands + +### Local Development + +```bash +# Start development server (with hot reload) +task serve + +# Build for production +task build + +# Build for development (faster, no minification) +task build:dev + +# Clean build artifacts +task clean +``` + +### Testing + +```bash +# Quick tests (build + markdown) +task test:quick + +# Full test suite +task test + +# Individual tests +task test:build # Hugo build validation +task test:markdown # Markdown linting +task test:html # HTML validation +task test:links # Link checking +``` + +### Dependencies + +```bash +# Install dependencies +task deps:install + +# Update dependencies +task deps:update + +# Ensure npm dependencies (auto-installs if missing) +task deps:ensure-npm +``` + +### Container Operations + +```bash +# Build OCI/Docker image +task build:oci-image + +# Build and test container +task test:oci-image +``` + +## File Locations + +### Content + +| Path | Description | +|------|-------------| +| `content/en/docs/` | Main documentation | +| `content/en/blog/` | Blog posts | +| `content/en/_index.md` | Homepage | + +### Architecture Models + +| Path | Description | +|------|-------------| +| `resources/edp-likec4/` | Platform architecture models | +| `resources/doc-likec4/` | Documentation platform models | + +### Configuration + +| File | Purpose | +|------|---------| +| `hugo.toml` | Hugo configuration | +| `config.yaml` | Docsy theme config | +| `Taskfile.yml` | Task definitions | +| `package.json` | npm dependencies and scripts | +| `.markdownlint.json` | Markdown linting rules | +| `.htmlvalidate.json` | HTML validation rules | +| `.htmltest.yml` | Link checker config | + +### Build Output + +| Path | Description | +|------|-------------| +| `public/` | Generated static site | +| `resources/_gen/` | Generated resources (Hugo) | +| `data/build_info.json` | Build metadata (git commit, version) | + +## Markdown Frontmatter + +### Standard Page + +```yaml +--- +title: "Page Title" +linkTitle: "Short Title" +weight: 10 +description: > + Brief description for SEO and navigation. +--- +``` + +### Blog Post + +```yaml +--- +title: "Post Title" +date: 2025-01-15 +author: "Your Name" +description: > + Post summary. +--- +``` + +## Embedding Architecture Diagrams + +### Basic Embed + +```markdown +{{< likec4-view view="view-name" project="project-name" >}} +``` + +### Examples + +```markdown +{{< likec4-view view="overview" project="documentation-platform" >}} +{{< likec4-view view="localDevelopment" project="documentation-platform" >}} +{{< likec4-view view="cicdPipeline" project="documentation-platform" >}} +``` + +## LikeC4 Commands + +### Regenerate Webcomponents + +After modifying `.c4` files: + +```bash +task likec4:generate +``` + +This regenerates both: + +- `static/js/likec4-webcomponent.js` (EDP architecture) +- `static/js/likec4-doc-webcomponent.js` (Documentation platform) + +### Start Development Server + +```bash +cd resources/doc-likec4 # or resources/edp-likec4 +npm install +npm start +``` + +Opens LikeC4 IDE at `http://localhost:5173` + +### Export Diagrams + +```bash +cd resources/doc-likec4 +npx likec4 export png -o ./images . +``` + +## Git Workflow + +### Feature Branch + +```bash +# Create feature branch +git checkout -b feature/your-feature + +# Make changes and test +task serve +task test:quick + +# Commit +git add . +git commit -m "Description of changes" + +# Push +git push origin feature/your-feature + +# Create pull request on GitHub +``` + +### Update from Main + +```bash +git checkout main +git pull origin main +git checkout feature/your-feature +git rebase main +``` + +## Troubleshooting + +### Port 1313 in use + +```bash +lsof -ti:1313 | xargs kill -9 +``` + +### Build errors + +```bash +task clean +task build:dev +``` + +### Missing dependencies + +```bash +task deps:install +``` + +### Hugo module issues + +```bash +hugo mod clean +hugo mod get -u +hugo mod tidy +``` + +### LikeC4 language server + +In VS Code: `Ctrl+Shift+P` → "LikeC4: restart language server" + +## URLs + +### Local Development + +- **Documentation:** +- **LikeC4 IDE:** (when running `npm start` in likec4 folder) + +### Production + +Check `edgeconnectdeployment.yaml` for deployment URL or run: + +```bash +kubectl get service edpdoc -n +``` + +## Quick Checks Before Committing + +1. ✅ `task test:quick` passes +2. ✅ Preview looks correct in browser +3. ✅ No broken links (visual check) +4. ✅ Architecture diagrams render +5. ✅ Frontmatter is correct + +## Getting Help + +- **Hugo docs:** +- **Docsy theme:** +- **LikeC4:** +- **Task:** + +## View Documentation Architecture + +To understand how this documentation platform works: + +→ Start here: [Documentation About Documentation](../) diff --git a/content/en/docs/documentation/testing.md b/content/en/docs/documentation/testing.md new file mode 100644 index 0000000..bb2be84 --- /dev/null +++ b/content/en/docs/documentation/testing.md @@ -0,0 +1,229 @@ +--- +title: "Testing" +linkTitle: "Testing" +weight: 30 +description: > + Quality assurance processes for documentation. +--- + +## Testing Philosophy + +Quality documentation requires testing. Our testing process validates: + +- **Build integrity** - Hugo can generate the site +- **Content quality** - Markdown follows best practices +- **HTML validity** - Generated HTML is well-formed +- **Link integrity** - No broken internal or external links + +## Testing Capabilities + +{{< likec4-view view="testingCapabilities" project="documentation-platform" >}} + +## Local Testing + +Before committing changes, run tests locally: + +### Quick Tests + +For rapid feedback during development: + +```bash +task test:quick +``` + +This runs: + +- `task test:build` - Hugo build validation +- `task test:markdown` - Markdown linting + +### Full Test Suite + +Before creating a pull request: + +```bash +task test +``` + +This runs all tests including: + +- `task test:build` - Build validation +- `task test:markdown` - Markdown linting +- `task test:html` - HTML validation +- `task test:links` - Link checking + +## Individual Tests + +You can run individual tests: + +### Build Test + +Validates that Hugo can build the site: + +```bash +task test:build +``` + +This runs: `hugo --gc --minify --logLevel info` + +**What it checks:** + +- Hugo configuration is valid +- Content files have correct frontmatter +- Templates render without errors +- No circular dependencies in content structure + +### Markdown Lint + +Checks Markdown syntax and style: + +```bash +task test:markdown +``` + +This uses `markdownlint` with custom rules in `.markdownlint.json`. + +**What it checks:** + +- Consistent heading hierarchy +- Proper list formatting +- Code blocks have language tags +- No trailing whitespace +- Consistent line length (where applicable) + +**Common issues:** + +- Missing blank lines around code blocks +- Inconsistent list markers +- Heading levels skipped + +### HTML Validation + +Validates generated HTML: + +```bash +task test:html +``` + +This uses `htmlvalidate` with rules in `.htmlvalidate.json`. + +**What it checks:** + +- Well-formed HTML5 +- Proper nesting of elements +- Valid attributes +- Accessible markup + +### Link Checking + +Verifies all links are valid: + +```bash +task test:links +``` + +This uses `htmltest` configured in `.htmltest.yml`. + +**What it checks:** + +- Internal links point to existing pages +- External links are reachable +- Anchor links target existing elements +- No redirects (301/302) + +**Note:** This test can be slow for large sites with many external links. + +## CI Testing + +All tests run automatically on: + +- **Push to `main`** - Full test suite +- **Pull requests** - Full test suite + +View the GitHub Actions workflow: `.github/workflows/test.yml` + +### CI Test Results + +If tests fail in CI: + +1. Check the GitHub Actions logs +2. Look for specific test failures +3. Run the same test locally: `task test:` +4. Fix the issue +5. Commit and push + +### Artifacts + +CI uploads test artifacts: + +- `htmltest-report/` - Link checking results + +Download these from the GitHub Actions run to investigate failures. + +## Test Configuration Files + +| File | Purpose | +|------|---------| +| `.markdownlint.json` | Markdown linting rules | +| `.htmlvalidate.json` | HTML validation rules | +| `.htmltest.yml` | Link checker configuration | + +## Best Practices + +1. **Test early, test often** - Run `task test:quick` frequently +2. **Fix issues immediately** - Don't accumulate technical debt +3. **Understand failures** - Read error messages carefully +4. **Update tests** - If rules change, update config files +5. **Document exceptions** - If you need to ignore a rule, document why + +## Common Issues and Solutions + +### Markdown: MD031 - Blank lines around fences + +**Problem:** Missing blank line before/after code block + +**Solution:** Add blank lines: + +```markdown +Some text + +​```bash +command here +​``` + +More text +``` + +### Markdown: MD032 - Blank lines around lists + +**Problem:** Missing blank line before/after list + +**Solution:** Add blank lines: + +```markdown +Text before + +- List item 1 +- List item 2 + +Text after +``` + +### HTML: Invalid nesting + +**Problem:** Elements improperly nested + +**Solution:** Check template files and shortcodes + +### Link Check: 404 Not Found + +**Problem:** Link points to non-existent page + +**Solution:** + +- Fix the link +- Create the missing page +- Remove the link if no longer relevant + +## Next Steps + +Learn about the automated [CI/CD pipeline](../cicd/). diff --git a/layouts/shortcodes/likec4-view.html b/layouts/shortcodes/likec4-view.html new file mode 100644 index 0000000..b57ac06 --- /dev/null +++ b/layouts/shortcodes/likec4-view.html @@ -0,0 +1,53 @@ +{{- $view := .Get "view" -}} +{{- $project := .Get "project" | default "architecture" -}} +{{- $title := .Get "title" | default (print "Architecture View: " $view) -}} +{{- $uniqueId := printf "likec4-loading-%s" (md5 $view) -}} + +
+
+ {{ $title }} +
+ +
+ Loading architecture diagram... +
+
+ + diff --git a/resources/LIKEC4-REGENERATION.md b/resources/LIKEC4-REGENERATION.md new file mode 100644 index 0000000..eeba200 --- /dev/null +++ b/resources/LIKEC4-REGENERATION.md @@ -0,0 +1,73 @@ +# Regenerating LikeC4 Webcomponents + +After modifying LikeC4 models (`.c4` files), you need to regenerate the webcomponents. + +## Automatic Regeneration + +Add to `Taskfile.yml`: + +```yaml + likec4:generate: + desc: Generate LikeC4 webcomponents from both projects + cmds: + - cd resources/edp-likec4 && npx likec4 codegen webcomponent --webcomponent-prefix likec4 --outfile ../../static/js/likec4-webcomponent.js + - cd resources/doc-likec4 && npx likec4 codegen webcomponent --webcomponent-prefix likec4 --outfile ../../static/js/likec4-doc-webcomponent.js +``` + +Then run: + +```bash +task likec4:generate +``` + +## Manual Regeneration + +### EDP Platform Architecture + +```bash +cd resources/edp-likec4 +npx likec4 codegen webcomponent \ + --webcomponent-prefix likec4 \ + --outfile ../../static/js/likec4-webcomponent.js +``` + +### Documentation Platform Architecture + +```bash +cd resources/doc-likec4 +npx likec4 codegen webcomponent \ + --webcomponent-prefix likec4 \ + --outfile ../../static/js/likec4-doc-webcomponent.js +``` + +## When to Regenerate + +Regenerate webcomponents when you: + +- ✅ Add new elements or relationships +- ✅ Modify existing models +- ✅ Create new views +- ✅ Change element properties (colors, shapes, etc.) + +## File Sizes + +The webcomponents are large (~6MB total): + +- `likec4-webcomponent.js` - ~3.1MB (EDP architecture) +- `likec4-doc-webcomponent.js` - ~2.9MB (Documentation platform) + +This is normal as they contain: + +- React runtime +- Complete model data +- Diagram rendering engine +- Interactive controls + +## Note + +Both webcomponents are loaded in `layouts/partials/hooks/head-end.html` as ES modules: + +```html + + +``` diff --git a/resources/doc-likec4/README.md b/resources/doc-likec4/README.md new file mode 100644 index 0000000..7699375 --- /dev/null +++ b/resources/doc-likec4/README.md @@ -0,0 +1,82 @@ +# Documentation Platform Architecture + +This folder contains LikeC4 architecture models that document the documentation platform itself. + +## Purpose + +These models help new **Documentors** understand: + +- How the documentation platform works +- The local development workflow +- CI/CD pipeline and testing processes +- Deployment to edge infrastructure + +## Models + +- `documentation-platform.c4` - Main model with all elements and relationships +- `views.c4` - View definitions for different perspectives + +## Views + +### Overview + +High-level view of the entire documentation platform, showing all major components. + +### Local Development Workflow + +How a documentor works locally with content, Taskfile, and Hugo server. + +### CI/CD Pipeline + +Automated testing and container build process via GitHub Actions. + +### Deployment Flow + +How documentation is deployed to the edge environment via Kubernetes. + +### Full Workflow + +End-to-end process from content creation to published documentation. + +### Testing Capabilities + +All automated tests that ensure documentation quality. + +## Usage + +### Start LikeC4 Development Server + +```bash +cd resources/doc-likec4 +npm install +npm start +``` + +This opens the LikeC4 IDE in your browser where you can: + +- Edit models interactively +- Preview views in real-time +- Export diagrams + +### Embed in Documentation + +In your Markdown files: + +```markdown +{{< likec4-view view="overview" project="documentation-platform" >}} +``` + +## Configuration + +- `likec4.config.json` - Project configuration +- `package.json` - LikeC4 CLI dependencies + +## Related Documentation + +The models are documented in: `content/en/docs/documentation/` + +- Overview and introduction +- Local development guide +- Testing processes +- CI/CD pipeline +- Publishing to edge diff --git a/resources/doc-likec4/documentation-platform.c4 b/resources/doc-likec4/documentation-platform.c4 new file mode 100644 index 0000000..c60b28c --- /dev/null +++ b/resources/doc-likec4/documentation-platform.c4 @@ -0,0 +1,371 @@ +specification { + element person { + style { + shape person + } + } + element system { + style { + shape rectangle + } + } + element tool { + style { + shape rectangle + } + } + element component { + style { + shape rectangle + } + } + element process { + style { + shape rectangle + } + } + element environment { + style { + shape cylinder + } + } + element repository { + style { + shape storage + } + } +} + +model { + +// === Personas === +documentor = person 'Documentor' { + description 'Content creator and maintainer of the developer platform documentation' + technology 'Hugo, Markdown, LikeC4' +} + +// === Documentation Platform System === +docPlatform = system 'Documentation Platform' { + description 'Hugo-based documentation system with integrated architecture visualization' + + // Core Components + hugoSite = component 'Hugo Site' { + description 'Static site generator based on Hugo with Docsy theme' + technology 'Hugo Extended, Docsy' + } + + contentRepo = repository 'Content Repository' { + description 'Markdown files, images, and configuration' + technology 'Git, Markdown' + + contentPages = component 'Content Pages' { + description 'Documentation pages in Markdown format' + technology 'Markdown' + } + + archModels = component 'Architecture Models' { + description 'LikeC4 architecture models and views' + technology 'LikeC4 DSL' + } + + assets = component 'Static Assets' { + description 'CSS, JavaScript, images, fonts' + technology 'CSS, JavaScript' + } + } + + likec4Integration = component 'LikeC4 Integration' { + description 'Architecture diagram visualization embedded in documentation' + technology 'LikeC4, Web Components' + } + + // Build & Development Tools + taskfile = tool 'Taskfile' { + description 'Task automation for local development, build, and testing' + technology 'Task (go-task)' + } + + devServer = process 'Development Server' { + description 'Local Hugo server with hot reload for content development' + technology 'Hugo Server' + } +} + +// === CI/CD Pipeline === +cicdPipeline = system 'CI/CD Pipeline' { + description 'Automated testing and deployment pipeline' + + githubActions = process 'GitHub Actions' { + description 'Automated testing workflow on push/PR' + technology 'GitHub Actions' + + testBuild = component 'Build Test' { + description 'Hugo build validation' + technology 'Hugo' + } + + testMarkdown = component 'Markdown Lint' { + description 'Markdown syntax and style checking' + technology 'markdownlint' + } + + testHtml = component 'HTML Validation' { + description 'Generated HTML validation' + technology 'htmlvalidate' + } + + testLinks = component 'Link Checker' { + description 'Broken link detection' + technology 'htmltest' + } + } + + containerBuild = process 'Container Build' { + description 'OCI/Docker image creation with Hugo site' + technology 'Docker' + } +} + +// === Deployment === +deploymentEnv = system 'Deployment Environment' { + description 'Edge deployment infrastructure' + + edgeConnect = environment 'Edge Connect' { + description 'Edge deployment orchestration platform' + technology 'EdgeConnect' + } + + k8sCluster = environment 'Kubernetes Cluster' { + description 'K8s cluster on edge cloudlet (Munich)' + technology 'Kubernetes' + + docService = component 'Documentation Service' { + description 'LoadBalancer service exposing docs on port 80' + technology 'K8s Service' + } + + docDeployment = component 'Documentation Deployment' { + description 'Pod running Hugo-generated static site' + technology 'K8s Deployment, Nginx' + } + } +} + +// === Relationships: Documentor Workflow === +documentor -> contentRepo.contentPages 'writes documentation' { + description 'Creates and updates Markdown content' +} + +documentor -> contentRepo.archModels 'creates architecture models' { + description 'Defines C4 models with LikeC4 DSL' +} + +documentor -> taskfile 'executes local tasks' { + description 'task serve, task build, task test' +} + +// === Relationships: Local Development === +taskfile -> devServer 'starts' { + description 'task serve' +} + +devServer -> hugoSite 'renders' { + description 'Live reload on content changes' +} + +hugoSite -> contentRepo 'reads content from' { + description 'Processes Markdown and templates' +} + +hugoSite -> likec4Integration 'integrates' { + description 'Embeds architecture diagrams' +} + +likec4Integration -> contentRepo.archModels 'visualizes' { + description 'Renders C4 models as interactive diagrams' +} + +// === Relationships: Testing === +taskfile -> githubActions.testBuild 'can run locally' { + description 'task test:build' +} + +taskfile -> githubActions.testMarkdown 'can run locally' { + description 'task test:markdown' +} + +taskfile -> githubActions.testHtml 'can run locally' { + description 'task test:html' +} + +taskfile -> githubActions.testLinks 'can run locally' { + description 'task test:links' +} + +// === Relationships: CI/CD === +contentRepo -> githubActions 'triggers on push/PR' { + description 'Webhook on main branch' +} + +githubActions.testBuild -> hugoSite 'builds' { + description 'hugo --gc --minify' +} + +githubActions.testMarkdown -> contentRepo.contentPages 'validates' { + description 'Lints Markdown files' +} + +githubActions.testHtml -> hugoSite 'validates output' { + description 'Checks generated HTML' +} + +githubActions.testLinks -> hugoSite 'checks links in' { + description 'Detects broken links' +} + +githubActions -> containerBuild 'triggers on success' { + description 'Builds Docker image with Hugo output' +} + +containerBuild -> hugoSite 'packages' { + description 'public/ directory served by Nginx' +} + +// === Relationships: Deployment === +containerBuild -> deploymentEnv.edgeConnect 'pushes image to' { + description 'Tagged container image' +} + +deploymentEnv.edgeConnect -> deploymentEnv.k8sCluster 'deploys to' { + description 'Via edgeconnectdeployment.yaml' +} + +deploymentEnv.k8sCluster.docDeployment -> deploymentEnv.k8sCluster.docService 'exposed by' { + description 'Port 80' +} + +documentor -> deploymentEnv.k8sCluster.docService 'views published docs' { + description 'HTTPS access to live documentation' +} + +} + +// === Views === + +views { + + view overview of docPlatform { + title 'Documentation Platform Overview' + description 'High-level overview of the Hugo-based documentation platform for documentors' + + include * + + style documentor { + color green + } + style docPlatform { + color blue + } + } + + view localDevelopment of docPlatform { + title 'Local Development Workflow' + description 'How a documentor works locally with the documentation' + + include documentor + include docPlatform + include docPlatform.contentRepo -> * + include docPlatform.hugoSite + include docPlatform.likec4Integration + include docPlatform.taskfile + include docPlatform.devServer + + style documentor { + color green + } + style docPlatform.taskfile { + color amber + } + style docPlatform.devServer { + color amber + } + } + + view cicdPipeline of cicdPipeline { + title 'CI/CD Pipeline' + description 'Automated testing and container build process' + + include cicdPipeline + include cicdPipeline.githubActions -> * + include cicdPipeline.containerBuild + include docPlatform.contentRepo + include docPlatform.hugoSite + + style cicdPipeline.githubActions { + color blue + } + style cicdPipeline.containerBuild { + color indigo + } + } + + view deploymentFlow { + title 'Deployment to Edge Environment' + description 'How the documentation is deployed to the edge infrastructure' + + include cicdPipeline.containerBuild + include deploymentEnv + include deploymentEnv.edgeConnect + include deploymentEnv.k8sCluster -> * + include documentor + + style deploymentEnv { + color muted + } + style deploymentEnv.k8sCluster { + color secondary + } + } + + view fullWorkflow { + title 'Complete Documentor Workflow' + description 'End-to-end view from content creation to published documentation' + + include documentor + include docPlatform.contentRepo + include docPlatform.taskfile + include cicdPipeline.githubActions + include cicdPipeline.containerBuild + include deploymentEnv.edgeConnect + include deploymentEnv.k8sCluster + + style documentor { + color green + } + style docPlatform.taskfile { + color amber + } + style cicdPipeline.githubActions { + color blue + } + style deploymentEnv.k8sCluster { + color secondary + } + } + + view testingCapabilities of cicdPipeline.githubActions { + title 'Testing Capabilities' + description 'All automated tests that ensure documentation quality' + + include * + include docPlatform.hugoSite + include docPlatform.contentRepo.contentPages + include docPlatform.taskfile + + style cicdPipeline.githubActions { + color blue + } + } + +} + diff --git a/resources/doc-likec4/likec4.config.json b/resources/doc-likec4/likec4.config.json new file mode 100644 index 0000000..0a3b2c2 --- /dev/null +++ b/resources/doc-likec4/likec4.config.json @@ -0,0 +1,3 @@ +{ + "name": "documentation-platform" +} diff --git a/resources/doc-likec4/node_modules b/resources/doc-likec4/node_modules new file mode 120000 index 0000000..72c3fa5 --- /dev/null +++ b/resources/doc-likec4/node_modules @@ -0,0 +1 @@ +../edp-likec4/node_modules \ No newline at end of file diff --git a/resources/doc-likec4/package.json b/resources/doc-likec4/package.json new file mode 100644 index 0000000..349dbbe --- /dev/null +++ b/resources/doc-likec4/package.json @@ -0,0 +1,15 @@ +{ + "name": "documentation-platform-likec4", + "version": "1.0.0", + "description": "LikeC4 architecture models for the documentation platform", + "scripts": { + "start": "npx likec4 start" + }, + "keywords": ["likec4", "architecture", "documentation"], + "author": "", + "license": "ISC", + "dependencies": { + "@likec4/cli": "^0.40.0", + "likec4": "^1.37.0" + } +} diff --git a/static/js/likec4-doc-webcomponent.js b/static/js/likec4-doc-webcomponent.js new file mode 100644 index 0000000..03447e9 --- /dev/null +++ b/static/js/likec4-doc-webcomponent.js @@ -0,0 +1,675 @@ +var LikeC4Views=(function(F2){"use strict";/* prettier-ignore-start */ +/* eslint-disable */ + +/****************************************************************************** + * This file was generated + * DO NOT EDIT MANUALLY! + ******************************************************************************/ + + +function w0e(e,r){for(var n=0;no[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function vD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H2={exports:{}},f0={};/** +* @license React +* react-jsx-runtime.production.js +* +* Copyright (c) Meta Platforms, Inc. and affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var xD;function k0e(){if(xD)return f0;xD=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(o,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var l in a)l!=="key"&&(i[l]=a[l])}else i=a;return a=i.ref,{$$typeof:e,type:o,key:s,ref:a!==void 0?a:null,props:i}}return f0.Fragment=r,f0.jsx=n,f0.jsxs=n,f0}var wD;function _0e(){return wD||(wD=1,H2.exports=k0e()),H2.exports}var b=_0e(),U2={exports:{}},jt={};/** +* @license React +* react.production.js +* +* Copyright (c) Meta Platforms, Inc. and affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var kD;function E0e(){if(kD)return jt;kD=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;function p(F){return F===null||typeof F!="object"?null:(F=h&&F[h]||F["@@iterator"],typeof F=="function"?F:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,x={};function w(F,J,Q){this.props=F,this.context=J,this.refs=x,this.updater=Q||g}w.prototype.isReactComponent={},w.prototype.setState=function(F,J){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,J,"setState")},w.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function k(){}k.prototype=w.prototype;function C(F,J,Q){this.props=F,this.context=J,this.refs=x,this.updater=Q||g}var _=C.prototype=new k;_.constructor=C,y(_,w.prototype),_.isPureReactComponent=!0;var T=Array.isArray,A={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function $(F,J,Q,z,W,G){return Q=G.ref,{$$typeof:e,type:F,key:J,ref:Q!==void 0?Q:null,props:G}}function R(F,J){return $(F.type,J,void 0,void 0,void 0,F.props)}function M(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function O(F){var J={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(Q){return J[Q]})}var B=/\/+/g;function I(F,J){return typeof F=="object"&&F!==null&&F.key!=null?O(""+F.key):J.toString(36)}function Y(){}function D(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(Y,Y):(F.status="pending",F.then(function(J){F.status==="pending"&&(F.status="fulfilled",F.value=J)},function(J){F.status==="pending"&&(F.status="rejected",F.reason=J)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function V(F,J,Q,z,W){var G=typeof F;(G==="undefined"||G==="boolean")&&(F=null);var Z=!1;if(F===null)Z=!0;else switch(G){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(F.$$typeof){case e:case r:Z=!0;break;case d:return Z=F._init,V(Z(F._payload),J,Q,z,W)}}if(Z)return W=W(F),Z=z===""?"."+I(F,0):z,T(W)?(Q="",Z!=null&&(Q=Z.replace(B,"$&/")+"/"),V(W,J,Q,"",function(re){return re})):W!=null&&(M(W)&&(W=R(W,Q+(W.key==null||F&&F.key===W.key?"":(""+W.key).replace(B,"$&/")+"/")+Z)),J.push(W)),1;Z=0;var oe=z===""?".":z+":";if(T(F))for(var ee=0;ee"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),q2.exports=S0e(),q2.exports}var ji=CD();const TD=vD(ji);function C0e(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function ba(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return C0e(e,r,n);throw Error("Wrong number of arguments")}function Ef(...e){return ba(T0e,e)}const T0e=(e,r)=>e.length>=r;function mt(e,r){if(typeof e>"u"||e==null){const n=typeof r=="function"?r():r;throw new Error(n??`Expected defined value, but received ${e}`)}return e}function nt(e,r){if(!e)throw new Error(r??"Invariant failed")}function Ga(e){throw new Error(`NonExhaustive value: ${e}`)}function cr(e,r,n){const o=typeof r=="symbol"?r:Symbol.for(r);return e.hasOwnProperty(o)||Object.defineProperty(e,o,{enumerable:!1,writable:!1,value:n()}),e[o]}const{min:A0e,max:N0e}=Math,yd=(e,r=0,n=1)=>A0e(N0e(r,e),n),Y2=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=yd(e[r],0,255)):r===3&&(e[r]=yd(e[r],0,1));return e},AD={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])AD[`[object ${e}]`]=e.toLowerCase();function Ft(e){return AD[Object.prototype.toString.call(e)]||"object"}const Mt=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):Ft(e[0])=="object"&&r?r.split("").filter(n=>e[0][n]!==void 0).map(n=>e[0][n]):e[0].slice(0),Sf=e=>{if(e.length<2)return null;const r=e.length-1;return Ft(e[r])=="string"?e[r].toLowerCase():null},{PI:qv,min:ND,max:RD}=Math,Ka=e=>Math.round(e*100)/100,W2=e=>Math.round(e*100)/100,Pl=qv*2,X2=qv/3,R0e=qv/180,$0e=180/qv;function $D(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const Ct={format:{},autodetect:[]};let je=class{constructor(...r){const n=this;if(Ft(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=Sf(r),a=!1;if(!o){a=!0,Ct.sorted||(Ct.autodetect=Ct.autodetect.sort((i,s)=>s.p-i.p),Ct.sorted=!0);for(let i of Ct.autodetect)if(o=i.test(...r),o)break}if(Ct.format[o]){const i=Ct.format[o].apply(null,a?r:r.slice(0,-1));n._rgb=Y2(i)}else throw new Error("unknown format: "+r);n._rgb.length===3&&n._rgb.push(1)}toString(){return Ft(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const P0e="3.1.2",Tt=(...e)=>new je(...e);Tt.version=P0e;const Cf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},M0e=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,O0e=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,PD=e=>{if(e.match(M0e)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),n=r>>16,o=r>>8&255,a=r&255;return[n,o,a,1]}if(e.match(O0e)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),n=r>>24&255,o=r>>16&255,a=r>>8&255,i=Math.round((r&255)/255*100)/100;return[n,o,a,i]}throw new Error(`unknown hex color: ${e}`)},{round:Yv}=Math,MD=(...e)=>{let[r,n,o,a]=Mt(e,"rgba"),i=Sf(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=Yv(r),n=Yv(n),o=Yv(o);let l="000000"+(r<<16|n<<8|o).toString(16);l=l.substr(l.length-6);let c="0"+Yv(a*255).toString(16);switch(c=c.substr(c.length-2),i.toLowerCase()){case"rgba":return`#${l}${c}`;case"argb":return`#${c}${l}`;default:return`#${l}`}};je.prototype.name=function(){const e=MD(this._rgb,"rgb");for(let r of Object.keys(Cf))if(Cf[r]===e)return r.toLowerCase();return e},Ct.format.named=e=>{if(e=e.toLowerCase(),Cf[e])return PD(Cf[e]);throw new Error("unknown color name: "+e)},Ct.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&Cf[e.toLowerCase()])return"named"}}),je.prototype.alpha=function(e,r=!1){return e!==void 0&&Ft(e)==="number"?r?(this._rgb[3]=e,this):new je([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},je.prototype.clipped=function(){return this._rgb._clipped||!1};const Vs={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},D0e=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Ml(e){const r=D0e.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);Vs.labWhitePoint=e,Vs.Xn=r[0],Vs.Zn=r[1]}function p0(){return Vs.labWhitePoint}const G2=(...e)=>{e=Mt(e,"lab");const[r,n,o]=e,[a,i,s]=L0e(r,n,o),[l,c,u]=OD(a,i,s);return[l,c,u,e.length>3?e[3]:1]},L0e=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:s,Yn:l,Zn:c}=Vs,u=(e+16)/116,d=.002*r+u,h=u-.005*n,p=d*d*d,g=h*h*h,y=p>o?p:(116*d-16)/a,x=e>i?Math.pow((e+16)/116,3):e/a,w=g>o?g:(116*h-16)/a,k=y*s,C=x*l,_=w*c;return[k,C,_]},K2=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},OD=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:s,Xn:l,Yn:c,Zn:u}=Vs,d=l*o.m00+c*o.m10+u*o.m20,h=l*o.m01+c*o.m11+u*o.m21,p=l*o.m02+c*o.m12+u*o.m22,g=s.X*o.m00+s.Y*o.m10+s.Z*o.m20,y=s.X*o.m01+s.Y*o.m11+s.Z*o.m21,x=s.X*o.m02+s.Y*o.m12+s.Z*o.m22,w=(e*o.m00+r*o.m10+n*o.m20)*(g/d),k=(e*o.m01+r*o.m11+n*o.m21)*(y/h),C=(e*o.m02+r*o.m12+n*o.m22)*(x/p),_=w*a.m00+k*a.m10+C*a.m20,T=w*a.m01+k*a.m11+C*a.m21,A=w*a.m02+k*a.m12+C*a.m22,N=K2(_*i.m00+T*i.m10+A*i.m20),$=K2(_*i.m01+T*i.m11+A*i.m21),R=K2(_*i.m02+T*i.m12+A*i.m22);return[N*255,$*255,R*255]},Z2=(...e)=>{const[r,n,o,...a]=Mt(e,"rgb"),[i,s,l]=DD(r,n,o),[c,u,d]=I0e(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function I0e(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:s,kK:l}=Vs,c=e/o,u=r/a,d=n/i,h=c>s?Math.pow(c,1/3):(l*c+16)/116,p=u>s?Math.pow(u,1/3):(l*u+16)/116,g=d>s?Math.pow(d,1/3):(l*d+16)/116;return[116*p-16,500*(h-p),200*(p-g)]}function Q2(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const DD=(e,r,n)=>{e=Q2(e/255),r=Q2(r/255),n=Q2(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:s,Yn:l,Zn:c,As:u,Bs:d,Cs:h}=Vs;let p=e*o.m00+r*o.m10+n*o.m20,g=e*o.m01+r*o.m11+n*o.m21,y=e*o.m02+r*o.m12+n*o.m22;const x=s*a.m00+l*a.m10+c*a.m20,w=s*a.m01+l*a.m11+c*a.m21,k=s*a.m02+l*a.m12+c*a.m22;let C=p*a.m00+g*a.m10+y*a.m20,_=p*a.m01+g*a.m11+y*a.m21,T=p*a.m02+g*a.m12+y*a.m22;return C*=x/u,_*=w/d,T*=k/h,p=C*i.m00+_*i.m10+T*i.m20,g=C*i.m01+_*i.m11+T*i.m21,y=C*i.m02+_*i.m12+T*i.m22,[p,g,y]};je.prototype.lab=function(){return Z2(this._rgb)},Object.assign(Tt,{lab:(...e)=>new je(...e,"lab"),getLabWhitePoint:p0,setLabWhitePoint:Ml}),Ct.format.lab=G2,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"lab"),Ft(e)==="array"&&e.length===3)return"lab"}}),je.prototype.darken=function(e=1){const r=this,n=r.lab();return n[0]-=Vs.Kn*e,new je(n,"lab").alpha(r.alpha(),!0)},je.prototype.brighten=function(e=1){return this.darken(-e)},je.prototype.darker=je.prototype.darken,je.prototype.brighter=je.prototype.brighten,je.prototype.get=function(e){const[r,n]=e.split("."),o=this[r]();if(n){const a=r.indexOf(n)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return o[a];throw new Error(`unknown channel ${n} in mode ${r}`)}else return o};const{pow:z0e}=Math,j0e=1e-7,B0e=20;je.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&Ft(e)==="number"){if(e===0)return new je([0,0,0,this._rgb[3]],"rgb");if(e===1)return new je([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),o=B0e;const a=(s,l)=>{const c=s.interpolate(l,.5,r),u=c.luminance();return Math.abs(e-u)e?a(s,c):a(c,l)},i=(n>e?a(new je([0,0,0]),this):a(this,new je([255,255,255]))).rgb();return new je([...i,this._rgb[3]])}return F0e(...this._rgb.slice(0,3))};const F0e=(e,r,n)=>(e=J2(e),r=J2(r),n=J2(n),.2126*e+.7152*r+.0722*n),J2=e=>(e/=255,e<=.03928?e/12.92:z0e((e+.055)/1.055,2.4)),Eo={},Tf=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!Eo[a]&&!o.length&&(a=Object.keys(Eo)[0]),!Eo[a])throw new Error(`interpolation mode ${a} is not defined`);return Ft(e)!=="object"&&(e=new je(e)),Ft(r)!=="object"&&(r=new je(r)),Eo[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};je.prototype.mix=je.prototype.interpolate=function(e,r=.5,...n){return Tf(this,e,r,...n)},je.prototype.premultiply=function(e=!1){const r=this._rgb,n=r[3];return e?(this._rgb=[r[0]*n,r[1]*n,r[2]*n,n],this):new je([r[0]*n,r[1]*n,r[2]*n,n],"rgb")};const{sin:H0e,cos:U0e}=Math,LD=(...e)=>{let[r,n,o]=Mt(e,"lch");return isNaN(o)&&(o=0),o=o*R0e,[r,U0e(o)*n,H0e(o)*n]},e4=(...e)=>{e=Mt(e,"lch");const[r,n,o]=e,[a,i,s]=LD(r,n,o),[l,c,u]=G2(a,i,s);return[l,c,u,e.length>3?e[3]:1]},V0e=(...e)=>{const r=$D(Mt(e,"hcl"));return e4(...r)},{sqrt:q0e,atan2:Y0e,round:W0e}=Math,ID=(...e)=>{const[r,n,o]=Mt(e,"lab"),a=q0e(n*n+o*o);let i=(Y0e(o,n)*$0e+360)%360;return W0e(a*1e4)===0&&(i=Number.NaN),[r,a,i]},t4=(...e)=>{const[r,n,o,...a]=Mt(e,"rgb"),[i,s,l]=Z2(r,n,o),[c,u,d]=ID(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};je.prototype.lch=function(){return t4(this._rgb)},je.prototype.hcl=function(){return $D(t4(this._rgb))},Object.assign(Tt,{lch:(...e)=>new je(...e,"lch"),hcl:(...e)=>new je(...e,"hcl")}),Ct.format.lch=e4,Ct.format.hcl=V0e,["lch","hcl"].forEach(e=>Ct.autodetect.push({p:2,test:(...r)=>{if(r=Mt(r,e),Ft(r)==="array"&&r.length===3)return e}})),je.prototype.saturate=function(e=1){const r=this,n=r.lch();return n[1]+=Vs.Kn*e,n[1]<0&&(n[1]=0),new je(n,"lch").alpha(r.alpha(),!0)},je.prototype.desaturate=function(e=1){return this.saturate(-e)},je.prototype.set=function(e,r,n=!1){const[o,a]=e.split("."),i=this[o]();if(a){const s=o.indexOf(a)-(o.substr(0,2)==="ok"?2:0);if(s>-1){if(Ft(r)=="string")switch(r.charAt(0)){case"+":i[s]+=+r;break;case"-":i[s]+=+r;break;case"*":i[s]*=+r.substr(1);break;case"/":i[s]/=+r.substr(1);break;default:i[s]=+r}else if(Ft(r)==="number")i[s]=r;else throw new Error("unsupported value for Color.set");const l=new je(i,o);return n?(this._rgb=l._rgb,this):l}throw new Error(`unknown channel ${a} in mode ${o}`)}else return i},je.prototype.tint=function(e=.5,...r){return Tf(this,"white",e,...r)},je.prototype.shade=function(e=.5,...r){return Tf(this,"black",e,...r)};const X0e=(e,r,n)=>{const o=e._rgb,a=r._rgb;return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"rgb")};Eo.rgb=X0e;const{sqrt:r4,pow:Af}=Math,G0e=(e,r,n)=>{const[o,a,i]=e._rgb,[s,l,c]=r._rgb;return new je(r4(Af(o,2)*(1-n)+Af(s,2)*n),r4(Af(a,2)*(1-n)+Af(l,2)*n),r4(Af(i,2)*(1-n)+Af(c,2)*n),"rgb")};Eo.lrgb=G0e;const K0e=(e,r,n)=>{const o=e.lab(),a=r.lab();return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"lab")};Eo.lab=K0e;const Nf=(e,r,n,o)=>{let a,i;o==="hsl"?(a=e.hsl(),i=r.hsl()):o==="hsv"?(a=e.hsv(),i=r.hsv()):o==="hcg"?(a=e.hcg(),i=r.hcg()):o==="hsi"?(a=e.hsi(),i=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",a=e.hcl(),i=r.hcl()):o==="oklch"&&(a=e.oklch().reverse(),i=r.oklch().reverse());let s,l,c,u,d,h;(o.substr(0,1)==="h"||o==="oklch")&&([s,c,d]=a,[l,u,h]=i);let p,g,y,x;return!isNaN(s)&&!isNaN(l)?(l>s&&l-s>180?x=l-(s+360):l180?x=l+360-s:x=l-s,g=s+n*x):isNaN(s)?isNaN(l)?g=Number.NaN:(g=l,(d==1||d==0)&&o!="hsv"&&(p=u)):(g=s,(h==1||h==0)&&o!="hsv"&&(p=c)),p===void 0&&(p=c+n*(u-c)),y=d+n*(h-d),o==="oklch"?new je([y,p,g],o):new je([g,p,y],o)},zD=(e,r,n)=>Nf(e,r,n,"lch");Eo.lch=zD,Eo.hcl=zD;const Z0e=e=>{if(Ft(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,n=e>>8&255,o=e&255;return[r,n,o,1]}throw new Error("unknown num color: "+e)},Q0e=(...e)=>{const[r,n,o]=Mt(e,"rgb");return(r<<16)+(n<<8)+o};je.prototype.num=function(){return Q0e(this._rgb)},Object.assign(Tt,{num:(...e)=>new je(...e,"num")}),Ct.format.num=Z0e,Ct.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ft(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const J0e=(e,r,n)=>{const o=e.num(),a=r.num();return new je(o+n*(a-o),"num")};Eo.num=J0e;const{floor:e1e}=Math,t1e=(...e)=>{e=Mt(e,"hcg");let[r,n,o]=e,a,i,s;o=o*255;const l=n*255;if(n===0)a=i=s=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=e1e(r),u=r-c,d=o*(1-n),h=d+l*(1-u),p=d+l*u,g=d+l;switch(c){case 0:[a,i,s]=[g,p,d];break;case 1:[a,i,s]=[h,g,d];break;case 2:[a,i,s]=[d,g,p];break;case 3:[a,i,s]=[d,h,g];break;case 4:[a,i,s]=[p,d,g];break;case 5:[a,i,s]=[g,d,h];break}}return[a,i,s,e.length>3?e[3]:1]},r1e=(...e)=>{const[r,n,o]=Mt(e,"rgb"),a=ND(r,n,o),i=RD(r,n,o),s=i-a,l=s*100/255,c=a/(255-s)*100;let u;return s===0?u=Number.NaN:(r===i&&(u=(n-o)/s),n===i&&(u=2+(o-r)/s),o===i&&(u=4+(r-n)/s),u*=60,u<0&&(u+=360)),[u,l,c]};je.prototype.hcg=function(){return r1e(this._rgb)};const n1e=(...e)=>new je(...e,"hcg");Tt.hcg=n1e,Ct.format.hcg=t1e,Ct.autodetect.push({p:1,test:(...e)=>{if(e=Mt(e,"hcg"),Ft(e)==="array"&&e.length===3)return"hcg"}});const o1e=(e,r,n)=>Nf(e,r,n,"hcg");Eo.hcg=o1e;const{cos:Rf}=Math,a1e=(...e)=>{e=Mt(e,"hsi");let[r,n,o]=e,a,i,s;return isNaN(r)&&(r=0),isNaN(n)&&(n=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(s=(1-n)/3,a=(1+n*Rf(Pl*r)/Rf(X2-Pl*r))/3,i=1-(s+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*Rf(Pl*r)/Rf(X2-Pl*r))/3,s=1-(a+i)):(r-=2/3,i=(1-n)/3,s=(1+n*Rf(Pl*r)/Rf(X2-Pl*r))/3,a=1-(i+s)),a=yd(o*a*3),i=yd(o*i*3),s=yd(o*s*3),[a*255,i*255,s*255,e.length>3?e[3]:1]},{min:i1e,sqrt:s1e,acos:l1e}=Math,c1e=(...e)=>{let[r,n,o]=Mt(e,"rgb");r/=255,n/=255,o/=255;let a;const i=i1e(r,n,o),s=(r+n+o)/3,l=s>0?1-i/s:0;return l===0?a=NaN:(a=(r-n+(r-o))/2,a/=s1e((r-n)*(r-n)+(r-o)*(n-o)),a=l1e(a),o>n&&(a=Pl-a),a/=Pl),[a*360,l,s]};je.prototype.hsi=function(){return c1e(this._rgb)};const u1e=(...e)=>new je(...e,"hsi");Tt.hsi=u1e,Ct.format.hsi=a1e,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"hsi"),Ft(e)==="array"&&e.length===3)return"hsi"}});const d1e=(e,r,n)=>Nf(e,r,n,"hsi");Eo.hsi=d1e;const n4=(...e)=>{e=Mt(e,"hsl");const[r,n,o]=e;let a,i,s;if(n===0)a=i=s=o*255;else{const l=[0,0,0],c=[0,0,0],u=o<.5?o*(1+n):o+n-o*n,d=2*o-u,h=r/360;l[0]=h+1/3,l[1]=h,l[2]=h-1/3;for(let p=0;p<3;p++)l[p]<0&&(l[p]+=1),l[p]>1&&(l[p]-=1),6*l[p]<1?c[p]=d+(u-d)*6*l[p]:2*l[p]<1?c[p]=u:3*l[p]<2?c[p]=d+(u-d)*(2/3-l[p])*6:c[p]=d;[a,i,s]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[a,i,s,e[3]]:[a,i,s,1]},jD=(...e)=>{e=Mt(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=ND(r,n,o),i=RD(r,n,o),s=(i+a)/2;let l,c;return i===a?(l=0,c=Number.NaN):l=s<.5?(i-a)/(i+a):(i-a)/(2-i-a),r==i?c=(n-o)/(i-a):n==i?c=2+(o-r)/(i-a):o==i&&(c=4+(r-n)/(i-a)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,l,s,e[3]]:[c,l,s]};je.prototype.hsl=function(){return jD(this._rgb)};const h1e=(...e)=>new je(...e,"hsl");Tt.hsl=h1e,Ct.format.hsl=n4,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"hsl"),Ft(e)==="array"&&e.length===3)return"hsl"}});const f1e=(e,r,n)=>Nf(e,r,n,"hsl");Eo.hsl=f1e;const{floor:p1e}=Math,m1e=(...e)=>{e=Mt(e,"hsv");let[r,n,o]=e,a,i,s;if(o*=255,n===0)a=i=s=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const l=p1e(r),c=r-l,u=o*(1-n),d=o*(1-n*c),h=o*(1-n*(1-c));switch(l){case 0:[a,i,s]=[o,h,u];break;case 1:[a,i,s]=[d,o,u];break;case 2:[a,i,s]=[u,o,h];break;case 3:[a,i,s]=[u,d,o];break;case 4:[a,i,s]=[h,u,o];break;case 5:[a,i,s]=[o,u,d];break}}return[a,i,s,e.length>3?e[3]:1]},{min:g1e,max:y1e}=Math,b1e=(...e)=>{e=Mt(e,"rgb");let[r,n,o]=e;const a=g1e(r,n,o),i=y1e(r,n,o),s=i-a;let l,c,u;return u=i/255,i===0?(l=Number.NaN,c=0):(c=s/i,r===i&&(l=(n-o)/s),n===i&&(l=2+(o-r)/s),o===i&&(l=4+(r-n)/s),l*=60,l<0&&(l+=360)),[l,c,u]};je.prototype.hsv=function(){return b1e(this._rgb)};const v1e=(...e)=>new je(...e,"hsv");Tt.hsv=v1e,Ct.format.hsv=m1e,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"hsv"),Ft(e)==="array"&&e.length===3)return"hsv"}});const x1e=(e,r,n)=>Nf(e,r,n,"hsv");Eo.hsv=x1e;function Wv(e,r){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(s=>[s]));let o=r[0].length,a=r[0].map((s,l)=>r.map(c=>c[l])),i=e.map(s=>a.map(l=>Array.isArray(s)?s.reduce((c,u,d)=>c+u*(l[d]||0),0):l.reduce((c,u)=>c+u*s,0)));return n===1&&(i=i[0]),o===1?i.map(s=>s[0]):i}const o4=(...e)=>{e=Mt(e,"lab");const[r,n,o,...a]=e,[i,s,l]=w1e([r,n,o]),[c,u,d]=OD(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function w1e(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=Wv(n,e);return Wv(r,o.map(a=>a**3))}const a4=(...e)=>{const[r,n,o,...a]=Mt(e,"rgb"),i=DD(r,n,o);return[...k1e(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function k1e(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=Wv(r,e);return Wv(n,o.map(a=>Math.cbrt(a)))}je.prototype.oklab=function(){return a4(this._rgb)},Object.assign(Tt,{oklab:(...e)=>new je(...e,"oklab")}),Ct.format.oklab=o4,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"oklab"),Ft(e)==="array"&&e.length===3)return"oklab"}});const _1e=(e,r,n)=>{const o=e.oklab(),a=r.oklab();return new je(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"oklab")};Eo.oklab=_1e;const E1e=(e,r,n)=>Nf(e,r,n,"oklch");Eo.oklch=E1e;const{pow:i4,sqrt:s4,PI:l4,cos:BD,sin:FD,atan2:S1e}=Math,C1e=(e,r="lrgb",n=null)=>{const o=e.length;n||(n=Array.from(new Array(o)).map(()=>1));const a=o/n.reduce(function(h,p){return h+p});if(n.forEach((h,p)=>{n[p]*=a}),e=e.map(h=>new je(h)),r==="lrgb")return T1e(e,n);const i=e.shift(),s=i.get(r),l=[];let c=0,u=0;for(let h=0;h{const g=h.get(r);d+=h.alpha()*n[p+1];for(let y=0;y=360;)p-=360;s[h]=p}else s[h]=s[h]/l[h];return d/=o,new je(s,r).alpha(d>.99999?1:d,!0)},T1e=(e,r)=>{const n=e.length,o=[0,0,0,0];for(let a=0;a.9999999&&(o[3]=1),new je(Y2(o))},{pow:A1e}=Math;function Xv(e){let r="rgb",n=Tt("#ccc"),o=0,a=[0,1],i=[],s=[0,0],l=!1,c=[],u=!1,d=0,h=1,p=!1,g={},y=!0,x=1;const w=function($){if($=$||["#fff","#000"],$&&Ft($)==="string"&&Tt.brewer&&Tt.brewer[$.toLowerCase()]&&($=Tt.brewer[$.toLowerCase()]),Ft($)==="array"){$.length===1&&($=[$[0],$[0]]),$=$.slice(0);for(let R=0;R<$.length;R++)$[R]=Tt($[R]);i.length=0;for(let R=0;R<$.length;R++)i.push(R/($.length-1))}return A(),c=$},k=function($){if(l!=null){const R=l.length-1;let M=0;for(;M=l[M];)M++;return M-1}return 0};let C=$=>$,_=$=>$;const T=function($,R){let M,O;if(R==null&&(R=!1),isNaN($)||$===null)return n;R?O=$:l&&l.length>2?O=k($)/(l.length-2):h!==d?O=($-d)/(h-d):O=1,O=_(O),R||(O=C(O)),x!==1&&(O=A1e(O,x)),O=s[0]+O*(1-s[0]-s[1]),O=yd(O,0,1);const B=Math.floor(O*1e4);if(y&&g[B])M=g[B];else{if(Ft(c)==="array")for(let I=0;I=Y&&I===i.length-1){M=c[I];break}if(O>Y&&Og={};w(e);const N=function($){const R=Tt(T($));return u&&R[u]?R[u]():R};return N.classes=function($){if($!=null){if(Ft($)==="array")l=$,a=[$[0],$[$.length-1]];else{const R=Tt.analyze(a);$===0?l=[R.min,R.max]:l=Tt.limits(R,"e",$)}return N}return l},N.domain=function($){if(!arguments.length)return a;d=$[0],h=$[$.length-1],i=[];const R=c.length;if($.length===R&&d!==h)for(let M of Array.from($))i.push((M-d)/(h-d));else{for(let M=0;M2){const M=$.map((B,I)=>I/($.length-1)),O=$.map(B=>(B-d)/(h-d));O.every((B,I)=>M[I]===B)||(_=B=>{if(B<=0||B>=1)return B;let I=0;for(;B>=O[I+1];)I++;const Y=(B-O[I])/(O[I+1]-O[I]);return M[I]+Y*(M[I+1]-M[I])})}}return a=[d,h],N},N.mode=function($){return arguments.length?(r=$,A(),N):r},N.range=function($,R){return w($),N},N.out=function($){return u=$,N},N.spread=function($){return arguments.length?(o=$,N):o},N.correctLightness=function($){return $==null&&($=!0),p=$,A(),p?C=function(R){const M=T(0,!0).lab()[0],O=T(1,!0).lab()[0],B=M>O;let I=T(R,!0).lab()[0];const Y=M+(O-M)*R;let D=I-Y,V=0,L=1,U=20;for(;Math.abs(D)>.01&&U-- >0;)(function(){return B&&(D*=-1),D<0?(V=R,R+=(L-R)*.5):(L=R,R+=(V-R)*.5),I=T(R,!0).lab()[0],D=I-Y})();return R}:C=R=>R,N},N.padding=function($){return $!=null?(Ft($)==="number"&&($=[$,$]),s=$,N):s},N.colors=function($,R){arguments.length<2&&(R="hex");let M=[];if(arguments.length===0)M=c.slice(0);else if($===1)M=[N(.5)];else if($>1){const O=a[0],B=a[1]-O;M=N1e(0,$).map(I=>N(O+I/($-1)*B))}else{e=[];let O=[];if(l&&l.length>2)for(let B=1,I=l.length,Y=1<=I;Y?BI;Y?B++:B--)O.push((l[B-1]+l[B])*.5);else O=a;M=O.map(B=>N(B))}return Tt[R]&&(M=M.map(O=>O[R]())),M},N.cache=function($){return $!=null?(y=$,N):y},N.gamma=function($){return $!=null?(x=$,N):x},N.nodata=function($){return $!=null?(n=Tt($),N):n},N}function N1e(e,r,n){let o=[],a=ei;a?s++:s--)o.push(s);return o}const R1e=function(e){let r=[1,1];for(let n=1;nnew je(i)),e.length===2)[n,o]=e.map(i=>i.lab()),r=function(i){const s=[0,1,2].map(l=>n[l]+i*(o[l]-n[l]));return new je(s,"lab")};else if(e.length===3)[n,o,a]=e.map(i=>i.lab()),r=function(i){const s=[0,1,2].map(l=>(1-i)*(1-i)*n[l]+2*(1-i)*i*o[l]+i*i*a[l]);return new je(s,"lab")};else if(e.length===4){let i;[n,o,a,i]=e.map(s=>s.lab()),r=function(s){const l=[0,1,2].map(c=>(1-s)*(1-s)*(1-s)*n[c]+3*(1-s)*(1-s)*s*o[c]+3*(1-s)*s*s*a[c]+s*s*s*i[c]);return new je(l,"lab")}}else if(e.length>=5){let i,s,l;i=e.map(c=>c.lab()),l=e.length-1,s=R1e(l),r=function(c){const u=1-c,d=[0,1,2].map(h=>i.reduce((p,g,y)=>p+s[y]*u**(l-y)*c**y*g[h],0));return new je(d,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},P1e=e=>{const r=$1e(e);return r.scale=()=>Xv(r),r},{round:HD}=Math;je.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(HD)},je.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:HD(r):r)},Object.assign(Tt,{rgb:(...e)=>new je(...e,"rgb")}),Ct.format.rgb=(...e)=>{const r=Mt(e,"rgba");return r[3]===void 0&&(r[3]=1),r},Ct.autodetect.push({p:3,test:(...e)=>{if(e=Mt(e,"rgba"),Ft(e)==="array"&&(e.length===3||e.length===4&&Ft(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Bi=(e,r,n)=>{if(!Bi[n])throw new Error("unknown blend mode "+n);return Bi[n](e,r)},Hc=e=>(r,n)=>{const o=Tt(n).rgb(),a=Tt(r).rgb();return Tt.rgb(e(o,a))},Uc=e=>(r,n)=>{const o=[];return o[0]=e(r[0],n[0]),o[1]=e(r[1],n[1]),o[2]=e(r[2],n[2]),o},M1e=e=>e,O1e=(e,r)=>e*r/255,D1e=(e,r)=>e>r?r:e,L1e=(e,r)=>e>r?e:r,I1e=(e,r)=>255*(1-(1-e/255)*(1-r/255)),z1e=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),j1e=(e,r)=>255*(1-(1-r/255)/(e/255)),B1e=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Bi.normal=Hc(Uc(M1e)),Bi.multiply=Hc(Uc(O1e)),Bi.screen=Hc(Uc(I1e)),Bi.overlay=Hc(Uc(z1e)),Bi.darken=Hc(Uc(D1e)),Bi.lighten=Hc(Uc(L1e)),Bi.dodge=Hc(Uc(B1e)),Bi.burn=Hc(Uc(j1e));const{pow:F1e,sin:H1e,cos:U1e}=Math;function V1e(e=300,r=-1.5,n=1,o=1,a=[0,1]){let i=0,s;Ft(a)==="array"?s=a[1]-a[0]:(s=0,a=[a,a]);const l=function(c){const u=Pl*((e+120)/360+r*c),d=F1e(a[0]+s*c,o),p=(i!==0?n[0]+c*i:n)*d*(1-d)/2,g=U1e(u),y=H1e(u),x=d+p*(-.14861*g+1.78277*y),w=d+p*(-.29227*g-.90649*y),k=d+p*(1.97294*g);return Tt(Y2([x*255,w*255,k*255,1]))};return l.start=function(c){return c==null?e:(e=c,l)},l.rotations=function(c){return c==null?r:(r=c,l)},l.gamma=function(c){return c==null?o:(o=c,l)},l.hue=function(c){return c==null?n:(n=c,Ft(n)==="array"?(i=n[1]-n[0],i===0&&(n=n[1])):i=0,l)},l.lightness=function(c){return c==null?a:(Ft(c)==="array"?(a=c,s=c[1]-c[0]):(a=[c,c],s=0),l)},l.scale=()=>Tt.scale(l),l.hue(n),l}const q1e="0123456789abcdef",{floor:Y1e,random:W1e}=Math,X1e=()=>{let e="#";for(let r=0;r<6;r++)e+=q1e.charAt(Y1e(W1e()*16));return new je(e,"hex")},{log:UD,pow:G1e,floor:K1e,abs:Z1e}=Math;function VD(e,r=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Ft(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&Ft(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(n.values.push(o),n.sum+=o,on.max&&(n.max=o),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(o,a)=>qD(n,o,a),n}function qD(e,r="equal",n=7){Ft(e)=="array"&&(e=VD(e));const{min:o,max:a}=e,i=e.values.sort((l,c)=>l-c);if(n===1)return[o,a];const s=[];if(r.substr(0,1)==="c"&&(s.push(o),s.push(a)),r.substr(0,1)==="e"){s.push(o);for(let l=1;l 0");const l=Math.LOG10E*UD(o),c=Math.LOG10E*UD(a);s.push(o);for(let u=1;u200&&(h=!1)}const y={};for(let w=0;ww-k),s.push(x[0]);for(let w=1;w{e=new je(e),r=new je(r);const n=e.luminance(),o=r.luminance();return n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)};/** + * @license + * + * The APCA contrast prediction algorithm is based of the formulas published + * in the APCA-1.0.98G specification by Myndex. The specification is available at: + * https://raw.githubusercontent.com/Myndex/apca-w3/master/images/APCAw3_0.1.17_APCA0.0.98G.svg + * + * Note that the APCA implementation is still beta, so please update to + * future versions of chroma.js when they become available. + * + * You can read more about the APCA Readability Criterion at + * https://readtech.org/ARC/ + */const YD=.027,J1e=5e-4,eye=.1,WD=1.14,Gv=.022,XD=1.414,tye=(e,r)=>{e=new je(e),r=new je(r),e.alpha()<1&&(e=Tf(r,e,e.alpha(),"rgb"));const n=GD(...e.rgb()),o=GD(...r.rgb()),a=n>=Gv?n:n+Math.pow(Gv-n,XD),i=o>=Gv?o:o+Math.pow(Gv-o,XD),s=Math.pow(i,.56)-Math.pow(a,.57),l=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)0?c-YD:c+YD)*100};function GD(e,r,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:Ol,pow:fn,min:rye,max:nye,atan2:KD,abs:ZD,cos:Kv,sin:QD,exp:oye,PI:JD}=Math;function aye(e,r,n=1,o=1,a=1){var i=function(z){return 360*z/(2*JD)},s=function(z){return 2*JD*z/360};e=new je(e),r=new je(r);const[l,c,u]=Array.from(e.lab()),[d,h,p]=Array.from(r.lab()),g=(l+d)/2,y=Ol(fn(c,2)+fn(u,2)),x=Ol(fn(h,2)+fn(p,2)),w=(y+x)/2,k=.5*(1-Ol(fn(w,7)/(fn(w,7)+fn(25,7)))),C=c*(1+k),_=h*(1+k),T=Ol(fn(C,2)+fn(u,2)),A=Ol(fn(_,2)+fn(p,2)),N=(T+A)/2,$=i(KD(u,C)),R=i(KD(p,_)),M=$>=0?$:$+360,O=R>=0?R:R+360,B=ZD(M-O)>180?(M+O+360)/2:(M+O)/2,I=1-.17*Kv(s(B-30))+.24*Kv(s(2*B))+.32*Kv(s(3*B+6))-.2*Kv(s(4*B-63));let Y=O-M;Y=ZD(Y)<=180?Y:O<=M?Y+360:Y-360,Y=2*Ol(T*A)*QD(s(Y)/2);const D=d-l,V=A-T,L=1+.015*fn(g-50,2)/Ol(20+fn(g-50,2)),U=1+.045*N,q=1+.015*N*I,X=30*oye(-fn((B-275)/25,2)),J=-(2*Ol(fn(N,7)/(fn(N,7)+fn(25,7))))*QD(2*s(X)),Q=Ol(fn(D/(n*L),2)+fn(V/(o*U),2)+fn(Y/(a*q),2)+J*(V/(o*U))*(Y/(a*q)));return nye(0,rye(100,Q))}function iye(e,r,n="lab"){e=new je(e),r=new je(r);const o=e.get(n),a=r.get(n);let i=0;for(let s in o){const l=(o[s]||0)-(a[s]||0);i+=l*l}return Math.sqrt(i)}const sye=(...e)=>{try{return new je(...e),!0}catch{return!1}},lye={cool(){return Xv([Tt.hsl(180,1,.9),Tt.hsl(250,.7,.4)])},hot(){return Xv(["#000","#f00","#ff0","#fff"]).mode("rgb")}},c4={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},eL=Object.keys(c4),tL=new Map(eL.map(e=>[e.toLowerCase(),e])),cye=typeof Proxy=="function"?new Proxy(c4,{get(e,r){const n=r.toLowerCase();if(tL.has(n))return e[tL.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(eL)}}):c4,uye=(...e)=>{e=Mt(e,"cmyk");const[r,n,o,a]=e,i=e.length>4?e[4]:1;return a===1?[0,0,0,i]:[r>=1?0:255*(1-r)*(1-a),n>=1?0:255*(1-n)*(1-a),o>=1?0:255*(1-o)*(1-a),i]},{max:rL}=Math,dye=(...e)=>{let[r,n,o]=Mt(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-rL(r,rL(n,o)),i=a<1?1/(1-a):0,s=(1-r-a)*i,l=(1-n-a)*i,c=(1-o-a)*i;return[s,l,c,a]};je.prototype.cmyk=function(){return dye(this._rgb)},Object.assign(Tt,{cmyk:(...e)=>new je(...e,"cmyk")}),Ct.format.cmyk=uye,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"cmyk"),Ft(e)==="array"&&e.length===4)return"cmyk"}});const hye=(...e)=>{const r=Mt(e,"hsla");let n=Sf(e)||"lsa";return r[0]=Ka(r[0]||0)+"deg",r[1]=Ka(r[1]*100)+"%",r[2]=Ka(r[2]*100)+"%",n==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),n="hsla"):r.length=3,`${n.substr(0,3)}(${r.join(" ")})`},fye=(...e)=>{const r=Mt(e,"lab");let n=Sf(e)||"lab";return r[0]=Ka(r[0])+"%",r[1]=Ka(r[1]),r[2]=Ka(r[2]),n==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},pye=(...e)=>{const r=Mt(e,"lch");let n=Sf(e)||"lab";return r[0]=Ka(r[0])+"%",r[1]=Ka(r[1]),r[2]=isNaN(r[2])?"none":Ka(r[2])+"deg",n==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},mye=(...e)=>{const r=Mt(e,"lab");return r[0]=Ka(r[0]*100)+"%",r[1]=W2(r[1]),r[2]=W2(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},nL=(...e)=>{const[r,n,o,...a]=Mt(e,"rgb"),[i,s,l]=a4(r,n,o),[c,u,d]=ID(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},gye=(...e)=>{const r=Mt(e,"lch");return r[0]=Ka(r[0]*100)+"%",r[1]=W2(r[1]),r[2]=isNaN(r[2])?"none":Ka(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:u4}=Math,yye=(...e)=>{const r=Mt(e,"rgba");let n=Sf(e)||"rgb";if(n.substr(0,3)==="hsl")return hye(jD(r),n);if(n.substr(0,3)==="lab"){const o=p0();Ml("d50");const a=fye(Z2(r),n);return Ml(o),a}if(n.substr(0,3)==="lch"){const o=p0();Ml("d50");const a=pye(t4(r),n);return Ml(o),a}return n.substr(0,5)==="oklab"?mye(a4(r)):n.substr(0,5)==="oklch"?gye(nL(r)):(r[0]=u4(r[0]),r[1]=u4(r[1]),r[2]=u4(r[2]),(n==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),n="rgba"),`${n.substr(0,3)}(${r.slice(0,n==="rgb"?3:4).join(" ")})`)},oL=(...e)=>{e=Mt(e,"lch");const[r,n,o,...a]=e,[i,s,l]=LD(r,n,o),[c,u,d]=o4(i,s,l);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},Dl=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Fi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,Zv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Za=/\s*/.source,$f=/\s+/.source,d4=/\s*,\s*/.source,Qv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Pf=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,aL=new RegExp("^rgba?\\("+Za+[Dl,Dl,Dl].join($f)+Pf+"\\)$"),iL=new RegExp("^rgb\\("+Za+[Dl,Dl,Dl].join(d4)+Za+"\\)$"),sL=new RegExp("^rgba\\("+Za+[Dl,Dl,Dl,Fi].join(d4)+Za+"\\)$"),lL=new RegExp("^hsla?\\("+Za+[Qv,Zv,Zv].join($f)+Pf+"\\)$"),cL=new RegExp("^hsl?\\("+Za+[Qv,Zv,Zv].join(d4)+Za+"\\)$"),uL=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,dL=new RegExp("^lab\\("+Za+[Fi,Fi,Fi].join($f)+Pf+"\\)$"),hL=new RegExp("^lch\\("+Za+[Fi,Fi,Qv].join($f)+Pf+"\\)$"),fL=new RegExp("^oklab\\("+Za+[Fi,Fi,Fi].join($f)+Pf+"\\)$"),pL=new RegExp("^oklch\\("+Za+[Fi,Fi,Qv].join($f)+Pf+"\\)$"),{round:mL}=Math,Mf=e=>e.map((r,n)=>n<=2?yd(mL(r),0,255):r),pn=(e,r=0,n=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(n-r):e=r+e*(n-r)),+e),Bo=(e,r)=>e==="none"?r:e,h4=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(Ct.format.named)try{return Ct.format.named(e)}catch{}if((r=e.match(aL))||(r=e.match(iL))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+pn(Bo(n[a],0),0,255);n=Mf(n);const o=r[4]!==void 0?+pn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(sL)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+pn(n[o],0,255);return n}if((r=e.match(lL))||(r=e.match(cL))){const n=r.slice(1,4);n[0]=+Bo(n[0].replace("deg",""),0),n[1]=+pn(Bo(n[1],0),0,100)*.01,n[2]=+pn(Bo(n[2],0),0,100)*.01;const o=Mf(n4(n)),a=r[4]!==void 0?+pn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(uL)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=n4(n);for(let a=0;a<3;a++)o[a]=mL(o[a]);return o[3]=+r[4],o}if(r=e.match(dL)){const n=r.slice(1,4);n[0]=pn(Bo(n[0],0),0,100),n[1]=pn(Bo(n[1],0),-125,125,!0),n[2]=pn(Bo(n[2],0),-125,125,!0);const o=p0();Ml("d50");const a=Mf(G2(n));Ml(o);const i=r[4]!==void 0?+pn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(hL)){const n=r.slice(1,4);n[0]=pn(n[0],0,100),n[1]=pn(Bo(n[1],0),0,150,!1),n[2]=+Bo(n[2].replace("deg",""),0);const o=p0();Ml("d50");const a=Mf(e4(n));Ml(o);const i=r[4]!==void 0?+pn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(fL)){const n=r.slice(1,4);n[0]=pn(Bo(n[0],0),0,1),n[1]=pn(Bo(n[1],0),-.4,.4,!0),n[2]=pn(Bo(n[2],0),-.4,.4,!0);const o=Mf(o4(n)),a=r[4]!==void 0?+pn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(pL)){const n=r.slice(1,4);n[0]=pn(Bo(n[0],0),0,1),n[1]=pn(Bo(n[1],0),0,.4,!1),n[2]=+Bo(n[2].replace("deg",""),0);const o=Mf(oL(n)),a=r[4]!==void 0?+pn(r[4],0,1):1;return o[3]=a,o}};h4.test=e=>aL.test(e)||lL.test(e)||dL.test(e)||hL.test(e)||fL.test(e)||pL.test(e)||iL.test(e)||sL.test(e)||cL.test(e)||uL.test(e)||e==="transparent",je.prototype.css=function(e){return yye(this._rgb,e)};const bye=(...e)=>new je(...e,"css");Tt.css=bye,Ct.format.css=h4,Ct.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&h4.test(e))return"css"}}),Ct.format.gl=(...e)=>{const r=Mt(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const vye=(...e)=>new je(...e,"gl");Tt.gl=vye,je.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},je.prototype.hex=function(e){return MD(this._rgb,e)};const xye=(...e)=>new je(...e,"hex");Tt.hex=xye,Ct.format.hex=PD,Ct.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Jv}=Math,gL=e=>{const r=e/100;let n,o,a;return r<66?(n=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*Jv(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*Jv(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*Jv(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*Jv(o),a=255),[n,o,a,1]},{round:wye}=Math,kye=(...e)=>{const r=Mt(e,"rgb"),n=r[0],o=r[2];let a=1e3,i=4e4;const s=.4;let l;for(;i-a>s;){l=(i+a)*.5;const c=gL(l);c[2]/c[0]>=o/n?i=l:a=l}return wye(l)};je.prototype.temp=je.prototype.kelvin=je.prototype.temperature=function(){return kye(this._rgb)};const f4=(...e)=>new je(...e,"temp");Object.assign(Tt,{temp:f4,kelvin:f4,temperature:f4}),Ct.format.temp=Ct.format.kelvin=Ct.format.temperature=gL,je.prototype.oklch=function(){return nL(this._rgb)},Object.assign(Tt,{oklch:(...e)=>new je(...e,"oklch")}),Ct.format.oklch=oL,Ct.autodetect.push({p:2,test:(...e)=>{if(e=Mt(e,"oklch"),Ft(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Tt,{analyze:VD,average:C1e,bezier:P1e,blend:Bi,brewer:cye,Color:je,colors:Cf,contrast:Q1e,contrastAPCA:tye,cubehelix:V1e,deltaE:aye,distance:iye,input:Ct,interpolate:Tf,limits:qD,mix:Tf,random:X1e,scale:Xv,scales:lye,valid:sye});const p4=[.96,.907,.805,.697,.605,.547,.518,.445,.395,.34],yL=[.32,.16,.08,.04,0,0,.04,.08,.16,.32];function _ye(e){const r=e.get("hsl.l");return p4.reduce((n,o)=>Math.abs(o-r)i===n),a=p4.map(i=>r.set("hsl.l",i)).map(i=>Tt(i)).map((i,s)=>{const l=yL[s]-yL[o];return l>=0?i.saturate(l):i.desaturate(l*-1)});return a[o]=Tt(e),{baseColorIndex:o,colors:a}}function Sye(e){return Eye(e).colors.map(r=>r.hex())}function Cye(...e){return ba(Tye,e)}function Tye(e,r){let n={};for(let[o,a]of e.entries())n[a]=r(a,o,e);return n}function m4(...e){return ba(m0,e)}function m0(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return Aye(e,r);if(e instanceof Map)return Nye(e,r);if(e instanceof Set)return Rye(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!m0(o,r[n]))return!1;return!0}function Aye(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!m0(o,r[n]))return!1;return!0}function Nye(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!m0(o,r.get(n)))return!1;return!0}function Rye(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,s]of n.entries())if(m0(o,s)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}const bL={fill:"#3b82f6",stroke:"#2563eb",hiContrast:"#eff6ff",loContrast:"#bfdbfe"},vL={fill:"#0284c7",stroke:"#0369a1",hiContrast:"#f0f9ff",loContrast:"#B6ECF7"},xL={fill:"#64748b",stroke:"#475569",hiContrast:"#f8fafc",loContrast:"#cbd5e1"},$ye={primary:bL,blue:bL,secondary:vL,sky:vL,muted:xL,slate:xL,gray:{fill:"#737373",stroke:"#525252",hiContrast:"#fafafa",loContrast:"#d4d4d4"},red:{fill:"#AC4D39",stroke:"#853A2D",hiContrast:"#FBD3CB",loContrast:"#f5b2a3"},green:{fill:"#428a4f",stroke:"#2d5d39",hiContrast:"#f8fafc",loContrast:"#c2f0c2"},amber:{fill:"#A35829",stroke:"#7E451D",hiContrast:"#FFE0C2",loContrast:"#f9b27c"},indigo:{fill:"#6366f1",stroke:"#4f46e5",hiContrast:"#eef2ff",loContrast:"#c7d2fe"}},Pye={line:"#6E6E6E",labelBg:"#18191b",label:"#C6C6C6"},wL={line:"#64748b",labelBg:"#0f172a",label:"#cbd5e1"},kL={line:"#3b82f6",labelBg:"#172554",label:"#60a5fa"},_L={line:"#0ea5e9",labelBg:"#082f49",label:"#38bdf8"},Mye={amber:{line:"#b45309",labelBg:"#78350f",label:"#FFE0C2"},blue:kL,gray:Pye,green:{line:"#15803d",labelBg:"#052e16",label:"#22c55e"},indigo:{line:"#6366f1",labelBg:"#1e1b4b",label:"#818cf8"},muted:wL,primary:kL,red:{line:"#AC4D39",labelBg:"#b91c1c",label:"#f5b2a3"},secondary:_L,sky:_L,slate:wL},EL=60,SL=2,CL=1;function Oye(e){nt(Tt.valid(e),`Invalid color: ${e}`);const r=Sye(e),n=r[6],o=Dye(n);return{elements:{fill:n,stroke:r[7],hiContrast:o[0],loContrast:o[1]},relationships:{line:r[4],label:r[3],labelBg:r[9]}}}function Dye(e){const r=Tt(e);let n=r.brighten(SL),o=r.darken(SL),a,i,s,l;do a=n,i=o,n=n.brighten(CL),o=o.darken(CL),s=Tt.contrastAPCA(r,n),l=Tt.contrastAPCA(r,o);while(Math.abs(s)Math.abs(l)?[n.brighten(.4).hex(),n.hex()]:[o.darken(.4).hex(),o.hex()]}const Lye=["rectangle","person","browser","mobile","cylinder","storage","queue"],Iye={colors:Cye(["amber","blue","gray","slate","green","indigo","muted","primary","red","secondary","sky"],e=>({elements:$ye[e],relationships:Mye[e]})),sizes:{xs:{width:180,height:100},sm:{width:240,height:135},md:{width:320,height:180},lg:{width:420,height:234},xl:{width:520,height:290}},spacing:{xs:8,sm:10,md:16,lg:24,xl:32},textSizes:{xs:13.33,sm:16,md:19.2,lg:23.04,xl:27.65}};function g4(e){if(e===null||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);return r!==null&&r!==Object.prototype&&Object.getPrototypeOf(r)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function y4(e,r,n=".",o){if(!g4(r))return y4(e,{},n);const a=Object.assign({},r);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(Array.isArray(s)&&Array.isArray(a[i])?a[i]=[...s,...a[i]]:g4(s)&&g4(a[i])?a[i]=y4(s,a[i],(n?`${n}.`:"")+i.toString()):a[i]=s)}return a}function zye(e){return(...r)=>r.reduce((n,o)=>y4(n,o,""),{})}const jye=zye();function ex({size:e,padding:r,textSize:n,...o},a=b4.defaults.size){return e??=a,n??=e,r??=e,{...o,size:e,padding:r,textSize:n}}const b4={theme:Iye,defaults:{color:"primary",size:"md",opacity:15,shape:"rectangle",group:{opacity:15,border:"dashed"},relationship:{color:"gray",line:"dashed",arrow:"normal"}}};let TL=class bD{constructor(r){this.config=r,this.theme=r.theme,this.defaults=r.defaults}theme;defaults;static DEFAULT=new bD(b4);static from(...r){return Ef(r,1)?new bD(jye(...r,b4)):this.DEFAULT}get elementColors(){return this.theme.colors[this.defaults.color].elements}get relationshipColors(){return this.theme.colors[this.defaults.relationship.color].relationships}get groupColors(){const r=this.defaults.group?.color;return r?cr(this,"defaultGroup",()=>({...this.elementColors,...this.theme.colors[r].elements})):this.elementColors}isDefaultColor(r){return r===this.defaults.color}colors(r){if(r??=this.defaults.color,this.isThemeColor(r))return this.theme.colors[r];throw new Error(`Unknown color: ${r}`)}fontSize(r){return r??=this.defaults.text??this.defaults.size,this.theme.textSizes[r]}padding(r){return r??=this.defaults.padding??this.defaults.size,this.theme.spacing[r]}isThemeColor(r){return r in this.theme.colors}nodeSizes(r){const n=ex(r,this.defaults.size);return{sizes:n,values:{sizes:this.theme.sizes[n.size],padding:this.padding(n.padding),textSize:this.fontSize(n.textSize)}}}computeFrom(r){if(this.isThemeColor(r))return this.theme.colors[r];if(!Tt.valid(r))throw new Error(`Invalid color value: "${r}"`);return cr(this,`compute-${r}`,()=>Oye(r))}equals(r){return r===this?!0:m4(this.config,r.config)}};function tx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vc(e){return typeof e=="string"}var v4={exports:{}},AL;function Bye(){if(AL)return v4.exports;AL=1;/* + * @version 1.4.0 + * @date 2015-10-26 + * @stability 3 - Stable + * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite) + * @license MIT License + */var e=function(r,n){var o,a,i=1,s=0,l=0,c=String.alphabet;function u(d,h,p){if(p){for(o=h;p=u(d,o),p<76&&p>65;)++o;return+d.slice(h-1,o)}return p=c&&c.indexOf(d.charAt(h)),p>-1?p+76:(p=d.charCodeAt(h)||0,p<45||p>127?p:p<46?65:p<48?p-1:p<58?p+18:p<65?p-11:p<91?p+11:p<97?p-37:p<123?p+5:p-63)}if((r+="")!=(n+="")){for(;i;)if(a=u(r,s++),i=u(n,l++),a<76&&i<76&&a>66&&i>66&&(a=u(r,s,s),i=u(n,l,s=o),l=o),a!=i)return a{if(n===o)return 0;if(!n)return-1;if(!o)return 1;const a=n.split(e),i=o.split(e),s=Math.min(a.length,i.length);for(let c=0;c0?e.slice(0,r):null}function g0(e){const r=e.lastIndexOf(".");return r>0?e.slice(r+1):e}const y0=e=>x4(e)?e:e.id;function Un(e,r){const n=y0(e);return r?y0(r).startsWith(n+"."):o=>{const a=y0(o);return n.startsWith(a+".")}}function $L(e,r){if(!r)return a=>$L(e,a);const n=y0(e),o=y0(r);return n===o||o.startsWith(n+".")||n.startsWith(o+".")}function PL(e,r){return n=>Un(e,n)}function ox(e){return(x4(e)?e:e.id).split(".").length}function b0(e,r){const n=e.split(".");if(n.length<2)return null;const o=r.split(".");if(o.length<2)return null;let a=[];for(let i=0;ia===0?(n.push(o),n):(n.unshift(`${n[0]}.${o}`),n),[])}function Hye(e,r){let n=r;for(const o of e)Un(o,n)&&(n=o);return n!==r?n:null}function qc(e){const r=[],n=[...e];let o;for(;o=n.shift();){let a;for(;a=Hye(n,o);)r.push(n.splice(n.indexOf(a),1)[0]);r.push(o)}return r}function ML(e,r){if(!e||x4(e)){const o=e??"asc";return a=>ML(a,o)}const n=r==="desc"?-1:1;return e.map(o=>({item:o,fqn:o.id.split(".")})).sort((o,a)=>{if(o.fqn.length!==a.fqn.length)return(o.fqn.length-a.fqn.length)*n;for(let i=0;io)}var ax={},OL;function Uye(){return OL||(OL=1,ax.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",ax.SYMBOL_SUPPORT=typeof Symbol<"u"),ax}var w4,DL;function Vye(){if(DL)return w4;DL=1;function e(r){if(typeof r!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=r}return typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=function(){return this}),e.of=function(){var r=arguments,n=r.length,o=0;return new e(function(){return o>=n?{done:!0}:{done:!1,value:r[o++]}})},e.empty=function(){var r=new e(function(){return{done:!0}});return r},e.fromSequence=function(r){var n=0,o=r.length;return new e(function(){return n>=o?{done:!0}:{done:!1,value:r[n++]}})},e.is=function(r){return r instanceof e?!0:typeof r=="object"&&r!==null&&typeof r.next=="function"},w4=e,w4}var k4,LL;function qye(){if(LL)return k4;LL=1;var e=Uye(),r=e.ARRAY_BUFFER_SUPPORT,n=e.SYMBOL_SUPPORT;return k4=function(a,i){var s,l,c,u,d;if(!a)throw new Error("obliterator/forEach: invalid iterable.");if(typeof i!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(a)||r&&ArrayBuffer.isView(a)||typeof a=="string"||a.toString()==="[object Arguments]"){for(c=0,u=a.length;c=this.items.length&&(this.items=this.items.slice(this.offset),this.offset=0),this.size--,o}},n.prototype.peek=function(){if(this.size)return this.items[this.offset]},n.prototype.forEach=function(o,a){a=arguments.length>1?a:this;for(var i=this.offset,s=0,l=this.items.length;i=o.length)return{done:!0};var i=o[a];return a++,{value:i,done:!1}})},n.prototype.entries=function(){var o=this.items,a=this.offset,i=0;return new e(function(){if(a>=o.length)return{done:!0};var s=o[a];return a++,{value:[i++,s],done:!1}})},typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=n.prototype.values),n.prototype.toString=function(){return this.toArray().join(",")},n.prototype.toJSON=function(){return this.toArray()},n.prototype.inspect=function(){var o=this.toArray();return Object.defineProperty(o,"constructor",{value:n,enumerable:!1}),o},typeof Symbol<"u"&&(n.prototype[Symbol.for("nodejs.util.inspect.custom")]=n.prototype.inspect),n.from=function(o){var a=new n;return r(o,function(i){a.enqueue(i)}),a},n.of=function(){return n.from(arguments)},_4=n,_4}var Wye=Yye();const E4=tx(Wye);var S4,zL;function Xye(){if(zL)return S4;zL=1;function e(r){if(typeof r!="function")throw new Error("mnemonist/DefaultMap.constructor: expecting a function.");this.items=new Map,this.factory=r,this.size=0}return e.prototype.clear=function(){this.items.clear(),this.size=0},e.prototype.get=function(r){var n=this.items.get(r);return typeof n>"u"&&(n=this.factory(r,this.size),this.items.set(r,n),this.size++),n},e.prototype.peek=function(r){return this.items.get(r)},e.prototype.set=function(r,n){return this.items.set(r,n),this.size=this.items.size,this},e.prototype.has=function(r){return this.items.has(r)},e.prototype.delete=function(r){var n=this.items.delete(r);return this.size=this.items.size,n},e.prototype.forEach=function(r,n){n=arguments.length>1?n:this,this.items.forEach(r,n)},e.prototype.entries=function(){return this.items.entries()},e.prototype.keys=function(){return this.items.keys()},e.prototype.values=function(){return this.items.values()},typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=e.prototype.entries),e.prototype.inspect=function(){return this.items},typeof Symbol<"u"&&(e.prototype[Symbol.for("nodejs.util.inspect.custom")]=e.prototype.inspect),e.autoIncrement=function(){var r=0;return function(){return r++}},S4=e,S4}var Gye=Xye();const lo=tx(Gye);function ix(e){return e.summary??e.description}function sx(e){return e.description??e.summary}function Ll(e){return!!e}const vd="@group";function Kye(e){return e.kind===vd}function jL(e,r){return nt(typeof e=="string"&&e!=""),"@"+e+"."+r}function Zye(e){return e.startsWith("@")}function Qye(e){if(!e.startsWith("@"))return[null,e];const r=e.indexOf(".");if(r<2)throw new Error("Invalid global FQN");const n=e.slice(1,r),o=e.slice(r+1);return[n,o]}function v0(e){return e.startsWith("step-")}function BL(e){if(!v0(e))throw new Error(`Invalid step edge id: ${e}`);return parseFloat(e.slice(5))}const FL=-1,lx=0,x0=1,cx=2,C4=3,T4=4,A4=5,N4=6,HL=7,UL=8,VL=typeof self=="object"?self:globalThis,Jye=(e,r)=>{const n=(a,i)=>(e.set(i,a),a),o=a=>{if(e.has(a))return e.get(a);const[i,s]=r[a];switch(i){case lx:case FL:return n(s,a);case x0:{const l=n([],a);for(const c of s)l.push(o(c));return l}case cx:{const l=n({},a);for(const[c,u]of s)l[o(c)]=o(u);return l}case C4:return n(new Date(s),a);case T4:{const{source:l,flags:c}=s;return n(new RegExp(l,c),a)}case A4:{const l=n(new Map,a);for(const[c,u]of s)l.set(o(c),o(u));return l}case N4:{const l=n(new Set,a);for(const c of s)l.add(o(c));return l}case HL:{const{name:l,message:c}=s;return n(new VL[l](c),a)}case UL:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return n(new DataView(l),s)}}return n(new VL[i](s),a)};return o},qL=e=>Jye(new Map,e)(0),Of="",{toString:ebe}={},{keys:tbe}=Object,w0=e=>{const r=typeof e;if(r!=="object"||!e)return[lx,r];const n=ebe.call(e).slice(8,-1);switch(n){case"Array":return[x0,Of];case"Object":return[cx,Of];case"Date":return[C4,Of];case"RegExp":return[T4,Of];case"Map":return[A4,Of];case"Set":return[N4,Of];case"DataView":return[x0,n]}return n.includes("Array")?[x0,n]:n.includes("Error")?[HL,n]:[cx,n]},ux=([e,r])=>e===lx&&(r==="function"||r==="symbol"),rbe=(e,r,n,o)=>{const a=(s,l)=>{const c=o.push(s)-1;return n.set(l,c),c},i=s=>{if(n.has(s))return n.get(s);let[l,c]=w0(s);switch(l){case lx:{let d=s;switch(c){case"bigint":l=UL,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return a([FL],s)}return a([l,d],s)}case x0:{if(c){let p=s;return c==="DataView"?p=new Uint8Array(s.buffer):c==="ArrayBuffer"&&(p=new Uint8Array(s)),a([c,[...p]],s)}const d=[],h=a([l,d],s);for(const p of s)d.push(i(p));return h}case cx:{if(c)switch(c){case"BigInt":return a([c,s.toString()],s);case"Boolean":case"Number":case"String":return a([c,s.valueOf()],s)}if(r&&"toJSON"in s)return i(s.toJSON());const d=[],h=a([l,d],s);for(const p of tbe(s))(e||!ux(w0(s[p])))&&d.push([i(p),i(s[p])]);return h}case C4:return a([l,s.toISOString()],s);case T4:{const{source:d,flags:h}=s;return a([l,{source:d,flags:h}],s)}case A4:{const d=[],h=a([l,d],s);for(const[p,g]of s)(e||!(ux(w0(p))||ux(w0(g))))&&d.push([i(p),i(g)]);return h}case N4:{const d=[],h=a([l,d],s);for(const p of s)(e||!ux(w0(p)))&&d.push(i(p));return h}}const{message:u}=s;return a([l,{name:c,message:u}],s)};return i},YL=(e,{json:r,lossy:n}={})=>{const o=[];return rbe(!(r||n),!!r,new Map,o)(e),o},xd=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?qL(YL(e,r)):structuredClone(e):(e,r)=>qL(YL(e,r));function i2t(){}let k0=class{constructor(r,n,o){this.normal=n,this.property=r,o&&(this.space=o)}};k0.prototype.normal={},k0.prototype.property={},k0.prototype.space=void 0;function WL(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new k0(n,o,r)}function _0(e){return e.toLowerCase()}let Xo=class{constructor(r,n){this.attribute=n,this.property=r}};Xo.prototype.attribute="",Xo.prototype.booleanish=!1,Xo.prototype.boolean=!1,Xo.prototype.commaOrSpaceSeparated=!1,Xo.prototype.commaSeparated=!1,Xo.prototype.defined=!1,Xo.prototype.mustUseProperty=!1,Xo.prototype.number=!1,Xo.prototype.overloadedBoolean=!1,Xo.prototype.property="",Xo.prototype.spaceSeparated=!1,Xo.prototype.space=void 0;let nbe=0;const Ot=wd(),mn=wd(),XL=wd(),He=wd(),_r=wd(),Df=wd(),va=wd();function wd(){return 2**++nbe}const R4={__proto__:null,boolean:Ot,booleanish:mn,commaOrSpaceSeparated:va,commaSeparated:Df,number:He,overloadedBoolean:XL,spaceSeparated:_r},$4=Object.keys(R4);let P4=class extends Xo{constructor(r,n,o,a){let i=-1;if(super(r,n),GL(this,"space",a),typeof o=="number")for(;++i<$4.length;){const s=$4[i];GL(this,$4[i],(o&R4[s])===R4[s])}}};P4.prototype.defined=!0;function GL(e,r,n){n&&(e[r]=n)}function Lf(e){const r={},n={};for(const[o,a]of Object.entries(e.properties)){const i=new P4(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[_0(o)]=o,n[_0(i.attribute)]=o}return new k0(r,n,e.space)}const KL=Lf({properties:{ariaActiveDescendant:null,ariaAtomic:mn,ariaAutoComplete:null,ariaBusy:mn,ariaChecked:mn,ariaColCount:He,ariaColIndex:He,ariaColSpan:He,ariaControls:_r,ariaCurrent:null,ariaDescribedBy:_r,ariaDetails:null,ariaDisabled:mn,ariaDropEffect:_r,ariaErrorMessage:null,ariaExpanded:mn,ariaFlowTo:_r,ariaGrabbed:mn,ariaHasPopup:null,ariaHidden:mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_r,ariaLevel:He,ariaLive:null,ariaModal:mn,ariaMultiLine:mn,ariaMultiSelectable:mn,ariaOrientation:null,ariaOwns:_r,ariaPlaceholder:null,ariaPosInSet:He,ariaPressed:mn,ariaReadOnly:mn,ariaRelevant:null,ariaRequired:mn,ariaRoleDescription:_r,ariaRowCount:He,ariaRowIndex:He,ariaRowSpan:He,ariaSelected:mn,ariaSetSize:He,ariaSort:null,ariaValueMax:He,ariaValueMin:He,ariaValueNow:He,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function ZL(e,r){return r in e?e[r]:r}function QL(e,r){return ZL(e,r.toLowerCase())}const obe=Lf({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Df,acceptCharset:_r,accessKey:_r,action:null,allow:null,allowFullScreen:Ot,allowPaymentRequest:Ot,allowUserMedia:Ot,alt:null,as:null,async:Ot,autoCapitalize:null,autoComplete:_r,autoFocus:Ot,autoPlay:Ot,blocking:_r,capture:null,charSet:null,checked:Ot,cite:null,className:_r,cols:He,colSpan:null,content:null,contentEditable:mn,controls:Ot,controlsList:_r,coords:He|Df,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ot,defer:Ot,dir:null,dirName:null,disabled:Ot,download:XL,draggable:mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ot,formTarget:null,headers:_r,height:He,hidden:Ot,high:He,href:null,hrefLang:null,htmlFor:_r,httpEquiv:_r,id:null,imageSizes:null,imageSrcSet:null,inert:Ot,inputMode:null,integrity:null,is:null,isMap:Ot,itemId:null,itemProp:_r,itemRef:_r,itemScope:Ot,itemType:_r,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ot,low:He,manifest:null,max:null,maxLength:He,media:null,method:null,min:null,minLength:He,multiple:Ot,muted:Ot,name:null,nonce:null,noModule:Ot,noValidate:Ot,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ot,optimum:He,pattern:null,ping:_r,placeholder:null,playsInline:Ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ot,referrerPolicy:null,rel:_r,required:Ot,reversed:Ot,rows:He,rowSpan:He,sandbox:_r,scope:null,scoped:Ot,seamless:Ot,selected:Ot,shadowRootClonable:Ot,shadowRootDelegatesFocus:Ot,shadowRootMode:null,shape:null,size:He,sizes:null,slot:null,span:He,spellCheck:mn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:He,step:null,style:null,tabIndex:He,target:null,title:null,translate:null,type:null,typeMustMatch:Ot,useMap:null,value:mn,width:He,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_r,axis:null,background:null,bgColor:null,border:He,borderColor:null,bottomMargin:He,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ot,declare:Ot,event:null,face:null,frame:null,frameBorder:null,hSpace:He,leftMargin:He,link:null,longDesc:null,lowSrc:null,marginHeight:He,marginWidth:He,noResize:Ot,noHref:Ot,noShade:Ot,noWrap:Ot,object:null,profile:null,prompt:null,rev:null,rightMargin:He,rules:null,scheme:null,scrolling:mn,standby:null,summary:null,text:null,topMargin:He,valueType:null,version:null,vAlign:null,vLink:null,vSpace:He,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ot,disableRemotePlayback:Ot,prefix:null,property:null,results:He,security:null,unselectable:null},space:"html",transform:QL}),abe=Lf({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:va,accentHeight:He,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:He,amplitude:He,arabicForm:null,ascent:He,attributeName:null,attributeType:null,azimuth:He,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:He,by:null,calcMode:null,capHeight:He,className:_r,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:He,diffuseConstant:He,direction:null,display:null,dur:null,divisor:He,dominantBaseline:null,download:Ot,dx:null,dy:null,edgeMode:null,editable:null,elevation:He,enableBackground:null,end:null,event:null,exponent:He,externalResourcesRequired:null,fill:null,fillOpacity:He,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Df,g2:Df,glyphName:Df,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:He,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:He,horizOriginX:He,horizOriginY:He,id:null,ideographic:He,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:He,k:He,k1:He,k2:He,k3:He,k4:He,kernelMatrix:va,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:He,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:He,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:He,overlineThickness:He,paintOrder:null,panose1:null,path:null,pathLength:He,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:He,pointsAtY:He,pointsAtZ:He,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:va,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:va,rev:va,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:va,requiredFeatures:va,requiredFonts:va,requiredFormats:va,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:He,specularExponent:He,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:He,strikethroughThickness:He,string:null,stroke:null,strokeDashArray:va,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:He,strokeOpacity:He,strokeWidth:null,style:null,surfaceScale:He,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:va,tabIndex:He,tableValues:null,target:null,targetX:He,targetY:He,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:va,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:He,underlineThickness:He,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:He,values:null,vAlphabetic:He,vMathematical:He,vectorEffect:null,vHanging:He,vIdeographic:He,version:null,vertAdvY:He,vertOriginX:He,vertOriginY:He,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:He,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ZL}),JL=Lf({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),eI=Lf({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:QL}),tI=Lf({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),ibe=/[A-Z]/g,rI=/-[a-z]/g,sbe=/^data[-\w.:]+$/i;function M4(e,r){const n=_0(r);let o=r,a=Xo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&sbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(rI,cbe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!rI.test(i)){let s=i.replace(ibe,lbe);s.charAt(0)!=="-"&&(s="-"+s),r="data"+s}}a=P4}return new a(o,r)}function lbe(e){return"-"+e.toLowerCase()}function cbe(e){return e.charAt(1).toUpperCase()}const dx=WL([KL,obe,JL,eI,tI],"html"),E0=WL([KL,abe,JL,eI,tI],"svg");function nI(e){const r=[],n=String(e||"");let o=n.indexOf(","),a=0,i=!1;for(;!i;){o===-1&&(o=n.length,i=!0);const s=n.slice(a,o).trim();(s||!i)&&r.push(s),a=o+1,o=n.indexOf(",",a)}return r}function oI(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const aI=/[#.]/g;function ube(e,r){const n=e||"",o={};let a=0,i,s;for(;a-1&&i<=r.length){let s=0;for(;;){let l=n[s];if(l===void 0){const c=uI(r,n[s-1]);l=c===-1?r.length+1:c+1,n[s]=l}if(l>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length1?n[i.line-2]:0)+i.column-1;if(s4&&n.slice(0,4)==="data"&&Tbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(_I,$be);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!_I.test(i)){let s=i.replace(Abe,Rbe);s.charAt(0)!=="-"&&(s="-"+s),r="data"+s}}a=j4}return new a(o,r)}function Rbe(e){return"-"+e.toLowerCase()}function $be(e){return e.charAt(1).toUpperCase()}const Pbe=pI([bI,yI,wI,kI,Sbe],"html"),EI=pI([bI,yI,wI,kI,Cbe],"svg"),SI={}.hasOwnProperty;function B4(e,r){const n=r||{};function o(a,...i){let s=o.invalid;const l=o.handlers;if(a&&SI.call(a,e)){const c=String(a[e]);s=SI.call(l,c)?l[c]:o.unknown}if(s)return s.call(this,a,...i)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}const Mbe={},Obe={}.hasOwnProperty,CI=B4("type",{handlers:{root:Lbe,element:Fbe,text:jbe,comment:Bbe,doctype:zbe}});function Dbe(e,r){const o=(r||Mbe).space;return CI(e,o==="svg"?EI:Pbe)}function Lbe(e,r){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=F4(e.children,n,r),Bf(e,n),n}function Ibe(e,r){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=F4(e.children,n,r),Bf(e,n),n}function zbe(e){const r={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Bf(e,r),r}function jbe(e){const r={nodeName:"#text",value:e.value,parentNode:null};return Bf(e,r),r}function Bbe(e){const r={nodeName:"#comment",data:e.value,parentNode:null};return Bf(e,r),r}function Fbe(e,r){const n=r;let o=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(o=EI);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Obe.call(e.properties,i)){const c=Hbe(o,i,e.properties[i]);c&&a.push(c)}}const s=o.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:kd[s],childNodes:[],parentNode:null};return l.childNodes=F4(e.children,l,o),Bf(e,l),e.tagName==="template"&&e.content&&(l.content=Ibe(e.content,o)),l}function Hbe(e,r,n){const o=Nbe(e,r);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&o.boolean)return;Array.isArray(n)&&(n=o.commaSeparated?oI(n):sI(n));const a={name:o.attribute,value:n===!0?"":String(n)};if(o.space&&o.space!=="html"&&o.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=o.attribute.slice(0,i)),a.namespace=kd[o.space]}return a}function F4(e,r,n){let o=-1;const a=[];if(e)for(;++o=55296&&e<=57343}function Vbe(e){return e>=56320&&e<=57343}function qbe(e,r){return(e-55296)*1024+9216+r}function NI(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function RI(e){return e>=64976&&e<=65007||Ube.has(e)}var Ee;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ee||(Ee={}));const Ybe=65536;class Wbe{constructor(r){this.handler=r,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Ybe,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(r,n){const{line:o,col:a,offset:i}=this,s=a+n,l=i+n;return{code:r,startLine:o,endLine:o,startCol:s,endCol:s,startOffset:l,endOffset:l}}_err(r){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(r,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(r){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Vbe(n))return this.pos++,this._addGap(),qbe(r,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.EOF;return this._err(Ee.surrogateInInputStream),r}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(r,n){this.html.length>0?this.html+=r:this.html=r,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(r){this.html=this.html.substring(0,this.pos+1)+r+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(r,n){if(this.pos+r.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(r,this.pos);for(let o=0;o=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;const o=this.html.charCodeAt(n);return o===ne.CARRIAGE_RETURN?ne.LINE_FEED:o}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ne.EOF;let r=this.html.charCodeAt(this.pos);return r===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):r===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,AI(r)&&(r=this._processSurrogate(r)),this.handler.onParseError===null||r>31&&r<127||r===ne.LINE_FEED||r===ne.CARRIAGE_RETURN||r>159&&r<64976||this._checkForProblematicCharacters(r),r)}_checkForProblematicCharacters(r){NI(r)?this._err(Ee.controlCharacterInInputStream):RI(r)&&this._err(Ee.noncharacterInInputStream)}retreat(r){for(this.pos-=r;this.pos=0;n--)if(e.attrs[n].name===r)return e.attrs[n].value;return null}const PI=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Xbe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var H4;const Gbe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Kbe=(H4=String.fromCodePoint)!==null&&H4!==void 0?H4:function(e){let r="";return e>65535&&(e-=65536,r+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),r+=String.fromCharCode(e),r};function Zbe(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=Gbe.get(e))!==null&&r!==void 0?r:e}var Vn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Vn||(Vn={}));const Qbe=32;var Yc;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Yc||(Yc={}));function U4(e){return e>=Vn.ZERO&&e<=Vn.NINE}function Jbe(e){return e>=Vn.UPPER_A&&e<=Vn.UPPER_F||e>=Vn.LOWER_A&&e<=Vn.LOWER_F}function eve(e){return e>=Vn.UPPER_A&&e<=Vn.UPPER_Z||e>=Vn.LOWER_A&&e<=Vn.LOWER_Z||U4(e)}function tve(e){return e===Vn.EQUALS||eve(e)}var qn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(qn||(qn={}));var Il;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Il||(Il={}));let MI=class{constructor(r,n,o){this.decodeTree=r,this.emitCodePoint=n,this.errors=o,this.state=qn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Il.Strict}startEntity(r){this.decodeMode=r,this.state=qn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case qn.EntityStart:return r.charCodeAt(n)===Vn.NUM?(this.state=qn.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=qn.NamedEntity,this.stateNamedEntity(r,n));case qn.NumericStart:return this.stateNumericStart(r,n);case qn.NumericDecimal:return this.stateNumericDecimal(r,n);case qn.NumericHex:return this.stateNumericHex(r,n);case qn.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|Qbe)===Vn.LOWER_X?(this.state=qn.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=qn.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,o,a){if(n!==o){const i=o-n;this.result=this.result*Math.pow(a,i)+parseInt(r.substr(n,i),a),this.consumed+=i}}stateNumericHex(r,n){const o=n;for(;n>14;for(;n>14,i!==0){if(s===Vn.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Il.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:n,decodeTree:o}=this,a=(o[n]&Yc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(r=this.errors)===null||r===void 0||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,o){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[r]&~Yc.VALUE_LENGTH:a[r+1],o),n===3&&this.emitCodePoint(a[r+2],o),o}end(){var r;switch(this.state){case qn.NamedEntity:return this.result!==0&&(this.decodeMode!==Il.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case qn.NumericDecimal:return this.emitNumericEntity(0,2);case qn.NumericHex:return this.emitNumericEntity(0,3);case qn.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case qn.EntityStart:return 0}}};function OI(e){let r="";const n=new MI(e,o=>r+=Kbe(o));return function(a,i){let s=0,l=0;for(;(l=a.indexOf("&",l))>=0;){r+=a.slice(s,l),n.startEntity(i);const u=n.write(a,l+1);if(u<0){s=l+n.end();break}s=l+u,l=u===0?s+1:s}const c=r+a.slice(s);return r="",c}}function rve(e,r,n,o){const a=(r&Yc.BRANCH_LENGTH)>>7,i=r&Yc.JUMP_TABLE;if(a===0)return i!==0&&o===i?n:-1;if(i){const c=o-i;return c<0||c>=a?-1:e[n+c]-1}let s=n,l=s+a-1;for(;s<=l;){const c=s+l>>>1,u=e[c];if(uo)l=c-1;else return e[c+a]}return-1}OI(PI),OI(Xbe);var Me;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Me||(Me={}));var Ed;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ed||(Ed={}));var Ja;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ja||(Ja={}));var me;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(me||(me={}));var H;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(H||(H={}));const nve=new Map([[me.A,H.A],[me.ADDRESS,H.ADDRESS],[me.ANNOTATION_XML,H.ANNOTATION_XML],[me.APPLET,H.APPLET],[me.AREA,H.AREA],[me.ARTICLE,H.ARTICLE],[me.ASIDE,H.ASIDE],[me.B,H.B],[me.BASE,H.BASE],[me.BASEFONT,H.BASEFONT],[me.BGSOUND,H.BGSOUND],[me.BIG,H.BIG],[me.BLOCKQUOTE,H.BLOCKQUOTE],[me.BODY,H.BODY],[me.BR,H.BR],[me.BUTTON,H.BUTTON],[me.CAPTION,H.CAPTION],[me.CENTER,H.CENTER],[me.CODE,H.CODE],[me.COL,H.COL],[me.COLGROUP,H.COLGROUP],[me.DD,H.DD],[me.DESC,H.DESC],[me.DETAILS,H.DETAILS],[me.DIALOG,H.DIALOG],[me.DIR,H.DIR],[me.DIV,H.DIV],[me.DL,H.DL],[me.DT,H.DT],[me.EM,H.EM],[me.EMBED,H.EMBED],[me.FIELDSET,H.FIELDSET],[me.FIGCAPTION,H.FIGCAPTION],[me.FIGURE,H.FIGURE],[me.FONT,H.FONT],[me.FOOTER,H.FOOTER],[me.FOREIGN_OBJECT,H.FOREIGN_OBJECT],[me.FORM,H.FORM],[me.FRAME,H.FRAME],[me.FRAMESET,H.FRAMESET],[me.H1,H.H1],[me.H2,H.H2],[me.H3,H.H3],[me.H4,H.H4],[me.H5,H.H5],[me.H6,H.H6],[me.HEAD,H.HEAD],[me.HEADER,H.HEADER],[me.HGROUP,H.HGROUP],[me.HR,H.HR],[me.HTML,H.HTML],[me.I,H.I],[me.IMG,H.IMG],[me.IMAGE,H.IMAGE],[me.INPUT,H.INPUT],[me.IFRAME,H.IFRAME],[me.KEYGEN,H.KEYGEN],[me.LABEL,H.LABEL],[me.LI,H.LI],[me.LINK,H.LINK],[me.LISTING,H.LISTING],[me.MAIN,H.MAIN],[me.MALIGNMARK,H.MALIGNMARK],[me.MARQUEE,H.MARQUEE],[me.MATH,H.MATH],[me.MENU,H.MENU],[me.META,H.META],[me.MGLYPH,H.MGLYPH],[me.MI,H.MI],[me.MO,H.MO],[me.MN,H.MN],[me.MS,H.MS],[me.MTEXT,H.MTEXT],[me.NAV,H.NAV],[me.NOBR,H.NOBR],[me.NOFRAMES,H.NOFRAMES],[me.NOEMBED,H.NOEMBED],[me.NOSCRIPT,H.NOSCRIPT],[me.OBJECT,H.OBJECT],[me.OL,H.OL],[me.OPTGROUP,H.OPTGROUP],[me.OPTION,H.OPTION],[me.P,H.P],[me.PARAM,H.PARAM],[me.PLAINTEXT,H.PLAINTEXT],[me.PRE,H.PRE],[me.RB,H.RB],[me.RP,H.RP],[me.RT,H.RT],[me.RTC,H.RTC],[me.RUBY,H.RUBY],[me.S,H.S],[me.SCRIPT,H.SCRIPT],[me.SEARCH,H.SEARCH],[me.SECTION,H.SECTION],[me.SELECT,H.SELECT],[me.SOURCE,H.SOURCE],[me.SMALL,H.SMALL],[me.SPAN,H.SPAN],[me.STRIKE,H.STRIKE],[me.STRONG,H.STRONG],[me.STYLE,H.STYLE],[me.SUB,H.SUB],[me.SUMMARY,H.SUMMARY],[me.SUP,H.SUP],[me.TABLE,H.TABLE],[me.TBODY,H.TBODY],[me.TEMPLATE,H.TEMPLATE],[me.TEXTAREA,H.TEXTAREA],[me.TFOOT,H.TFOOT],[me.TD,H.TD],[me.TH,H.TH],[me.THEAD,H.THEAD],[me.TITLE,H.TITLE],[me.TR,H.TR],[me.TRACK,H.TRACK],[me.TT,H.TT],[me.U,H.U],[me.UL,H.UL],[me.SVG,H.SVG],[me.VAR,H.VAR],[me.WBR,H.WBR],[me.XMP,H.XMP]]);function Ff(e){var r;return(r=nve.get(e))!==null&&r!==void 0?r:H.UNKNOWN}const Le=H,ove={[Me.HTML]:new Set([Le.ADDRESS,Le.APPLET,Le.AREA,Le.ARTICLE,Le.ASIDE,Le.BASE,Le.BASEFONT,Le.BGSOUND,Le.BLOCKQUOTE,Le.BODY,Le.BR,Le.BUTTON,Le.CAPTION,Le.CENTER,Le.COL,Le.COLGROUP,Le.DD,Le.DETAILS,Le.DIR,Le.DIV,Le.DL,Le.DT,Le.EMBED,Le.FIELDSET,Le.FIGCAPTION,Le.FIGURE,Le.FOOTER,Le.FORM,Le.FRAME,Le.FRAMESET,Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6,Le.HEAD,Le.HEADER,Le.HGROUP,Le.HR,Le.HTML,Le.IFRAME,Le.IMG,Le.INPUT,Le.LI,Le.LINK,Le.LISTING,Le.MAIN,Le.MARQUEE,Le.MENU,Le.META,Le.NAV,Le.NOEMBED,Le.NOFRAMES,Le.NOSCRIPT,Le.OBJECT,Le.OL,Le.P,Le.PARAM,Le.PLAINTEXT,Le.PRE,Le.SCRIPT,Le.SECTION,Le.SELECT,Le.SOURCE,Le.STYLE,Le.SUMMARY,Le.TABLE,Le.TBODY,Le.TD,Le.TEMPLATE,Le.TEXTAREA,Le.TFOOT,Le.TH,Le.THEAD,Le.TITLE,Le.TR,Le.TRACK,Le.UL,Le.WBR,Le.XMP]),[Me.MATHML]:new Set([Le.MI,Le.MO,Le.MN,Le.MS,Le.MTEXT,Le.ANNOTATION_XML]),[Me.SVG]:new Set([Le.TITLE,Le.FOREIGN_OBJECT,Le.DESC]),[Me.XLINK]:new Set,[Me.XML]:new Set,[Me.XMLNS]:new Set},V4=new Set([Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6]);me.STYLE,me.SCRIPT,me.XMP,me.IFRAME,me.NOEMBED,me.NOFRAMES,me.PLAINTEXT;var ae;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ae||(ae={}));const on={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function ave(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function C0(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function ive(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Wc(e){return ive(e)||C0(e)}function DI(e){return Wc(e)||ave(e)}function fx(e){return e+32}function LI(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function II(e){return LI(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}function sve(e){return e===ne.NULL?Ee.nullCharacterReference:e>1114111?Ee.characterReferenceOutsideUnicodeRange:AI(e)?Ee.surrogateCharacterReference:RI(e)?Ee.noncharacterCharacterReference:NI(e)||e===ne.CARRIAGE_RETURN?Ee.controlCharacterReference:null}class lve{constructor(r,n){this.options=r,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ae.DATA,this.returnState=ae.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Wbe(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new MI(PI,(o,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(o)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ee.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:o=>{this._err(Ee.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+o)},validateNumericCharacterReference:o=>{const a=sve(o);a&&this._err(a,1)}}:void 0)}_err(r,n=0){var o,a;(a=(o=this.handler).onParseError)===null||a===void 0||a.call(o,this.preprocessor.getError(r,n))}getCurrentLocation(r){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-r,startOffset:this.preprocessor.offset-r,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const r=this._consume();this._ensureHibernation()||this._callState(r)}this.inLoop=!1}}pause(){this.paused=!0}resume(r){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||r?.())}write(r,n,o){this.active=!0,this.preprocessor.write(r,n),this._runParsingLoop(),this.paused||o?.()}insertHtmlAtCurrentPos(r){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(r),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(r){this.consumedAfterSnapshot+=r;for(let n=0;n0&&this._err(Ee.endTagWithAttributes),r.selfClosing&&this._err(Ee.endTagWithTrailingSolidus),this.handler.onEndTag(r)),this.preprocessor.dropParsedChunk()}emitCurrentComment(r){this.prepareToken(r),this.handler.onComment(r),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(r){this.prepareToken(r),this.handler.onDoctype(r),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(r){if(this.currentCharacterToken){switch(r&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentCharacterToken.type){case Ht.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ht.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ht.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const r=this.getCurrentLocation(0);r&&(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset),this._emitCurrentCharacterToken(r),this.handler.onEof({type:Ht.EOF,location:r}),this.active=!1}_appendCharToCurrentCharacterToken(r,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===r){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(r,n)}_emitCodePoint(r){const n=LI(r)?Ht.WHITESPACE_CHARACTER:r===ne.NULL?Ht.NULL_CHARACTER:Ht.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(r))}_emitChars(r){this._appendCharToCurrentCharacterToken(Ht.CHARACTER,r)}_startCharacterReference(){this.returnState=this.state,this.state=ae.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Il.Attribute:Il.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ae.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(r){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(r):this._emitCodePoint(r)}_callState(r){switch(this.state){case ae.DATA:{this._stateData(r);break}case ae.RCDATA:{this._stateRcdata(r);break}case ae.RAWTEXT:{this._stateRawtext(r);break}case ae.SCRIPT_DATA:{this._stateScriptData(r);break}case ae.PLAINTEXT:{this._statePlaintext(r);break}case ae.TAG_OPEN:{this._stateTagOpen(r);break}case ae.END_TAG_OPEN:{this._stateEndTagOpen(r);break}case ae.TAG_NAME:{this._stateTagName(r);break}case ae.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(r);break}case ae.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(r);break}case ae.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(r);break}case ae.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(r);break}case ae.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(r);break}case ae.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(r);break}case ae.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(r);break}case ae.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(r);break}case ae.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(r);break}case ae.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(r);break}case ae.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(r);break}case ae.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(r);break}case ae.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(r);break}case ae.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(r);break}case ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(r);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(r);break}case ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(r);break}case ae.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(r);break}case ae.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(r);break}case ae.ATTRIBUTE_NAME:{this._stateAttributeName(r);break}case ae.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(r);break}case ae.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(r);break}case ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(r);break}case ae.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(r);break}case ae.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(r);break}case ae.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(r);break}case ae.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(r);break}case ae.BOGUS_COMMENT:{this._stateBogusComment(r);break}case ae.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(r);break}case ae.COMMENT_START:{this._stateCommentStart(r);break}case ae.COMMENT_START_DASH:{this._stateCommentStartDash(r);break}case ae.COMMENT:{this._stateComment(r);break}case ae.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(r);break}case ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(r);break}case ae.COMMENT_END_DASH:{this._stateCommentEndDash(r);break}case ae.COMMENT_END:{this._stateCommentEnd(r);break}case ae.COMMENT_END_BANG:{this._stateCommentEndBang(r);break}case ae.DOCTYPE:{this._stateDoctype(r);break}case ae.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(r);break}case ae.DOCTYPE_NAME:{this._stateDoctypeName(r);break}case ae.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(r);break}case ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(r);break}case ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(r);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(r);break}case ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(r);break}case ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(r);break}case ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(r);break}case ae.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(r);break}case ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(r);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(r);break}case ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(r);break}case ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(r);break}case ae.BOGUS_DOCTYPE:{this._stateBogusDoctype(r);break}case ae.CDATA_SECTION:{this._stateCdataSection(r);break}case ae.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(r);break}case ae.CDATA_SECTION_END:{this._stateCdataSectionEnd(r);break}case ae.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ae.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(r);break}default:throw new Error("Unknown state")}}_stateData(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitCodePoint(r);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRcdata(r){switch(r){case ne.AMPERSAND:{this._startCharacterReference();break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Dr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRawtext(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Dr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptData(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Dr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_statePlaintext(r){switch(r){case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Dr);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateTagOpen(r){if(Wc(r))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r);break}case ne.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ee.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ae.DATA,this._stateData(r)}}_stateEndTagOpen(r){if(Wc(r))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case ne.GREATER_THAN_SIGN:{this._err(Ee.missingEndTagName),this.state=ae.DATA;break}case ne.EOF:{this._err(Ee.eofBeforeTagName),this._emitChars("");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Dr);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataEscapedLessThanSign(r){r===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Wc(r)?(this._emitChars("<"),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(r)):(this._emitChars("<"),this.state=ae.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataEscapedEndTagOpen(r){Wc(r)?(this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(r)):(this._emitChars("");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Dr);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedLessThanSign(r){r===ne.SOLIDUS?(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(r))}_stateScriptDataDoubleEscapeEnd(r){if(this.preprocessor.startsWith(Go.SCRIPT,!1)&&II(this.preprocessor.peek(Go.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!0)}replace(r,n){const o=this._indexOf(r);this.items[o]=n,o===this.stackTop&&(this.current=n)}insertAfter(r,n,o){const a=this._indexOf(r)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,o),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(r){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(r,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==Me.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(r){for(;this.stackTop>=r;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;o--)if(r.has(this.tagIDs[o])&&this.treeAdapter.getNamespaceURI(this.items[o])===n)return o;return-1}clearBackTo(r,n){const o=this._indexOfTagNames(r,n);this.shortenToLength(o+1)}clearBackToTableContext(){this.clearBackTo(fve,Me.HTML)}clearBackToTableBodyContext(){this.clearBackTo(hve,Me.HTML)}clearBackToTableRowContext(){this.clearBackTo(dve,Me.HTML)}remove(r){const n=this._indexOf(r);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===H.BODY?this.items[1]:null}contains(r){return this._indexOf(r)>-1}getCommonAncestor(r){const n=this._indexOf(r)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===H.HTML}hasInDynamicScope(r,n){for(let o=this.stackTop;o>=0;o--){const a=this.tagIDs[o];switch(this.treeAdapter.getNamespaceURI(this.items[o])){case Me.HTML:{if(a===r)return!0;if(n.has(a))return!1;break}case Me.SVG:{if(FI.has(a))return!1;break}case Me.MATHML:{if(BI.has(a))return!1;break}}}return!0}hasInScope(r){return this.hasInDynamicScope(r,px)}hasInListItemScope(r){return this.hasInDynamicScope(r,cve)}hasInButtonScope(r){return this.hasInDynamicScope(r,uve)}hasNumberedHeaderInScope(){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Me.HTML:{if(V4.has(n))return!0;if(px.has(n))return!1;break}case Me.SVG:{if(FI.has(n))return!1;break}case Me.MATHML:{if(BI.has(n))return!1;break}}}return!0}hasInTableScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Me.HTML)switch(this.tagIDs[n]){case r:return!0;case H.TABLE:case H.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===Me.HTML)switch(this.tagIDs[r]){case H.TBODY:case H.THEAD:case H.TFOOT:return!0;case H.TABLE:case H.HTML:return!1}return!0}hasInSelectScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Me.HTML)switch(this.tagIDs[n]){case r:return!0;case H.OPTION:case H.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;zI.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;jI.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(r){for(;this.currentTagId!==r&&jI.has(this.currentTagId);)this.pop()}}const q4=3;var qs;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(qs||(qs={}));const HI={type:qs.Marker};class gve{constructor(r){this.treeAdapter=r,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(r,n){const o=[],a=n.length,i=this.treeAdapter.getTagName(r),s=this.treeAdapter.getNamespaceURI(r);for(let l=0;l[s.name,s.value]));let i=0;for(let s=0;sa.get(c.name)===c.value)&&(i+=1,i>=q4&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(HI)}pushElement(r,n){this._ensureNoahArkCondition(r),this.entries.unshift({type:qs.Element,element:r,token:n})}insertElementAfterBookmark(r,n){const o=this.entries.indexOf(this.bookmark);this.entries.splice(o,0,{type:qs.Element,element:r,token:n})}removeEntry(r){const n=this.entries.indexOf(r);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const r=this.entries.indexOf(HI);r>=0?this.entries.splice(0,r+1):this.entries.length=0}getElementEntryInScopeWithTagName(r){const n=this.entries.find(o=>o.type===qs.Marker||this.treeAdapter.getTagName(o.element)===r);return n&&n.type===qs.Element?n:null}getElementEntry(r){return this.entries.find(n=>n.type===qs.Element&&n.element===r)}}const Xc={createDocument(){return{nodeName:"#document",mode:Ja.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,r,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:r,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,r){e.childNodes.push(r),r.parentNode=e},insertBefore(e,r,n){const o=e.childNodes.indexOf(n);e.childNodes.splice(o,0,r),r.parentNode=e},setTemplateContent(e,r){e.content=r},getTemplateContent(e){return e.content},setDocumentType(e,r,n,o){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=r,a.publicId=n,a.systemId=o;else{const i={nodeName:"#documentType",name:r,publicId:n,systemId:o,parentNode:null};Xc.appendChild(e,i)}},setDocumentMode(e,r){e.mode=r},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const r=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(r,1),e.parentNode=null}},insertText(e,r){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Xc.isTextNode(n)){n.value+=r;return}}Xc.appendChild(e,Xc.createTextNode(r))},insertTextBefore(e,r,n){const o=e.childNodes[e.childNodes.indexOf(n)-1];o&&Xc.isTextNode(o)?o.value+=r:Xc.insertBefore(e,Xc.createTextNode(r),n)},adoptAttributes(e,r){const n=new Set(e.attrs.map(o=>o.name));for(let o=0;oe.startsWith(n))}function kve(e){return e.name===UI&&e.publicId===null&&(e.systemId===null||e.systemId===yve)}function _ve(e){if(e.name!==UI)return Ja.QUIRKS;const{systemId:r}=e;if(r&&r.toLowerCase()===bve)return Ja.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),xve.has(n))return Ja.QUIRKS;let o=r===null?vve:VI;if(YI(n,o))return Ja.QUIRKS;if(o=r===null?qI:wve,YI(n,o))return Ja.LIMITED_QUIRKS}return Ja.NO_QUIRKS}const WI={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Eve="definitionurl",Sve="definitionURL",Cve=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Tve=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Me.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Me.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Me.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Me.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Me.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Me.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Me.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Me.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Me.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Me.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Me.XMLNS}]]),Ave=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Nve=new Set([H.B,H.BIG,H.BLOCKQUOTE,H.BODY,H.BR,H.CENTER,H.CODE,H.DD,H.DIV,H.DL,H.DT,H.EM,H.EMBED,H.H1,H.H2,H.H3,H.H4,H.H5,H.H6,H.HEAD,H.HR,H.I,H.IMG,H.LI,H.LISTING,H.MENU,H.META,H.NOBR,H.OL,H.P,H.PRE,H.RUBY,H.S,H.SMALL,H.SPAN,H.STRONG,H.STRIKE,H.SUB,H.SUP,H.TABLE,H.TT,H.U,H.UL,H.VAR]);function Rve(e){const r=e.tagID;return r===H.FONT&&e.attrs.some(({name:o})=>o===Ed.COLOR||o===Ed.SIZE||o===Ed.FACE)||Nve.has(r)}function XI(e){for(let r=0;r0&&this._setContextModes(r,n)}onItemPop(r,n){var o,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(r,this.currentToken),(a=(o=this.treeAdapter).onItemPop)===null||a===void 0||a.call(o,r,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(r,n){const o=r===this.document||this.treeAdapter.getNamespaceURI(r)===Me.HTML;this.currentNotInHTML=!o,this.tokenizer.inForeignNode=!o&&!this._isIntegrationPoint(n,r)}_switchToTextParsing(r,n){this._insertElement(r,Me.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=se.TEXT}switchToPlaintextParsing(){this.insertionMode=se.TEXT,this.originalInsertionMode=se.IN_BODY,this.tokenizer.state=on.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let r=this.fragmentContext;for(;r;){if(this.treeAdapter.getTagName(r)===me.FORM){this.formElement=r;break}r=this.treeAdapter.getParentNode(r)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Me.HTML))switch(this.fragmentContextID){case H.TITLE:case H.TEXTAREA:{this.tokenizer.state=on.RCDATA;break}case H.STYLE:case H.XMP:case H.IFRAME:case H.NOEMBED:case H.NOFRAMES:case H.NOSCRIPT:{this.tokenizer.state=on.RAWTEXT;break}case H.SCRIPT:{this.tokenizer.state=on.SCRIPT_DATA;break}case H.PLAINTEXT:{this.tokenizer.state=on.PLAINTEXT;break}}}_setDocumentType(r){const n=r.name||"",o=r.publicId||"",a=r.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,o,a),r.location){const s=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));s&&this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}}_attachElementToTree(r,n){if(this.options.sourceCodeLocationInfo){const o=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(r,o)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(r);else{const o=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(o,r)}}_appendElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location)}_insertElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location),this.openElements.push(o,r.tagID)}_insertFakeElement(r,n){const o=this.treeAdapter.createElement(r,Me.HTML,[]);this._attachElementToTree(o,null),this.openElements.push(o,n)}_insertTemplate(r){const n=this.treeAdapter.createElement(r.tagName,Me.HTML,r.attrs),o=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,o),this._attachElementToTree(n,r.location),this.openElements.push(n,r.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,null)}_insertFakeRootElement(){const r=this.treeAdapter.createElement(me.HTML,Me.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null),this.treeAdapter.appendChild(this.openElements.current,r),this.openElements.push(r,H.HTML)}_appendCommentNode(r,n){const o=this.treeAdapter.createCommentNode(r.data);this.treeAdapter.appendChild(n,o),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,r.location)}_insertCharacters(r){let n,o;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:o}=this._findFosterParentingLocation(),o?this.treeAdapter.insertTextBefore(n,r.chars,o):this.treeAdapter.insertText(n,r.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,r.chars)),!r.location)return;const a=this.treeAdapter.getChildNodes(n),i=o?a.lastIndexOf(o):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:u,endOffset:d}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}_adoptNodes(r,n){for(let o=this.treeAdapter.getFirstChild(r);o;o=this.treeAdapter.getFirstChild(r))this.treeAdapter.detachNode(o),this.treeAdapter.appendChild(n,o)}_setEndLocation(r,n){if(this.treeAdapter.getNodeSourceCodeLocation(r)&&n.location){const o=n.location,a=this.treeAdapter.getTagName(r),i=n.type===Ht.END_TAG&&a===n.tagName?{endTag:{...o},endLine:o.endLine,endCol:o.endCol,endOffset:o.endOffset}:{endLine:o.startLine,endCol:o.startCol,endOffset:o.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(r,i)}}shouldProcessStartTagTokenInForeignContent(r){if(!this.currentNotInHTML)return!1;let n,o;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,o=this.fragmentContextID):{current:n,currentTagId:o}=this.openElements,r.tagID===H.SVG&&this.treeAdapter.getTagName(n)===me.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Me.MATHML?!1:this.tokenizer.inForeignNode||(r.tagID===H.MGLYPH||r.tagID===H.MALIGNMARK)&&!this._isIntegrationPoint(o,n,Me.HTML)}_processToken(r){switch(r.type){case Ht.CHARACTER:{this.onCharacter(r);break}case Ht.NULL_CHARACTER:{this.onNullCharacter(r);break}case Ht.COMMENT:{this.onComment(r);break}case Ht.DOCTYPE:{this.onDoctype(r);break}case Ht.START_TAG:{this._processStartTag(r);break}case Ht.END_TAG:{this.onEndTag(r);break}case Ht.EOF:{this.onEof(r);break}case Ht.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(r);break}}}_isIntegrationPoint(r,n,o){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return Ove(r,a,i,o)}_reconstructActiveFormattingElements(){const r=this.activeFormattingElements.entries.length;if(r){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===qs.Marker||this.openElements.contains(a.element)),o=n<0?r-1:n-1;for(let a=o;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=se.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(H.P),this.openElements.popUntilTagNamePopped(H.P)}_resetInsertionMode(){for(let r=this.openElements.stackTop;r>=0;r--)switch(r===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[r]){case H.TR:{this.insertionMode=se.IN_ROW;return}case H.TBODY:case H.THEAD:case H.TFOOT:{this.insertionMode=se.IN_TABLE_BODY;return}case H.CAPTION:{this.insertionMode=se.IN_CAPTION;return}case H.COLGROUP:{this.insertionMode=se.IN_COLUMN_GROUP;return}case H.TABLE:{this.insertionMode=se.IN_TABLE;return}case H.BODY:{this.insertionMode=se.IN_BODY;return}case H.FRAMESET:{this.insertionMode=se.IN_FRAMESET;return}case H.SELECT:{this._resetInsertionModeForSelect(r);return}case H.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case H.HTML:{this.insertionMode=this.headElement?se.AFTER_HEAD:se.BEFORE_HEAD;return}case H.TD:case H.TH:{if(r>0){this.insertionMode=se.IN_CELL;return}break}case H.HEAD:{if(r>0){this.insertionMode=se.IN_HEAD;return}break}}this.insertionMode=se.IN_BODY}_resetInsertionModeForSelect(r){if(r>0)for(let n=r-1;n>0;n--){const o=this.openElements.tagIDs[n];if(o===H.TEMPLATE)break;if(o===H.TABLE){this.insertionMode=se.IN_SELECT_IN_TABLE;return}}this.insertionMode=se.IN_SELECT}_isElementCausesFosterParenting(r){return KI.has(r)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let r=this.openElements.stackTop;r>=0;r--){const n=this.openElements.items[r];switch(this.openElements.tagIDs[r]){case H.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Me.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case H.TABLE:{const o=this.treeAdapter.getParentNode(n);return o?{parent:o,beforeElement:n}:{parent:this.openElements.items[r-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(r){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,r,n.beforeElement):this.treeAdapter.appendChild(n.parent,r)}_isSpecialElement(r,n){const o=this.treeAdapter.getNamespaceURI(r);return ove[o].has(n)}onCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){pwe(this,r);return}switch(this.insertionMode){case se.INITIAL:{T0(this,r);break}case se.BEFORE_HTML:{A0(this,r);break}case se.BEFORE_HEAD:{N0(this,r);break}case se.IN_HEAD:{R0(this,r);break}case se.IN_HEAD_NO_SCRIPT:{$0(this,r);break}case se.AFTER_HEAD:{P0(this,r);break}case se.IN_BODY:case se.IN_CAPTION:case se.IN_CELL:case se.IN_TEMPLATE:{ez(this,r);break}case se.TEXT:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:{this._insertCharacters(r);break}case se.IN_TABLE:case se.IN_TABLE_BODY:case se.IN_ROW:{K4(this,r);break}case se.IN_TABLE_TEXT:{lz(this,r);break}case se.IN_COLUMN_GROUP:{yx(this,r);break}case se.AFTER_BODY:{xx(this,r);break}case se.AFTER_AFTER_BODY:{wx(this,r);break}}}onNullCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){fwe(this,r);return}switch(this.insertionMode){case se.INITIAL:{T0(this,r);break}case se.BEFORE_HTML:{A0(this,r);break}case se.BEFORE_HEAD:{N0(this,r);break}case se.IN_HEAD:{R0(this,r);break}case se.IN_HEAD_NO_SCRIPT:{$0(this,r);break}case se.AFTER_HEAD:{P0(this,r);break}case se.TEXT:{this._insertCharacters(r);break}case se.IN_TABLE:case se.IN_TABLE_BODY:case se.IN_ROW:{K4(this,r);break}case se.IN_COLUMN_GROUP:{yx(this,r);break}case se.AFTER_BODY:{xx(this,r);break}case se.AFTER_AFTER_BODY:{wx(this,r);break}}}onComment(r){if(this.skipNextNewLine=!1,this.currentNotInHTML){X4(this,r);return}switch(this.insertionMode){case se.INITIAL:case se.BEFORE_HTML:case se.BEFORE_HEAD:case se.IN_HEAD:case se.IN_HEAD_NO_SCRIPT:case se.AFTER_HEAD:case se.IN_BODY:case se.IN_TABLE:case se.IN_CAPTION:case se.IN_COLUMN_GROUP:case se.IN_TABLE_BODY:case se.IN_ROW:case se.IN_CELL:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:case se.IN_TEMPLATE:case se.IN_FRAMESET:case se.AFTER_FRAMESET:{X4(this,r);break}case se.IN_TABLE_TEXT:{D0(this,r);break}case se.AFTER_BODY:{qve(this,r);break}case se.AFTER_AFTER_BODY:case se.AFTER_AFTER_FRAMESET:{Yve(this,r);break}}}onDoctype(r){switch(this.skipNextNewLine=!1,this.insertionMode){case se.INITIAL:{Wve(this,r);break}case se.BEFORE_HEAD:case se.IN_HEAD:case se.IN_HEAD_NO_SCRIPT:case se.AFTER_HEAD:{this._err(r,Ee.misplacedDoctype);break}case se.IN_TABLE_TEXT:{D0(this,r);break}}}onStartTag(r){this.skipNextNewLine=!1,this.currentToken=r,this._processStartTag(r),r.selfClosing&&!r.ackSelfClosing&&this._err(r,Ee.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(r){this.shouldProcessStartTagTokenInForeignContent(r)?mwe(this,r):this._startTagOutsideForeignContent(r)}_startTagOutsideForeignContent(r){switch(this.insertionMode){case se.INITIAL:{T0(this,r);break}case se.BEFORE_HTML:{Xve(this,r);break}case se.BEFORE_HEAD:{Kve(this,r);break}case se.IN_HEAD:{Hi(this,r);break}case se.IN_HEAD_NO_SCRIPT:{Jve(this,r);break}case se.AFTER_HEAD:{txe(this,r);break}case se.IN_BODY:{So(this,r);break}case se.IN_TABLE:{Hf(this,r);break}case se.IN_TABLE_TEXT:{D0(this,r);break}case se.IN_CAPTION:{Zxe(this,r);break}case se.IN_COLUMN_GROUP:{Z4(this,r);break}case se.IN_TABLE_BODY:{bx(this,r);break}case se.IN_ROW:{vx(this,r);break}case se.IN_CELL:{ewe(this,r);break}case se.IN_SELECT:{dz(this,r);break}case se.IN_SELECT_IN_TABLE:{rwe(this,r);break}case se.IN_TEMPLATE:{owe(this,r);break}case se.AFTER_BODY:{iwe(this,r);break}case se.IN_FRAMESET:{swe(this,r);break}case se.AFTER_FRAMESET:{cwe(this,r);break}case se.AFTER_AFTER_BODY:{dwe(this,r);break}case se.AFTER_AFTER_FRAMESET:{hwe(this,r);break}}}onEndTag(r){this.skipNextNewLine=!1,this.currentToken=r,this.currentNotInHTML?gwe(this,r):this._endTagOutsideForeignContent(r)}_endTagOutsideForeignContent(r){switch(this.insertionMode){case se.INITIAL:{T0(this,r);break}case se.BEFORE_HTML:{Gve(this,r);break}case se.BEFORE_HEAD:{Zve(this,r);break}case se.IN_HEAD:{Qve(this,r);break}case se.IN_HEAD_NO_SCRIPT:{exe(this,r);break}case se.AFTER_HEAD:{rxe(this,r);break}case se.IN_BODY:{gx(this,r);break}case se.TEXT:{Fxe(this,r);break}case se.IN_TABLE:{M0(this,r);break}case se.IN_TABLE_TEXT:{D0(this,r);break}case se.IN_CAPTION:{Qxe(this,r);break}case se.IN_COLUMN_GROUP:{Jxe(this,r);break}case se.IN_TABLE_BODY:{Q4(this,r);break}case se.IN_ROW:{uz(this,r);break}case se.IN_CELL:{twe(this,r);break}case se.IN_SELECT:{hz(this,r);break}case se.IN_SELECT_IN_TABLE:{nwe(this,r);break}case se.IN_TEMPLATE:{awe(this,r);break}case se.AFTER_BODY:{pz(this,r);break}case se.IN_FRAMESET:{lwe(this,r);break}case se.AFTER_FRAMESET:{uwe(this,r);break}case se.AFTER_AFTER_BODY:{wx(this,r);break}}}onEof(r){switch(this.insertionMode){case se.INITIAL:{T0(this,r);break}case se.BEFORE_HTML:{A0(this,r);break}case se.BEFORE_HEAD:{N0(this,r);break}case se.IN_HEAD:{R0(this,r);break}case se.IN_HEAD_NO_SCRIPT:{$0(this,r);break}case se.AFTER_HEAD:{P0(this,r);break}case se.IN_BODY:case se.IN_TABLE:case se.IN_CAPTION:case se.IN_COLUMN_GROUP:case se.IN_TABLE_BODY:case se.IN_ROW:case se.IN_CELL:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:{iz(this,r);break}case se.TEXT:{Hxe(this,r);break}case se.IN_TABLE_TEXT:{D0(this,r);break}case se.IN_TEMPLATE:{fz(this,r);break}case se.AFTER_BODY:case se.IN_FRAMESET:case se.AFTER_FRAMESET:case se.AFTER_AFTER_BODY:case se.AFTER_AFTER_FRAMESET:{G4(this,r);break}}}onWhitespaceCharacter(r){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,r.chars.charCodeAt(0)===ne.LINE_FEED)){if(r.chars.length===1)return;r.chars=r.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(r);return}switch(this.insertionMode){case se.IN_HEAD:case se.IN_HEAD_NO_SCRIPT:case se.AFTER_HEAD:case se.TEXT:case se.IN_COLUMN_GROUP:case se.IN_SELECT:case se.IN_SELECT_IN_TABLE:case se.IN_FRAMESET:case se.AFTER_FRAMESET:{this._insertCharacters(r);break}case se.IN_BODY:case se.IN_CAPTION:case se.IN_CELL:case se.IN_TEMPLATE:case se.AFTER_BODY:case se.AFTER_AFTER_BODY:case se.AFTER_AFTER_FRAMESET:{JI(this,r);break}case se.IN_TABLE:case se.IN_TABLE_BODY:case se.IN_ROW:{K4(this,r);break}case se.IN_TABLE_TEXT:{sz(this,r);break}}}}function jve(e,r){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(r.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(r.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):az(e,r),n}function Bve(e,r){let n=null,o=e.openElements.stackTop;for(;o>=0;o--){const a=e.openElements.items[o];if(a===r.element)break;e._isSpecialElement(a,e.openElements.tagIDs[o])&&(n=a)}return n||(e.openElements.shortenToLength(o<0?0:o),e.activeFormattingElements.removeEntry(r)),n}function Fve(e,r,n){let o=r,a=e.openElements.getCommonAncestor(r);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const l=e.activeFormattingElements.getElementEntry(s),c=l&&i>=Ive;!l||c?(c&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(s)):(s=Hve(e,l),o===r&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(s,o),o=s)}return o}function Hve(e,r){const n=e.treeAdapter.getNamespaceURI(r.element),o=e.treeAdapter.createElement(r.token.tagName,n,r.token.attrs);return e.openElements.replace(r.element,o),r.element=o,o}function Uve(e,r,n){const o=e.treeAdapter.getTagName(r),a=Ff(o);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(r);a===H.TEMPLATE&&i===Me.HTML&&(r=e.treeAdapter.getTemplateContent(r)),e.treeAdapter.appendChild(r,n)}}function Vve(e,r,n){const o=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,o,a.attrs);e._adoptNodes(r,i),e.treeAdapter.appendChild(r,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(r,i,a.tagID)}function W4(e,r){for(let n=0;n=n;o--)e._setEndLocation(e.openElements.items[o],r);if(!e.fragmentContext&&e.openElements.stackTop>=0){const o=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(o);if(a&&!a.endTag&&(e._setEndLocation(o,r),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,r)}}}}function Wve(e,r){e._setDocumentType(r);const n=r.forceQuirks?Ja.QUIRKS:_ve(r);kve(r)||e._err(r,Ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=se.BEFORE_HTML}function T0(e,r){e._err(r,Ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ja.QUIRKS),e.insertionMode=se.BEFORE_HTML,e._processToken(r)}function Xve(e,r){r.tagID===H.HTML?(e._insertElement(r,Me.HTML),e.insertionMode=se.BEFORE_HEAD):A0(e,r)}function Gve(e,r){const n=r.tagID;(n===H.HTML||n===H.HEAD||n===H.BODY||n===H.BR)&&A0(e,r)}function A0(e,r){e._insertFakeRootElement(),e.insertionMode=se.BEFORE_HEAD,e._processToken(r)}function Kve(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.HEAD:{e._insertElement(r,Me.HTML),e.headElement=e.openElements.current,e.insertionMode=se.IN_HEAD;break}default:N0(e,r)}}function Zve(e,r){const n=r.tagID;n===H.HEAD||n===H.BODY||n===H.HTML||n===H.BR?N0(e,r):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function N0(e,r){e._insertFakeElement(me.HEAD,H.HEAD),e.headElement=e.openElements.current,e.insertionMode=se.IN_HEAD,e._processToken(r)}function Hi(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:{e._appendElement(r,Me.HTML),r.ackSelfClosing=!0;break}case H.TITLE:{e._switchToTextParsing(r,on.RCDATA);break}case H.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(r,on.RAWTEXT):(e._insertElement(r,Me.HTML),e.insertionMode=se.IN_HEAD_NO_SCRIPT);break}case H.NOFRAMES:case H.STYLE:{e._switchToTextParsing(r,on.RAWTEXT);break}case H.SCRIPT:{e._switchToTextParsing(r,on.SCRIPT_DATA);break}case H.TEMPLATE:{e._insertTemplate(r),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=se.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(se.IN_TEMPLATE);break}case H.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:R0(e,r)}}function Qve(e,r){switch(r.tagID){case H.HEAD:{e.openElements.pop(),e.insertionMode=se.AFTER_HEAD;break}case H.BODY:case H.BR:case H.HTML:{R0(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function Sd(e,r){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==H.TEMPLATE&&e._err(r,Ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function R0(e,r){e.openElements.pop(),e.insertionMode=se.AFTER_HEAD,e._processToken(r)}function Jve(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BASEFONT:case H.BGSOUND:case H.HEAD:case H.LINK:case H.META:case H.NOFRAMES:case H.STYLE:{Hi(e,r);break}case H.NOSCRIPT:{e._err(r,Ee.nestedNoscriptInHead);break}default:$0(e,r)}}function exe(e,r){switch(r.tagID){case H.NOSCRIPT:{e.openElements.pop(),e.insertionMode=se.IN_HEAD;break}case H.BR:{$0(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function $0(e,r){const n=r.type===Ht.EOF?Ee.openElementsLeftAfterEof:Ee.disallowedContentInNoscriptInHead;e._err(r,n),e.openElements.pop(),e.insertionMode=se.IN_HEAD,e._processToken(r)}function txe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BODY:{e._insertElement(r,Me.HTML),e.framesetOk=!1,e.insertionMode=se.IN_BODY;break}case H.FRAMESET:{e._insertElement(r,Me.HTML),e.insertionMode=se.IN_FRAMESET;break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{e._err(r,Ee.abandonedHeadElementChild),e.openElements.push(e.headElement,H.HEAD),Hi(e,r),e.openElements.remove(e.headElement);break}case H.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:P0(e,r)}}function rxe(e,r){switch(r.tagID){case H.BODY:case H.HTML:case H.BR:{P0(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function P0(e,r){e._insertFakeElement(me.BODY,H.BODY),e.insertionMode=se.IN_BODY,mx(e,r)}function mx(e,r){switch(r.type){case Ht.CHARACTER:{ez(e,r);break}case Ht.WHITESPACE_CHARACTER:{JI(e,r);break}case Ht.COMMENT:{X4(e,r);break}case Ht.START_TAG:{So(e,r);break}case Ht.END_TAG:{gx(e,r);break}case Ht.EOF:{iz(e,r);break}}}function JI(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r)}function ez(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r),e.framesetOk=!1}function nxe(e,r){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],r.attrs)}function oxe(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,r.attrs))}function axe(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(r,Me.HTML),e.insertionMode=se.IN_FRAMESET)}function ixe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML)}function sxe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),V4.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(r,Me.HTML)}function lxe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function cxe(e,r){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML),n||(e.formElement=e.openElements.current))}function uxe(e,r){e.framesetOk=!1;const n=r.tagID;for(let o=e.openElements.stackTop;o>=0;o--){const a=e.openElements.tagIDs[o];if(n===H.LI&&a===H.LI||(n===H.DD||n===H.DT)&&(a===H.DD||a===H.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==H.ADDRESS&&a!==H.DIV&&a!==H.P&&e._isSpecialElement(e.openElements.items[o],a))break}e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML)}function dxe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML),e.tokenizer.state=on.PLAINTEXT}function hxe(e,r){e.openElements.hasInScope(H.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(H.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.framesetOk=!1}function fxe(e,r){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(me.A);n&&(W4(e,r),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function pxe(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function mxe(e,r){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(H.NOBR)&&(W4(e,r),e._reconstructActiveFormattingElements()),e._insertElement(r,Me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function gxe(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function yxe(e,r){e.treeAdapter.getDocumentMode(e.document)!==Ja.QUIRKS&&e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,Me.HTML),e.framesetOk=!1,e.insertionMode=se.IN_TABLE}function tz(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,Me.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function rz(e){const r=$I(e,Ed.TYPE);return r!=null&&r.toLowerCase()===Dve}function bxe(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,Me.HTML),rz(r)||(e.framesetOk=!1),r.ackSelfClosing=!0}function vxe(e,r){e._appendElement(r,Me.HTML),r.ackSelfClosing=!0}function xxe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._appendElement(r,Me.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function wxe(e,r){r.tagName=me.IMG,r.tagID=H.IMG,tz(e,r)}function kxe(e,r){e._insertElement(r,Me.HTML),e.skipNextNewLine=!0,e.tokenizer.state=on.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=se.TEXT}function _xe(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(r,on.RAWTEXT)}function Exe(e,r){e.framesetOk=!1,e._switchToTextParsing(r,on.RAWTEXT)}function nz(e,r){e._switchToTextParsing(r,on.RAWTEXT)}function Sxe(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===se.IN_TABLE||e.insertionMode===se.IN_CAPTION||e.insertionMode===se.IN_TABLE_BODY||e.insertionMode===se.IN_ROW||e.insertionMode===se.IN_CELL?se.IN_SELECT_IN_TABLE:se.IN_SELECT}function Cxe(e,r){e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML)}function Txe(e,r){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(r,Me.HTML)}function Axe(e,r){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(H.RTC),e._insertElement(r,Me.HTML)}function Nxe(e,r){e._reconstructActiveFormattingElements(),XI(r),Y4(r),r.selfClosing?e._appendElement(r,Me.MATHML):e._insertElement(r,Me.MATHML),r.ackSelfClosing=!0}function Rxe(e,r){e._reconstructActiveFormattingElements(),GI(r),Y4(r),r.selfClosing?e._appendElement(r,Me.SVG):e._insertElement(r,Me.SVG),r.ackSelfClosing=!0}function oz(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,Me.HTML)}function So(e,r){switch(r.tagID){case H.I:case H.S:case H.B:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.SMALL:case H.STRIKE:case H.STRONG:{pxe(e,r);break}case H.A:{fxe(e,r);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{sxe(e,r);break}case H.P:case H.DL:case H.OL:case H.UL:case H.DIV:case H.DIR:case H.NAV:case H.MAIN:case H.MENU:case H.ASIDE:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.DETAILS:case H.ADDRESS:case H.ARTICLE:case H.SEARCH:case H.SECTION:case H.SUMMARY:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{ixe(e,r);break}case H.LI:case H.DD:case H.DT:{uxe(e,r);break}case H.BR:case H.IMG:case H.WBR:case H.AREA:case H.EMBED:case H.KEYGEN:{tz(e,r);break}case H.HR:{xxe(e,r);break}case H.RB:case H.RTC:{Txe(e,r);break}case H.RT:case H.RP:{Axe(e,r);break}case H.PRE:case H.LISTING:{lxe(e,r);break}case H.XMP:{_xe(e,r);break}case H.SVG:{Rxe(e,r);break}case H.HTML:{nxe(e,r);break}case H.BASE:case H.LINK:case H.META:case H.STYLE:case H.TITLE:case H.SCRIPT:case H.BGSOUND:case H.BASEFONT:case H.TEMPLATE:{Hi(e,r);break}case H.BODY:{oxe(e,r);break}case H.FORM:{cxe(e,r);break}case H.NOBR:{mxe(e,r);break}case H.MATH:{Nxe(e,r);break}case H.TABLE:{yxe(e,r);break}case H.INPUT:{bxe(e,r);break}case H.PARAM:case H.TRACK:case H.SOURCE:{vxe(e,r);break}case H.IMAGE:{wxe(e,r);break}case H.BUTTON:{hxe(e,r);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{gxe(e,r);break}case H.IFRAME:{Exe(e,r);break}case H.SELECT:{Sxe(e,r);break}case H.OPTION:case H.OPTGROUP:{Cxe(e,r);break}case H.NOEMBED:case H.NOFRAMES:{nz(e,r);break}case H.FRAMESET:{axe(e,r);break}case H.TEXTAREA:{kxe(e,r);break}case H.NOSCRIPT:{e.options.scriptingEnabled?nz(e,r):oz(e,r);break}case H.PLAINTEXT:{dxe(e,r);break}case H.COL:case H.TH:case H.TD:case H.TR:case H.HEAD:case H.FRAME:case H.TBODY:case H.TFOOT:case H.THEAD:case H.CAPTION:case H.COLGROUP:break;default:oz(e,r)}}function $xe(e,r){if(e.openElements.hasInScope(H.BODY)&&(e.insertionMode=se.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,r)}}function Pxe(e,r){e.openElements.hasInScope(H.BODY)&&(e.insertionMode=se.AFTER_BODY,pz(e,r))}function Mxe(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Oxe(e){const r=e.openElements.tmplCount>0,{formElement:n}=e;r||(e.formElement=null),(n||r)&&e.openElements.hasInScope(H.FORM)&&(e.openElements.generateImpliedEndTags(),r?e.openElements.popUntilTagNamePopped(H.FORM):n&&e.openElements.remove(n))}function Dxe(e){e.openElements.hasInButtonScope(H.P)||e._insertFakeElement(me.P,H.P),e._closePElement()}function Lxe(e){e.openElements.hasInListItemScope(H.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(H.LI),e.openElements.popUntilTagNamePopped(H.LI))}function Ixe(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function zxe(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function jxe(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Bxe(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(me.BR,H.BR),e.openElements.pop(),e.framesetOk=!1}function az(e,r){const n=r.tagName,o=r.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(o===s&&(o!==H.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function gx(e,r){switch(r.tagID){case H.A:case H.B:case H.I:case H.S:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.NOBR:case H.SMALL:case H.STRIKE:case H.STRONG:{W4(e,r);break}case H.P:{Dxe(e);break}case H.DL:case H.UL:case H.OL:case H.DIR:case H.DIV:case H.NAV:case H.PRE:case H.MAIN:case H.MENU:case H.ASIDE:case H.BUTTON:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.ADDRESS:case H.ARTICLE:case H.DETAILS:case H.SEARCH:case H.SECTION:case H.SUMMARY:case H.LISTING:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{Mxe(e,r);break}case H.LI:{Lxe(e);break}case H.DD:case H.DT:{Ixe(e,r);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{zxe(e);break}case H.BR:{Bxe(e);break}case H.BODY:{$xe(e,r);break}case H.HTML:{Pxe(e,r);break}case H.FORM:{Oxe(e);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{jxe(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:az(e,r)}}function iz(e,r){e.tmplInsertionModeStack.length>0?fz(e,r):G4(e,r)}function Fxe(e,r){var n;r.tagID===H.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Hxe(e,r){e._err(r,Ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(r)}function K4(e,r){if(KI.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=se.IN_TABLE_TEXT,r.type){case Ht.CHARACTER:{lz(e,r);break}case Ht.WHITESPACE_CHARACTER:{sz(e,r);break}}else O0(e,r)}function Uxe(e,r){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(r,Me.HTML),e.insertionMode=se.IN_CAPTION}function Vxe(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,Me.HTML),e.insertionMode=se.IN_COLUMN_GROUP}function qxe(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(me.COLGROUP,H.COLGROUP),e.insertionMode=se.IN_COLUMN_GROUP,Z4(e,r)}function Yxe(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,Me.HTML),e.insertionMode=se.IN_TABLE_BODY}function Wxe(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(me.TBODY,H.TBODY),e.insertionMode=se.IN_TABLE_BODY,bx(e,r)}function Xxe(e,r){e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode(),e._processStartTag(r))}function Gxe(e,r){rz(r)?e._appendElement(r,Me.HTML):O0(e,r),r.ackSelfClosing=!0}function Kxe(e,r){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(r,Me.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Hf(e,r){switch(r.tagID){case H.TD:case H.TH:case H.TR:{Wxe(e,r);break}case H.STYLE:case H.SCRIPT:case H.TEMPLATE:{Hi(e,r);break}case H.COL:{qxe(e,r);break}case H.FORM:{Kxe(e,r);break}case H.TABLE:{Xxe(e,r);break}case H.TBODY:case H.TFOOT:case H.THEAD:{Yxe(e,r);break}case H.INPUT:{Gxe(e,r);break}case H.CAPTION:{Uxe(e,r);break}case H.COLGROUP:{Vxe(e,r);break}default:O0(e,r)}}function M0(e,r){switch(r.tagID){case H.TABLE:{e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode());break}case H.TEMPLATE:{Sd(e,r);break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:case H.TBODY:case H.TD:case H.TFOOT:case H.TH:case H.THEAD:case H.TR:break;default:O0(e,r)}}function O0(e,r){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,mx(e,r),e.fosterParentingEnabled=n}function sz(e,r){e.pendingCharacterTokens.push(r)}function lz(e,r){e.pendingCharacterTokens.push(r),e.hasNonWhitespacePendingCharacterToken=!0}function D0(e,r){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===H.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===H.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===H.OPTGROUP&&e.openElements.pop();break}case H.OPTION:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop();break}case H.SELECT:{e.openElements.hasInSelectScope(H.SELECT)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode());break}case H.TEMPLATE:{Sd(e,r);break}}}function rwe(e,r){const n=r.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e._processStartTag(r)):dz(e,r)}function nwe(e,r){const n=r.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e.onEndTag(r)):hz(e,r)}function owe(e,r){switch(r.tagID){case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{Hi(e,r);break}case H.CAPTION:case H.COLGROUP:case H.TBODY:case H.TFOOT:case H.THEAD:{e.tmplInsertionModeStack[0]=se.IN_TABLE,e.insertionMode=se.IN_TABLE,Hf(e,r);break}case H.COL:{e.tmplInsertionModeStack[0]=se.IN_COLUMN_GROUP,e.insertionMode=se.IN_COLUMN_GROUP,Z4(e,r);break}case H.TR:{e.tmplInsertionModeStack[0]=se.IN_TABLE_BODY,e.insertionMode=se.IN_TABLE_BODY,bx(e,r);break}case H.TD:case H.TH:{e.tmplInsertionModeStack[0]=se.IN_ROW,e.insertionMode=se.IN_ROW,vx(e,r);break}default:e.tmplInsertionModeStack[0]=se.IN_BODY,e.insertionMode=se.IN_BODY,So(e,r)}}function awe(e,r){r.tagID===H.TEMPLATE&&Sd(e,r)}function fz(e,r){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(r)):G4(e,r)}function iwe(e,r){r.tagID===H.HTML?So(e,r):xx(e,r)}function pz(e,r){var n;if(r.tagID===H.HTML){if(e.fragmentContext||(e.insertionMode=se.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===H.HTML){e._setEndLocation(e.openElements.items[0],r);const o=e.openElements.items[1];o&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(o))===null||n===void 0)&&n.endTag)&&e._setEndLocation(o,r)}}else xx(e,r)}function xx(e,r){e.insertionMode=se.IN_BODY,mx(e,r)}function swe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.FRAMESET:{e._insertElement(r,Me.HTML);break}case H.FRAME:{e._appendElement(r,Me.HTML),r.ackSelfClosing=!0;break}case H.NOFRAMES:{Hi(e,r);break}}}function lwe(e,r){r.tagID===H.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==H.FRAMESET&&(e.insertionMode=se.AFTER_FRAMESET))}function cwe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.NOFRAMES:{Hi(e,r);break}}}function uwe(e,r){r.tagID===H.HTML&&(e.insertionMode=se.AFTER_AFTER_FRAMESET)}function dwe(e,r){r.tagID===H.HTML?So(e,r):wx(e,r)}function wx(e,r){e.insertionMode=se.IN_BODY,mx(e,r)}function hwe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.NOFRAMES:{Hi(e,r);break}}}function fwe(e,r){r.chars=Dr,e._insertCharacters(r)}function pwe(e,r){e._insertCharacters(r),e.framesetOk=!1}function mz(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Me.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function mwe(e,r){if(Rve(r))mz(e),e._startTagOutsideForeignContent(r);else{const n=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(n);o===Me.MATHML?XI(r):o===Me.SVG&&($ve(r),GI(r)),Y4(r),r.selfClosing?e._appendElement(r,o):e._insertElement(r,o),r.ackSelfClosing=!0}}function gwe(e,r){if(r.tagID===H.P||r.tagID===H.BR){mz(e),e._endTagOutsideForeignContent(r);return}for(let n=e.openElements.stackTop;n>0;n--){const o=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(o)===Me.HTML){e._endTagOutsideForeignContent(r);break}const a=e.treeAdapter.getTagName(o);if(a.toLowerCase()===r.tagName){r.tagName=a,e.openElements.shortenToLength(n);break}}}me.AREA,me.BASE,me.BASEFONT,me.BGSOUND,me.BR,me.COL,me.EMBED,me.FRAME,me.HR,me.IMG,me.INPUT,me.KEYGEN,me.LINK,me.META,me.PARAM,me.SOURCE,me.TRACK,me.WBR;const kx=gz("end"),zl=gz("start");function gz(e){return r;function r(n){const o=n&&n.position&&n.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function yz(e){const r=zl(e),n=kx(e);if(r&&n)return{start:r,end:n}}const _x=(function(e){if(e==null)return xwe;if(typeof e=="function")return Ex(e);if(typeof e=="object")return Array.isArray(e)?ywe(e):bwe(e);if(typeof e=="string")return vwe(e);throw new Error("Expected function, string, or object as test")});function ywe(e){const r=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let g=bz,y,x,w;if((!r||i(c,u,d[d.length-1]||void 0))&&(g=Ewe(n(c,d)),g[0]===J4))return g;if("children"in c&&c.children){const k=c;if(k.children&&g[0]!==_we)for(x=(o?k.children.length:-1)+s,w=d.concat(k);x>-1&&x])/gi,Cwe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),xz={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function wz(e,r){const n=Lwe(e),o=B4("type",{handlers:{root:Twe,element:Awe,text:Nwe,comment:_z,doctype:Rwe,raw:Pwe},unknown:Mwe}),a={parser:n?new QI(xz):QI.getFragmentParser(void 0,xz),handle(l){o(l,a)},stitches:!1,options:r||{}};o(e,a),Uf(a,zl());const i=n?a.parser.document:a.parser.getFragment(),s=xbe(i,{file:a.options.file});return a.stitches&&eS(s,"comment",function(l,c,u){const d=l;if(d.value.stitch&&u&&c!==void 0){const h=u.children;return h[c]=d.value.stitch,c}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function kz(e,r){let n=-1;if(e)for(;++n4&&(r.parser.tokenizer.state=0);const n={type:Ht.CHARACTER,chars:e.value,location:L0(e)};Uf(r,zl(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function Rwe(e,r){const n={type:Ht.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:L0(e)};Uf(r,zl(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function $we(e,r){r.stitches=!0;const n=Iwe(e);if("children"in e&&"children"in n){const o=wz({type:"root",children:e.children},r.options);n.children=o.children}_z({type:"comment",value:{stitch:n}},r)}function _z(e,r){const n=e.value,o={type:Ht.COMMENT,data:n,location:L0(e)};Uf(r,zl(e)),r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken)}function Pwe(e,r){if(r.parser.tokenizer.preprocessor.html="",r.parser.tokenizer.preprocessor.pos=-1,r.parser.tokenizer.preprocessor.lastGapPos=-2,r.parser.tokenizer.preprocessor.gapStack=[],r.parser.tokenizer.preprocessor.skipNextNewLine=!1,r.parser.tokenizer.preprocessor.lastChunkWritten=!1,r.parser.tokenizer.preprocessor.endOfChunkHit=!1,r.parser.tokenizer.preprocessor.isEol=!1,Ez(r,zl(e)),r.parser.tokenizer.write(r.options.tagfilter?e.value.replace(Swe,"<$1$2"):e.value,!1),r.parser.tokenizer._runParsingLoop(),r.parser.tokenizer.state===72||r.parser.tokenizer.state===78){r.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=r.parser.tokenizer._consume();r.parser.tokenizer._callState(n)}}function Mwe(e,r){const n=e;if(r.options.passThrough&&r.options.passThrough.includes(n.type))$we(n,r);else{let o="";throw Cwe.has(n.type)&&(o=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+o)}}function Uf(e,r){Ez(e,r);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=on.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ez(e,r){if(r&&r.offset!==void 0){const n={startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-r.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=r.offset,e.parser.tokenizer.preprocessor.line=r.line,e.parser.tokenizer.currentLocation=n}}function Owe(e,r){const n=e.tagName.toLowerCase();if(r.parser.tokenizer.state===on.PLAINTEXT)return;Uf(r,zl(e));const o=r.parser.openElements.current;let a="namespaceURI"in o?o.namespaceURI:kd.html;a===kd.html&&n==="svg"&&(a=kd.svg);const i=Dbe({...e,children:[]},{space:a===kd.svg?"svg":"html"}),s={type:Ht.START_TAG,tagName:n,tagID:Ff(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:L0(e)};r.parser.currentToken=s,r.parser._processToken(r.parser.currentToken),r.parser.tokenizer.lastStartTagName=n}function Dwe(e,r){const n=e.tagName.toLowerCase();if(!r.parser.tokenizer.inForeignNode&&TI.includes(n)||r.parser.tokenizer.state===on.PLAINTEXT)return;Uf(r,kx(e));const o={type:Ht.END_TAG,tagName:n,tagID:Ff(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:L0(e)};r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken),n===r.parser.tokenizer.lastStartTagName&&(r.parser.tokenizer.state===on.RCDATA||r.parser.tokenizer.state===on.RAWTEXT||r.parser.tokenizer.state===on.SCRIPT_DATA)&&(r.parser.tokenizer.state=on.DATA)}function Lwe(e){const r=e.type==="root"?e.children[0]:e;return!!(r&&(r.type==="doctype"||r.type==="element"&&r.tagName.toLowerCase()==="html"))}function L0(e){const r=zl(e)||{line:void 0,column:void 0,offset:void 0},n=kx(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Iwe(e){return"children"in e?xd({...e,children:[]}):xd(e)}function zwe(e){return function(r,n){return wz(r,{...e,file:n})}}const Cd=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Sz={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Cd,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Cd],h2:[["className","sr-only"]],img:[...Cd,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Cd,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Cd],table:[...Cd],ul:[...Cd,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Gc={}.hasOwnProperty;function jwe(e,r){let n={type:"root",children:[]};const o={schema:r?{...Sz,...r}:Sz,stack:[]},a=Cz(o,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function Cz(e,r){if(r&&typeof r=="object"){const n=r;switch(typeof n.type=="string"?n.type:""){case"comment":return Bwe(e,n);case"doctype":return Fwe(e,n);case"element":return Hwe(e,n);case"root":return Uwe(e,n);case"text":return Vwe(e,n)}}}function Bwe(e,r){if(e.schema.allowComments){const n=typeof r.value=="string"?r.value:"",o=n.indexOf("-->"),i={type:"comment",value:o<0?n:n.slice(0,o)};return I0(i,r),i}}function Fwe(e,r){if(e.schema.allowDoctypes){const n={type:"doctype"};return I0(n,r),n}}function Hwe(e,r){const n=typeof r.tagName=="string"?r.tagName:"";e.stack.push(n);const o=Tz(e,r.children),a=qwe(e,r.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&Gc.call(e.schema.ancestors,n))){const l=e.schema.ancestors[n];let c=-1;for(i=!1;++c1){let a=!1,i=0;for(;++i-1&&i>c||s>-1&&i>s||l>-1&&i>l)return!0;let u=-1;for(;++u4&&r.slice(0,4).toLowerCase()==="data")return n}function Xwe(e){return function(r){return jwe(r,e)}}const Gwe=/["&'<>`]/g,Kwe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zwe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Qwe=/[|\\{}()[\]^$+*?.]/g,$z=new WeakMap;function Jwe(e,r){if(e=e.replace(r.subset?e3e(r.subset):Gwe,o),r.subset||r.escapeOnly)return e;return e.replace(Kwe,n).replace(Zwe,o);function n(a,i,s){return r.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),r)}function o(a,i,s){return r.format(a.charCodeAt(0),s.charCodeAt(i+1),r)}}function e3e(e){let r=$z.get(e);return r||(r=t3e(e),$z.set(e,r)),r}function t3e(e){const r=[];let n=-1;for(;++n",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},s3e=["cent","copy","divide","gt","lt","not","para","times"],Pz={}.hasOwnProperty,rS={};let Sx;for(Sx in tS)Pz.call(tS,Sx)&&(rS[tS[Sx]]=Sx);const l3e=/[^\dA-Za-z]/;function c3e(e,r,n,o){const a=String.fromCharCode(e);if(Pz.call(rS,a)){const i=rS[a],s="&"+i;return n&&i3e.includes(i)&&!s3e.includes(i)&&(!o||r&&r!==61&&l3e.test(String.fromCharCode(r)))?s:s+";"}return""}function u3e(e,r,n){let o=n3e(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=c3e(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=a3e(e,r,n.omitOptionalSemicolons);i.length|^->||--!>|"],f3e=["<",">"];function p3e(e,r,n,o){return o.settings.bogusComments?"":"";function a(i){return Vf(i,Object.assign({},o.settings.characterReferences,{subset:f3e}))}}function m3e(e,r,n,o){return""}function Cx(e,r){const n=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(r);for(;a!==-1;)o++,a=n.indexOf(r,a+r.length);return o}const g3e=/[ \t\n\f\r]/g;function nS(e){return typeof e=="object"?e.type==="text"?Mz(e.value):!1:Mz(e)}function Mz(e){return e.replace(g3e,"")===""}const In=Dz(1),Oz=Dz(-1),y3e=[];function Dz(e){return r;function r(n,o,a){const i=n?n.children:y3e;let s=(o||0)+e,l=i[s];if(!a)for(;l&&nS(l);)s+=e,l=i[s];return l}}const b3e={}.hasOwnProperty;function Lz(e){return r;function r(n,o,a){return b3e.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const oS=Lz({body:x3e,caption:aS,colgroup:aS,dd:E3e,dt:_3e,head:aS,html:v3e,li:k3e,optgroup:S3e,option:C3e,p:w3e,rp:Iz,rt:Iz,tbody:A3e,td:zz,tfoot:N3e,th:zz,thead:T3e,tr:R3e});function aS(e,r,n){const o=In(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&nS(o.value.charAt(0)))}function v3e(e,r,n){const o=In(n,r);return!o||o.type!=="comment"}function x3e(e,r,n){const o=In(n,r);return!o||o.type!=="comment"}function w3e(e,r,n){const o=In(n,r);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function k3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&o.tagName==="li"}function _3e(e,r,n){const o=In(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function E3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function Iz(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function S3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function C3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function T3e(e,r,n){const o=In(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function A3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function N3e(e,r,n){return!In(n,r)}function R3e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function zz(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const $3e=Lz({body:O3e,colgroup:D3e,head:M3e,html:P3e,tbody:L3e});function P3e(e){const r=In(e,-1);return!r||r.type!=="comment"}function M3e(e){const r=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(r.has(o.tagName))return!1;r.add(o.tagName)}const n=e.children[0];return!n||n.type==="element"}function O3e(e){const r=In(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&nS(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function D3e(e,r,n){const o=Oz(n,r),a=In(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&oS(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function L3e(e,r,n){const o=Oz(n,r),a=In(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&oS(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Tx={name:[[` +\f\r &/=>`.split(""),` +\f\r "&'/=>\``.split("")],[`\0 +\f\r "&'/<=>`.split(""),`\0 +\f\r "&'/<=>\``.split("")]],unquoted:[[` +\f\r &>`.split(""),`\0 +\f\r "&'<=>\``.split("")],[`\0 +\f\r "&'<=>\``.split(""),`\0 +\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function I3e(e,r,n,o){const a=o.schema,i=a.space==="svg"?!1:o.settings.omitOptionalTags;let s=a.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const l=[];let c;a.space==="html"&&e.tagName==="svg"&&(o.schema=E0);const u=z3e(o,e.properties),d=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,d&&(s=!1),(u||!i||!$3e(e,r,n))&&(l.push("<",e.tagName,u?" "+u:""),s&&(a.space==="svg"||o.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(d),!s&&(!i||!oS(e,r,n))&&l.push(""),l.join("")}function z3e(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=j3e(e,a,r[a]);i&&n.push(i)}}for(;++oCx(n,e.alternative)&&(s=e.alternative),l=s+Vf(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Tx.single:Tx.double)[a][i],attribute:!0}))+s),c+(l&&"="+l))}const B3e=["<","&"];function jz(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Vf(e.value,Object.assign({},o.settings.characterReferences,{subset:B3e}))}function F3e(e,r,n,o){return o.settings.allowDangerousHtml?e.value:jz(e,r,n,o)}function H3e(e,r,n,o){return o.all(e)}const U3e=B4("type",{invalid:V3e,unknown:q3e,handlers:{comment:p3e,doctype:m3e,element:I3e,raw:F3e,root:H3e,text:jz}});function V3e(e){throw new Error("Expected node, not `"+e+"`")}function q3e(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const Y3e={},W3e={},X3e=[];function G3e(e,r){const n=r||Y3e,o=n.quote||'"',a=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:K3e,all:Z3e,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||TI,characterReferences:n.characterReferences||W3e,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?E0:dx,quote:o,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function K3e(e,r,n){return U3e(e,r,n,this)}function Z3e(e){const r=[],n=e&&e.children||X3e;let o=-1;for(;++o-1&&e.test(String.fromCharCode(n))}}function rke(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function nke(e,r,n){const a=_x((n||{}).ignore||[]),i=oke(r);let s=-1;for(;++s0?{type:"text",value:N}:void 0),N===!1?p.lastIndex=T+1:(y!==T&&C.push({type:"text",value:u.value.slice(y,T)}),Array.isArray(N)?C.push(...N):N&&C.push(N),y=T+_[0].length,k=!0),!p.global)break;_=p.exec(u.value)}return k?(y?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let n=r[0],o=n.indexOf(")");const a=Cx(e,"(");let i=Cx(e,")");for(;o!==-1&&a>i;)e+=n.slice(0,o+1),n=n.slice(o+1),o=n.indexOf(")"),i++;return[e,n]}function Bz(e,r){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Td(n)||Nx(n))&&(!r||n!==47)}function Ui(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Fz.peek=Tke;function vke(){this.buffer()}function xke(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function wke(){this.buffer()}function kke(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _ke(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ui(this.sliceSerialize(e)).toLowerCase(),n.label=r}function Eke(e){this.exit(e)}function Ske(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ui(this.sliceSerialize(e)).toLowerCase(),n.label=r}function Cke(e){this.exit(e)}function Tke(){return"["}function Fz(e,r,n,o){const a=n.createTracker(o);let i=a.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),s(),i+=a.move("]"),i}function Ake(){return{enter:{gfmFootnoteCallString:vke,gfmFootnoteCall:xke,gfmFootnoteDefinitionLabelString:wke,gfmFootnoteDefinition:kke},exit:{gfmFootnoteCallString:_ke,gfmFootnoteCall:Eke,gfmFootnoteDefinitionLabelString:Ske,gfmFootnoteDefinition:Cke}}}function Nke(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:n,footnoteReference:Fz},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(o,a,i,s){const l=i.createTracker(s);let c=l.move("[^");const u=i.enter("footnoteDefinition"),d=i.enter("label");return c+=l.move(i.safe(i.associationId(o),{before:c,after:"]"})),d(),c+=l.move("]:"),o.children&&o.children.length>0&&(l.shift(4),c+=l.move((r?` +`:" ")+i.indentLines(i.containerFlow(o,l.current()),r?Hz:Rke))),u(),c}}function Rke(e,r,n){return r===0?e:Hz(e,r,n)}function Hz(e,r,n){return(n?"":" ")+e}const $ke=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Uz.peek=Lke;function Pke(){return{canContainEols:["delete"],enter:{strikethrough:Oke},exit:{strikethrough:Dke}}}function Mke(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$ke}],handlers:{delete:Uz}}}function Oke(e){this.enter({type:"delete",children:[]},e)}function Dke(e){this.exit(e)}function Uz(e,r,n,o){const a=n.createTracker(o),i=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function Lke(){return"~"}function Ike(e){return e.length}function zke(e,r){const n=r||{},o=(n.align||[]).concat(),a=n.stringLength||Ike,i=[],s=[],l=[],c=[];let u=0,d=-1;for(;++du&&(u=e[d].length);++kc[k])&&(c[k]=_)}x.push(C)}s[d]=x,l[d]=w}let h=-1;if(typeof o=="object"&&"length"in o)for(;++hc[h]&&(c[h]=C),g[h]=C),p[h]=_}s.splice(1,0,p),l.splice(1,0,g),d=-1;const y=[];for(;++d "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),Fke);return a(),s}function Fke(e,r,n){return">"+(n?"":" ")+e}function Hke(e,r){return qz(e,r.inConstruct,!0)&&!qz(e,r.notInConstruct,!1)}function qz(e,r,n){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return n;let o=-1;for(;++os&&(s=i):i=1,a=o+r.length,o=n.indexOf(r,a);return s}function Vke(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function qke(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function Yke(e,r,n,o){const a=qke(n),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(Vke(e,n)){const h=n.enter("codeIndented"),p=n.indentLines(i,Wke);return h(),p}const l=n.createTracker(o),c=a.repeat(Math.max(Uke(i,a)+1,3)),u=n.enter("codeFenced");let d=l.move(c);if(e.lang){const h=n.enter(`codeFencedLang${s}`);d+=l.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);d+=l.move(" "),d+=l.move(n.safe(e.meta,{before:d,after:` +`,encode:["`"],...l.current()})),h()}return d+=l.move(` +`),i&&(d+=l.move(i+` +`)),d+=l.move(c),u(),d}function Wke(e,r,n){return(n?"":" ")+e}function uS(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function Xke(e,r,n,o){const a=uS(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("definition");let l=n.enter("label");const c=n.createTracker(o);let u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...c.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),l()),s(),u}function Gke(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function z0(e){return"&#x"+e.toString(16).toUpperCase()+";"}function qf(e){if(e===null||xr(e)||Td(e))return 1;if(Nx(e))return 2}function Rx(e,r,n){const o=qf(e),a=qf(r);return o===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Wz.peek=Kke;function Wz(e,r,n,o){const a=Gke(n),i=n.enter("emphasis"),s=n.createTracker(o),l=s.move(a);let c=s.move(n.containerPhrasing(e,{after:a,before:l,...s.current()}));const u=c.charCodeAt(0),d=Rx(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=z0(u)+c.slice(1));const h=c.charCodeAt(c.length-1),p=Rx(o.after.charCodeAt(0),h,a);p.inside&&(c=c.slice(0,-1)+z0(h));const g=s.move(a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},l+c+g}function Kke(e,r,n){return n.options.emphasis||"*"}const Zke={};function $x(e,r){const n=r||Zke,o=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Xz(e,o,a)}function Xz(e,r,n){if(Qke(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Gz(e.children,r,n)}return Array.isArray(e)?Gz(e,r,n):""}function Gz(e,r,n){const o=[];let a=-1;for(;++a",...c.current()})),u+=c.move(">")):(l=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=c.move(" "+a),u+=c.move(n.safe(e.title,{before:u,after:a,...c.current()})),u+=c.move(a),l()),u+=c.move(")"),s(),u}function r_e(){return"!"}Qz.peek=n_e;function Qz(e,r,n,o){const a=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(o);let c=l.move("![");const u=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return s(),n.stack=d,i(),a==="full"||!u||u!==h?c+=l.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function n_e(){return"!"}Jz.peek=o_e;function Jz(e,r,n){let o=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++i\u007F]/.test(e.url))}tj.peek=a_e;function tj(e,r,n,o){const a=uS(n),i=a==='"'?"Quote":"Apostrophe",s=n.createTracker(o);let l,c;if(ej(e,n)){const d=n.stack;n.stack=[],l=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),l(),n.stack=d,h}l=n.enter("link"),c=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(c=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${i}`),u+=s.move(" "+a),u+=s.move(n.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),c()),u+=s.move(")"),l(),u}function a_e(e,r,n){return ej(e,n)?"<":"["}rj.peek=i_e;function rj(e,r,n,o){const a=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(o);let c=l.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return s(),n.stack=d,i(),a==="full"||!u||u!==h?c+=l.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function i_e(){return"["}function dS(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function s_e(e){const r=dS(e),n=e.options.bulletOther;if(!n)return r==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+n+"`) to be different");return n}function l_e(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function nj(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function c_e(e,r,n,o){const a=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?l_e(n):dS(n);const l=e.ordered?s==="."?")":".":s_e(n);let c=r&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),nj(n)===s&&d){let h=-1;for(;++h-1?r.start:1)+(n.options.incrementListMarker===!1?0:r.children.indexOf(e))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(s=Math.ceil(s/4)*4);const l=n.createTracker(o);l.move(i+" ".repeat(s-i.length)),l.shift(s);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,l.current()),d);return c(),u;function d(h,p,g){return p?(g?"":" ".repeat(s))+h:(g?i:i+" ".repeat(s-i.length))+h}}function h_e(e,r,n,o){const a=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,o);return i(),a(),s}const f_e=_x(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function p_e(e,r,n,o){return(e.children.some(function(s){return f_e(s)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function m_e(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}oj.peek=g_e;function oj(e,r,n,o){const a=m_e(n),i=n.enter("strong"),s=n.createTracker(o),l=s.move(a+a);let c=s.move(n.containerPhrasing(e,{after:a,before:l,...s.current()}));const u=c.charCodeAt(0),d=Rx(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=z0(u)+c.slice(1));const h=c.charCodeAt(c.length-1),p=Rx(o.after.charCodeAt(0),h,a);p.inside&&(c=c.slice(0,-1)+z0(h));const g=s.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},l+c+g}function g_e(e,r,n){return n.options.strong||"*"}function y_e(e,r,n,o){return n.safe(e.value,o)}function b_e(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function v_e(e,r,n){const o=(nj(n)+(n.options.ruleSpaces?" ":"")).repeat(b_e(n));return n.options.ruleSpaces?o.slice(0,-1):o}const aj={blockquote:Bke,break:Yz,code:Yke,definition:Xke,emphasis:Wz,hardBreak:Yz,heading:e_e,html:Kz,image:Zz,imageReference:Qz,inlineCode:Jz,link:tj,linkReference:rj,list:c_e,listItem:d_e,paragraph:h_e,root:p_e,strong:oj,text:y_e,thematicBreak:v_e},ij={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` +`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},x_e={}.hasOwnProperty;function hS(e){return x_e.call(ij,e)?ij[e]:!1}function sj(e,r){const n=Number.parseInt(e,r);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const w_e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function k_e(e){return e.replace(w_e,__e)}function __e(e,r,n){if(r)return r;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return sj(n.slice(i?2:1),i?16:10)}return hS(n)||e}function E_e(){return{enter:{table:S_e,tableData:lj,tableHeader:lj,tableRow:T_e},exit:{codeText:A_e,table:C_e,tableData:fS,tableHeader:fS,tableRow:fS}}}function S_e(e){const r=e._align;this.enter({type:"table",align:r.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function C_e(e){this.exit(e),this.data.inTable=void 0}function T_e(e){this.enter({type:"tableRow",children:[]},e)}function fS(e){this.exit(e)}function lj(e){this.enter({type:"tableCell",children:[]},e)}function A_e(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,N_e));const n=this.stack[this.stack.length-1];n.type,n.value=r,this.exit(e)}function N_e(e,r){return r==="|"?r:e}function R_e(e){const r=e||{},n=r.tableCellPadding,o=r.tablePipeAlign,a=r.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:c,tableRow:l}};function s(g,y,x,w){return u(d(g,x,w),g.align)}function l(g,y,x,w){const k=h(g,x,w),C=u([k]);return C.slice(0,C.indexOf(` +`))}function c(g,y,x,w){const k=x.enter("tableCell"),C=x.enter("phrasing"),_=x.containerPhrasing(g,{...w,before:i,after:i});return C(),k(),_}function u(g,y){return zke(g,{align:y,alignDelimiters:o,padding:n,stringLength:a})}function d(g,y,x){const w=g.children;let k=-1;const C=[],_=y.enter("table");for(;++ka?0:a+r:r=r>a?a:r,n=n>0?n:0,o.length<1e4)s=Array.from(o),s.unshift(r,n),e.splice(...s);else for(n&&e.splice(r,n);i0?(wa(e,e.length,0,r),e):r}const uj={}.hasOwnProperty;function dj(e){const r={};let n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Yf(e){const r=[];let n=-1,o=0,a=0;for(;++n55295&&i<57344){const l=e.charCodeAt(n+1);i<56320&&l>56319&&l<57344?(s=String.fromCharCode(i,l),a=1):s="�"}else s=String.fromCharCode(i);s&&(r.push(e.slice(o,n),encodeURIComponent(s)),o=n+a+1,s=""),a&&(n+=a,a=0)}return r.join("")+e.slice(o)}function Px(e,r,n){const o=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[o][1].end},p={...e[n][1].start};xj(h,-c),xj(p,c),s={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[o][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:c>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[o][1].end={...s.start},e[n][1].start={...l.end},u=[],e[o][1].end.offset-e[o][1].start.offset&&(u=ei(u,[["enter",e[o][1],r],["exit",e[o][1],r]])),u=ei(u,[["enter",a,r],["enter",s,r],["exit",s,r],["enter",i,r]]),u=ei(u,Px(r.parser.constructs.insideSpan.null,e.slice(o+1,n),r)),u=ei(u,[["exit",i,r],["enter",l,r],["exit",l,r],["exit",a,r]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=ei(u,[["enter",e[n][1],r],["exit",e[n][1],r]])):d=0,wa(e,o-1,n-o+3,u),n=o+u.length-d-2;break}}for(n=-1;++n0&&Yt(N)?Qt(e,C,"linePrefix",i+1)(N):C(N)}function C(N){return N===null||ht(N)?e.check(Ej,x,T)(N):(e.enter("codeFlowValue"),_(N))}function _(N){return N===null||ht(N)?(e.exit("codeFlowValue"),C(N)):(e.consume(N),_)}function T(N){return e.exit("codeFenced"),r(N)}function A(N,$,R){let M=0;return O;function O(V){return N.enter("lineEnding"),N.consume(V),N.exit("lineEnding"),B}function B(V){return N.enter("codeFencedFence"),Yt(V)?Qt(N,I,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):I(V)}function I(V){return V===l?(N.enter("codeFencedFenceSequence"),Y(V)):R(V)}function Y(V){return V===l?(M++,N.consume(V),Y):M>=s?(N.exit("codeFencedFenceSequence"),Yt(V)?Qt(N,D,"whitespace")(V):D(V)):R(V)}function D(V){return V===null||ht(V)?(N.exit("codeFencedFence"),$(V)):R(V)}}}function sEe(e,r,n){const o=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return o.parser.lazy[o.now().line]?n(s):r(s)}}const yS={name:"codeIndented",tokenize:cEe},lEe={partial:!0,tokenize:uEe};function cEe(e,r,n){const o=this;return a;function a(u){return e.enter("codeIndented"),Qt(e,i,"linePrefix",5)(u)}function i(u){const d=o.events[o.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?c(u):ht(u)?e.attempt(lEe,s,c)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||ht(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),l)}function c(u){return e.exit("codeIndented"),r(u)}}function uEe(e,r,n){const o=this;return a;function a(s){return o.parser.lazy[o.now().line]?n(s):ht(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Qt(e,i,"linePrefix",5)(s)}function i(s){const l=o.events[o.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?r(s):ht(s)?a(s):n(s)}}const dEe={name:"codeText",previous:fEe,resolve:hEe,tokenize:pEe};function hEe(e){let r=e.length-4,n=3,o,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(o=n;++o=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return rthis.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,n,o){const a=n||0;this.setCursor(Math.trunc(r));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return o&&B0(this.left,o),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),B0(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),B0(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r=4?r(s):e.interrupt(o.parser.constructs.flow,n,r)(s)}}function Tj(e,r,n,o,a,i,s,l,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return h;function h(k){return k===60?(e.enter(o),e.enter(a),e.enter(i),e.consume(k),e.exit(i),p):k===null||k===32||k===41||Ax(k)?n(k):(e.enter(o),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(k))}function p(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),e.exit(o),r):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===62?(e.exit("chunkString"),e.exit(l),p(k)):k===null||k===60||ht(k)?n(k):(e.consume(k),k===92?y:g)}function y(k){return k===60||k===62||k===92?(e.consume(k),g):g(k)}function x(k){return!d&&(k===null||k===41||xr(k))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(o),r(k)):d999||g===null||g===91||g===93&&!c||g===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(i),e.enter(a),e.consume(g),e.exit(a),e.exit(o),r):ht(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||g===91||g===93||ht(g)||l++>999?(e.exit("chunkString"),d(g)):(e.consume(g),c||(c=!Yt(g)),g===92?p:h)}function p(g){return g===91||g===92||g===93?(e.consume(g),l++,h):h(g)}}function Nj(e,r,n,o,a,i){let s;return l;function l(p){return p===34||p===39||p===40?(e.enter(o),e.enter(a),e.consume(p),e.exit(a),s=p===40?41:p,c):n(p)}function c(p){return p===s?(e.enter(a),e.consume(p),e.exit(a),e.exit(o),r):(e.enter(i),u(p))}function u(p){return p===s?(e.exit(i),c(s)):p===null?n(p):ht(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Qt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||ht(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?h:d)}function h(p){return p===s||p===92?(e.consume(p),d):d(p)}}function F0(e,r){let n;return o;function o(a){return ht(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,o):Yt(a)?Qt(e,o,n?"linePrefix":"lineSuffix")(a):r(a)}}const kEe={name:"definition",tokenize:EEe},_Ee={partial:!0,tokenize:SEe};function EEe(e,r,n){const o=this;let a;return i;function i(g){return e.enter("definition"),s(g)}function s(g){return Aj.call(o,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return a=Ui(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return xr(g)?F0(e,u)(g):u(g)}function u(g){return Tj(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(_Ee,h,h)(g)}function h(g){return Yt(g)?Qt(e,p,"whitespace")(g):p(g)}function p(g){return g===null||ht(g)?(e.exit("definition"),o.parser.defined.push(a),r(g)):n(g)}}function SEe(e,r,n){return o;function o(l){return xr(l)?F0(e,a)(l):n(l)}function a(l){return Nj(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return Yt(l)?Qt(e,s,"whitespace")(l):s(l)}function s(l){return l===null||ht(l)?r(l):n(l)}}const CEe={name:"hardBreakEscape",tokenize:TEe};function TEe(e,r,n){return o;function o(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ht(i)?(e.exit("hardBreakEscape"),r(i)):n(i)}}const AEe={name:"headingAtx",resolve:NEe,tokenize:REe};function NEe(e,r){let n=e.length-2,o=3,a,i;return e[o][1].type==="whitespace"&&(o+=2),n-2>o&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(o===n-1||n-4>o&&e[n-2][1].type==="whitespace")&&(n-=o+1===n?2:4),n>o&&(a={type:"atxHeadingText",start:e[o][1].start,end:e[n][1].end},i={type:"chunkText",start:e[o][1].start,end:e[n][1].end,contentType:"text"},wa(e,o,n-o+1,[["enter",a,r],["enter",i,r],["exit",i,r],["exit",a,r]])),e}function REe(e,r,n){let o=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&o++<6?(e.consume(d),s):d===null||xr(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||ht(d)?(e.exit("atxHeading"),r(d)):Yt(d)?Qt(e,l,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function u(d){return d===null||d===35||xr(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),u)}}const $Ee=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Rj=["pre","script","style","textarea"],PEe={concrete:!0,name:"htmlFlow",resolveTo:DEe,tokenize:LEe},MEe={partial:!0,tokenize:zEe},OEe={partial:!0,tokenize:IEe};function DEe(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function LEe(e,r,n){const o=this;let a,i,s,l,c;return u;function u(z){return d(z)}function d(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),h}function h(z){return z===33?(e.consume(z),p):z===47?(e.consume(z),i=!0,x):z===63?(e.consume(z),a=3,o.interrupt?r:F):Fo(z)?(e.consume(z),s=String.fromCharCode(z),w):n(z)}function p(z){return z===45?(e.consume(z),a=2,g):z===91?(e.consume(z),a=5,l=0,y):Fo(z)?(e.consume(z),a=4,o.interrupt?r:F):n(z)}function g(z){return z===45?(e.consume(z),o.interrupt?r:F):n(z)}function y(z){const W="CDATA[";return z===W.charCodeAt(l++)?(e.consume(z),l===W.length?o.interrupt?r:I:y):n(z)}function x(z){return Fo(z)?(e.consume(z),s=String.fromCharCode(z),w):n(z)}function w(z){if(z===null||z===47||z===62||xr(z)){const W=z===47,G=s.toLowerCase();return!W&&!i&&Rj.includes(G)?(a=1,o.interrupt?r(z):I(z)):$Ee.includes(s.toLowerCase())?(a=6,W?(e.consume(z),k):o.interrupt?r(z):I(z)):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(z):i?C(z):_(z))}return z===45||Co(z)?(e.consume(z),s+=String.fromCharCode(z),w):n(z)}function k(z){return z===62?(e.consume(z),o.interrupt?r:I):n(z)}function C(z){return Yt(z)?(e.consume(z),C):O(z)}function _(z){return z===47?(e.consume(z),O):z===58||z===95||Fo(z)?(e.consume(z),T):Yt(z)?(e.consume(z),_):O(z)}function T(z){return z===45||z===46||z===58||z===95||Co(z)?(e.consume(z),T):A(z)}function A(z){return z===61?(e.consume(z),N):Yt(z)?(e.consume(z),A):_(z)}function N(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),c=z,$):Yt(z)?(e.consume(z),N):R(z)}function $(z){return z===c?(e.consume(z),c=null,M):z===null||ht(z)?n(z):(e.consume(z),$)}function R(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||xr(z)?A(z):(e.consume(z),R)}function M(z){return z===47||z===62||Yt(z)?_(z):n(z)}function O(z){return z===62?(e.consume(z),B):n(z)}function B(z){return z===null||ht(z)?I(z):Yt(z)?(e.consume(z),B):n(z)}function I(z){return z===45&&a===2?(e.consume(z),L):z===60&&a===1?(e.consume(z),U):z===62&&a===4?(e.consume(z),J):z===63&&a===3?(e.consume(z),F):z===93&&a===5?(e.consume(z),X):ht(z)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(MEe,Q,Y)(z)):z===null||ht(z)?(e.exit("htmlFlowData"),Y(z)):(e.consume(z),I)}function Y(z){return e.check(OEe,D,Q)(z)}function D(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),V}function V(z){return z===null||ht(z)?Y(z):(e.enter("htmlFlowData"),I(z))}function L(z){return z===45?(e.consume(z),F):I(z)}function U(z){return z===47?(e.consume(z),s="",q):I(z)}function q(z){if(z===62){const W=s.toLowerCase();return Rj.includes(W)?(e.consume(z),J):I(z)}return Fo(z)&&s.length<8?(e.consume(z),s+=String.fromCharCode(z),q):I(z)}function X(z){return z===93?(e.consume(z),F):I(z)}function F(z){return z===62?(e.consume(z),J):z===45&&a===2?(e.consume(z),F):I(z)}function J(z){return z===null||ht(z)?(e.exit("htmlFlowData"),Q(z)):(e.consume(z),J)}function Q(z){return e.exit("htmlFlow"),r(z)}}function IEe(e,r,n){const o=this;return a;function a(s){return ht(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return o.parser.lazy[o.now().line]?n(s):r(s)}}function zEe(e,r,n){return o;function o(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(j0,r,n)}}const jEe={name:"htmlText",tokenize:BEe};function BEe(e,r,n){const o=this;let a,i,s;return l;function l(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),c}function c(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),A):F===63?(e.consume(F),_):Fo(F)?(e.consume(F),R):n(F)}function u(F){return F===45?(e.consume(F),d):F===91?(e.consume(F),i=0,y):Fo(F)?(e.consume(F),C):n(F)}function d(F){return F===45?(e.consume(F),g):n(F)}function h(F){return F===null?n(F):F===45?(e.consume(F),p):ht(F)?(s=h,U(F)):(e.consume(F),h)}function p(F){return F===45?(e.consume(F),g):h(F)}function g(F){return F===62?L(F):F===45?p(F):h(F)}function y(F){const J="CDATA[";return F===J.charCodeAt(i++)?(e.consume(F),i===J.length?x:y):n(F)}function x(F){return F===null?n(F):F===93?(e.consume(F),w):ht(F)?(s=x,U(F)):(e.consume(F),x)}function w(F){return F===93?(e.consume(F),k):x(F)}function k(F){return F===62?L(F):F===93?(e.consume(F),k):x(F)}function C(F){return F===null||F===62?L(F):ht(F)?(s=C,U(F)):(e.consume(F),C)}function _(F){return F===null?n(F):F===63?(e.consume(F),T):ht(F)?(s=_,U(F)):(e.consume(F),_)}function T(F){return F===62?L(F):_(F)}function A(F){return Fo(F)?(e.consume(F),N):n(F)}function N(F){return F===45||Co(F)?(e.consume(F),N):$(F)}function $(F){return ht(F)?(s=$,U(F)):Yt(F)?(e.consume(F),$):L(F)}function R(F){return F===45||Co(F)?(e.consume(F),R):F===47||F===62||xr(F)?M(F):n(F)}function M(F){return F===47?(e.consume(F),L):F===58||F===95||Fo(F)?(e.consume(F),O):ht(F)?(s=M,U(F)):Yt(F)?(e.consume(F),M):L(F)}function O(F){return F===45||F===46||F===58||F===95||Co(F)?(e.consume(F),O):B(F)}function B(F){return F===61?(e.consume(F),I):ht(F)?(s=B,U(F)):Yt(F)?(e.consume(F),B):M(F)}function I(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),a=F,Y):ht(F)?(s=I,U(F)):Yt(F)?(e.consume(F),I):(e.consume(F),D)}function Y(F){return F===a?(e.consume(F),a=void 0,V):F===null?n(F):ht(F)?(s=Y,U(F)):(e.consume(F),Y)}function D(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||xr(F)?M(F):(e.consume(F),D)}function V(F){return F===47||F===62||xr(F)?M(F):n(F)}function L(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),r):n(F)}function U(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),q}function q(F){return Yt(F)?Qt(e,X,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):X(F)}function X(F){return e.enter("htmlTextData"),s(F)}}const bS={name:"labelEnd",resolveAll:VEe,resolveTo:qEe,tokenize:YEe},FEe={tokenize:WEe},HEe={tokenize:XEe},UEe={tokenize:GEe};function VEe(e){let r=-1;const n=[];for(;++r=3&&(u===null||ht(u))?(e.exit("thematicBreak"),r(u)):n(u)}function c(u){return u===a?(e.consume(u),o++,c):(e.exit("thematicBreakSequence"),Yt(u)?Qt(e,l,"whitespace")(u):l(u))}}const Ko={continuation:{tokenize:a5e},exit:s5e,name:"list",tokenize:o5e},r5e={partial:!0,tokenize:l5e},n5e={partial:!0,tokenize:i5e};function o5e(e,r,n){const o=this,a=o.events[o.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return l;function l(g){const y=o.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!o.containerState.marker||g===o.containerState.marker:iS(g)){if(o.containerState.type||(o.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Mx,n,u)(g):u(g);if(!o.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return iS(g)&&++s<10?(e.consume(g),c):(!o.interrupt||s<2)&&(o.containerState.marker?g===o.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||g,e.check(j0,o.interrupt?n:d,e.attempt(r5e,p,h))}function d(g){return o.containerState.initialBlankLine=!0,i++,p(g)}function h(g){return Yt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):n(g)}function p(g){return o.containerState.size=i+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(g)}}function a5e(e,r,n){const o=this;return o.containerState._closeFlow=void 0,e.check(j0,a,i);function a(l){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Qt(e,r,"listItemIndent",o.containerState.size+1)(l)}function i(l){return o.containerState.furtherBlankLines||!Yt(l)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,s(l)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(n5e,r,s)(l))}function s(l){return o.containerState._closeFlow=!0,o.interrupt=void 0,Qt(e,e.attempt(Ko,r,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function i5e(e,r,n){const o=this;return Qt(e,a,"listItemIndent",o.containerState.size+1);function a(i){const s=o.events[o.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===o.containerState.size?r(i):n(i)}}function s5e(e){e.exit(this.containerState.type)}function l5e(e,r,n){const o=this;return Qt(e,a,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=o.events[o.events.length-1];return!Yt(i)&&s&&s[1].type==="listItemPrefixWhitespace"?r(i):n(i)}}const $j={name:"setextUnderline",resolveTo:c5e,tokenize:u5e};function c5e(e,r){let n=e.length,o,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){o=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,r]),e.splice(i+1,0,["exit",e[o][1],r]),e[o][1].end={...e[i][1].end}):e[o][1]=s,e.push(["exit",s,r]),e}function u5e(e,r,n){const o=this;let a;return i;function i(u){let d=o.events.length,h;for(;d--;)if(o.events[d][1].type!=="lineEnding"&&o.events[d][1].type!=="linePrefix"&&o.events[d][1].type!=="content"){h=o.events[d][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||h)?(e.enter("setextHeadingLine"),a=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),Yt(u)?Qt(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||ht(u)?(e.exit("setextHeadingLine"),r(u)):n(u)}}const d5e={tokenize:v5e,partial:!0};function h5e(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:g5e,continuation:{tokenize:y5e},exit:b5e}},text:{91:{name:"gfmFootnoteCall",tokenize:m5e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:f5e,resolveTo:p5e}}}}function f5e(e,r,n){const o=this;let a=o.events.length;const i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let s;for(;a--;){const c=o.events[a][1];if(c.type==="labelImage"){s=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!s||!s._balanced)return n(c);const u=Ui(o.sliceSerialize({start:s.end,end:o.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),r(c))}}function p5e(e,r){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",o,r],e[n+3],e[n+4],["enter",a,r],["exit",a,r],["enter",i,r],["enter",s,r],["exit",s,r],["exit",i,r],e[e.length-2],e[e.length-1],["exit",o,r]];return e.splice(n,e.length-n+1,...l),e}function m5e(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i=0,s;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(i>999||h===93&&!s||h===null||h===91||xr(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return a.includes(Ui(o.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):n(h)}return xr(h)||(s=!0),i++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),i++,u):u(h)}}function g5e(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i,s=0,l;return c;function c(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(y)}function d(y){if(s>999||y===93&&!l||y===null||y===91||xr(y))return n(y);if(y===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return i=Ui(o.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return xr(y)||(l=!0),s++,e.consume(y),y===92?h:d}function h(y){return y===91||y===92||y===93?(e.consume(y),s++,d):d(y)}function p(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),a.includes(i)||a.push(i),Qt(e,g,"gfmFootnoteDefinitionWhitespace")):n(y)}function g(y){return r(y)}}function y5e(e,r,n){return e.check(j0,r,e.attempt(d5e,r,n))}function b5e(e){e.exit("gfmFootnoteDefinition")}function v5e(e,r,n){const o=this;return Qt(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=o.events[o.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?r(i):n(i)}}function x5e(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function a(s,l){let c=-1;for(;++c1?c(y):(s.consume(y),h++,g);if(h<2&&!n)return c(y);const w=s.exit("strikethroughSequenceTemporary"),k=qf(y);return w._open=!k||k===2&&!!x,w._close=!x||x===2&&!!k,l(y)}}}class w5e{constructor(){this.map=[]}add(r,n,o){k5e(this,r,n,o)}consume(r){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(r.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),r.length=this.map[n][0];o.push(r.slice()),r.length=0;let a=o.pop();for(;a;){for(const i of a)r.push(i);a=o.pop()}this.map.length=0}}function k5e(e,r,n,o){let a=0;if(!(n===0&&o.length===0)){for(;a-1;){const D=o.events[B][1].type;if(D==="lineEnding"||D==="linePrefix")B--;else break}const I=B>-1?o.events[B][1].type:null,Y=I==="tableHead"||I==="tableRow"?N:c;return Y===N&&o.parser.lazy[o.now().line]?n(O):Y(O)}function c(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(s=!0,i+=1),d(O)}function d(O){return O===null?n(O):ht(O)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),g):n(O):Yt(O)?Qt(e,d,"whitespace")(O):(i+=1,s&&(s=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),h(O)))}function h(O){return O===null||O===124||xr(O)?(e.exit("data"),d(O)):(e.consume(O),O===92?p:h)}function p(O){return O===92||O===124?(e.consume(O),h):h(O)}function g(O){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(O):(e.enter("tableDelimiterRow"),s=!1,Yt(O)?Qt(e,y,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):y(O))}function y(O){return O===45||O===58?w(O):O===124?(s=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),x):A(O)}function x(O){return Yt(O)?Qt(e,w,"whitespace")(O):w(O)}function w(O){return O===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),k):O===45?(i+=1,k(O)):O===null||ht(O)?T(O):A(O)}function k(O){return O===45?(e.enter("tableDelimiterFiller"),C(O)):A(O)}function C(O){return O===45?(e.consume(O),C):O===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(O))}function _(O){return Yt(O)?Qt(e,T,"whitespace")(O):T(O)}function T(O){return O===124?y(O):O===null||ht(O)?!s||a!==i?A(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(O)):A(O)}function A(O){return n(O)}function N(O){return e.enter("tableRow"),$(O)}function $(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),$):O===null||ht(O)?(e.exit("tableRow"),r(O)):Yt(O)?Qt(e,$,"whitespace")(O):(e.enter("data"),R(O))}function R(O){return O===null||O===124||xr(O)?(e.exit("data"),$(O)):(e.consume(O),O===92?M:R)}function M(O){return O===92||O===124?(e.consume(O),R):R(O)}}function C5e(e,r){let n=-1,o=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],l=!1,c=0,u,d,h;const p=new w5e;for(;++nn[2]+1){const y=n[2]+1,x=n[3]-n[2]-1;e.add(y,x,[])}}e.add(n[3]+1,0,[["exit",h,r]])}return a!==void 0&&(i.end=Object.assign({},Wf(r.events,a)),e.add(a,0,[["exit",i,r]]),i=void 0),i}function Pj(e,r,n,o,a){const i=[],s=Wf(r.events,n);a&&(a.end=Object.assign({},s),i.push(["exit",a,r])),o.end=Object.assign({},s),i.push(["exit",o,r]),e.add(n+1,0,i)}function Wf(e,r){const n=e[r],o=n[0]==="enter"?"start":"end";return n[1][o]}const T5e={name:"tasklistCheck",tokenize:N5e};function A5e(){return{text:{91:T5e}}}function N5e(e,r,n){const o=this;return a;function a(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return xr(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),s):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),s):n(c)}function s(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return ht(c)?r(c):Yt(c)?e.check({tokenize:R5e},r,n)(c):n(c)}}function R5e(e,r,n){return Qt(e,o,"whitespace");function o(a){return a===null?n(a):r(a)}}function $5e(e){return dj([F_e(),h5e(),x5e(e),E5e(),A5e()])}const P5e={};function M5e(e){const r=this,n=e||P5e,o=r.data(),a=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),s=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);a.push($5e(n)),i.push(D_e()),s.push(L_e(n))}const O5e={tokenize:D5e};function D5e(e){const r=e.attempt(this.parser.constructs.contentInitial,o,a);let n;return r;function o(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Qt(e,r,"linePrefix")}function a(l){return e.enter("paragraph"),i(l)}function i(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return ht(l)?(e.consume(l),e.exit("chunkText"),i):(e.consume(l),s)}}const L5e={tokenize:I5e},Mj={tokenize:z5e};function I5e(e){const r=this,n=[];let o=0,a,i,s;return l;function l(_){if(os))return;const $=r.events.length;let R=$,M,O;for(;R--;)if(r.events[R][0]==="exit"&&r.events[R][1].type==="chunkFlow"){if(M){O=r.events[R][1].end;break}M=!0}for(k(o),N=$;N_;){const A=n[T];r.containerState=A[1],A[0].exit.call(r,e)}n.length=_}function C(){a.write([null]),i=void 0,a=void 0,r.containerState._closeFlow=void 0}}function z5e(e,r,n){return Qt(e,e.attempt(this.parser.constructs.document,r,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const j5e={tokenize:B5e};function B5e(e){const r=this,n=e.attempt(j0,o,e.attempt(this.parser.constructs.flowInitial,a,Qt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(yEe,a)),"linePrefix")));return n;function o(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),r.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r.currentConstruct=void 0,n}}const F5e={resolveAll:Dj()},H5e=Oj("string"),U5e=Oj("text");function Oj(e){return{resolveAll:Dj(e==="text"?V5e:void 0),tokenize:r};function r(n){const o=this,a=this.parser.constructs[e],i=n.attempt(a,s,l);return s;function s(d){return u(d)?i(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const h=a[d];let p=-1;if(h)for(;++p-1){const l=s[0];typeof l=="string"?s[0]=l.slice(o):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function X5e(e,r){let n=-1;const o=[];let a;for(;++n0){const Wr=rt.tokenStack[rt.tokenStack.length-1];(Wr[1]||Hj).call(rt,void 0,Wr[0])}for(we.position={start:Zc(_e.length>0?_e[0][1].start:{line:1,column:1,offset:0}),end:Zc(_e.length>0?_e[_e.length-2][1].end:{line:1,column:1,offset:0})},$t=-1;++$t1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(r,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(r,u),e.applyData(r,u)}function s2e(e,r){const n={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function l2e(e,r){if(e.options.allowDangerousHtml){const n={type:"raw",value:r.value};return e.patch(r,n),e.applyData(r,n)}}function Uj(e,r){const n=r.referenceType;let o="]";if(n==="collapsed"?o+="[]":n==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const a=e.all(r),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=o:a.push({type:"text",value:o}),a}function c2e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return Uj(e,r);const a={src:Yf(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(r,i),e.applyData(r,i)}function u2e(e,r){const n={src:Yf(r.url)};r.alt!==null&&r.alt!==void 0&&(n.alt=r.alt),r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(r,o),e.applyData(r,o)}function d2e(e,r){const n={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,n);const o={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(r,o),e.applyData(r,o)}function h2e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return Uj(e,r);const a={href:Yf(o.url||"")};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function f2e(e,r){const n={href:Yf(r.url)};r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"a",properties:n,children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function p2e(e,r,n){const o=e.all(r),a=n?m2e(n):Vj(r),i={},s=[];if(typeof r.checked=="boolean"){const d=o[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},o.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l1}function g2e(e,r){const n={},o=e.all(r);let a=-1;for(typeof r.start=="number"&&r.start!==1&&(n.start=r.start);++a0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=zl(r.children[1]),c=kx(r.children[r.children.length-1]);l&&c&&(s.position={start:l,end:c}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(r,i),e.applyData(r,i)}function w2e(e,r,n){const o=n?n.children:void 0,i=(o?o.indexOf(r):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:r.children.length;let c=-1;const u=[];for(;++c0,!0),o[0]),a=o.index+o[0].length,o=n.exec(r);return i.push(Wj(r.slice(a),a>0,!1)),i.join("")}function Wj(e,r,n){let o=0,a=e.length;if(r){let i=e.codePointAt(o);for(;i===qj||i===Yj;)o++,i=e.codePointAt(o)}if(n){let i=e.codePointAt(a-1);for(;i===qj||i===Yj;)a--,i=e.codePointAt(a-1)}return a>o?e.slice(o,a):""}function E2e(e,r){const n={type:"text",value:_2e(String(r.value))};return e.patch(r,n),e.applyData(r,n)}function S2e(e,r){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,n),e.applyData(r,n)}const C2e={blockquote:t2e,break:r2e,code:n2e,delete:o2e,emphasis:a2e,footnoteReference:i2e,heading:s2e,html:l2e,imageReference:c2e,image:u2e,inlineCode:d2e,linkReference:h2e,link:f2e,listItem:p2e,list:g2e,paragraph:y2e,root:b2e,strong:v2e,table:x2e,tableCell:k2e,tableRow:w2e,text:E2e,thematicBreak:S2e,toml:Dx,yaml:Dx,definition:Dx,footnoteDefinition:Dx};function Dx(){}function T2e(e,r){const n=[{type:"text",value:"↩"}];return r>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),n}function A2e(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function N2e(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||T2e,o=e.options.footnoteBackLabel||A2e,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c0&&y.push({type:"text",value:" "});let C=typeof n=="string"?n:n(c,g);typeof C=="string"&&(C={type:"text",value:C}),y.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(c,g),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const C=w.children[w.children.length-1];C&&C.type==="text"?C.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...y)}else d.push(...y);const k={type:"element",tagName:"li",properties:{id:r+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,k),l.push(k)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...xd(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` +`}]}}const wS={}.hasOwnProperty,R2e={};function $2e(e,r){const n=r||R2e,o=new Map,a=new Map,i=new Map,s={...C2e,...n.handlers},l={all:u,applyData:M2e,definitionById:o,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:c,options:n,patch:P2e,wrap:D2e};return eS(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const h=d.type==="definition"?o:a,p=String(d.identifier).toUpperCase();h.has(p)||h.set(p,d)}}),l;function c(d,h){const p=d.type,g=l.handlers[p];if(wS.call(l.handlers,p)&&g)return g(l,d,h);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in d){const{children:x,...w}=d,k=xd(w);return k.children=l.all(d),k}return xd(d)}return(l.options.unknownHandler||O2e)(l,d,h)}function u(d){const h=[];if("children"in d){const p=d.children;let g=-1;for(;++g0&&n.push({type:"text",value:` +`}),n}function Xj(e){let r=0,n=e.charCodeAt(r);for(;n===9||n===32;)r++,n=e.charCodeAt(r);return e.slice(r)}function Gj(e,r){const n=$2e(e,r),o=n.one(e,void 0),a=N2e(n),i=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` +`},a),i}function L2e(e,r){return e&&"run"in e?async function(n,o){const a=Gj(n,{file:o,...r});await e.run(a,o)}:function(n,o){return Gj(n,{file:o,...e||r})}}function Kj(e){if(e)throw e}var kS,Zj;function I2e(){if(Zj)return kS;Zj=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):r.call(u)==="[object Array]"},i=function(u){if(!u||r.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!h)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},s=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},l=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(o)return o(u,d).value}else return;return u[d]};return kS=function c(){var u,d,h,p,g,y,x=arguments[0],w=1,k=arguments.length,C=!1;for(typeof x=="boolean"&&(C=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});ws.length;let c;l&&s.push(a);try{c=e.apply(this,s)}catch(u){const d=u;if(l&&n)throw d;return a(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(s,...l){n||(n=!0,r(s,...l))}function i(s){a(null,s)}}let Zo=class extends Error{constructor(r,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof r=="string"?a=r:!i.cause&&r&&(s=!0,a=r.message,i.cause=r),!i.ruleId&&!i.source&&typeof o=="string"){const c=o.indexOf(":");c===-1?i.ruleId=o:(i.source=o.slice(0,c),i.ruleId=o.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=H0(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};Zo.prototype.file="",Zo.prototype.name="",Zo.prototype.reason="",Zo.prototype.message="",Zo.prototype.stack="",Zo.prototype.column=void 0,Zo.prototype.line=void 0,Zo.prototype.ancestors=void 0,Zo.prototype.cause=void 0,Zo.prototype.fatal=void 0,Zo.prototype.place=void 0,Zo.prototype.ruleId=void 0,Zo.prototype.source=void 0;const Ws={basename:F2e,dirname:H2e,extname:U2e,join:V2e,sep:"/"};function F2e(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');U0(e);let n=0,o=-1,a=e.length,i;if(r===void 0||r.length===0||r.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1);return o<0?"":e.slice(n,o)}if(r===e)return"";let s=-1,l=r.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),l>-1&&(e.codePointAt(a)===r.codePointAt(l--)?l<0&&(o=a):(l=-1,o=s));return n===o?o=s:o<0&&(o=e.length),e.slice(n,o)}function H2e(e){if(U0(e),e.length===0)return".";let r=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){r=n;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function U2e(e){U0(e);let r=e.length,n=-1,o=0,a=-1,i=0,s;for(;r--;){const l=e.codePointAt(r);if(l===47){if(s){o=r+1;break}continue}n<0&&(s=!0,n=r+1),l===46?a<0?a=r:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===o+1?"":e.slice(a,n)}function V2e(...e){let r=-1,n;for(;++r0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function Y2e(e,r){let n="",o=0,a=-1,i=0,s=-1,l,c;for(;++s<=e.length;){if(s2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",o=0,a=s,i=0;continue}}r&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),o=s-a-1;a=s,i=0}else l===46&&i>-1?i++:i=-1}return n}function U0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const W2e={cwd:X2e};function X2e(){return"/"}function SS(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function G2e(e){if(typeof e=="string")e=new URL(e);else if(!SS(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return K2e(e)}function K2e(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let n=-1;for(;++n0){let[g,...y]=d;const x=o[p][1];ES(x)&&ES(g)&&(g=_S(!0,x,g)),o[p]=[u,g,...y]}}}};const r4e=new t4e().freeze();function NS(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function RS(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $S(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Jj(e){if(!ES(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function eB(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Lx(e){return n4e(e)?e:new Z2e(e)}function n4e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function o4e(e){return typeof e=="string"||a4e(e)}function a4e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function i4e(){return r4e().use(e2e).use(M5e).use(L2e,{allowDangerousHtml:!0,clobberPrefix:"",tableCellPadding:!1,tight:!0}).use(zwe).use(Xwe).use(Q3e,{closeSelfClosing:!0,tightSelfClosing:!0})}function s4e(e){return String(i4e().processSync(e.trim())).trim()}function l4e(e){return $x(Bj(e),{includeHtml:!1,includeImageAlt:!1})}function c4e(...e){return ba(u4e,e)}function u4e(e,r){let n={...e};for(let[o,a]of Object.entries(n))r(a,o,e)&&delete n[o];return n}function V0(e){return c4e(e,r=>r===void 0)}const d4e=Symbol.for("text"),h4e=Symbol.for("html"),Xs="";class Kt{static _cache=new WeakMap;static memoize(r,n,o){return cr(r,n,()=>Kt.from(o))}static from(r){if(r==null||r===Kt.EMPTY)return Kt.EMPTY;if(r instanceof Kt)return r;if(typeof r=="string")return r.trim()===Xs?Kt.EMPTY:new Kt({txt:r});if("isEmpty"in r&&r.isEmpty||"md"in r&&r.md.trim()===Xs||"txt"in r&&r.txt.trim()===Xs)return Kt.EMPTY;const n=r,o=Kt._cache.get(n);if(o)return o;const a=new Kt(n);return Kt._cache.set(n,a),a}static EMPTY=new class extends Kt{isEmpty=!0;nonEmpty=!1;isMarkdown=!1;$source=null;constructor(){super({txt:Xs})}get text(){return null}get md(){return null}get html(){return null}};$source;isEmpty;nonEmpty;isMarkdown;constructor(r){this.isMarkdown=!1,typeof r=="string"?(this.$source={txt:r},this.isEmpty=r.trim()===Xs):(this.$source=r,this.isEmpty=!0,"md"in r?(this.isEmpty=r.md===Xs,this.isMarkdown=!0):this.isEmpty=r.txt===Xs),this.nonEmpty=!this.isEmpty}get text(){if(this.isEmpty||this.$source===null)return Xs;const r=this.$source;return"txt"in r?r.txt:cr(this,d4e,()=>l4e(r.md))}get md(){if(this.isEmpty||this.$source===null)return Xs;const r=this.$source;if("md"in r)return r.md;if("txt"in r)return r.txt;Ga(r)}get html(){if(this.isEmpty||this.$source===null)return Xs;const r=this.$source;return"txt"in r?r.txt:cr(this,h4e,()=>s4e(r.md))}equals(r){return this===r?!0:r instanceof Kt?this.isEmpty&&r.isEmpty?!0:this.isEmpty!==r.isEmpty||this.isMarkdown!==r.isMarkdown?!1:this.isMarkdown?this.$source?.md===r.$source?.md:this.$source?.txt===r.$source?.txt:!1}}function tB(e){return r=>!e(r)}function f4e(...e){return ba(p4e,e)}const p4e=(e,r)=>r.every(n=>n(e));function m4e(...e){return ba(g4e,e)}const g4e=(e,r)=>r.some(n=>n(e));function y4e(e){return e==null}function rB(e,r){return e[q0]===r}const q0="_stage",Y0="_type";function b4e(e){return Ll(e.kind)&&!Ll(e.element)}function v4e(e){return"tag"in e}function x4e(e){return"kind"in e}function w4e(e){return"participant"in e}function k4e(e){return"not"in e}function _4e(e){return"and"in e}function E4e(e){return"or"in e}function Nd(e){switch(!0){case w4e(e):{const r=e.participant,n=Nd(e.operator);return S4e(r,n)}case v4e(e):{if(Vc(e.tag)||"eq"in e.tag){const n=Vc(e.tag)?e.tag:e.tag.eq;return o=>Array.isArray(o.tags)&&o.tags.includes(n)}const r=e.tag.neq;return n=>!Array.isArray(n.tags)||!n.tags.includes(r)}case x4e(e):{if(Vc(e.kind)||"eq"in e.kind){const n=Vc(e.kind)?e.kind:e.kind.eq;return o=>o.kind===n}const r=e.kind.neq;return n=>y4e(n.kind)||n.kind!==r}case k4e(e):{const r=Nd(e.not);return tB(r)}case _4e(e):{const r=e.and.map(Nd);return f4e(r)}case E4e(e):{const r=e.or.map(Nd);return m4e(r)}default:Ga(e)}}function S4e(e,r){return n=>{if(!n.source||!n.target)return!1;switch(e){case"source":return r(n.source);case"target":return r(n.target)}}}var W0;(e=>{function r(c){return"model"in c&&!("project"in c)}e.isElementRef=r;function n(c){return"project"in c&&"model"in c}e.isImportRef=n;function o(c){if(Vc(c))throw new Error(`Expected FqnRef, got: "${c}"`);if(n(c))return jL(c.project,c.model);if(r(c))return c.model;throw new Error("Expected FqnRef.ModelRef or FqnRef.ImportRef")}e.flatten=o;function a(c){return r(c)||n(c)}e.isModelRef=a;function i(c){return"deployment"in c&&"element"in c}e.isInsideInstanceRef=i;function s(c){return"deployment"in c&&!("element"in c)}e.isDeploymentElementRef=s;function l(c){return s(c)||i(c)}e.isDeploymentRef=l})(W0||(W0={}));function PS(e){return v0(e)&&e.includes(".")?e.slice(0,e.indexOf(".")+1):null}var Qc;(e=>{function r({x:l,y:c,width:u,height:d}){return{x:l+u/2,y:c+d/2}}e.center=r;function n(l){const{x1:c,y1:u,x2:d,y2:h}=MS.fromPoints(l);return{x:c,y:u,width:d-c,height:h-u}}e.fromPoints=n;function o(...l){if(nt(Ef(l,1),"No boxes provided"),l.length===1)return l[0];let c=1/0,u=1/0,d=-1/0,h=-1/0;for(const p of l)c=Math.min(c,p.x),u=Math.min(u,p.y),d=Math.max(d,p.x+p.width),h=Math.max(h,p.y+p.height);return{x:c,y:u,width:d-c,height:h-u}}e.merge=o;function a(l){return{x1:l.x,y1:l.y,x2:l.x+l.width,y2:l.y+l.height}}e.toRectBox=a;function i(l,c){return c===0?l:{x:l.x-c,y:l.y-c,width:l.width+c*2,height:l.height+c*2}}e.expand=i;function s(l,c){return c===0?l:{x:l.x+c,y:l.y+c,width:l.width-c*2,height:l.height-c*2}}e.shrink=s})(Qc||(Qc={}));var MS;(e=>{function r({x1:i,y1:s,x2:l,y2:c}){return{x:(i+l)/2,y:(s+c)/2}}e.center=r;function n(i){nt(i.length>0,"At least one point is required");let s=1/0,l=1/0,c=-1/0,u=-1/0;for(const[d,h]of i)s=Math.min(s,d),l=Math.min(l,h),c=Math.max(c,d),u=Math.max(u,h);return{x1:s,y1:l,x2:c,y2:u}}e.fromPoints=n;function o(...i){nt(i.length>0,"No boxes provided");let s=1/0,l=1/0,c=-1/0,u=-1/0;for(const d of i)s=Math.min(s,d.x1),l=Math.min(l,d.y1),c=Math.max(c,d.x2),u=Math.max(u,d.y2);return{x1:s,y1:l,x2:c,y2:u}}e.merge=o;function a(i){return{x:i.x1,y:i.y1,width:i.x2-i.x1,height:i.y2-i.y1}}e.toBBox=a})(MS||(MS={}));function nB(e){const r=typeof e=="string"?e:e.color;return r.startsWith("#")||r.startsWith("rgb")}const oB={done:!1,hasNext:!1};function X0(e,...r){let n=e,o=r.map(i=>"lazy"in i?C4e(i):void 0),a=0;for(;ae.map(r),N4e=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function R4e(e,r,n){let o=e.get(r);return o||(o=n(r),e.set(r,o)),o}var OS={},sB;function $4e(){return sB||(sB=1,(function(e){e.intersection=function(){if(arguments.length<2)throw new Error("mnemonist/Set.intersection: needs at least two arguments.");var r=new Set,n=1/0,o=null,a,i,s=arguments.length;for(i=0;in.size)return!1;for(;a=o.next(),!a.done;)if(!n.has(a.value))return!1;return!0},e.isSuperset=function(r,n){return e.isSubset(n,r)},e.add=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.add(a.value)},e.subtract=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.delete(a.value)},e.intersect=function(r,n){for(var o=r.values(),a;a=o.next(),!a.done;)n.has(a.value)||r.delete(a.value)},e.disjunct=function(r,n){for(var o=r.values(),a,i=[];a=o.next(),!a.done;)n.has(a.value)&&i.push(a.value);for(o=n.values();a=o.next(),!a.done;)r.has(a.value)||r.add(a.value);for(var s=0,l=i.length;sn.size&&(o=r,r=n,n=o),r.size===0)return 0;if(r===n)return r.size;for(var a=r.values(),i,s=0;i=a.next(),!i.done;)n.has(i.value)&&s++;return s},e.unionSize=function(r,n){var o=e.intersectionSize(r,n);return r.size+n.size-o},e.jaccard=function(r,n){var o=e.intersectionSize(r,n);if(o===0)return 0;var a=r.size+n.size-o;return o/a},e.overlap=function(r,n){var o=e.intersectionSize(r,n);return o===0?0:o/Math.min(r.size,n.size)}})(OS)),OS}var P4e=$4e();function DS(...e){let r=new Set;for(const n of e)for(const o of n)r.add(o);return r}function Xf(e,...r){let n=new Set;if(e.size===0)return n;let o=Ef(r,2)?P4e.intersection(...r):r[0];if(o.size===0)return n;for(const a of e)o.has(a)&&n.add(a);return n}function LS(e,r){if(e.size===0)return new Set;if(r.size===0)return new Set(e);let n=new Set;for(const o of e)r.has(o)||n.add(o);return n}function M4e(e,r){return e.size===r.size&&[...e].every(n=>r.has(n))}function O4e(e){let r=5381;const n=e.length;nt(n>0,"stringHash: empty string");for(let o=0;o>>0).toString(36)}const Ix=e=>typeof e=="function";function Rd(e,r){const n=r??e;nt(Ix(n));function*o(a){for(const i of a)n(i)&&(yield i)}return r?o(e):o}function G0(e,r){const n=r??e;nt(Ix(n));function o(a){for(const i of a)if(n(i))return i}return r?o(e):o}function lB(e){return e?cB(e):cB}function cB(e){for(const r of e)return r}function D4e(e,r){const n=e;nt(Ix(n));function*o(a){for(const i of a)yield n(i)}return o}function K0(e){return e?Array.from(e):r=>Array.from(r)}function L4e(e){return e?new Set(e):r=>new Set(r)}function I4e(e,r){const n=r??e;nt(Ix(n));function o(a){for(const i of a)if(n(i))return!0;return!1}return r?o(e):o}function z4e(e,r){const n=e;nt(n>=0,"Count must be a non-negative number");function*o(a){let i=0;for(const s of a){if(i>=n)break;yield s,i++}}return a=>o(a)}function j4e(e,r){let n=Math.ceil(e),o=Math.floor(r);if(o{setTimeout(()=>{n(B4e)},r??100)})}function zx(e){const r=qc([...e]),n=new Set(r),o=new Map(r.map(s=>[s._literalId,s])),a=new lo(()=>null),i=r.reduce((s,l,c,u)=>(s.set(l,u.slice(c+1).filter(PL(l)).map(d=>(n.delete(d),d)).reduce((d,h)=>(d.some(Un(h))||(d.push(h),a.set(h,l)),d),[])),s),new lo(()=>[]));return{sorted:r,byId:s=>mt(o.get(s),`Element not found by id: ${s}`),root:n,parent:s=>a.get(s),children:s=>i.get(s),flatten:()=>new Set([...n,...r.reduce((s,l)=>{const c=i.get(l);return c.length===0?(s.push(l),s):(c.length>1&&s.push(...c),s)},[])])}}const IS=(e,r)=>e.size>2&&r.size!==e.size?new Set(qc([...zx(e).flatten(),...r])):e.size>1?new Set(qc([...e])):e;function uB(e,r,n){const o=c=>r.has(c);let a=new Set([e]);const i={incomers:new Set,subjects:new Set([e]),outgoers:new Set};let s=new Set(n.incoming.flatMap(c=>{if(i.subjects.add(c.target),i.incomers.add(c.source),a.add(c.target),c.target!==e){let h=c.target.parent;for(;h&&h!==e;)a.add(h),h=h.parent}let u=c.source;const d=[];for(;d.push(u),!(o(u)||!u.parent);)u=u.parent;return d})),l=new Set(n.outgoing.flatMap(c=>{if(i.subjects.add(c.source),i.outgoers.add(c.target),a.add(c.source),c.source!==e){let h=c.source.parent;for(;h&&h!==e;)a.add(h),h=h.parent}let u=c.target;const d=[];for(;d.push(u),!(o(u)||!u.parent);)u=u.parent;return d}));return{incomers:IS(s,i.incomers),incoming:new Set(n.incoming),subjects:IS(a,i.subjects),outgoing:new Set(n.outgoing),outgoers:IS(l,i.outgoers)}}function dB(e,r,n,o="global"){const a=n?r.findView(n):null;if(o==="view")return nt(a,'Scope view id is required when scope is "view"'),H4e(e,a,r);const i=r.element(e),s=L4e(i.ascendingSiblings());return uB(i,s,{incoming:[...i.incoming()],outgoing:[...i.outgoing()]})}function H4e(e,r,n){const o=n.element(e);let a={incoming:K0(Rd(o.incoming(),l=>r.includesRelation(l.id))),outgoing:K0(Rd(o.outgoing(),l=>r.includesRelation(l.id)))};const i=PL(o),s=new Set([...o.ascendingSiblings(),...X0(r.elements(),D4e(l=>l.element),Rd(l=>l!==o&&i(l)))]);return uB(o,s,a)}var hB;(e=>{e.isInside=r=>n=>Un(r,n.source.id)&&Un(r,n.target.id),e.isDirectedBetween=(r,n)=>o=>(o.source.id===r||Un(r,o.source.id))&&(o.target.id===n||Un(n,o.target.id)),e.isAnyBetween=(r,n)=>{const o=(0,e.isDirectedBetween)(r,n),a=(0,e.isDirectedBetween)(n,r);return i=>o(i)||a(i)},e.isIncoming=r=>n=>(n.target.id===r||Un(r,n.target.id))&&!Un(r,n.source.id),e.isOutgoing=r=>n=>(n.source.id===r||Un(r,n.source.id))&&!Un(r,n.target.id),e.isAnyInOut=r=>{const n=(0,e.isIncoming)(r),o=(0,e.isOutgoing)(r);return a=>n(a)||o(a)}})(hB||(hB={}));const U4e=Symbol.for("nodejs.util.inspect.custom");function V4e(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return X0(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>X0(a,o),o)}throw Error("Wrong number of arguments")}function Gf(e){return e===""||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}function q4e(...e){return ba(Y4e,e)}const Y4e=e=>e.length===1?e[0]:void 0;function zS(...e){return V4e(W4e,e)}function W4e(){let e=new Set;return r=>e.has(r)?oB:(e.add(r),{done:!1,hasNext:!0,next:r})}class fB{get style(){return cr(this,"style",()=>V0({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$node.style}))}get name(){return g0(this.id)}get shape(){return this.style.shape}get color(){return this.style.color}get summary(){return Kt.memoize(this,"summary",ix(this.$node))}get description(){return Kt.memoize(this,"description",sx(this.$node))}get technology(){return this.$node.technology??null}get links(){return this.$node.links??[]}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b0(this.id,r.id);return n?this.$model.node(n):null}siblings(){return this.$model.siblings(this)}isSibling(r){return this.parent===r.parent}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}outgoing(r="all"){return this.$model.outgoing(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}*views(){for(const r of this.$model.views())r._type==="deployment"&&r.includesDeployment(this.id)&&(yield r)}isDeploymentNode(){return!1}isInstance(){return!1}get allOutgoing(){return cr(this,Symbol.for("allOutgoing"),()=>Jc.from(new Set(this.outgoingModelRelationships()),new Set(this.outgoing())))}get allIncoming(){return cr(this,Symbol.for("allIncoming"),()=>Jc.from(new Set(this.incomingModelRelationships()),new Set(this.incoming())))}hasMetadata(){return!!this.$node.metadata&&!Gf(this.$node.metadata)}getMetadata(r){return r?this.$node.metadata?.[r]:this.$node.metadata??{}}isTagged(r){return this.tags.includes(r)}}class pB extends fB{constructor(r,n){super(),this.$model=r,this.$node=n,this.id=n.id,this._literalId=n.id,this.title=n.title,this.hierarchyLevel=ox(n.id)}id;_literalId;title;hierarchyLevel;get parent(){return this.$model.parent(this)}get kind(){return this.$node.kind}get tags(){return cr(this,Symbol.for("tags"),()=>zS([...this.$node.tags??[],...this.$model.$model.specification.deployments[this.kind]?.tags??[]]))}children(){return this.$model.children(this)}descendants(r="desc"){return this.$model.descendants(this,r)}isDeploymentNode(){return!0}*instances(){for(const r of this.descendants("desc"))r.isInstance()&&(yield r)}onlyOneInstance(){const r=this.children();if(r.size!==1)return null;const n=q4e([...r]);return n?.isInstance()?n:null}_relationshipsFromInstances=null;relationshipsFromInstances(){if(this._relationshipsFromInstances)return this._relationshipsFromInstances;const{outgoing:r,incoming:n}=this._relationshipsFromInstances={outgoing:new Set,incoming:new Set};for(const o of this.instances()){for(const a of o.element.outgoing())r.add(a);for(const a of o.element.incoming())n.add(a)}return this._relationshipsFromInstances}outgoingModelRelationships(){return this.relationshipsFromInstances().outgoing.values()}incomingModelRelationships(){return this.relationshipsFromInstances().incoming.values()}internalModelRelationships(){const{outgoing:r,incoming:n}=this.relationshipsFromInstances();return Xf(n,r)}}class mB extends fB{constructor(r,n,o){super(),this.$model=r,this.$instance=n,this.element=o,this.id=n.id,this._literalId=n.id,this.title=n.title??o.title,this.hierarchyLevel=ox(n.id)}id;_literalId;title;hierarchyLevel;get $node(){return this.$instance}get parent(){return mt(this.$model.parent(this),`Parent of ${this.id} not found`)}get style(){return cr(this,"style",()=>V0({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.element.$element.style,...this.$instance.style}))}get tags(){return cr(this,Symbol.for("tags"),()=>zS([...this.$instance.tags??[],...this.element.tags]))}get kind(){return this.element.kind}get summary(){return Kt.memoize(this,"summary",ix(this.$instance)??ix(this.element.$element))}get description(){return Kt.memoize(this,"description",sx(this.$instance)??sx(this.element.$element))}get technology(){return this.$instance.technology??this.element.technology??null}get links(){return this.$instance.links??this.element.links}isInstance(){return!0}outgoingModelRelationships(){return this.element.outgoing()}incomingModelRelationships(){return this.element.incoming()}*views(){for(const r of this.$model.views())if(r._type==="deployment"){if(r.includesDeployment(this.id)){yield r;continue}r.includesDeployment(this.parent.id)&&this.parent.onlyOneInstance()&&(yield r)}}}class X4e{constructor(r,n){this.instance=r,this.element=n}get id(){return this.instance.id}get _literalId(){return this.instance.id}get style(){return cr(this,"style ",()=>({shape:this.element.shape,color:this.element.color,...this.element.$element.style}))}get shape(){return this.element.shape}get color(){return this.element.color}get title(){return this.element.title}get summary(){return this.element.summary}get description(){return this.element.description}get technology(){return this.element.technology}isDeploymentNode(){return!1}isInstance(){return!1}}class G4e{constructor(r,n){this.$model=r,this.$relationship=n,this.source=r.deploymentRef(n.source),this.target=r.deploymentRef(n.target);const o=b0(this.source.id,this.target.id);this.boundary=o?this.$model.node(o):null}boundary;source;target;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Ll(this.$relationship.title)?this.$relationship.title:null}get technology(){return this.$relationship.technology??null}get description(){return Kt.memoize(this,"description",this.$relationship.description)}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get navigateTo(){return this.$relationship.navigateTo?this.$model.$model.view(this.$relationship.navigateTo):null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.$model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.$model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.$model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.$model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!0}isModelRelation(){return!1}hasMetadata(){return!!this.$relationship.metadata&&!Gf(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class Jc{constructor(r=new Set,n=new Set){this.model=r,this.deployment=n}static empty(){return new Jc}static from(r,n){return new Jc(new Set(r),new Set(n))}get isEmpty(){return this.model.size===0&&this.deployment.size===0}get nonEmpty(){return this.model.size>0||this.deployment.size>0}get size(){return this.model.size+this.deployment.size}intersect(r){return Jc.from(Xf(this.model,r.model),Xf(this.deployment,r.deployment))}difference(r){return Jc.from(LS(this.model,r.model),LS(this.deployment,r.deployment))}union(r){return Jc.from(DS(this.model,r.model),DS(this.deployment,r.deployment))}}function gB(e,r){return n=>e.source===n.source&&e.target===n.target}function jS(e,r,n="directed"){if(e===r)return[];if($L(e,r))return[];const o=Xf(e.allOutgoing,r.allIncoming),a=o.size>0?new ti(e,r,o):null;if(n==="directed")return a?[a]:[];const i=Xf(e.allIncoming,r.allOutgoing),s=i.size>0?new ti(r,e,i):null;return a&&s?[a,s]:a?[a]:s?[s]:[]}function yB(e,r,n="both"){if(e.allIncoming.size===0&&e.allOutgoing.size===0)return[];const o=[],a=[];for(const i of r)if(e!==i)for(const s of jS(e,i,n))s.source===e?o.push(s):a.push(s);return[...o,...a]}function K4e(e){return[...e].reduce((r,n,o,a)=>(o===a.length-1||r.push(...yB(n,a.slice(o+1),"both")),r),[])}const Z4e={__proto__:null,findConnection:jS,findConnectionsBetween:yB,findConnectionsWithin:K4e};class ti{constructor(r,n,o=new Set){this.source=r,this.target=n,this.relations=o,this.id=O4e(`model:${r.id}:${n.id}`)}id;_boundary;get boundary(){return this._boundary??=this.source.commonAncestor(this.target)}get expression(){return`${this.source.id} -> ${this.target.id}`}get isDirect(){return this.nonEmpty()&&!this.isImplicit}get isImplicit(){return this.nonEmpty()&&I4e(this.relations,tB(gB(this)))}get directRelations(){return new Set(Rd(this.relations,gB(this)))}nonEmpty(){return this.relations.size>0}mergeWith(r){return nt(this.source.id===r.source.id,"Cannot merge connections with different sources"),nt(this.target.id===r.target.id,"Cannot merge connections with different targets"),new ti(this.source,this.target,DS(this.relations,r.relations))}difference(r){return new ti(this.source,this.target,LS(this.relations,r.relations))}intersect(r){return nt(r instanceof ti,"Cannot intersect connection with different type"),new ti(this.source,this.target,Xf(this.relations,r.relations))}equals(r){nt(r instanceof ti,"Cannot merge connection with different type");const n=r;return this.id===n.id&&this.source.id===n.source.id&&this.target.id===n.target.id&&M4e(this.relations,n.relations)}update(r){return new ti(this.source,this.target,r)}[U4e](r,n,o){const a=this.toString();return Object.defineProperty(a,"constructor",{value:ti,enumerable:!1}),a}toString(){return[this.expression,this.relations.size?" relations:":" relations: [ ]",...[...this.relations].map(r=>" "+r.expression)].join(` +`)}reversed(r=!1){if(!r)return new ti(this.target,this.source);const[n]=jS(this.target,this.source,"directed");return n??new ti(this.target,this.source,new Set)}}const bB={asc:(e,r)=>e>r,desc:(e,r)=>ee(i,a)}function BS(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=bB,s=r===void 0?void 0:BS(r,...n);return(l,c)=>{let u=o(l),d=o(c);return i(u,d)?1:i(d,u)?-1:s?.(l,c)??0}}function J4e(e){if(vB(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return vB(r)&&typeof n=="string"&&n in bB&&o.length===0}const vB=e=>typeof e=="function"&&e.length===1;function xB(...e){return ba(Object.entries,e)}function eSe(...e){return ba(tSe,e)}function tSe(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;if(e instanceof Map&&r instanceof Map)return rSe(e,r);if(e instanceof Set&&r instanceof Set)return nSe(e,r);let n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o of n){if(!Object.hasOwn(r,o))return!1;let{[o]:a}=e,{[o]:i}=r;if(a!==i||!Object.is(a,i))return!1}return!0}function rSe(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e){let a=r.get(n);if(o!==a||!Object.is(o,a))return!1}return!0}function nSe(e,r){if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;return!0}function oSe(...e){return ba(aSe,e)}const aSe=e=>e.at(-1);function iSe(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>wB(n,e,...r):wB(e,...r)}function wB(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function FS(...e){return ba(sSe,e)}function sSe(e,r){let n=[...e];return n.sort(r),n}function lSe(...e){return Q4e(cSe,e)}const cSe=(e,r)=>[...e].sort(r);function kB(e,r,n){return typeof r=="number"||r===void 0?o=>o.split(e,r):e.split(r,n)}function jx(...e){return ba(Object.values,e)}class Bx{constructor(r,n){this.$model=r,this.$element=n,this.id=this.$element.id,this._literalId=this.$element.id;const[o,a]=Qye(this.id);o?(this.imported={from:o,fqn:a},this.hierarchyLevel=ox(a)):(this.imported=null,this.hierarchyLevel=ox(this.id))}id;_literalId;hierarchyLevel;imported;get name(){return g0(this.id)}get parent(){return this.$model.parent(this)}get kind(){return this.$element.kind}get shape(){return this.style.shape}get color(){return this.style.color}get icon(){return this.style.icon??null}get tags(){return cr(this,Symbol.for("tags"),()=>zS([...this.$element.tags??[],...this.$model.specification.elements[this.$element.kind]?.tags??[]]))}get title(){return this.$element.title}get hasSummary(){return!!this.$element.summary&&!!this.$element.description&&!eSe(this.$element.summary,this.$element.description)}get summary(){return Kt.memoize(this,"summary",ix(this.$element))}get description(){return Kt.memoize(this,"description",sx(this.$element))}get technology(){return this.$element.technology??null}get links(){return this.$element.links??[]}get defaultView(){return cr(this,Symbol.for("defaultView"),()=>lB(this.scopedViews())??null)}get isRoot(){return this.parent===null}get style(){return cr(this,"style",()=>V0({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$element.style}))}isAncestorOf(r){return Un(this,r)}isDescendantOf(r){return Un(r,this)}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b0(this.id,r.id);return n?this.$model.element(n):null}children(){return this.$model.children(this)}descendants(r){return r?ML([...this.$model.descendants(this)],r)[Symbol.iterator]():this.$model.descendants(this)}siblings(){return this.$model.siblings(this)}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}outgoing(r="all"){return this.$model.outgoing(this,r)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}get allOutgoing(){return cr(this,Symbol.for("allOutgoing"),()=>new Set(this.outgoing()))}get allIncoming(){return cr(this,Symbol.for("allIncoming"),()=>new Set(this.incoming()))}views(){return cr(this,Symbol.for("views"),()=>{const r=new Set;for(const n of this.$model.views())n.includesElement(this.id)&&r.add(n);return r})}scopedViews(){return cr(this,Symbol.for("scopedViews"),()=>{const r=new Set;for(const n of this.$model.views())n.isScopedElementView()&&n.viewOf.id===this.id&&r.add(n);return r})}isDeployed(){return Ll(lB(this.deployments()))}deployments(){return this.$model.deployment.instancesOf(this)}hasMetadata(){return!!this.$element.metadata&&!Gf(this.$element.metadata)}getMetadata(r){return r?this.$element.metadata?.[r]:this.$element.metadata??{}}isTagged(r){return this.tags.includes(r)}}const fr=e=>typeof e=="string"?e:e.id,ka="/",HS=e=>{if(nt(!e.includes(` +`),"View title cannot contain newlines"),e.includes(ka)){const r=e.split(ka).map(n=>n.trim()).filter(n=>n.length>0);return Ef(r,1)?r:[""]}return[e.trim()]},Fx=e=>HS(e).join(ka),uSe=e=>{const r=HS(e);return Ef(r,2)?r.slice(0,-1).join(ka):null},dSe=e=>e.includes(ka)?HS(e).pop()??e:e.trim();class hSe{constructor(r){this.$model=r;const n=this.$deployments=r.$data.deployments,o=jx(n.elements);for(const a of qc(o)){const i=this.addElement(a);for(const s of i.tags)this.#l.get(s).add(i);i.isInstance()&&this.#a.get(i.element.id).add(i)}for(const a of jx(n.relations)){const i=this.addRelation(a);for(const s of i.tags)this.#l.get(s).add(i)}}#e=new Map;#t=new Map;#r=new lo(()=>new Set);#a=new lo(()=>new Set);#i=new Set;#n=new Map;#o=new lo(()=>new Set);#s=new lo(()=>new Set);#c=new lo(()=>new Set);#l=new lo(()=>new Set);#u=new Map;$deployments;get $styles(){return this.$model.$styles}element(r){if(r instanceof pB||r instanceof mB)return r;const n=fr(r);return mt(this.#e.get(n),`Element ${n} not found`)}findElement(r){return this.#e.get(r)??null}node(r){const n=this.element(r);return nt(n.isDeploymentNode(),`Element ${n.id} is not a deployment node`),n}findNode(r){const n=this.findElement(r);return n?(nt(n.isDeploymentNode(),`Element ${n?.id} is not a deployment node`),n):null}instance(r){const n=this.element(r);return nt(n.isInstance(),`Element ${n.id} is not a deployed instance`),n}findInstance(r){const n=this.findElement(r);return n?(nt(n.isInstance(),`Element ${n?.id} is not a deployed instance`),n):null}roots(){return this.#i.values()}elements(){return this.#e.values()}*nodes(){for(const r of this.#e.values())r.isDeploymentNode()&&(yield r)}*nodesOfKind(r){for(const n of this.#e.values())n.isDeploymentNode()&&n.kind===r&&(yield n)}*instances(){for(const r of this.#e.values())r.isInstance()&&(yield r)}*instancesOf(r){const n=fr(r),o=this.#a.get(n);o&&(yield*o)}deploymentRef(r){if(W0.isInsideInstanceRef(r)){const{deployment:n,element:o}=r;return R4e(this.#u,`${n}@${o}`,()=>new X4e(this.instance(n),this.$model.element(o)))}return this.element(r.deployment)}relationships(){return this.#n.values()}relationship(r){return mt(this.#n.get(fr(r)),`DeploymentRelationModel ${r} not found`)}findRelationship(r){return this.#n.get(r)??null}*views(){for(const r of this.$model.views())r.isDeploymentView()&&(yield r)}parent(r){const n=fr(r);return this.#t.get(n)||null}children(r){const n=fr(r);return this.#r.get(n)}*siblings(r){const n=fr(r),o=this.parent(r)?.children()??this.roots();for(const a of o)a.id!==n&&(yield a)}*ancestors(r){let n=fr(r),o;for(;o=this.#t.get(n);)yield o,n=o.id}*descendants(r,n="desc"){for(const o of this.children(r))n==="asc"?(yield o,yield*this.descendants(o.id)):(yield*this.descendants(o.id),yield o)}*incoming(r,n="all"){const o=fr(r);for(const a of this.#o.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=fr(r);for(const a of this.#s.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}addElement(r){if(this.#e.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=b4e(r)?new pB(this,Object.freeze(r)):new mB(this,Object.freeze(r),this.$model.element(r.element));this.#e.set(n.id,n);const o=nx(n.id);return o?(nt(this.#e.has(o),`Parent ${o} of ${n.id} not found`),this.#t.set(n.id,this.node(o)),this.#r.get(o).add(n)):(nt(n.isDeploymentNode(),`Root element ${n.id} is not a deployment node`),this.#i.add(n)),n}addRelation(r){if(this.#n.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new G4e(this,Object.freeze(r));this.#n.set(n.id,n),this.#o.get(n.target.id).add(n),this.#s.get(n.source.id).add(n);const o=n.boundary?.id??null;if(o)for(const a of[o,...bd(o)])this.#c.get(a).add(n);for(const a of bd(n.source.id)){if(a===o)break;this.#s.get(a).add(n)}for(const a of bd(n.target.id)){if(a===o)break;this.#o.get(a).add(n)}return n}}class _B{constructor(r,n){this.model=r,this.$relationship=n,this.source=r.element(W0.flatten(n.source)),this.target=r.element(W0.flatten(n.target));const o=b0(this.source.id,this.target.id);this.boundary=o?this.model.element(o):null}source;target;boundary;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Ll(this.$relationship.title)?this.$relationship.title:null}get technology(){return Ll(this.$relationship.technology)?this.$relationship.technology:null}get description(){return Kt.memoize(this,"description",this.$relationship.description)}get navigateTo(){return this.$relationship.navigateTo?this.model.view(this.$relationship.navigateTo):null}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!1}isModelRelation(){return!0}hasMetadata(){return!!this.$relationship.metadata&&!Gf(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class fSe{constructor(r,n,o,a){this.view=r,this.$edge=n,this.source=o,this.target=a,this.#e=n}#e;get id(){return this.#e.id}get parent(){return this.#e.parent?this.view.node(this.#e.parent):null}get label(){return this.#e.label??null}get description(){return Kt.memoize(this,"description",this.#e.description)}get technology(){return this.#e.technology??null}hasParent(){return this.#e.parent!==null}get tags(){return this.#e.tags??[]}get stepNumber(){return this.isStep()?BL(this.id):null}get navigateTo(){return this.#e.navigateTo?this.view.$model.view(this.#e.navigateTo):null}get color(){return this.#e.color}get line(){return this.#e.line??this.view.$model.$styles.defaults.relationship.line}get head(){return this.#e.head??this.view.$model.$styles.defaults.relationship.arrow}get tail(){return this.#e.tail}isStep(){return v0(this.id)}*relationships(r){for(const n of this.#e.relations)if(r){const o=this.view.$model.findRelationship(n,r);o&&(yield o)}else yield this.view.$model.relationship(n)}includesRelation(r){const n=typeof r=="string"?r:r.id;return this.#e.relations.includes(n)}isTagged(r){return this.tags.includes(r)}}class pSe{constructor(r,n){this.$view=r,this.$node=n,this.#e=n}#e;get id(){return this.#e.id}get title(){return this.#e.title}get kind(){return this.#e.kind}get description(){return Kt.memoize(this,"description",this.#e.description)}get technology(){return this.#e.technology??null}get parent(){return this.#e.parent?this.$view.node(this.#e.parent):null}get element(){const r=this.#e.modelRef;return r?this.$view.$model.element(r):null}get deployment(){const r=this.#e.deploymentRef;return r?this.$view.$model.deployment.element(r):null}get shape(){return this.#e.shape}get color(){return this.#e.color}get icon(){return this.#e.icon??null}get tags(){return this.#e.tags}get links(){return this.#e.links??[]}get navigateTo(){return this.#e.navigateTo?this.$view.$model.view(this.#e.navigateTo):null}get style(){return this.#e.style}children(){return cr(this,"children",()=>new Set(this.#e.children.map(r=>this.$view.node(r))))}*ancestors(){let r=this.parent;for(;r;)yield r,r=r.parent}*siblings(){const r=this.parent?.children()??this.$view.roots();for(const n of r)n.id!==this.id&&(yield n)}*incoming(r="all"){for(const n of this.#e.inEdges){const o=this.$view.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.target.id===this.id):case(r==="to-descendants"&&o.target.id!==this.id):yield o;break}}}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoing(r="all"){for(const n of this.#e.outEdges){const o=this.$view.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.source.id===this.id):case(r==="from-descendants"&&o.source.id!==this.id):yield o;break}}}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}isDiagramNode(){return"width"in this.#e&&"height"in this.#e}hasChildren(){return this.#e.children.length>0}hasParent(){return this.#e.parent!==null}hasElement(){return Ll(this.#e.modelRef)}hasDeployment(){return Ll(this.#e.deploymentRef)}hasDeployedInstance(){return this.hasElement()&&this.hasDeployment()}isGroup(){return Kye(this.#e)}isTagged(r){return this.tags.includes(r)}}class US{Aux;#e=new Set;#t=new Map;#r=new Map;#a=new Set;#i=new Set;#n=new Set;#o=new lo(r=>new Set);$view;$model;title;folder;viewPath;constructor(r,n,o){this.$model=r,this.$view=n,this.folder=o;for(const a of n.nodes){const i=new pSe(this,Object.freeze(a));this.#t.set(a.id,i),a.parent||this.#e.add(i),i.hasDeployment()&&this.#i.add(i.deployment.id),i.hasElement()&&this.#a.add(i.element.id);for(const s of i.tags)this.#o.get(s).add(i)}for(const a of n.edges){const i=new fSe(this,Object.freeze(a),this.node(a.source),this.node(a.target));for(const s of i.tags)this.#o.get(s).add(i);for(const s of a.relations)this.#n.add(s);this.#r.set(a.id,i)}this.title=this.$view.title?dSe(this.$view.title):null,this.viewPath=this.$view.title?Fx(this.$view.title):this.$view.id}get _type(){return this.$view[Y0]}get id(){return this.$view.id}get titleOrId(){return this.title??this.viewOf?.title??this.id}get titleOrUntitled(){return this.title??"Untitled"}get breadcrumbs(){return cr(this,"breadcrumbs",()=>this.folder.isRoot?[this]:[...this.folder.breadcrumbs,this])}get description(){return Kt.memoize(this,"description",this.$view.description)}get tags(){return this.$view.tags??[]}get links(){return this.$view.links??[]}get viewOf(){if(this.isElementView()){const r=this.$view.viewOf;return r?this.$model.element(r):null}return null}get mode(){if(this.isDynamicView())return this.$view.variant??"diagram";throw new Error("View is not dynamic")}get includedTags(){return[...this.#o.keys()]}roots(){return this.#e.values()}*compounds(){for(const r of this.#t.values())r.hasChildren()&&(yield r)}node(r){const n=fr(r);return mt(this.#t.get(n),`Node ${n} not found in view ${this.$view.id}`)}findNode(r){return this.#t.get(fr(r))??null}findNodeWithElement(r){const n=fr(r);return G0(this.#t.values(),o=>o.hasElement()&&o.element.id===n)??null}nodes(){return this.#t.values()}edge(r){const n=fr(r);return mt(this.#r.get(n),`Edge ${n} not found in view ${this.$view.id}`)}findEdge(r){return this.#r.get(fr(r))??null}edges(){return this.#r.values()}*edgesWithRelation(r){for(const n of this.#r.values())n.includesRelation(r)&&(yield n)}*elements(){for(const r of this.#t.values())r.hasElement()&&(yield r)}isTagged(r){return this.tags.includes(r)}includesElement(r){return this.#a.has(fr(r))}includesDeployment(r){return this.#i.has(fr(r))}includesRelation(r){return this.#n.has(fr(r))}isComputed(){return this.$view[q0]==="computed"}isDiagram(){return this.$view[q0]==="layouted"}isElementView(){return this.$view[Y0]==="element"}isScopedElementView(){return this.$view[Y0]==="element"&&Ll(this.$view.viewOf)}isDeploymentView(){return this.$view[Y0]==="deployment"}isDynamicView(){return this.$view[Y0]==="dynamic"}}class Hx{$model;path;title;isRoot;parentPath;defaultViewId;constructor(r,n,o){this.$model=r,this.path=n.join("/"),this.isRoot=this.path==="",this.title=oSe(n),this.isRoot?this.parentPath=void 0:this.parentPath=n.slice(0,-1).join("/"),this.defaultViewId=o}get defaultView(){return this.defaultViewId?this.$model.view(this.defaultViewId):null}get breadcrumbs(){return nt(!this.isRoot,"Root view folder has no breadcrumbs"),cr(this,"breadcrumbs",()=>{const r=this.parent;return r?r.isRoot?[r,this]:[...r.breadcrumbs,this]:[this]})}get parent(){return nt(!this.isRoot,"Root view folder has no parent"),Gf(this.parentPath)?null:this.$model.viewFolder(this.parentPath)}get children(){return this.$model.viewFolderItems(this.path)}get folders(){return cr(this,"folders",()=>{const r=[];for(const n of this.children)n instanceof Hx&&r.push(n);return r})}get views(){return cr(this,"views",()=>{const r=[];for(const n of this.children)n instanceof US&&r.push(n);return r})}}class $d{Aux;_elements=new Map;_parents=new Map;_children=new lo(()=>new Set);_rootElements=new Set;_relations=new Map;_incoming=new lo(()=>new Set);_outgoing=new lo(()=>new Set);_internal=new lo(()=>new Set);_views=new Map;_rootViewFolder;_viewFolders=new Map;_viewFolderItems=new lo(()=>new Set);_allTags=new lo(()=>new Set);static fromParsed(r){return new $d(r).asParsed}static create(r){return new $d(r)}static fromDump(r){const{_stage:n="layouted",projectId:o="unknown",project:a,globals:i,imports:s,deployments:l,views:c,relations:u,elements:d,specification:h}=r;return new $d({[q0]:n,projectId:o,project:a,globals:{predicates:i?.predicates??{},dynamicPredicates:i?.dynamicPredicates??{},styles:i?.styles??{}},imports:s??{},deployments:{elements:l?.elements??{},relations:l?.relations??{}},views:c??{},relations:u??{},elements:d??{},specification:h})}deployment;$data;constructor(r){this.$data=r;for(const[,n]of xB(r.elements)){const o=this.addElement(n);for(const a of o.tags)this._allTags.get(a).add(o)}for(const[n,o]of xB(r.imports??{}))for(const a of qc(o)){const i=this.addImportedElement(n,a);for(const s of i.tags)this._allTags.get(s).add(i)}for(const n of jx(r.relations)){const o=this.addRelation(n);for(const a of o.tags)this._allTags.get(a).add(o)}if(this.deployment=new hSe(this),rB(r,"computed")||rB(r,"layouted")){const n=RL(ka),o=X0(jx(r.views),iB(i=>({view:i,path:Fx(i.title??i.id),folderPath:i.title&&uSe(i.title)||""})),FS((i,s)=>n(i.folderPath,s.folderPath))),a=i=>{let s=this._viewFolders.get(i);if(!s){const l=kB(i,ka);nt(Ef(l,1),`View group path "${i}" must have at least one element`);let c;i===""?c=o.find(u=>u.view.id==="index"):c=o.find(u=>u.path===i),s=new Hx(this,l,c?.view.id),this._viewFolders.set(i,s)}return s};this._rootViewFolder=a("");for(const{folderPath:i}of o)this._viewFolders.has(i)||kB(i,ka).reduce((s,l)=>{const c=s.join(ka),u=Gf(c)?l:c+ka+l,d=a(u);return this._viewFolderItems.get(c).add(d),s.push(l),s},[]);for(const{view:i,folderPath:s}of o){const l=new US(this,i,a(s));this._viewFolderItems.get(s).add(l),this._views.set(i.id,l);for(const c of l.tags)this._allTags.get(c).add(l)}}else this._rootViewFolder=new Hx(this,[""],void 0),this._viewFolders.set(this._rootViewFolder.path,this._rootViewFolder)}get asParsed(){return this}get asComputed(){return this}get asLayouted(){return this}get $styles(){return cr(this,"styles",()=>TL.from(this.$data.project.styles,this.$data.specification.customColors?{theme:{colors:this.$data.specification.customColors}}:void 0))}isParsed(){return this.stage==="parsed"}isLayouted(){return this.stage==="layouted"}isComputed(){return this.stage==="computed"}get $model(){return this.$data}get stage(){return this.$data[q0]}get projectId(){return this.$data.projectId??"default"}get project(){return this.$data.project??cr(this,Symbol.for("project"),()=>({id:this.projectId}))}get specification(){return this.$data.specification}get globals(){return cr(this,Symbol.for("globals"),()=>({predicates:{...this.$data.globals?.predicates},dynamicPredicates:{...this.$data.globals?.dynamicPredicates},styles:{...this.$data.globals?.styles}}))}element(r){if(r instanceof Bx)return r;const n=fr(r);return mt(this._elements.get(n),`Element ${n} not found`)}findElement(r){return this._elements.get(fr(r))??null}roots(){return this._rootElements.values()}elements(){return this._elements.values()}relationships(){return this._relations.values()}relationship(r,n){if(n==="deployment")return this.deployment.relationship(r);const o=fr(r);let a=this._relations.get(o)??null;return a||n==="model"?mt(a,`Model relation ${o} not found`):mt(this.deployment.findRelationship(o),`No model/deployment relation ${o} not found`)}findRelationship(r,n){if(n==="deployment")return this.deployment.findRelationship(r);let o=this._relations.get(fr(r))??null;return o||n==="model"?o:this.deployment.findRelationship(r)}views(){return this._views.values()}view(r){const n=fr(r);return mt(this._views.get(n),`View ${n} not found`)}findView(r){return this._views.get(r)??null}viewFolder(r){return mt(this._viewFolders.get(r),`View folder ${r} not found`)}get rootViewFolder(){return this._rootViewFolder}get hasViewFolders(){return this._viewFolders.size>1}viewFolderItems(r){return nt(this._viewFolders.has(r),`View folder ${r} not found`),this._viewFolderItems.get(r)}parent(r){const n=fr(r);return this._parents.get(n)||null}children(r){const n=fr(r);return this._children.get(n)}*siblings(r){const n=fr(r),o=this._parents.get(n),a=o?this._children.get(o.id).values():this.roots();for(const i of a)i.id!==n&&(yield i)}*ancestors(r){let n=fr(r),o;for(;o=this._parents.get(n);)yield o,n=o.id}*descendants(r){for(const n of this.children(r))yield n,yield*this.descendants(n.id)}*incoming(r,n="all"){const o=fr(r);for(const a of this._incoming.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=fr(r);for(const a of this._outgoing.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}get tags(){return cr(this,"tags",()=>FS([...this._allTags.keys()],rx))}get tagsSortedByUsage(){return cr(this,"tagsSortedByUsage",()=>X0([...this._allTags.entries()],iB(([r,n])=>({tag:r,count:n.size,tagged:n})),FS((r,n)=>rx(r.tag,n.tag)),lSe([iSe("count"),"desc"])))}findByTag(r,n){return Rd(this._allTags.get(r),o=>n==="elements"?o instanceof Bx:n==="views"?o instanceof US:n==="relationships"?o instanceof _B:!0)}*elementsOfKind(r){for(const n of this._elements.values())n.kind===r&&(yield n)}*elementsWhere(r){const n=Nd(r);for(const o of this._elements.values())n(o)&&(yield o)}*relationshipsWhere(r){const n=Nd(r);for(const o of this._relations.values())n(o)&&(yield o)}addElement(r){if(this._elements.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=new Bx(this,Object.freeze(r));this._elements.set(n.id,n);const o=nx(n.id);return o?(nt(this._elements.has(o),`Parent ${o} of ${n.id} not found`),this._parents.set(n.id,this.element(o)),this._children.get(o).add(n)):this._rootElements.add(n),n}addImportedElement(r,n){nt(!Zye(n.id),"Imported element already has global FQN");const o=jL(r,n.id);if(this._elements.has(o))throw new Error(`Element ${o} already exists`);const a=new Bx(this,Object.freeze({...n,id:o}));this._elements.set(a.id,a);let i=nx(a.id);for(;i;){if(i.includes(".")&&this._elements.has(i))return this._parents.set(a.id,this.element(i)),this._children.get(i).add(a),a;i=nx(i)}return this._rootElements.add(a),a}addRelation(r){if(this._relations.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new _B(this,Object.freeze(r)),{source:o,target:a}=n;this._relations.set(n.id,n),this._incoming.get(a.id).add(n),this._outgoing.get(o.id).add(n);const i=b0(o.id,a.id);if(i)for(const s of[i,...bd(i)])this._internal.get(s).add(n);for(const s of bd(o.id)){if(s===i)break;this._outgoing.get(s).add(n)}for(const s of bd(a.id)){if(s===i)break;this._incoming.get(s).add(n)}return n}}(e=>{e.EMPTY=e.create({_stage:"computed",projectId:"default",project:{id:"default"},specification:{elements:{},relationships:{},deployments:{},tags:{}},globals:{predicates:{},dynamicPredicates:{},styles:{}},deployments:{elements:{},relations:{}},elements:{},relations:{},views:{},imports:{}})})($d||($d={}));function Ux(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var mSe=e=>typeof e=="object"&&e!==null;function Pd(e){return Object.fromEntries(Object.entries(e??{}).filter(([r,n])=>n!==void 0))}var gSe=e=>e==="base";function ySe(e){return e.slice().filter(r=>!gSe(r))}function EB(e){return String.fromCharCode(e+(e>25?39:97))}function bSe(e){let r="",n;for(n=Math.abs(e);n>52;n=n/52|0)r=EB(n%52)+r;return EB(n%52)+r}function vSe(e,r){let n=r.length;for(;n;)e=e*33^r.charCodeAt(--n);return e}function xSe(e){return bSe(vSe(5381,e)>>>0)}var SB=/\s*!(important)?/i;function wSe(e){return typeof e=="string"?SB.test(e):!1}function kSe(e){return typeof e=="string"?e.replace(SB,"").trim():e}function VS(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var co=e=>{const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}},_Se=new Set(["__proto__","constructor","prototype"]);function qS(...e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{if(_Se.has(o))return;const a=r[o],i=n[o];Ux(a)&&Ux(i)?r[o]=qS(a,i):r[o]=i}),r),{})}var ESe=e=>e!=null;function YS(e,r,n={}){const{stop:o,getKey:a}=n;function i(s,l=[]){if(mSe(s)){const c={};for(const[u,d]of Object.entries(s)){const h=a?.(u,d)??u,p=[...l,h];if(o?.(s,p))return r(s,l);const g=i(d,p);ESe(g)&&(c[h]=g)}return c}return r(s,l)}return i(e)}function SSe(e,r){return Array.isArray(e)?e.map(n=>r(n)):Ux(e)?YS(e,n=>r(n)):r(e)}function CSe(e,r){return e.reduce((n,o,a)=>{const i=r[a];return o!=null&&(n[i]=o),n},{})}function CB(e,r,n=!0){const{utility:o,conditions:a}=r,{hasShorthand:i,resolveShorthand:s}=o;return YS(e,l=>Array.isArray(l)?CSe(l,a.breakpoints.keys):l,{stop:l=>Array.isArray(l),getKey:n?l=>i?s(l):l:void 0})}var TSe={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},ASe=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function TB(e){const{utility:r,hash:n,conditions:o=TSe}=e,a=s=>[r.prefix,s].filter(Boolean).join("-"),i=(s,l)=>{let c;if(n){const u=[...o.finalize(s),l];c=a(r.toHash(u,xSe))}else c=[...o.finalize(s),a(l)].join(":");return c};return co(({base:s,...l}={})=>{const c=Object.assign(l,s),u=CB(c,e),d=new Set;return YS(u,(h,p)=>{if(h==null)return;const g=wSe(h),[y,...x]=o.shift(p),w=ySe(x),k=r.transform(y,kSe(ASe(h)));let C=i(w,k.className);g&&(C=`${C}!`),d.add(C)}),Array.from(d).join(" ")})}function NSe(...e){return e.flat().filter(r=>Ux(r)&&Object.keys(Pd(r)).length>0)}function RSe(e){function r(a){const i=NSe(...a);return i.length===1?i:i.map(s=>CB(s,e))}function n(...a){return qS(...r(a))}function o(...a){return Object.assign({},...r(a))}return{mergeCss:co(n),assignCss:o}}var $Se=/([A-Z])/g,PSe=/^ms-/,MSe=co(e=>e.startsWith("--")?e:e.replace($Se,"-$1").replace(PSe,"-ms-").toLowerCase()),OSe=["min","max","clamp","calc"],DSe=new RegExp(`^(${OSe.join("|")})\\(.*\\)`),LSe=e=>typeof e=="string"&&DSe.test(e),ISe="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",zSe=`(?:${ISe.split(",").join("|")})`,jSe=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${zSe}$`),BSe=e=>typeof e=="string"&&jSe.test(e),FSe=e=>typeof e=="string"&&/^var\(--.+\)$/.test(e),Z0={map:SSe,isCssFunction:LSe,isCssVar:FSe,isCssUnit:BSe},Q0=(e,r)=>{if(!e?.defaultValues)return r;const n=typeof e.defaultValues=="function"?e.defaultValues(r):e.defaultValues;return Object.assign({},n,Pd(r))},HSe=(e={})=>{const r=o=>({className:[e.className,o].filter(Boolean).join("__"),base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?WS(e.compoundVariants,o):[]}),n=(e.slots??[]).map(o=>[o,r(o)]);for(const[o,a]of Object.entries(e.variants??{}))for(const[i,s]of Object.entries(a))n.forEach(([l,c])=>{c.variants[o]??={},c.variants[o][i]=s[l]??{}});return Object.fromEntries(n)},WS=(e,r)=>e.filter(n=>n.css[r]).map(n=>({...n,css:n.css[r]}));function Yn(e,...r){const n=Object.getOwnPropertyDescriptors(e),o=Object.keys(n),a=s=>{const l={};for(let c=0;ca(Array.isArray(s)?s:o.filter(s));return r.map(i).concat(a(o))}var XS=(...e)=>{const r=e.reduce((n,o)=>(o&&o.forEach(a=>n.add(a)),n),new Set([]));return Array.from(r)},AB=["htmlSize","htmlTranslate","htmlWidth","htmlHeight"];function USe(e){return AB.includes(e)?e.replace("html","").toLowerCase():e}function GS(e){return Object.fromEntries(Object.entries(e).map(([r,n])=>[USe(r),n]))}GS.keys=AB;const VSe="_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,base",NB=new Set(VSe.split(",")),qSe=/^@|&|&$/;function RB(e){return NB.has(e)||qSe.test(e)}const YSe=/^_/,WSe=/&|@/;function $B(e){return e.map(r=>NB.has(r)?r.replace(YSe,""):WSe.test(r)?`[${VS(r.trim())}]`:r)}function PB(e){return e.sort((r,n)=>{const o=RB(r),a=RB(n);return o&&!a?1:!o&&a?-1:0})}const XSe="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:transition,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle,layerStyle:layerStyle,animationStyle:animationStyle",MB=new Map,OB=new Map;XSe.split(",").forEach(e=>{const[r,n]=e.split(":"),[o,...a]=n.split("/");MB.set(r,o),a.length&&a.forEach(i=>{OB.set(i==="1"?o:i,r)})});const DB=e=>OB.get(e)||e,LB={conditions:{shift:PB,finalize:$B,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{transform:(e,r)=>{const n=DB(e);return{className:`${MB.get(n)||MSe(n)}_${VS(r)}`}},hasShorthand:!0,toHash:(e,r)=>r(e.join(":")),resolveShorthand:DB}},GSe=TB(LB),ye=(...e)=>GSe(Md(...e));ye.raw=(...e)=>Md(...e);const{mergeCss:Md}=RSe(LB);function Je(){let e="",r=0,n;for(;r({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function J0(e){const{base:r,variants:n,defaultVariants:o,compoundVariants:a}=IB(e),i=p=>({...o,...Pd(p)});function s(p={}){const g=i(p);let y={...r};for(const[w,k]of Object.entries(g))n[w]?.[k]&&(y=Md(y,n[w][k]));const x=KS(a,g);return Md(y,x)}function l(p){const g=IB(p.config),y=XS(p.variantKeys,Object.keys(n));return J0({base:Md(r,g.base),variants:Object.fromEntries(y.map(x=>[x,Md(n[x],g.variants[x])])),defaultVariants:qS(o,g.defaultVariants),compoundVariants:[...a,...g.compoundVariants]})}function c(p){return ye(s(p))}const u=Object.keys(n);function d(p){return Yn(p,u)}const h=Object.fromEntries(Object.entries(n).map(([p,g])=>[p,Object.keys(g)]));return Object.assign(co(c),{__cva__:!0,variantMap:h,variantKeys:u,raw:s,config:e,merge:l,splitVariantProps:d,getVariantProps:i})}function KS(e,r){let n={};return e.forEach(o=>{Object.entries(o).every(([a,i])=>a==="css"?!0:(Array.isArray(i)?i:[i]).some(s=>r[a]===s))&&(n=Md(n,o.css))}),n}function KSe(e,r,n,o){if(r.length>0&&typeof n?.[o]=="object")throw new Error(`[recipe:${e}:${o}] Conditions are not supported when using compound variants.`)}function ZSe(e){const r=Object.entries(HSe(e)).map(([h,p])=>[h,J0(p)]),n=e.defaultVariants??{},o=r.reduce((h,[p,g])=>(e.className&&(h[p]=g.config.className),h),{});function a(h){const p=r.map(([g,y])=>[g,Je(y(h),o[g])]);return Object.fromEntries(p)}function i(h){const p=r.map(([g,y])=>[g,y.raw(h)]);return Object.fromEntries(p)}const s=e.variants??{},l=Object.keys(s);function c(h){return Yn(h,l)}const u=h=>({...n,...Pd(h)}),d=Object.fromEntries(Object.entries(s).map(([h,p])=>[h,Object.keys(p)]));return Object.assign(co(a),{__cva__:!1,raw:i,config:e,variantMap:d,variantKeys:l,classNameMap:o,splitVariantProps:c,getVariantProps:u})}/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var QSe={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const yt=(e,r,n,o)=>{const a=E.forwardRef(({color:i="currentColor",size:s=24,stroke:l=2,title:c,className:u,children:d,...h},p)=>E.createElement("svg",{ref:p,...QSe[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${r}`,u].join(" "),...e==="filled"?{fill:i}:{strokeWidth:l,stroke:i},...h},[c&&E.createElement("title",{key:"svg-title"},c),...o.map(([g,y])=>E.createElement(g,y)),...Array.isArray(d)?d:[d]]));return a.displayName=`${n}`,a};/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const JSe=[["path",{d:"M12 6m-7 0a7 3 0 1 0 14 0a7 3 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M5 6v12c0 1.657 3.134 3 7 3s7 -1.343 7 -3v-12",key:"svg-1"}]],zB=yt("outline","cylinder","Cylinder",JSe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const e6e=[["path",{d:"M21 14.008v-5.018a1.98 1.98 0 0 0 -1 -1.717l-4 -2.008a2.016 2.016 0 0 0 -2 0l-10 5.008c-.619 .355 -1 1.01 -1 1.718v5.018c0 .709 .381 1.363 1 1.717l4 2.008a2.016 2.016 0 0 0 2 0l10 -5.008c.619 -.355 1 -1.01 1 -1.718z",key:"svg-0"}],["path",{d:"M9 21v-7.5",key:"svg-1"}],["path",{d:"M9 13.5l11.5 -5.5",key:"svg-2"}],["path",{d:"M3.5 11l5.5 2.5",key:"svg-3"}]],t6e=yt("outline","rectangular-prism","RectangularPrism",e6e);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const r6e=[["path",{d:"M3 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M17 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M5 11v-3a3 3 0 0 1 3 -3h8a3 3 0 0 1 3 3v3",key:"svg-3"}],["path",{d:"M16.5 8.5l2.5 2.5l2.5 -2.5",key:"svg-4"}]],n6e=yt("outline","reorder","Reorder",r6e);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const o6e=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],a6e=yt("outline","user","User",o6e);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const i6e=[["path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M11 4h2",key:"svg-1"}],["path",{d:"M12 17v.01",key:"svg-2"}]],s6e=yt("outline","device-mobile","DeviceMobile",i6e);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const l6e=[["path",{d:"M4 8h16",key:"svg-0"}],["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M8 4v4",key:"svg-2"}]],c6e=yt("outline","browser","Browser",l6e),ZS=E.createContext(null);function u6e({value:e,children:r}){return E.useContext(ZS)?b.jsx(b.Fragment,{children:r}):b.jsx(ZS.Provider,{value:e,children:r})}function Vx({element:e,className:r,style:n}){const o=E.useContext(ZS);if(!e||!e.icon||e.icon==="none")return null;let a;return e.icon.startsWith("http://")||e.icon.startsWith("https://")?a=b.jsx("img",{src:e.icon,alt:e.title}):o&&(a=b.jsx(o,{node:e})),a?b.jsx("div",{className:Je(r,"likec4-element-icon"),"data-likec4-icon":e.icon,style:n,children:a}):null}const d6e={browser:c6e,cylinder:zB,mobile:s6e,person:a6e,queue:n6e,rectangle:t6e,storage:zB};function h6e({element:e,className:r}){const n=b.jsx(Vx,{element:e,className:r});if(n)return n;const o=d6e[e.shape];return b.jsx("div",{className:Je(r,"likec4-shape-icon"),children:b.jsx(o,{})})}function Kf(e){const r=E.useRef(e);return r.current=e,E.useMemo(()=>Object.freeze({get current(){return r.current}}),[])}function jB(e){const r=Kf(e);E.useEffect(()=>()=>{r.current()},[])}function qx(e,r,n,o=0){const a=E.useRef(void 0),i=E.useRef(void 0),s=E.useRef(e),l=E.useRef(void 0),c=()=>{a.current&&(clearTimeout(a.current),a.current=void 0),i.current&&(clearTimeout(i.current),i.current=void 0)};return jB(c),E.useEffect(()=>{s.current=e},r),E.useMemo(()=>{const u=()=>{if(c(),!l.current)return;const h=l.current;l.current=void 0,s.current.apply(h.this,h.args)},d=function(...h){a.current&&clearTimeout(a.current),l.current={args:h,this:this},a.current=setTimeout(u,n),o>0&&!i.current&&(i.current=setTimeout(u,o))};return Object.defineProperties(d,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__debounced__${n}`}}),d},[n,o,...r])}const f6e=()=>{},Yx=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function p6e(e){const r=Kf(e),n=E.useRef(0),o=E.useCallback(()=>{Yx&&n.current&&(cancelAnimationFrame(n.current),n.current=0)},[]);return jB(o),[E.useMemo(()=>{const a=(...i)=>{Yx&&(o(),n.current=requestAnimationFrame(()=>{r.current(...i),n.current=0}))};return Object.defineProperties(a,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__raf`}}),a},[]),o]}const m6e=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(o!==r[n])return!1;return!0};function BB(e,r,n=m6e,o=E.useEffect,...a){const i=E.useRef(void 0);(i.current===void 0||Yx&&!n(i.current,r))&&(i.current=r),o(e,i.current,...a)}function g6e(e,r,n,o=0){E.useEffect(qx(e,r,n,o),r)}function FB(){const e=E.useRef(!0);return E.useEffect(()=>{e.current=!1},[]),e.current}const QS=Yx?E.useLayoutEffect:E.useEffect;function y6e(e){E.useEffect(()=>{e()},[])}function HB(e,r){const[n,o]=p6e(e);E.useEffect(()=>(n(),o),r)}const b6e=e=>(e+1)%Number.MAX_SAFE_INTEGER;function v6e(){const[,e]=E.useState(0);return E.useCallback(()=>{e(b6e)},[])}function UB(e,r){const n=FB();E.useEffect(n?f6e:e,r)}const x6e=e=>{e&&clearTimeout(e)};function Wx(e,r){const n=Kf(e),o=Kf(r),a=E.useRef(null),i=E.useCallback(()=>{x6e(a.current)},[]),s=E.useCallback(()=>{o.current!==void 0&&(i(),a.current=setTimeout(()=>{n.current()},o.current))},[]);return E.useEffect(()=>(s(),i),[r]),[i,s]}const VB=(e,r,n)=>{const o=E.useRef(void 0);return(o.current===void 0||!n(o.current,r))&&(o.current=r),E.useMemo(e,o.current)};function an(e){if(typeof e=="string"||typeof e=="number")return""+e;let r="";if(Array.isArray(e))for(let n=0,o;n{}};function Xx(){for(var e=0,r=arguments.length,n={},o;e=0&&(o=n.slice(a+1),n=n.slice(0,a)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}Gx.prototype=Xx.prototype={constructor:Gx,on:function(e,r){var n=this._,o=k6e(e+"",n),a,i=-1,s=o.length;if(arguments.length<2){for(;++i0)for(var n=new Array(a),o=0,a,i;o=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),YB.hasOwnProperty(r)?{space:YB[r],local:e}:e}function E6e(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===JS&&r.documentElement.namespaceURI===JS?r.createElement(e):r.createElementNS(n,e)}}function S6e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function WB(e){var r=Kx(e);return(r.local?S6e:E6e)(r)}function C6e(){}function e6(e){return e==null?C6e:function(){return this.querySelector(e)}}function T6e(e){typeof e!="function"&&(e=e6(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a=_&&(_=C+1);!(A=w[_])&&++_=0;)(s=o[a])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function Q6e(e){e||(e=J6e);function r(h,p){return h&&p?e(h.__data__,p.__data__):!h-!p}for(var n=this._groups,o=n.length,a=new Array(o),i=0;ir?1:e>=r?0:NaN}function eCe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function tCe(){return Array.from(this)}function rCe(){for(var e=this._groups,r=0,n=e.length;r1?this.each((r==null?fCe:typeof r=="function"?mCe:pCe)(e,r,n??"")):Zf(this.node(),e)}function Zf(e,r){return e.style.getPropertyValue(r)||QB(e).getComputedStyle(e,null).getPropertyValue(r)}function yCe(e){return function(){delete this[e]}}function bCe(e,r){return function(){this[e]=r}}function vCe(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function xCe(e,r){return arguments.length>1?this.each((r==null?yCe:typeof r=="function"?vCe:bCe)(e,r)):this.node()[e]}function JB(e){return e.trim().split(/^|\s+/)}function t6(e){return e.classList||new eF(e)}function eF(e){this._node=e,this._names=JB(e.getAttribute("class")||"")}eF.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function tF(e,r){for(var n=t6(e),o=-1,a=r.length;++o=0&&(n=r.slice(o+1),r=r.slice(0,o)),{type:r,name:n}})}function XCe(e){return function(){var r=this.__on;if(r){for(var n=0,o=-1,a=r.length,i;n()=>e;function n6(e,{sourceEvent:r,subject:n,target:o,identifier:a,active:i,x:s,y:l,dx:c,dy:u,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:d}})}n6.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function oTe(e){return!e.ctrlKey&&!e.button}function aTe(){return this.parentNode}function iTe(e,r){return r??{x:e.x,y:e.y}}function sTe(){return navigator.maxTouchPoints||"ontouchstart"in this}function sF(){var e=oTe,r=aTe,n=iTe,o=sTe,a={},i=Xx("start","drag","end"),s=0,l,c,u,d,h=0;function p(T){T.on("mousedown.drag",g).filter(o).on("touchstart.drag",w).on("touchmove.drag",k,nTe).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(T,A){if(!(d||!e.call(this,T,A))){var N=_(this,r.call(this,T,A),T,A,"mouse");N&&(Ea(T.view).on("mousemove.drag",y,t1).on("mouseup.drag",x,t1),aF(T.view),r6(T),u=!1,l=T.clientX,c=T.clientY,N("start",T))}}function y(T){if(Qf(T),!u){var A=T.clientX-l,N=T.clientY-c;u=A*A+N*N>h}a.mouse("drag",T)}function x(T){Ea(T.view).on("mousemove.drag mouseup.drag",null),iF(T.view,u),Qf(T),a.mouse("end",T)}function w(T,A){if(e.call(this,T,A)){var N=T.changedTouches,$=r.call(this,T,A),R=N.length,M,O;for(M=0;M>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?ew(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?ew(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=cTe.exec(e))?new Qo(r[1],r[2],r[3],1):(r=uTe.exec(e))?new Qo(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=dTe.exec(e))?ew(r[1],r[2],r[3],r[4]):(r=hTe.exec(e))?ew(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=fTe.exec(e))?mF(r[1],r[2]/100,r[3]/100,1):(r=pTe.exec(e))?mF(r[1],r[2]/100,r[3]/100,r[4]):cF.hasOwnProperty(e)?hF(cF[e]):e==="transparent"?new Qo(NaN,NaN,NaN,0):null}function hF(e){return new Qo(e>>16&255,e>>8&255,e&255,1)}function ew(e,r,n,o){return o<=0&&(e=r=n=NaN),new Qo(e,r,n,o)}function yTe(e){return e instanceof r1||(e=Od(e)),e?(e=e.rgb(),new Qo(e.r,e.g,e.b,e.opacity)):new Qo}function a6(e,r,n,o){return arguments.length===1?yTe(e):new Qo(e,r,n,o??1)}function Qo(e,r,n,o){this.r=+e,this.g=+r,this.b=+n,this.opacity=+o}o6(Qo,a6,lF(r1,{brighter(e){return e=e==null?Jx:Math.pow(Jx,e),new Qo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?n1:Math.pow(n1,e),new Qo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qo(Dd(this.r),Dd(this.g),Dd(this.b),tw(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fF,formatHex:fF,formatHex8:bTe,formatRgb:pF,toString:pF}));function fF(){return`#${Ld(this.r)}${Ld(this.g)}${Ld(this.b)}`}function bTe(){return`#${Ld(this.r)}${Ld(this.g)}${Ld(this.b)}${Ld((isNaN(this.opacity)?1:this.opacity)*255)}`}function pF(){const e=tw(this.opacity);return`${e===1?"rgb(":"rgba("}${Dd(this.r)}, ${Dd(this.g)}, ${Dd(this.b)}${e===1?")":`, ${e})`}`}function tw(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ld(e){return e=Dd(e),(e<16?"0":"")+e.toString(16)}function mF(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new qi(e,r,n,o)}function gF(e){if(e instanceof qi)return new qi(e.h,e.s,e.l,e.opacity);if(e instanceof r1||(e=Od(e)),!e)return new qi;if(e instanceof qi)return e;e=e.rgb();var r=e.r/255,n=e.g/255,o=e.b/255,a=Math.min(r,n,o),i=Math.max(r,n,o),s=NaN,l=i-a,c=(i+a)/2;return l?(r===i?s=(n-o)/l+(n0&&c<1?0:s,new qi(s,l,c,e.opacity)}function vTe(e,r,n,o){return arguments.length===1?gF(e):new qi(e,r,n,o??1)}function qi(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}o6(qi,vTe,lF(r1,{brighter(e){return e=e==null?Jx:Math.pow(Jx,e),new qi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?n1:Math.pow(n1,e),new qi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*r,a=2*n-o;return new Qo(i6(e>=240?e-240:e+120,a,o),i6(e,a,o),i6(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new qi(yF(this.h),rw(this.s),rw(this.l),tw(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tw(this.opacity);return`${e===1?"hsl(":"hsla("}${yF(this.h)}, ${rw(this.s)*100}%, ${rw(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yF(e){return e=(e||0)%360,e<0?e+360:e}function rw(e){return Math.max(0,Math.min(1,e||0))}function i6(e,r,n){return(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)*255}const s6=e=>()=>e;function xTe(e,r){return function(n){return e+n*r}}function wTe(e,r,n){return e=Math.pow(e,n),r=Math.pow(r,n)-e,n=1/n,function(o){return Math.pow(e+o*r,n)}}function kTe(e){return(e=+e)==1?bF:function(r,n){return n-r?wTe(r,n,e):s6(isNaN(r)?n:r)}}function bF(e,r){var n=r-e;return n?xTe(e,n):s6(isNaN(e)?r:e)}const nw=(function e(r){var n=kTe(r);function o(a,i){var s=n((a=a6(a)).r,(i=a6(i)).r),l=n(a.g,i.g),c=n(a.b,i.b),u=bF(a.opacity,i.opacity);return function(d){return a.r=s(d),a.g=l(d),a.b=c(d),a.opacity=u(d),a+""}}return o.gamma=e,o})(1);function _Te(e,r){r||(r=[]);var n=e?Math.min(r.length,e.length):0,o=r.slice(),a;return function(i){for(a=0;an&&(i=r.slice(n,i),l[s]?l[s]+=i:l[++s]=i),(o=o[0])===(a=a[0])?l[s]?l[s]+=a:l[++s]=a:(l[++s]=null,c.push({i:s,x:Ks(o,a)})),n=c6.lastIndex;return n180?d+=360:d-u>180&&(u+=360),p.push({i:h.push(a(h)+"rotate(",null,o)-2,x:Ks(u,d)})):d&&h.push(a(h)+"rotate("+d+o)}function l(u,d,h,p){u!==d?p.push({i:h.push(a(h)+"skewX(",null,o)-2,x:Ks(u,d)}):d&&h.push(a(h)+"skewX("+d+o)}function c(u,d,h,p,g,y){if(u!==h||d!==p){var x=g.push(a(g)+"scale(",null,",",null,")");y.push({i:x-4,x:Ks(u,h)},{i:x-2,x:Ks(d,p)})}else(h!==1||p!==1)&&g.push(a(g)+"scale("+h+","+p+")")}return function(u,d){var h=[],p=[];return u=e(u),d=e(d),i(u.translateX,u.translateY,d.translateX,d.translateY,h,p),s(u.rotate,d.rotate,h,p),l(u.skewX,d.skewX,h,p),c(u.scaleX,u.scaleY,d.scaleX,d.scaleY,h,p),u=d=null,function(g){for(var y=-1,x=p.length,w;++y=0&&e._call.call(void 0,r),e=e._next;--ep}function AF(){Id=(sw=c1.now())+lw,ep=i1=0;try{zTe()}finally{ep=0,BTe(),Id=0}}function jTe(){var e=c1.now(),r=e-sw;r>SF&&(lw-=r,sw=e)}function BTe(){for(var e,r=iw,n,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(n=r._next,r._next=null,r=e?e._next=n:iw=n);l1=e,d6(o)}function d6(e){if(!ep){i1&&(i1=clearTimeout(i1));var r=e-Id;r>24?(e<1/0&&(i1=setTimeout(AF,e-c1.now()-lw)),s1&&(s1=clearInterval(s1))):(s1||(sw=c1.now(),s1=setInterval(jTe,SF)),ep=1,CF(AF))}}function NF(e,r,n){var o=new cw;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var FTe=Xx("start","end","cancel","interrupt"),HTe=[],RF=0,$F=1,h6=2,uw=3,PF=4,f6=5,dw=6;function hw(e,r,n,o,a,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;UTe(e,n,{name:r,index:o,group:a,on:FTe,tween:HTe,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:RF})}function p6(e,r){var n=Yi(e,r);if(n.state>RF)throw new Error("too late; already scheduled");return n}function Zs(e,r){var n=Yi(e,r);if(n.state>uw)throw new Error("too late; already running");return n}function Yi(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function UTe(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=TF(i,0,n.time);function i(u){n.state=$F,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var d,h,p,g;if(n.state!==$F)return c();for(d in o)if(g=o[d],g.name===n.name){if(g.state===uw)return NF(s);g.state===PF?(g.state=dw,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[d]):+dh6&&o.state=0&&(r=r.slice(0,n)),!r||r==="start"})}function v8e(e,r,n){var o,a,i=b8e(r)?p6:Zs;return function(){var s=i(this,e),l=s.on;l!==o&&(a=(o=l).copy()).on(r,n),s.on=a}}function x8e(e,r){var n=this._id;return arguments.length<2?Yi(this.node(),n).on.on(e):this.each(v8e(n,e,r))}function w8e(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function k8e(){return this.on("end.remove",w8e(this._id))}function _8e(e){var r=this._name,n=this._id;typeof e!="function"&&(e=e6(e));for(var o=this._groups,a=o.length,i=new Array(a),s=0;s()=>e;function X8e(e,{sourceEvent:r,target:n,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function Hl(e,r,n){this.k=e,this.x=r,this.y=n}Hl.prototype={constructor:Hl,scale:function(e){return e===1?this:new Hl(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new Hl(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mw=new Hl(1,0,0);LF.prototype=Hl.prototype;function LF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return mw;return e.__zoom}function g6(e){e.stopImmediatePropagation()}function u1(e){e.preventDefault(),e.stopImmediatePropagation()}function G8e(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function K8e(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function IF(){return this.__zoom||mw}function Z8e(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Q8e(){return navigator.maxTouchPoints||"ontouchstart"in this}function J8e(e,r,n){var o=e.invertX(r[0][0])-n[0][0],a=e.invertX(r[1][0])-n[1][0],i=e.invertY(r[0][1])-n[0][1],s=e.invertY(r[1][1])-n[1][1];return e.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function zF(){var e=G8e,r=K8e,n=J8e,o=Z8e,a=Q8e,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,c=aw,u=Xx("start","zoom","end"),d,h,p,g=500,y=150,x=0,w=10;function k(D){D.property("__zoom",IF).on("wheel.zoom",R,{passive:!1}).on("mousedown.zoom",M).on("dblclick.zoom",O).filter(a).on("touchstart.zoom",B).on("touchmove.zoom",I).on("touchend.zoom touchcancel.zoom",Y).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(D,V,L,U){var q=D.selection?D.selection():D;q.property("__zoom",IF),D!==q?A(D,V,L,U):q.interrupt().each(function(){N(this,arguments).event(U).start().zoom(null,typeof V=="function"?V.apply(this,arguments):V).end()})},k.scaleBy=function(D,V,L,U){k.scaleTo(D,function(){var q=this.__zoom.k,X=typeof V=="function"?V.apply(this,arguments):V;return q*X},L,U)},k.scaleTo=function(D,V,L,U){k.transform(D,function(){var q=r.apply(this,arguments),X=this.__zoom,F=L==null?T(q):typeof L=="function"?L.apply(this,arguments):L,J=X.invert(F),Q=typeof V=="function"?V.apply(this,arguments):V;return n(_(C(X,Q),F,J),q,s)},L,U)},k.translateBy=function(D,V,L,U){k.transform(D,function(){return n(this.__zoom.translate(typeof V=="function"?V.apply(this,arguments):V,typeof L=="function"?L.apply(this,arguments):L),r.apply(this,arguments),s)},null,U)},k.translateTo=function(D,V,L,U,q){k.transform(D,function(){var X=r.apply(this,arguments),F=this.__zoom,J=U==null?T(X):typeof U=="function"?U.apply(this,arguments):U;return n(mw.translate(J[0],J[1]).scale(F.k).translate(typeof V=="function"?-V.apply(this,arguments):-V,typeof L=="function"?-L.apply(this,arguments):-L),X,s)},U,q)};function C(D,V){return V=Math.max(i[0],Math.min(i[1],V)),V===D.k?D:new Hl(V,D.x,D.y)}function _(D,V,L){var U=V[0]-L[0]*D.k,q=V[1]-L[1]*D.k;return U===D.x&&q===D.y?D:new Hl(D.k,U,q)}function T(D){return[(+D[0][0]+ +D[1][0])/2,(+D[0][1]+ +D[1][1])/2]}function A(D,V,L,U){D.on("start.zoom",function(){N(this,arguments).event(U).start()}).on("interrupt.zoom end.zoom",function(){N(this,arguments).event(U).end()}).tween("zoom",function(){var q=this,X=arguments,F=N(q,X).event(U),J=r.apply(q,X),Q=L==null?T(J):typeof L=="function"?L.apply(q,X):L,z=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),W=q.__zoom,G=typeof V=="function"?V.apply(q,X):V,Z=c(W.invert(Q).concat(z/W.k),G.invert(Q).concat(z/G.k));return function(oe){if(oe===1)oe=G;else{var ee=Z(oe),re=z/ee[2];oe=new Hl(re,Q[0]-ee[0]*re,Q[1]-ee[1]*re)}F.zoom(null,oe)}})}function N(D,V,L){return!L&&D.__zooming||new $(D,V)}function $(D,V){this.that=D,this.args=V,this.active=0,this.sourceEvent=null,this.extent=r.apply(D,V),this.taps=0}$.prototype={event:function(D){return D&&(this.sourceEvent=D),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(D,V){return this.mouse&&D!=="mouse"&&(this.mouse[1]=V.invert(this.mouse[0])),this.touch0&&D!=="touch"&&(this.touch0[1]=V.invert(this.touch0[0])),this.touch1&&D!=="touch"&&(this.touch1[1]=V.invert(this.touch1[0])),this.that.__zoom=V,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(D){var V=Ea(this.that).datum();u.call(D,this.that,new X8e(D,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:u}),V)}};function R(D,...V){if(!e.apply(this,arguments))return;var L=N(this,V).event(D),U=this.__zoom,q=Math.max(i[0],Math.min(i[1],U.k*Math.pow(2,o.apply(this,arguments)))),X=Vi(D);if(L.wheel)(L.mouse[0][0]!==X[0]||L.mouse[0][1]!==X[1])&&(L.mouse[1]=U.invert(L.mouse[0]=X)),clearTimeout(L.wheel);else{if(U.k===q)return;L.mouse=[X,U.invert(X)],fw(this),L.start()}u1(D),L.wheel=setTimeout(F,y),L.zoom("mouse",n(_(C(U,q),L.mouse[0],L.mouse[1]),L.extent,s));function F(){L.wheel=null,L.end()}}function M(D,...V){if(p||!e.apply(this,arguments))return;var L=D.currentTarget,U=N(this,V,!0).event(D),q=Ea(D.view).on("mousemove.zoom",Q,!0).on("mouseup.zoom",z,!0),X=Vi(D,L),F=D.clientX,J=D.clientY;aF(D.view),g6(D),U.mouse=[X,this.__zoom.invert(X)],fw(this),U.start();function Q(W){if(u1(W),!U.moved){var G=W.clientX-F,Z=W.clientY-J;U.moved=G*G+Z*Z>x}U.event(W).zoom("mouse",n(_(U.that.__zoom,U.mouse[0]=Vi(W,L),U.mouse[1]),U.extent,s))}function z(W){q.on("mousemove.zoom mouseup.zoom",null),iF(W.view,U.moved),u1(W),U.event(W).end()}}function O(D,...V){if(e.apply(this,arguments)){var L=this.__zoom,U=Vi(D.changedTouches?D.changedTouches[0]:D,this),q=L.invert(U),X=L.k*(D.shiftKey?.5:2),F=n(_(C(L,X),U,q),r.apply(this,V),s);u1(D),l>0?Ea(this).transition().duration(l).call(A,F,U,D):Ea(this).call(k.transform,F,U,D)}}function B(D,...V){if(e.apply(this,arguments)){var L=D.touches,U=L.length,q=N(this,V,D.changedTouches.length===U).event(D),X,F,J,Q;for(g6(D),F=0;F"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:r,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${r}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},d1=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],jF=["Enter"," ","Escape"],BF={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:r,y:n})=>`Moved selected node ${e}. New position, x: ${r}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var tp;(function(e){e.Strict="strict",e.Loose="loose"})(tp||(tp={}));var zd;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(zd||(zd={}));var h1;(function(e){e.Partial="partial",e.Full="full"})(h1||(h1={}));const FF={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var eu;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(eu||(eu={}));var gw;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(gw||(gw={}));var tt;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(tt||(tt={}));const HF={[tt.Left]:tt.Right,[tt.Right]:tt.Left,[tt.Top]:tt.Bottom,[tt.Bottom]:tt.Top};function UF(e){return e===null?null:e?"valid":"invalid"}const VF=e=>"id"in e&&"source"in e&&"target"in e,e9e=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),y6=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),f1=(e,r=[0,0])=>{const{width:n,height:o}=Wn(e),a=e.origin??r,i=n*a[0],s=o*a[1];return{x:e.position.x-i,y:e.position.y-s}},qF=(e,r={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,a)=>{const i=typeof a=="string";let s=!r.nodeLookup&&!i?a:void 0;r.nodeLookup&&(s=i?r.nodeLookup.get(a):y6(a)?a:r.nodeLookup.get(a.id));const l=s?bw(s,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return yw(o,l)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return p1(n)},rp=(e,r={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(o=>{if(r.filter===void 0||r.filter(o)){const a=bw(o);n=yw(n,a)}}),p1(n)},b6=(e,r,[n,o,a]=[0,0,1],i=!1,s=!1)=>{const l={...y1(r,[n,o,a]),width:r.width/a,height:r.height/a},c=[];for(const u of e.values()){const{measured:d,selectable:h=!0,hidden:p=!1}=u;if(s&&!h||p)continue;const g=d.width??u.width??u.initialWidth??null,y=d.height??u.height??u.initialHeight??null,x=m1(l,Bd(u)),w=(g??0)*(y??0),k=i&&x>0;(!u.internals.handleBounds||k||x>=w||u.dragging)&&c.push(u)}return c},t9e=(e,r)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),r.filter(o=>n.has(o.source)||n.has(o.target))};function r9e(e,r){const n=new Map,o=r?.nodes?new Set(r.nodes.map(a=>a.id)):null;return e.forEach(a=>{a.measured.width&&a.measured.height&&(r?.includeHiddenNodes||!a.hidden)&&(!o||o.has(a.id))&&n.set(a.id,a)}),n}async function n9e({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},s){if(e.size===0)return Promise.resolve(!0);const l=r9e(e,s),c=rp(l),u=tu(c,r,n,s?.minZoom??a,s?.maxZoom??i,s?.padding??.1);return await o.setViewport(u,{duration:s?.duration,ease:s?.ease,interpolate:s?.interpolate}),Promise.resolve(!0)}function YF({nodeId:e,nextPosition:r,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:a,onError:i}){const s=n.get(e),l=s.parentId?n.get(s.parentId):void 0,{x:c,y:u}=l?l.internals.positionAbsolute:{x:0,y:0},d=s.origin??o;let h=s.extent||a;if(s.extent==="parent"&&!s.expandParent)if(!l)i?.("005",Qs.error005());else{const g=l.measured.width,y=l.measured.height;g&&y&&(h=[[c,u],[c+g,u+y]])}else l&&ip(s.extent)&&(h=[[s.extent[0][0]+c,s.extent[0][1]+u],[s.extent[1][0]+c,s.extent[1][1]+u]]);const p=ip(h)?jd(r,h,s.measured):r;return(s.measured.width===void 0||s.measured.height===void 0)&&i?.("015",Qs.error015()),{position:{x:p.x-c+(s.measured.width??0)*d[0],y:p.y-u+(s.measured.height??0)*d[1]},positionAbsolute:p}}async function o9e({nodesToRemove:e=[],edgesToRemove:r=[],nodes:n,edges:o,onBeforeDelete:a}){const i=new Set(e.map(h=>h.id)),s=[];for(const h of n){if(h.deletable===!1)continue;const p=i.has(h.id),g=!p&&h.parentId&&s.find(y=>y.id===h.parentId);(p||g)&&s.push(h)}const l=new Set(r.map(h=>h.id)),c=o.filter(h=>h.deletable!==!1),u=t9e(s,c);for(const h of c)l.has(h.id)&&!u.find(p=>p.id===h.id)&&u.push(h);if(!a)return{edges:u,nodes:s};const d=await a({nodes:s,edges:u});return typeof d=="boolean"?d?{edges:u,nodes:s}:{edges:[],nodes:[]}:d}const np=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),jd=(e={x:0,y:0},r,n)=>({x:np(e.x,r[0][0],r[1][0]-(n?.width??0)),y:np(e.y,r[0][1],r[1][1]-(n?.height??0))});function WF(e,r,n){const{width:o,height:a}=Wn(n),{x:i,y:s}=n.internals.positionAbsolute;return jd(e,[[i,s],[i+o,s+a]],r)}const XF=(e,r,n)=>en?-np(Math.abs(e-n),1,r)/r:0,GF=(e,r,n=15,o=40)=>{const a=XF(e.x,o,r.width-o)*n,i=XF(e.y,o,r.height-o)*n;return[a,i]},yw=(e,r)=>({x:Math.min(e.x,r.x),y:Math.min(e.y,r.y),x2:Math.max(e.x2,r.x2),y2:Math.max(e.y2,r.y2)}),v6=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),p1=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),Bd=(e,r=[0,0])=>{const{x:n,y:o}=y6(e)?e.internals.positionAbsolute:f1(e,r);return{x:n,y:o,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},bw=(e,r=[0,0])=>{const{x:n,y:o}=y6(e)?e.internals.positionAbsolute:f1(e,r);return{x:n,y:o,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:o+(e.measured?.height??e.height??e.initialHeight??0)}},vw=(e,r)=>p1(yw(v6(e),v6(r))),m1=(e,r)=>{const n=Math.max(0,Math.min(e.x+e.width,r.x+r.width)-Math.max(e.x,r.x)),o=Math.max(0,Math.min(e.y+e.height,r.y+r.height)-Math.max(e.y,r.y));return Math.ceil(n*o)},KF=e=>Wi(e.width)&&Wi(e.height)&&Wi(e.x)&&Wi(e.y),Wi=e=>!isNaN(e)&&isFinite(e),a9e=(e,r)=>{},g1=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),y1=({x:e,y:r},[n,o,a],i=!1,s=[1,1])=>{const l={x:(e-n)/a,y:(r-o)/a};return i?g1(l,s):l},xw=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function op(e,r){if(typeof e=="number")return Math.floor((r-r/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(r*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function i9e(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=op(e,n),a=op(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=op(e.top??e.y??0,n),a=op(e.bottom??e.y??0,n),i=op(e.left??e.x??0,r),s=op(e.right??e.x??0,r);return{top:o,right:s,bottom:a,left:i,x:i+s,y:o+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function s9e(e,r,n,o,a,i){const{x:s,y:l}=xw(e,[r,n,o]),{x:c,y:u}=xw({x:e.x+e.width,y:e.y+e.height},[r,n,o]),d=a-c,h=i-u;return{left:Math.floor(s),top:Math.floor(l),right:Math.floor(d),bottom:Math.floor(h)}}const tu=(e,r,n,o,a,i)=>{const s=i9e(i,r,n),l=(r-s.x)/e.width,c=(n-s.y)/e.height,u=Math.min(l,c),d=np(u,o,a),h=e.x+e.width/2,p=e.y+e.height/2,g=r/2-h*d,y=n/2-p*d,x=s9e(e,g,y,d,r,n),w={left:Math.min(x.left-s.left,0),top:Math.min(x.top-s.top,0),right:Math.min(x.right-s.right,0),bottom:Math.min(x.bottom-s.bottom,0)};return{x:g-w.left+w.right,y:y-w.top+w.bottom,zoom:d}},ap=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function ip(e){return e!=null&&e!=="parent"}function Wn(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function ZF(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function QF(e,r={width:0,height:0},n,o,a){const i={...e},s=o.get(n);if(s){const l=s.origin||a;i.x+=s.internals.positionAbsolute.x-(r.width??0)*l[0],i.y+=s.internals.positionAbsolute.y-(r.height??0)*l[1]}return i}function JF(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function l9e(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function c9e(e){return{...BF,...e||{}}}function b1(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:s}=Xi(e),l=y1({x:i-(a?.left??0),y:s-(a?.top??0)},o),{x:c,y:u}=n?g1(l,r):l;return{xSnapped:c,ySnapped:u,...l}}const x6=e=>({width:e.offsetWidth,height:e.offsetHeight}),eH=e=>e?.getRootNode?.()||window?.document,u9e=["INPUT","SELECT","TEXTAREA"];function tH(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:u9e.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const rH=e=>"clientX"in e,Xi=(e,r)=>{const n=rH(e),o=n?e.clientX:e.touches?.[0].clientX,a=n?e.clientY:e.touches?.[0].clientY;return{x:o-(r?.left??0),y:a-(r?.top??0)}},nH=(e,r,n,o,a)=>{const i=r.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(s=>{const l=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:a,position:s.getAttribute("data-handlepos"),x:(l.left-n.left)/o,y:(l.top-n.top)/o,...x6(s)}})};function oH({sourceX:e,sourceY:r,targetX:n,targetY:o,sourceControlX:a,sourceControlY:i,targetControlX:s,targetControlY:l}){const c=e*.125+a*.375+s*.375+n*.125,u=r*.125+i*.375+l*.375+o*.125,d=Math.abs(c-e),h=Math.abs(u-r);return[c,u,d,h]}function ww(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function aH({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case tt.Left:return[r-ww(r-o,i),n];case tt.Right:return[r+ww(o-r,i),n];case tt.Top:return[r,n-ww(n-a,i)];case tt.Bottom:return[r,n+ww(a-n,i)]}}function kw({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top,curvature:s=.25}){const[l,c]=aH({pos:n,x1:e,y1:r,x2:o,y2:a,c:s}),[u,d]=aH({pos:i,x1:o,y1:a,x2:e,y2:r,c:s}),[h,p,g,y]=oH({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:l,sourceControlY:c,targetControlX:u,targetControlY:d});return[`M${e},${r} C${l},${c} ${u},${d} ${o},${a}`,h,p,g,y]}function iH({sourceX:e,sourceY:r,targetX:n,targetY:o}){const a=Math.abs(n-e)/2,i=n0}const f9e=({source:e,sourceHandle:r,target:n,targetHandle:o})=>`xy-edge__${e}${r||""}-${n}${o||""}`,p9e=(e,r)=>r.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),m9e=(e,r)=>{if(!e.source||!e.target)return r;let n;return VF(e)?n={...e}:n={...e,id:f9e(e)},p9e(n,r)?r:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,r.concat(n))};function sH({sourceX:e,sourceY:r,targetX:n,targetY:o}){const[a,i,s,l]=iH({sourceX:e,sourceY:r,targetX:n,targetY:o});return[`M ${e},${r}L ${n},${o}`,a,i,s,l]}const lH={[tt.Left]:{x:-1,y:0},[tt.Right]:{x:1,y:0},[tt.Top]:{x:0,y:-1},[tt.Bottom]:{x:0,y:1}},g9e=({source:e,sourcePosition:r=tt.Bottom,target:n})=>r===tt.Left||r===tt.Right?e.xMath.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2));function y9e({source:e,sourcePosition:r=tt.Bottom,target:n,targetPosition:o=tt.Top,center:a,offset:i,stepPosition:s}){const l=lH[r],c=lH[o],u={x:e.x+l.x*i,y:e.y+l.y*i},d={x:n.x+c.x*i,y:n.y+c.y*i},h=g9e({source:u,sourcePosition:r,target:d}),p=h.x!==0?"x":"y",g=h[p];let y=[],x,w;const k={x:0,y:0},C={x:0,y:0},[,,_,T]=iH({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(l[p]*c[p]===-1){p==="x"?(x=a.x??u.x+(d.x-u.x)*s,w=a.y??(u.y+d.y)/2):(x=a.x??(u.x+d.x)/2,w=a.y??u.y+(d.y-u.y)*s);const A=[{x,y:u.y},{x,y:d.y}],N=[{x:u.x,y:w},{x:d.x,y:w}];l[p]===g?y=p==="x"?A:N:y=p==="x"?N:A}else{const A=[{x:u.x,y:d.y}],N=[{x:d.x,y:u.y}];if(p==="x"?y=l.x===g?N:A:y=l.y===g?A:N,r===o){const B=Math.abs(e[p]-n[p]);if(B<=i){const I=Math.min(i-1,i-B);l[p]===g?k[p]=(u[p]>e[p]?-1:1)*I:C[p]=(d[p]>n[p]?-1:1)*I}}if(r!==o){const B=p==="x"?"y":"x",I=l[p]===c[B],Y=u[B]>d[B],D=u[B]=O?(x=($.x+R.x)/2,w=y[0].y):(x=y[0].x,w=($.y+R.y)/2)}return[[e,{x:u.x+k.x,y:u.y+k.y},...y,{x:d.x+C.x,y:d.y+C.y},n],x,w,_,T]}function b9e(e,r,n,o){const a=Math.min(cH(e,r)/2,cH(r,n)/2,o),{x:i,y:s}=r;if(e.x===i&&i===n.x||e.y===s&&s===n.y)return`L${i} ${s}`;if(e.y===s){const u=e.x{let _="";return C>0&&Cn.id===r):e[0])||null}function w6(e,r){return e?typeof e=="string"?e:`${r?`${r}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`:""}function v9e(e,{id:r,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:a}){const i=new Set;return e.reduce((s,l)=>([l.markerStart||o,l.markerEnd||a].forEach(c=>{if(c&&typeof c=="object"){const u=w6(c,r);i.has(u)||(s.push({id:u,color:c.color||n,...c}),i.add(u))}}),s),[]).sort((s,l)=>s.id.localeCompare(l.id))}function x9e(e,r,n,o,a){let i=.5;a==="start"?i=0:a==="end"&&(i=1);let s=[(e.x+e.width*i)*r.zoom+r.x,e.y*r.zoom+r.y-o],l=[-100*i,-100];switch(n){case tt.Right:s=[(e.x+e.width)*r.zoom+r.x+o,(e.y+e.height*i)*r.zoom+r.y],l=[0,-100*i];break;case tt.Bottom:s[1]=(e.y+e.height)*r.zoom+r.y+o,l[1]=0;break;case tt.Left:s=[e.x*r.zoom+r.x-o,(e.y+e.height*i)*r.zoom+r.y],l=[-100,-100*i];break}return`translate(${s[0]}px, ${s[1]}px) translate(${l[0]}%, ${l[1]}%)`}const k6={nodeOrigin:[0,0],nodeExtent:d1,elevateNodesOnSelect:!0,defaults:{}},w9e={...k6,checkEquality:!0};function _6(e,r){const n={...e};for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n}function k9e(e,r,n){const o=_6(k6,n);for(const a of e.values())if(a.parentId)S6(a,e,r,o);else{const i=f1(a,o.nodeOrigin),s=ip(a.extent)?a.extent:o.nodeExtent,l=jd(i,s,Wn(a));a.internals.positionAbsolute=l}}function _9e(e,r){if(!e.handles)return e.measured?r?.internals.handleBounds:void 0;const n=[],o=[];for(const a of e.handles){const i={id:a.id,width:a.width??1,height:a.height??1,nodeId:e.id,x:a.x,y:a.y,position:a.position,type:a.type};a.type==="source"?n.push(i):a.type==="target"&&o.push(i)}return{source:n,target:o}}function E6(e,r,n,o){const a=_6(w9e,o);let i=e.length>0;const s=new Map(r),l=a?.elevateNodesOnSelect?1e3:0;r.clear(),n.clear();for(const c of e){let u=s.get(c.id);if(a.checkEquality&&c===u?.internals.userNode)r.set(c.id,u);else{const d=f1(c,a.nodeOrigin),h=ip(c.extent)?c.extent:a.nodeExtent,p=jd(d,h,Wn(c));u={...a.defaults,...c,measured:{width:c.measured?.width,height:c.measured?.height},internals:{positionAbsolute:p,handleBounds:_9e(c,u),z:pH(c,l),userNode:c}},r.set(c.id,u)}(u.measured===void 0||u.measured.width===void 0||u.measured.height===void 0)&&!u.hidden&&(i=!1),c.parentId&&S6(u,r,n,o)}return i}function E9e(e,r){if(!e.parentId)return;const n=r.get(e.parentId);n?n.set(e.id,e):r.set(e.parentId,new Map([[e.id,e]]))}function S6(e,r,n,o){const{elevateNodesOnSelect:a,nodeOrigin:i,nodeExtent:s}=_6(k6,o),l=e.parentId,c=r.get(l);if(!c){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}E9e(e,n);const u=a?1e3:0,{x:d,y:h,z:p}=S9e(e,c,i,s,u),{positionAbsolute:g}=e.internals,y=d!==g.x||h!==g.y;(y||p!==e.internals.z)&&r.set(e.id,{...e,internals:{...e.internals,positionAbsolute:y?{x:d,y:h}:g,z:p}})}function pH(e,r){return(Wi(e.zIndex)?e.zIndex:0)+(e.selected?r:0)}function S9e(e,r,n,o,a){const{x:i,y:s}=r.internals.positionAbsolute,l=Wn(e),c=f1(e,n),u=ip(e.extent)?jd(c,e.extent,l):c;let d=jd({x:i+u.x,y:s+u.y},o,l);e.extent==="parent"&&(d=WF(d,l,r));const h=pH(e,a),p=r.internals.z??0;return{x:d.x,y:d.y,z:p>=h?p+1:h}}function C6(e,r,n,o=[0,0]){const a=[],i=new Map;for(const s of e){const l=r.get(s.parentId);if(!l)continue;const c=i.get(s.parentId)?.expandedRect??Bd(l),u=vw(c,s.rect);i.set(s.parentId,{expandedRect:u,parent:l})}return i.size>0&&i.forEach(({expandedRect:s,parent:l},c)=>{const u=l.internals.positionAbsolute,d=Wn(l),h=l.origin??o,p=s.x0||g>0||w||k)&&(a.push({id:c,type:"position",position:{x:l.position.x-p+w,y:l.position.y-g+k}}),n.get(c)?.forEach(C=>{e.some(_=>_.id===C.id)||a.push({id:C.id,type:"position",position:{x:C.position.x+p,y:C.position.y+g}})})),(d.width0){const p=C6(h,r,n,a);c.push(...p)}return{changes:c,updatedInternals:l}}async function T9e({delta:e,panZoom:r,transform:n,translateExtent:o,width:a,height:i}){if(!r||!e.x&&!e.y)return Promise.resolve(!1);const s=await r.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,i]],o),l=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(l)}function mH(e,r,n,o,a,i){let s=a;const l=o.get(s)||new Map;o.set(s,l.set(n,r)),s=`${a}-${e}`;const c=o.get(s)||new Map;if(o.set(s,c.set(n,r)),i){s=`${a}-${e}-${i}`;const u=o.get(s)||new Map;o.set(s,u.set(n,r))}}function gH(e,r,n){e.clear(),r.clear();for(const o of n){const{source:a,target:i,sourceHandle:s=null,targetHandle:l=null}=o,c={edgeId:o.id,source:a,target:i,sourceHandle:s,targetHandle:l},u=`${a}-${s}--${i}-${l}`,d=`${i}-${l}--${a}-${s}`;mH("source",c,d,e,a,s),mH("target",c,u,e,i,l),r.set(o.id,o)}}function yH(e,r){if(!e.parentId)return!1;const n=r.get(e.parentId);return n?n.selected?!0:yH(n,r):!1}function bH(e,r,n){let o=e;do{if(o?.matches?.(r))return!0;if(o===n)return!1;o=o?.parentElement}while(o);return!1}function A9e(e,r,n,o){const a=new Map;for(const[i,s]of e)if((s.selected||s.id===o)&&(!s.parentId||!yH(s,e))&&(s.draggable||r&&typeof s.draggable>"u")){const l=e.get(i);l&&a.set(i,{id:i,position:l.position||{x:0,y:0},distance:{x:n.x-l.internals.positionAbsolute.x,y:n.y-l.internals.positionAbsolute.y},extent:l.extent,parentId:l.parentId,origin:l.origin,expandParent:l.expandParent,internals:{positionAbsolute:l.internals.positionAbsolute||{x:0,y:0}},measured:{width:l.measured.width??0,height:l.measured.height??0}})}return a}function T6({nodeId:e,dragItems:r,nodeLookup:n,dragging:o=!0}){const a=[];for(const[s,l]of r){const c=n.get(s)?.internals.userNode;c&&a.push({...c,position:l.position,dragging:o})}if(!e)return[a[0],a];const i=n.get(e)?.internals.userNode;return[i?{...i,position:r.get(e)?.position||i.position,dragging:o}:a[0],a]}function N9e({dragItems:e,snapGrid:r,x:n,y:o}){const a=e.values().next().value;if(!a)return null;const i={x:n-a.distance.x,y:o-a.distance.y},s=g1(i,r);return{x:s.x-i.x,y:s.y-i.y}}function R9e({onNodeMouseDown:e,getStoreItems:r,onDragStart:n,onDrag:o,onDragStop:a}){let i={x:null,y:null},s=0,l=new Map,c=!1,u={x:0,y:0},d=null,h=!1,p=null,g=!1,y=!1,x=null;function w({noDragClassName:C,handleSelector:_,domNode:T,isSelectable:A,nodeId:N,nodeClickDistance:$=0}){p=Ea(T);function R({x:I,y:Y}){const{nodeLookup:D,nodeExtent:V,snapGrid:L,snapToGrid:U,nodeOrigin:q,onNodeDrag:X,onSelectionDrag:F,onError:J,updateNodePositions:Q}=r();i={x:I,y:Y};let z=!1;const W=l.size>1,G=W&&V?v6(rp(l)):null,Z=W&&U?N9e({dragItems:l,snapGrid:L,x:I,y:Y}):null;for(const[oe,ee]of l){if(!D.has(oe))continue;let re={x:I-ee.distance.x,y:Y-ee.distance.y};U&&(re=Z?{x:Math.round(re.x+Z.x),y:Math.round(re.y+Z.y)}:g1(re,L));let he=null;if(W&&V&&!ee.extent&&G){const{positionAbsolute:de}=ee.internals,be=de.x-G.x+V[0][0],De=de.x+ee.measured.width-G.x2+V[1][0],Ge=de.y-G.y+V[0][1],Xe=de.y+ee.measured.height-G.y2+V[1][1];he=[[be,Ge],[De,Xe]]}const{position:Ce,positionAbsolute:ce}=YF({nodeId:oe,nextPosition:re,nodeLookup:D,nodeExtent:he||V,nodeOrigin:q,onError:J});z=z||ee.position.x!==Ce.x||ee.position.y!==Ce.y,ee.position=Ce,ee.internals.positionAbsolute=ce}if(y=y||z,!!z&&(Q(l,!0),x&&(o||X||!N&&F))){const[oe,ee]=T6({nodeId:N,dragItems:l,nodeLookup:D});o?.(x,l,oe,ee),X?.(x,oe,ee),N||F?.(x,ee)}}async function M(){if(!d)return;const{transform:I,panBy:Y,autoPanSpeed:D,autoPanOnNodeDrag:V}=r();if(!V){c=!1,cancelAnimationFrame(s);return}const[L,U]=GF(u,d,D);(L!==0||U!==0)&&(i.x=(i.x??0)-L/I[2],i.y=(i.y??0)-U/I[2],await Y({x:L,y:U})&&R(i)),s=requestAnimationFrame(M)}function O(I){const{nodeLookup:Y,multiSelectionActive:D,nodesDraggable:V,transform:L,snapGrid:U,snapToGrid:q,selectNodesOnDrag:X,onNodeDragStart:F,onSelectionDragStart:J,unselectNodesAndEdges:Q}=r();h=!0,(!X||!A)&&!D&&N&&(Y.get(N)?.selected||Q()),A&&X&&N&&e?.(N);const z=b1(I.sourceEvent,{transform:L,snapGrid:U,snapToGrid:q,containerBounds:d});if(i=z,l=A9e(Y,V,z,N),l.size>0&&(n||F||!N&&J)){const[W,G]=T6({nodeId:N,dragItems:l,nodeLookup:Y});n?.(I.sourceEvent,l,W,G),F?.(I.sourceEvent,W,G),N||J?.(I.sourceEvent,G)}}const B=sF().clickDistance($).on("start",I=>{const{domNode:Y,nodeDragThreshold:D,transform:V,snapGrid:L,snapToGrid:U}=r();d=Y?.getBoundingClientRect()||null,g=!1,y=!1,x=I.sourceEvent,D===0&&O(I),i=b1(I.sourceEvent,{transform:V,snapGrid:L,snapToGrid:U,containerBounds:d}),u=Xi(I.sourceEvent,d)}).on("drag",I=>{const{autoPanOnNodeDrag:Y,transform:D,snapGrid:V,snapToGrid:L,nodeDragThreshold:U,nodeLookup:q}=r(),X=b1(I.sourceEvent,{transform:D,snapGrid:V,snapToGrid:L,containerBounds:d});if(x=I.sourceEvent,(I.sourceEvent.type==="touchmove"&&I.sourceEvent.touches.length>1||N&&!q.has(N))&&(g=!0),!g){if(!c&&Y&&h&&(c=!0,M()),!h){const F=Xi(I.sourceEvent,d),J=F.x-u.x,Q=F.y-u.y;Math.sqrt(J*J+Q*Q)>U&&O(I)}(i.x!==X.xSnapped||i.y!==X.ySnapped)&&l&&h&&(u=Xi(I.sourceEvent,d),R(X))}}).on("end",I=>{if(!(!h||g)&&(c=!1,h=!1,cancelAnimationFrame(s),l.size>0)){const{nodeLookup:Y,updateNodePositions:D,onNodeDragStop:V,onSelectionDragStop:L}=r();if(y&&(D(l,!1),y=!1),a||V||!N&&L){const[U,q]=T6({nodeId:N,dragItems:l,nodeLookup:Y,dragging:!1});a?.(I.sourceEvent,l,U,q),V?.(I.sourceEvent,U,q),N||L?.(I.sourceEvent,q)}}}).filter(I=>{const Y=I.target;return!I.button&&(!C||!bH(Y,`.${C}`,T))&&(!_||bH(Y,_,T))});p.call(B)}function k(){p?.on(".drag",null)}return{update:w,destroy:k}}function $9e(e,r,n){const o=[],a={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of r.values())m1(a,Bd(i))>0&&o.push(i);return o}const P9e=250;function M9e(e,r,n,o){let a=[],i=1/0;const s=$9e(e,n,r+P9e);for(const l of s){const c=[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]];for(const u of c){if(o.nodeId===u.nodeId&&o.type===u.type&&o.id===u.id)continue;const{x:d,y:h}=v1(l,u,u.position,!0),p=Math.sqrt(Math.pow(d-e.x,2)+Math.pow(h-e.y,2));p>r||(p1){const l=o.type==="source"?"target":"source";return a.find(c=>c.type===l)??a[0]}return a[0]}function vH(e,r,n,o,a,i=!1){const s=o.get(e);if(!s)return null;const l=a==="strict"?s.internals.handleBounds?.[r]:[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]],c=(n?l?.find(u=>u.id===n):l?.[0])??null;return c&&i?{...c,...v1(s,c,c.position,!0)}:c}function xH(e,r){return e||(r?.classList.contains("target")?"target":r?.classList.contains("source")?"source":null)}function O9e(e,r){let n=null;return r?n=!0:e&&!r&&(n=!1),n}const wH=()=>!0;function D9e(e,{connectionMode:r,connectionRadius:n,handleId:o,nodeId:a,edgeUpdaterType:i,isTarget:s,domNode:l,nodeLookup:c,lib:u,autoPanOnConnect:d,flowId:h,panBy:p,cancelConnection:g,onConnectStart:y,onConnect:x,onConnectEnd:w,isValidConnection:k=wH,onReconnectEnd:C,updateConnection:_,getTransform:T,getFromHandle:A,autoPanSpeed:N,dragThreshold:$=1,handleDomNode:R}){const M=eH(e.target);let O=0,B;const{x:I,y:Y}=Xi(e),D=xH(i,R),V=l?.getBoundingClientRect();let L=!1;if(!V||!D)return;const U=vH(a,D,o,c,r);if(!U)return;let q=Xi(e,V),X=!1,F=null,J=!1,Q=null;function z(){if(!d||!V)return;const[he,Ce]=GF(q,V,N);p({x:he,y:Ce}),O=requestAnimationFrame(z)}const W={...U,nodeId:a,type:D,position:U.position},G=c.get(a);let Z={inProgress:!0,isValid:null,from:v1(G,W,tt.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:G,to:q,toHandle:null,toPosition:HF[W.position],toNode:null};function oe(){L=!0,_(Z),y?.(e,{nodeId:a,handleId:o,handleType:D})}$===0&&oe();function ee(he){if(!L){const{x:be,y:De}=Xi(he),Ge=be-I,Xe=De-Y;if(!(Ge*Ge+Xe*Xe>$*$))return;oe()}if(!A()||!W){re(he);return}const Ce=T();q=Xi(he,V),B=M9e(y1(q,Ce,!1,[1,1]),n,c,W),X||(z(),X=!0);const ce=kH(he,{handle:B,connectionMode:r,fromNodeId:a,fromHandleId:o,fromType:s?"target":"source",isValidConnection:k,doc:M,lib:u,flowId:h,nodeLookup:c});Q=ce.handleDomNode,F=ce.connection,J=O9e(!!B,ce.isValid);const de={...Z,isValid:J,to:ce.toHandle&&J?xw({x:ce.toHandle.x,y:ce.toHandle.y},Ce):q,toHandle:ce.toHandle,toPosition:J&&ce.toHandle?ce.toHandle.position:HF[W.position],toNode:ce.toHandle?c.get(ce.toHandle.nodeId):null};J&&B&&Z.toHandle&&de.toHandle&&Z.toHandle.type===de.toHandle.type&&Z.toHandle.nodeId===de.toHandle.nodeId&&Z.toHandle.id===de.toHandle.id&&Z.to.x===de.to.x&&Z.to.y===de.to.y||(_(de),Z=de)}function re(he){if(!("touches"in he&&he.touches.length>0)){if(L){(B||Q)&&F&&J&&x?.(F);const{inProgress:Ce,...ce}=Z,de={...ce,toPosition:Z.toHandle?Z.toPosition:null};w?.(he,de),i&&C?.(he,de)}g(),cancelAnimationFrame(O),X=!1,J=!1,F=null,Q=null,M.removeEventListener("mousemove",ee),M.removeEventListener("mouseup",re),M.removeEventListener("touchmove",ee),M.removeEventListener("touchend",re)}}M.addEventListener("mousemove",ee),M.addEventListener("mouseup",re),M.addEventListener("touchmove",ee),M.addEventListener("touchend",re)}function kH(e,{handle:r,connectionMode:n,fromNodeId:o,fromHandleId:a,fromType:i,doc:s,lib:l,flowId:c,isValidConnection:u=wH,nodeLookup:d}){const h=i==="target",p=r?s.querySelector(`.${l}-flow__handle[data-id="${c}-${r?.nodeId}-${r?.id}-${r?.type}"]`):null,{x:g,y}=Xi(e),x=s.elementFromPoint(g,y),w=x?.classList.contains(`${l}-flow__handle`)?x:p,k={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=xH(void 0,w),_=w.getAttribute("data-nodeid"),T=w.getAttribute("data-handleid"),A=w.classList.contains("connectable"),N=w.classList.contains("connectableend");if(!_||!C)return k;const $={source:h?_:o,sourceHandle:h?T:a,target:h?o:_,targetHandle:h?a:T};k.connection=$;const R=A&&N&&(n===tp.Strict?h&&C==="source"||!h&&C==="target":_!==o||T!==a);k.isValid=R&&u($),k.toHandle=vH(_,C,T,d,n,!0)}return k}const A6={onPointerDown:D9e,isValid:kH};function L9e({domNode:e,panZoom:r,getTransform:n,getViewScale:o}){const a=Ea(e);function i({translateExtent:l,width:c,height:u,zoomStep:d=1,pannable:h=!0,zoomable:p=!0,inversePan:g=!1}){const y=_=>{if(_.sourceEvent.type!=="wheel"||!r)return;const T=n(),A=_.sourceEvent.ctrlKey&&ap()?10:1,N=-_.sourceEvent.deltaY*(_.sourceEvent.deltaMode===1?.05:_.sourceEvent.deltaMode?1:.002)*d,$=T[2]*Math.pow(2,N*A);r.scaleTo($)};let x=[0,0];const w=_=>{(_.sourceEvent.type==="mousedown"||_.sourceEvent.type==="touchstart")&&(x=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY])},k=_=>{const T=n();if(_.sourceEvent.type!=="mousemove"&&_.sourceEvent.type!=="touchmove"||!r)return;const A=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY],N=[A[0]-x[0],A[1]-x[1]];x=A;const $=o()*Math.max(T[2],Math.log(T[2]))*(g?-1:1),R={x:T[0]-N[0]*$,y:T[1]-N[1]*$},M=[[0,0],[c,u]];r.setViewportConstrained({x:R.x,y:R.y,zoom:T[2]},M,l)},C=zF().on("start",w).on("zoom",h?k:null).on("zoom.wheel",p?y:null);a.call(C,{})}function s(){a.on("zoom",null)}return{update:i,destroy:s,pointer:Vi}}const I9e=(e,r)=>e.x!==r.x||e.y!==r.y||e.zoom!==r.k,Ew=e=>({x:e.x,y:e.y,zoom:e.k}),N6=({x:e,y:r,zoom:n})=>mw.translate(e,r).scale(n),sp=(e,r)=>e.target.closest(`.${r}`),_H=(e,r)=>r===2&&Array.isArray(e)&&e.includes(2),z9e=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,R6=(e,r=0,n=z9e,o=()=>{})=>{const a=typeof r=="number"&&r>0;return a||o(),a?e.transition().duration(r).ease(n).on("end",o):e},EH=e=>{const r=e.ctrlKey&&ap()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*r};function j9e({zoomPanValues:e,noWheelClassName:r,d3Selection:n,d3Zoom:o,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:s,onPanZoomStart:l,onPanZoom:c,onPanZoomEnd:u}){return d=>{if(sp(d,r))return d.ctrlKey&&d.preventDefault(),!1;d.preventDefault(),d.stopImmediatePropagation();const h=n.property("__zoom").k||1;if(d.ctrlKey&&s){const w=Vi(d),k=EH(d),C=h*Math.pow(2,k);o.scaleTo(n,C,w,d);return}const p=d.deltaMode===1?20:1;let g=a===zd.Vertical?0:d.deltaX*p,y=a===zd.Horizontal?0:d.deltaY*p;!ap()&&d.shiftKey&&a!==zd.Vertical&&(g=d.deltaY*p,y=0),o.translateBy(n,-(g/h)*i,-(y/h)*i,{internal:!0});const x=Ew(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,l?.(d,x)),e.isPanScrolling&&(c?.(d,x),e.panScrollTimeout=setTimeout(()=>{u?.(d,x),e.isPanScrolling=!1},150))}}function B9e({noWheelClassName:e,preventScrolling:r,d3ZoomHandler:n}){return function(o,a){const i=o.type==="wheel",s=!r&&i&&!o.ctrlKey,l=sp(o,e);if(o.ctrlKey&&i&&l&&o.preventDefault(),s||l)return null;o.preventDefault(),n.call(this,o,a)}}function F9e({zoomPanValues:e,onDraggingChange:r,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;const a=Ew(o.transform);e.mouseButton=o.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=a,o.sourceEvent?.type==="mousedown"&&r(!0),n&&n?.(o.sourceEvent,a)}}function H9e({zoomPanValues:e,panOnDrag:r,onPaneContextMenu:n,onTransformChange:o,onPanZoom:a}){return i=>{e.usedRightMouseButton=!!(n&&_H(r,e.mouseButton??0)),i.sourceEvent?.sync||o([i.transform.x,i.transform.y,i.transform.k]),a&&!i.sourceEvent?.internal&&a?.(i.sourceEvent,Ew(i.transform))}}function U9e({zoomPanValues:e,panOnDrag:r,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:a,onPaneContextMenu:i}){return s=>{if(!s.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&_H(r,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&i(s.sourceEvent),e.usedRightMouseButton=!1,o(!1),a&&I9e(e.prevViewport,s.transform))){const l=Ew(s.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(s.sourceEvent,l)},n?150:0)}}}function V9e({zoomActivationKeyPressed:e,zoomOnScroll:r,zoomOnPinch:n,panOnDrag:o,panOnScroll:a,zoomOnDoubleClick:i,userSelectionActive:s,noWheelClassName:l,noPanClassName:c,lib:u,connectionInProgress:d}){return h=>{const p=e||r,g=n&&h.ctrlKey,y=h.type==="wheel";if(h.button===1&&h.type==="mousedown"&&(sp(h,`${u}-flow__node`)||sp(h,`${u}-flow__edge`)))return!0;if(!o&&!p&&!a&&!i&&!n||s||d&&!y||sp(h,l)&&y||sp(h,c)&&(!y||a&&y&&!e)||!n&&h.ctrlKey&&y)return!1;if(!n&&h.type==="touchstart"&&h.touches?.length>1)return h.preventDefault(),!1;if(!p&&!a&&!g&&y||!o&&(h.type==="mousedown"||h.type==="touchstart")||Array.isArray(o)&&!o.includes(h.button)&&h.type==="mousedown")return!1;const x=Array.isArray(o)&&o.includes(h.button)||!h.button||h.button<=1;return(!h.ctrlKey||y)&&x}}function q9e({domNode:e,minZoom:r,maxZoom:n,paneClickDistance:o,translateExtent:a,viewport:i,onPanZoom:s,onPanZoomStart:l,onPanZoomEnd:c,onDraggingChange:u}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),p=zF().clickDistance(!Wi(o)||o<0?0:o).scaleExtent([r,n]).translateExtent(a),g=Ea(e).call(p);_({x:i.x,y:i.y,zoom:np(i.zoom,r,n)},[[0,0],[h.width,h.height]],a);const y=g.on("wheel.zoom"),x=g.on("dblclick.zoom");p.wheelDelta(EH);function w(I,Y){return g?new Promise(D=>{p?.interpolate(Y?.interpolate==="linear"?a1:aw).transform(R6(g,Y?.duration,Y?.ease,()=>D(!0)),I)}):Promise.resolve(!1)}function k({noWheelClassName:I,noPanClassName:Y,onPaneContextMenu:D,userSelectionActive:V,panOnScroll:L,panOnDrag:U,panOnScrollMode:q,panOnScrollSpeed:X,preventScrolling:F,zoomOnPinch:J,zoomOnScroll:Q,zoomOnDoubleClick:z,zoomActivationKeyPressed:W,lib:G,onTransformChange:Z,connectionInProgress:oe}){V&&!d.isZoomingOrPanning&&C();const ee=L&&!W&&!V?j9e({zoomPanValues:d,noWheelClassName:I,d3Selection:g,d3Zoom:p,panOnScrollMode:q,panOnScrollSpeed:X,zoomOnPinch:J,onPanZoomStart:l,onPanZoom:s,onPanZoomEnd:c}):B9e({noWheelClassName:I,preventScrolling:F,d3ZoomHandler:y});if(g.on("wheel.zoom",ee,{passive:!1}),!V){const he=F9e({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:l});p.on("start",he);const Ce=H9e({zoomPanValues:d,panOnDrag:U,onPaneContextMenu:!!D,onPanZoom:s,onTransformChange:Z});p.on("zoom",Ce);const ce=U9e({zoomPanValues:d,panOnDrag:U,panOnScroll:L,onPaneContextMenu:D,onPanZoomEnd:c,onDraggingChange:u});p.on("end",ce)}const re=V9e({zoomActivationKeyPressed:W,panOnDrag:U,zoomOnScroll:Q,panOnScroll:L,zoomOnDoubleClick:z,zoomOnPinch:J,userSelectionActive:V,noPanClassName:Y,noWheelClassName:I,lib:G,connectionInProgress:oe});p.filter(re),z?g.on("dblclick.zoom",x):g.on("dblclick.zoom",null)}function C(){p.on("zoom",null)}async function _(I,Y,D){const V=N6(I),L=p?.constrain()(V,Y,D);return L&&await w(L),new Promise(U=>U(L))}async function T(I,Y){const D=N6(I);return await w(D,Y),new Promise(V=>V(D))}function A(I){if(g){const Y=N6(I),D=g.property("__zoom");(D.k!==I.zoom||D.x!==I.x||D.y!==I.y)&&p?.transform(g,Y,null,{sync:!0})}}function N(){const I=g?LF(g.node()):{x:0,y:0,k:1};return{x:I.x,y:I.y,zoom:I.k}}function $(I,Y){return g?new Promise(D=>{p?.interpolate(Y?.interpolate==="linear"?a1:aw).scaleTo(R6(g,Y?.duration,Y?.ease,()=>D(!0)),I)}):Promise.resolve(!1)}function R(I,Y){return g?new Promise(D=>{p?.interpolate(Y?.interpolate==="linear"?a1:aw).scaleBy(R6(g,Y?.duration,Y?.ease,()=>D(!0)),I)}):Promise.resolve(!1)}function M(I){p?.scaleExtent(I)}function O(I){p?.translateExtent(I)}function B(I){const Y=!Wi(I)||I<0?0:I;p?.clickDistance(Y)}return{update:k,destroy:C,setViewport:T,setViewportConstrained:_,getViewport:N,scaleTo:$,scaleBy:R,setScaleExtent:M,setTranslateExtent:O,syncViewport:A,setClickDistance:B}}var lp;(function(e){e.Line="line",e.Handle="handle"})(lp||(lp={}));function Y9e({width:e,prevWidth:r,height:n,prevHeight:o,affectsX:a,affectsY:i}){const s=e-r,l=n-o,c=[s>0?1:s<0?-1:0,l>0?1:l<0?-1:0];return s&&a&&(c[0]=c[0]*-1),l&&i&&(c[1]=c[1]*-1),c}function W9e(e){const r=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),a=e.includes("top");return{isHorizontal:r,isVertical:n,affectsX:o,affectsY:a}}function ru(e,r){return Math.max(0,r-e)}function nu(e,r){return Math.max(0,e-r)}function Sw(e,r,n){return Math.max(0,r-e,e-n)}function SH(e,r){return e?!r:r}function X9e(e,r,n,o,a,i,s,l){let{affectsX:c,affectsY:u}=r;const{isHorizontal:d,isVertical:h}=r,p=d&&h,{xSnapped:g,ySnapped:y}=n,{minWidth:x,maxWidth:w,minHeight:k,maxHeight:C}=o,{x:_,y:T,width:A,height:N,aspectRatio:$}=e;let R=Math.floor(d?g-e.pointerX:0),M=Math.floor(h?y-e.pointerY:0);const O=A+(c?-R:R),B=N+(u?-M:M),I=-i[0]*A,Y=-i[1]*N;let D=Sw(O,x,w),V=Sw(B,k,C);if(s){let q=0,X=0;c&&R<0?q=ru(_+R+I,s[0][0]):!c&&R>0&&(q=nu(_+O+I,s[1][0])),u&&M<0?X=ru(T+M+Y,s[0][1]):!u&&M>0&&(X=nu(T+B+Y,s[1][1])),D=Math.max(D,q),V=Math.max(V,X)}if(l){let q=0,X=0;c&&R>0?q=nu(_+R,l[0][0]):!c&&R<0&&(q=ru(_+O,l[1][0])),u&&M>0?X=nu(T+M,l[0][1]):!u&&M<0&&(X=ru(T+B,l[1][1])),D=Math.max(D,q),V=Math.max(V,X)}if(a){if(d){const q=Sw(O/$,k,C)*$;if(D=Math.max(D,q),s){let X=0;!c&&!u||c&&!u&&p?X=nu(T+Y+O/$,s[1][1])*$:X=ru(T+Y+(c?R:-R)/$,s[0][1])*$,D=Math.max(D,X)}if(l){let X=0;!c&&!u||c&&!u&&p?X=ru(T+O/$,l[1][1])*$:X=nu(T+(c?R:-R)/$,l[0][1])*$,D=Math.max(D,X)}}if(h){const q=Sw(B*$,x,w)/$;if(V=Math.max(V,q),s){let X=0;!c&&!u||u&&!c&&p?X=nu(_+B*$+I,s[1][0])/$:X=ru(_+(u?M:-M)*$+I,s[0][0])/$,V=Math.max(V,X)}if(l){let X=0;!c&&!u||u&&!c&&p?X=ru(_+B*$,l[1][0])/$:X=nu(_+(u?M:-M)*$,l[0][0])/$,V=Math.max(V,X)}}}M=M+(M<0?V:-V),R=R+(R<0?D:-D),a&&(p?O>B*$?M=(SH(c,u)?-R:R)/$:R=(SH(c,u)?-M:M)*$:d?(M=R/$,u=c):(R=M*$,c=u));const L=c?_+R:_,U=u?T+M:T;return{width:A+(c?-R:R),height:N+(u?-M:M),x:i[0]*R*(c?-1:1)+L,y:i[1]*M*(u?-1:1)+U}}const CH={width:0,height:0,x:0,y:0},G9e={...CH,pointerX:0,pointerY:0,aspectRatio:1};function K9e(e){return[[0,0],[e.measured.width,e.measured.height]]}function Z9e(e,r,n){const o=r.position.x+e.position.x,a=r.position.y+e.position.y,i=e.measured.width??0,s=e.measured.height??0,l=n[0]*i,c=n[1]*s;return[[o-l,a-c],[o+i-l,a+s-c]]}function Q9e({domNode:e,nodeId:r,getStoreItems:n,onChange:o,onEnd:a}){const i=Ea(e);function s({controlPosition:c,boundaries:u,keepAspectRatio:d,resizeDirection:h,onResizeStart:p,onResize:g,onResizeEnd:y,shouldResize:x}){let w={...CH},k={...G9e};const C=W9e(c);let _,T=null,A=[],N,$,R,M=!1;const O=sF().on("start",B=>{const{nodeLookup:I,transform:Y,snapGrid:D,snapToGrid:V,nodeOrigin:L,paneDomNode:U}=n();if(_=I.get(r),!_)return;T=U?.getBoundingClientRect()??null;const{xSnapped:q,ySnapped:X}=b1(B.sourceEvent,{transform:Y,snapGrid:D,snapToGrid:V,containerBounds:T});w={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},k={...w,pointerX:q,pointerY:X,aspectRatio:w.width/w.height},N=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(N=I.get(_.parentId),$=N&&_.extent==="parent"?K9e(N):void 0),A=[],R=void 0;for(const[F,J]of I)if(J.parentId===r&&(A.push({id:F,position:{...J.position},extent:J.extent}),J.extent==="parent"||J.expandParent)){const Q=Z9e(J,_,J.origin??L);R?R=[[Math.min(Q[0][0],R[0][0]),Math.min(Q[0][1],R[0][1])],[Math.max(Q[1][0],R[1][0]),Math.max(Q[1][1],R[1][1])]]:R=Q}p?.(B,{...w})}).on("drag",B=>{const{transform:I,snapGrid:Y,snapToGrid:D,nodeOrigin:V}=n(),L=b1(B.sourceEvent,{transform:I,snapGrid:Y,snapToGrid:D,containerBounds:T}),U=[];if(!_)return;const{x:q,y:X,width:F,height:J}=w,Q={},z=_.origin??V,{width:W,height:G,x:Z,y:oe}=X9e(k,C,L,u,d,z,$,R),ee=W!==F,re=G!==J,he=Z!==q&&ee,Ce=oe!==X&&re;if(!he&&!Ce&&!ee&&!re)return;if((he||Ce||z[0]===1||z[1]===1)&&(Q.x=he?Z:w.x,Q.y=Ce?oe:w.y,w.x=Q.x,w.y=Q.y,A.length>0)){const be=Z-q,De=oe-X;for(const Ge of A)Ge.position={x:Ge.position.x-be+z[0]*(W-F),y:Ge.position.y-De+z[1]*(G-J)},U.push(Ge)}if((ee||re)&&(Q.width=ee&&(!h||h==="horizontal")?W:w.width,Q.height=re&&(!h||h==="vertical")?G:w.height,w.width=Q.width,w.height=Q.height),N&&_.expandParent){const be=z[0]*(Q.width??0);Q.x&&Q.x{M&&(y?.(B,{...w}),a?.({...w}),M=!1)});i.call(O)}function l(){i.on(".drag",null)}return{update:s,destroy:l}}function $6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var TH={exports:{}},P6={},AH={exports:{}},M6={};/** + * @license React + * use-sync-external-store-shim.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var NH;function J9e(){if(NH)return M6;NH=1;var e=Gr;function r(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var n=typeof Object.is=="function"?Object.is:r,o=e.useState,a=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function l(h,p){var g=p(),y=o({inst:{value:g,getSnapshot:p}}),x=y[0].inst,w=y[1];return i(function(){x.value=g,x.getSnapshot=p,c(x)&&w({inst:x})},[h,g,p]),a(function(){return c(x)&&w({inst:x}),h(function(){c(x)&&w({inst:x})})},[h]),s(g),g}function c(h){var p=h.getSnapshot;h=h.value;try{var g=p();return!n(h,g)}catch{return!0}}function u(h,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return M6.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,M6}var RH;function $H(){return RH||(RH=1,AH.exports=J9e()),AH.exports}/** + * @license React + * use-sync-external-store-shim/with-selector.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var PH;function eAe(){if(PH)return P6;PH=1;var e=Gr,r=$H();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,a=r.useSyncExternalStore,i=e.useRef,s=e.useEffect,l=e.useMemo,c=e.useDebugValue;return P6.useSyncExternalStoreWithSelector=function(u,d,h,p,g){var y=i(null);if(y.current===null){var x={hasValue:!1,value:null};y.current=x}else x=y.current;y=l(function(){function k(N){if(!C){if(C=!0,_=N,N=p(N),g!==void 0&&x.hasValue){var $=x.value;if(g($,N))return T=$}return T=N}if($=T,o(_,N))return $;var R=p(N);return g!==void 0&&g($,R)?(_=N,$):(_=N,T=R)}var C=!1,_,T,A=h===void 0?null:h;return[function(){return k(d())},A===null?void 0:function(){return k(A())}]},[d,h,p,g]);var w=a(u,y[0],y[1]);return s(function(){x.hasValue=!0,x.value=w},[w]),c(w),w},P6}var MH;function tAe(){return MH||(MH=1,TH.exports=eAe()),TH.exports}var OH=tAe();const rAe=$6(OH),nAe={},DH=e=>{let r;const n=new Set,o=(l,c)=>{const u=typeof l=="function"?l(r):l;if(!Object.is(u,r)){const d=r;r=c??(typeof u!="object"||u===null)?u:Object.assign({},r,u),n.forEach(h=>h(r,d))}},a=()=>r,i={setState:o,getState:a,getInitialState:()=>s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{(nAe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=r=e(o,a,i);return i},oAe=e=>e?DH(e):DH,{useDebugValue:aAe}=Gr,{useSyncExternalStoreWithSelector:iAe}=rAe,sAe=e=>e;function LH(e,r=sAe,n){const o=iAe(e.subscribe,e.getState,e.getServerState||e.getInitialState,r,n);return aAe(o),o}const IH=(e,r)=>{const n=oAe(e),o=(a,i=r)=>LH(n,a,i);return Object.assign(o,n),o},lAe=(e,r)=>e?IH(e,r):IH;function Nr(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,a]of e)if(!Object.is(a,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(r,o)||!Object.is(e[o],r[o]))return!1;return!0}const Cw=E.createContext(null),cAe=Cw.Provider,zH=Qs.error001();function At(e,r){const n=E.useContext(Cw);if(n===null)throw new Error(zH);return LH(n,e,r)}function pr(){const e=E.useContext(Cw);if(e===null)throw new Error(zH);return E.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const jH={display:"none"},uAe={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},BH="react-flow__node-desc",FH="react-flow__edge-desc",dAe="react-flow__aria-live",hAe=e=>e.ariaLiveMessage,fAe=e=>e.ariaLabelConfig;function pAe({rfId:e}){const r=At(hAe);return b.jsx("div",{id:`${dAe}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:uAe,children:r})}function mAe({rfId:e,disableKeyboardA11y:r}){const n=At(fAe);return b.jsxs(b.Fragment,{children:[b.jsx("div",{id:`${BH}-${e}`,style:jH,children:r?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),b.jsx("div",{id:`${FH}-${e}`,style:jH,children:n["edge.a11yDescription.default"]}),!r&&b.jsx(pAe,{rfId:e})]})}const ou=E.forwardRef(({position:e="top-left",children:r,className:n,style:o,...a},i)=>{const s=`${e}`.split("-");return b.jsx("div",{className:an(["react-flow__panel",n,...s]),style:o,ref:i,...a,children:r})});ou.displayName="Panel";function gAe({proOptions:e,position:r="bottom-right"}){return e?.hideAttribution?null:b.jsx(ou,{position:r,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:b.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const yAe=e=>{const r=[],n=[];for(const[,o]of e.nodeLookup)o.selected&&r.push(o.internals.userNode);for(const[,o]of e.edgeLookup)o.selected&&n.push(o);return{selectedNodes:r,selectedEdges:n}},Tw=e=>e.id;function bAe(e,r){return Nr(e.selectedNodes.map(Tw),r.selectedNodes.map(Tw))&&Nr(e.selectedEdges.map(Tw),r.selectedEdges.map(Tw))}function vAe({onSelectionChange:e}){const r=pr(),{selectedNodes:n,selectedEdges:o}=At(yAe,bAe);return E.useEffect(()=>{const a={nodes:n,edges:o};e?.(a),r.getState().onSelectionChangeHandlers.forEach(i=>i(a))},[n,o,e]),null}const xAe=e=>!!e.onSelectionChangeHandlers;function wAe({onSelectionChange:e}){const r=At(xAe);return e||r?b.jsx(vAe,{onSelectionChange:e}):null}const HH=[0,0],kAe={x:0,y:0,zoom:1},_Ae=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance","ariaLabelConfig"],UH=[..._Ae,"rfId"],EAe=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),VH={translateExtent:d1,nodeOrigin:HH,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function SAe(e){const{setNodes:r,setEdges:n,setMinZoom:o,setMaxZoom:a,setTranslateExtent:i,setNodeExtent:s,reset:l,setDefaultNodesAndEdges:c,setPaneClickDistance:u}=At(EAe,Nr),d=pr();E.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{h.current=VH,l()}),[]);const h=E.useRef(VH);return E.useEffect(()=>{for(const p of UH){const g=e[p],y=h.current[p];g!==y&&(typeof e[p]>"u"||(p==="nodes"?r(g):p==="edges"?n(g):p==="minZoom"?o(g):p==="maxZoom"?a(g):p==="translateExtent"?i(g):p==="nodeExtent"?s(g):p==="paneClickDistance"?u(g):p==="ariaLabelConfig"?d.setState({ariaLabelConfig:c9e(g)}):p==="fitView"?d.setState({fitViewQueued:g}):p==="fitViewOptions"?d.setState({fitViewOptions:g}):d.setState({[p]:g})))}h.current=e},UH.map(p=>e[p])),null}function qH(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function CAe(e){const[r,n]=E.useState(e==="system"?null:e);return E.useEffect(()=>{if(e!=="system"){n(e);return}const o=qH(),a=()=>n(o?.matches?"dark":"light");return a(),o?.addEventListener("change",a),()=>{o?.removeEventListener("change",a)}},[e]),r!==null?r:qH()?.matches?"dark":"light"}const YH=typeof document<"u"?document:null;function x1(e=null,r={target:YH,actInsideInputWithModifier:!0}){const[n,o]=E.useState(!1),a=E.useRef(!1),i=E.useRef(new Set([])),[s,l]=E.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(d=>typeof d=="string").map(d=>d.replace("+",` +`).replace(` + +`,` ++`).split(` +`)),u=c.reduce((d,h)=>d.concat(...h),[]);return[c,u]}return[[],[]]},[e]);return E.useEffect(()=>{const c=r?.target??YH,u=r?.actInsideInputWithModifier??!0;if(e!==null){const d=g=>{if(a.current=g.ctrlKey||g.metaKey||g.shiftKey||g.altKey,(!a.current||a.current&&!u)&&tH(g))return!1;const y=XH(g.code,l);if(i.current.add(g[y]),WH(s,i.current,!1)){const x=g.composedPath?.()?.[0]||g.target,w=x?.nodeName==="BUTTON"||x?.nodeName==="A";r.preventDefault!==!1&&(a.current||!w)&&g.preventDefault(),o(!0)}},h=g=>{const y=XH(g.code,l);WH(s,i.current,!0)?(o(!1),i.current.clear()):i.current.delete(g[y]),g.key==="Meta"&&i.current.clear(),a.current=!1},p=()=>{i.current.clear(),o(!1)};return c?.addEventListener("keydown",d),c?.addEventListener("keyup",h),window.addEventListener("blur",p),window.addEventListener("contextmenu",p),()=>{c?.removeEventListener("keydown",d),c?.removeEventListener("keyup",h),window.removeEventListener("blur",p),window.removeEventListener("contextmenu",p)}}},[e,o]),n}function WH(e,r,n){return e.filter(o=>n||o.length===r.size).some(o=>o.every(a=>r.has(a)))}function XH(e,r){return r.includes(e)?"code":"key"}const TAe=()=>{const e=pr();return E.useMemo(()=>({zoomIn:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomOut:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomTo:(r,n)=>{const{panZoom:o}=e.getState();return o?o.scaleTo(r,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(r,n)=>{const{transform:[o,a,i],panZoom:s}=e.getState();return s?(await s.setViewport({x:r.x??o,y:r.y??a,zoom:r.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[r,n,o]=e.getState().transform;return{x:r,y:n,zoom:o}},setCenter:async(r,n,o)=>e.getState().setCenter(r,n,o),fitBounds:async(r,n)=>{const{width:o,height:a,minZoom:i,maxZoom:s,panZoom:l}=e.getState(),c=tu(r,o,a,i,s,n?.padding??.1);return l?(await l.setViewport(c,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(r,n={})=>{const{transform:o,snapGrid:a,snapToGrid:i,domNode:s}=e.getState();if(!s)return r;const{x:l,y:c}=s.getBoundingClientRect(),u={x:r.x-l,y:r.y-c},d=n.snapGrid??a,h=n.snapToGrid??i;return y1(u,o,h,d)},flowToScreenPosition:r=>{const{transform:n,domNode:o}=e.getState();if(!o)return r;const{x:a,y:i}=o.getBoundingClientRect(),s=xw(r,n);return{x:s.x+a,y:s.y+i}}}),[])};function GH(e,r){const n=[],o=new Map,a=[];for(const i of e)if(i.type==="add"){a.push(i);continue}else if(i.type==="remove"||i.type==="replace")o.set(i.id,[i]);else{const s=o.get(i.id);s?s.push(i):o.set(i.id,[i])}for(const i of r){const s=o.get(i.id);if(!s){n.push(i);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const l={...i};for(const c of s)AAe(c,l);n.push(l)}return a.length&&a.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function AAe(e,r){switch(e.type){case"select":{r.selected=e.selected;break}case"position":{typeof e.position<"u"&&(r.position=e.position),typeof e.dragging<"u"&&(r.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(r.measured??={},r.measured.width=e.dimensions.width,r.measured.height=e.dimensions.height,e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(r.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(r.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(r.resizing=e.resizing);break}}}function Aw(e,r){return GH(e,r)}function Nw(e,r){return GH(e,r)}function Fd(e,r){return{id:e,type:"select",selected:r}}function cp(e,r=new Set,n=!1){const o=[];for(const[a,i]of e){const s=r.has(a);!(i.selected===void 0&&!s)&&i.selected!==s&&(n&&(i.selected=s),o.push(Fd(i.id,s)))}return o}function KH({items:e=[],lookup:r}){const n=[],o=new Map(e.map(a=>[a.id,a]));for(const[a,i]of e.entries()){const s=r.get(i.id),l=s?.internals?.userNode??s;l!==void 0&&l!==i&&n.push({id:i.id,item:i,type:"replace"}),l===void 0&&n.push({item:i,type:"add",index:a})}for(const[a]of r)o.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function ZH(e){return{id:e.id,type:"remove"}}const QH=e=>e9e(e),NAe=e=>VF(e);function JH(e){return E.forwardRef(e)}const RAe=typeof window<"u"?E.useLayoutEffect:E.useEffect;function eU(e){const[r,n]=E.useState(BigInt(0)),[o]=E.useState(()=>$Ae(()=>n(a=>a+BigInt(1))));return RAe(()=>{const a=o.get();a.length&&(e(a),o.reset())},[r]),o}function $Ae(e){let r=[];return{get:()=>r,reset:()=>{r=[]},push:n=>{r.push(n),e()}}}const tU=E.createContext(null);function PAe({children:e}){const r=pr(),n=E.useCallback(l=>{const{nodes:c=[],setNodes:u,hasDefaultNodes:d,onNodesChange:h,nodeLookup:p,fitViewQueued:g}=r.getState();let y=c;for(const w of l)y=typeof w=="function"?w(y):w;const x=KH({items:y,lookup:p});d&&u(y),x.length>0?h?.(x):g&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:k,setNodes:C}=r.getState();w&&C(k)})},[]),o=eU(n),a=E.useCallback(l=>{const{edges:c=[],setEdges:u,hasDefaultEdges:d,onEdgesChange:h,edgeLookup:p}=r.getState();let g=c;for(const y of l)g=typeof y=="function"?y(g):y;d?u(g):h&&h(KH({items:g,lookup:p}))},[]),i=eU(a),s=E.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return b.jsx(tU.Provider,{value:s,children:e})}function MAe(){const e=E.useContext(tU);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const OAe=e=>!!e.panZoom;function up(){const e=TAe(),r=pr(),n=MAe(),o=At(OAe),a=E.useMemo(()=>{const i=h=>r.getState().nodeLookup.get(h),s=h=>{n.nodeQueue.push(h)},l=h=>{n.edgeQueue.push(h)},c=h=>{const{nodeLookup:p,nodeOrigin:g}=r.getState(),y=QH(h)?h:p.get(h.id),x=y.parentId?QF(y.position,y.measured,y.parentId,p,g):y.position,w={...y,position:x,width:y.measured?.width??y.width,height:y.measured?.height??y.height};return Bd(w)},u=(h,p,g={replace:!1})=>{s(y=>y.map(x=>{if(x.id===h){const w=typeof p=="function"?p(x):p;return g.replace&&QH(w)?w:{...x,...w}}return x}))},d=(h,p,g={replace:!1})=>{l(y=>y.map(x=>{if(x.id===h){const w=typeof p=="function"?p(x):p;return g.replace&&NAe(w)?w:{...x,...w}}return x}))};return{getNodes:()=>r.getState().nodes.map(h=>({...h})),getNode:h=>i(h)?.internals.userNode,getInternalNode:i,getEdges:()=>{const{edges:h=[]}=r.getState();return h.map(p=>({...p}))},getEdge:h=>r.getState().edgeLookup.get(h),setNodes:s,setEdges:l,addNodes:h=>{const p=Array.isArray(h)?h:[h];n.nodeQueue.push(g=>[...g,...p])},addEdges:h=>{const p=Array.isArray(h)?h:[h];n.edgeQueue.push(g=>[...g,...p])},toObject:()=>{const{nodes:h=[],edges:p=[],transform:g}=r.getState(),[y,x,w]=g;return{nodes:h.map(k=>({...k})),edges:p.map(k=>({...k})),viewport:{x:y,y:x,zoom:w}}},deleteElements:async({nodes:h=[],edges:p=[]})=>{const{nodes:g,edges:y,onNodesDelete:x,onEdgesDelete:w,triggerNodeChanges:k,triggerEdgeChanges:C,onDelete:_,onBeforeDelete:T}=r.getState(),{nodes:A,edges:N}=await o9e({nodesToRemove:h,edgesToRemove:p,nodes:g,edges:y,onBeforeDelete:T}),$=N.length>0,R=A.length>0;if($){const M=N.map(ZH);w?.(N),C(M)}if(R){const M=A.map(ZH);x?.(A),k(M)}return(R||$)&&_?.({nodes:A,edges:N}),{deletedNodes:A,deletedEdges:N}},getIntersectingNodes:(h,p=!0,g)=>{const y=KF(h),x=y?h:c(h),w=g!==void 0;return x?(g||r.getState().nodes).filter(k=>{const C=r.getState().nodeLookup.get(k.id);if(C&&!y&&(k.id===h.id||!C.internals.positionAbsolute))return!1;const _=Bd(w?k:C),T=m1(_,x);return p&&T>0||T>=_.width*_.height||T>=x.width*x.height}):[]},isNodeIntersecting:(h,p,g=!0)=>{const y=KF(h)?h:c(h);if(!y)return!1;const x=m1(y,p);return g&&x>0||x>=p.width*p.height||x>=y.width*y.height},updateNode:u,updateNodeData:(h,p,g={replace:!1})=>{u(h,y=>{const x=typeof p=="function"?p(y):p;return g.replace?{...y,data:x}:{...y,data:{...y.data,...x}}},g)},updateEdge:d,updateEdgeData:(h,p,g={replace:!1})=>{d(h,y=>{const x=typeof p=="function"?p(y):p;return g.replace?{...y,data:x}:{...y,data:{...y.data,...x}}},g)},getNodesBounds:h=>{const{nodeLookup:p,nodeOrigin:g}=r.getState();return qF(h,{nodeLookup:p,nodeOrigin:g})},getHandleConnections:({type:h,id:p,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}-${h}${p?`-${p}`:""}`)?.values()??[]),getNodeConnections:({type:h,handleId:p,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}${h?p?`-${h}-${p}`:`-${h}`:""}`)?.values()??[]),fitView:async h=>{const p=r.getState().fitViewResolver??l9e();return r.setState({fitViewQueued:!0,fitViewOptions:h,fitViewResolver:p}),n.nodeQueue.push(g=>[...g]),p.promise}}},[]);return E.useMemo(()=>({...a,...e,viewportInitialized:o}),[o])}const rU=e=>e.selected,DAe=typeof window<"u"?window:void 0;function LAe({deleteKeyCode:e,multiSelectionKeyCode:r}){const n=pr(),{deleteElements:o}=up(),a=x1(e,{actInsideInputWithModifier:!1}),i=x1(r,{target:DAe});E.useEffect(()=>{if(a){const{edges:s,nodes:l}=n.getState();o({nodes:l.filter(rU),edges:s.filter(rU)}),n.setState({nodesSelectionActive:!1})}},[a]),E.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function IAe(e){const r=pr();E.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const o=x6(e.current);(o.height===0||o.width===0)&&r.getState().onError?.("004",Qs.error004()),r.setState({width:o.width||500,height:o.height||500})};if(e.current){n(),window.addEventListener("resize",n);const o=new ResizeObserver(()=>n());return o.observe(e.current),()=>{window.removeEventListener("resize",n),o&&e.current&&o.unobserve(e.current)}}},[])}const Rw={position:"absolute",width:"100%",height:"100%",top:0,left:0},zAe=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function jAe({onPaneContextMenu:e,zoomOnScroll:r=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:a=.5,panOnScrollMode:i=zd.Free,zoomOnDoubleClick:s=!0,panOnDrag:l=!0,defaultViewport:c,translateExtent:u,minZoom:d,maxZoom:h,zoomActivationKeyCode:p,preventScrolling:g=!0,children:y,noWheelClassName:x,noPanClassName:w,onViewportChange:k,isControlledViewport:C,paneClickDistance:_}){const T=pr(),A=E.useRef(null),{userSelectionActive:N,lib:$,connectionInProgress:R}=At(zAe,Nr),M=x1(p),O=E.useRef();IAe(A);const B=E.useCallback(I=>{k?.({x:I[0],y:I[1],zoom:I[2]}),C||T.setState({transform:I})},[k,C]);return E.useEffect(()=>{if(A.current){O.current=q9e({domNode:A.current,minZoom:d,maxZoom:h,translateExtent:u,viewport:c,paneClickDistance:_,onDraggingChange:V=>T.setState({paneDragging:V}),onPanZoomStart:(V,L)=>{const{onViewportChangeStart:U,onMoveStart:q}=T.getState();q?.(V,L),U?.(L)},onPanZoom:(V,L)=>{const{onViewportChange:U,onMove:q}=T.getState();q?.(V,L),U?.(L)},onPanZoomEnd:(V,L)=>{const{onViewportChangeEnd:U,onMoveEnd:q}=T.getState();q?.(V,L),U?.(L)}});const{x:I,y:Y,zoom:D}=O.current.getViewport();return T.setState({panZoom:O.current,transform:[I,Y,D],domNode:A.current.closest(".react-flow")}),()=>{O.current?.destroy()}}},[]),E.useEffect(()=>{O.current?.update({onPaneContextMenu:e,zoomOnScroll:r,zoomOnPinch:n,panOnScroll:o,panOnScrollSpeed:a,panOnScrollMode:i,zoomOnDoubleClick:s,panOnDrag:l,zoomActivationKeyPressed:M,preventScrolling:g,noPanClassName:w,userSelectionActive:N,noWheelClassName:x,lib:$,onTransformChange:B,connectionInProgress:R})},[e,r,n,o,a,i,s,l,M,g,w,N,x,$,B,R]),b.jsx("div",{className:"react-flow__renderer",ref:A,style:Rw,children:y})}const BAe=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function FAe(){const{userSelectionActive:e,userSelectionRect:r}=At(BAe,Nr);return e&&r?b.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:r.width,height:r.height,transform:`translate(${r.x}px, ${r.y}px)`}}):null}const O6=(e,r)=>n=>{n.target===r.current&&e?.(n)},HAe=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function UAe({isSelecting:e,selectionKeyPressed:r,selectionMode:n=h1.Full,panOnDrag:o,selectionOnDrag:a,onSelectionStart:i,onSelectionEnd:s,onPaneClick:l,onPaneContextMenu:c,onPaneScroll:u,onPaneMouseEnter:d,onPaneMouseMove:h,onPaneMouseLeave:p,children:g}){const y=pr(),{userSelectionActive:x,elementsSelectable:w,dragging:k,connectionInProgress:C}=At(HAe,Nr),_=w&&(e||x),T=E.useRef(null),A=E.useRef(),N=E.useRef(new Set),$=E.useRef(new Set),R=E.useRef(!1),M=E.useRef(!1),O=U=>{if(R.current||C){R.current=!1;return}l?.(U),y.getState().resetSelectedElements(),y.setState({nodesSelectionActive:!1})},B=U=>{if(Array.isArray(o)&&o?.includes(2)){U.preventDefault();return}c?.(U)},I=u?U=>u(U):void 0,Y=U=>{const{resetSelectedElements:q,domNode:X}=y.getState();if(A.current=X?.getBoundingClientRect(),!w||!e||U.button!==0||U.target!==T.current||!A.current)return;U.target?.setPointerCapture?.(U.pointerId),M.current=!0,R.current=!1;const{x:F,y:J}=Xi(U.nativeEvent,A.current);q(),y.setState({userSelectionRect:{width:0,height:0,startX:F,startY:J,x:F,y:J}}),i?.(U)},D=U=>{const{userSelectionRect:q,transform:X,nodeLookup:F,edgeLookup:J,connectionLookup:Q,triggerNodeChanges:z,triggerEdgeChanges:W,defaultEdgeOptions:G}=y.getState();if(!A.current||!q)return;R.current=!0;const{x:Z,y:oe}=Xi(U.nativeEvent,A.current),{startX:ee,startY:re}=q,he={startX:ee,startY:re,x:Zbe.id)),$.current=new Set;const de=G?.selectable??!0;for(const be of N.current){const De=Q.get(be);if(De)for(const{edgeId:Ge}of De.values()){const Xe=J.get(Ge);Xe&&(Xe.selectable??de)&&$.current.add(Ge)}}if(!JF(Ce,N.current)){const be=cp(F,N.current,!0);z(be)}if(!JF(ce,$.current)){const be=cp(J,$.current);W(be)}y.setState({userSelectionRect:he,userSelectionActive:!0,nodesSelectionActive:!1})},V=U=>{if(U.button!==0||!M.current)return;U.target?.releasePointerCapture?.(U.pointerId);const{userSelectionRect:q}=y.getState();!x&&q&&U.target===T.current&&O?.(U),y.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:N.current.size>0}),s?.(U),(r||a)&&(R.current=!1),M.current=!1},L=o===!0||Array.isArray(o)&&o.includes(0);return b.jsxs("div",{className:an(["react-flow__pane",{draggable:L,dragging:k,selection:e}]),onClick:_?void 0:O6(O,T),onContextMenu:O6(B,T),onWheel:O6(I,T),onPointerEnter:_?void 0:d,onPointerDown:_?Y:h,onPointerMove:_?D:h,onPointerUp:_?V:void 0,onPointerLeave:p,ref:T,style:Rw,children:[g,b.jsx(FAe,{})]})}function D6({id:e,store:r,unselect:n=!1,nodeRef:o}){const{addSelectedNodes:a,unselectNodesAndEdges:i,multiSelectionActive:s,nodeLookup:l,onError:c}=r.getState(),u=l.get(e);if(!u){c?.("012",Qs.error012(e));return}r.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&s)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>o?.current?.blur())):a([e])}function nU({nodeRef:e,disabled:r=!1,noDragClassName:n,handleSelector:o,nodeId:a,isSelectable:i,nodeClickDistance:s}){const l=pr(),[c,u]=E.useState(!1),d=E.useRef();return E.useEffect(()=>{d.current=R9e({getStoreItems:()=>l.getState(),onNodeMouseDown:h=>{D6({id:h,store:l,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),E.useEffect(()=>{if(r)d.current?.destroy();else if(e.current)return d.current?.update({noDragClassName:n,handleSelector:o,domNode:e.current,isSelectable:i,nodeId:a,nodeClickDistance:s}),()=>{d.current?.destroy()}},[n,o,r,i,e,a]),c}const VAe=e=>r=>r.selected&&(r.draggable||e&&typeof r.draggable>"u");function oU(){const e=pr();return E.useCallback(r=>{const{nodeExtent:n,snapToGrid:o,snapGrid:a,nodesDraggable:i,onError:s,updateNodePositions:l,nodeLookup:c,nodeOrigin:u}=e.getState(),d=new Map,h=VAe(i),p=o?a[0]:5,g=o?a[1]:5,y=r.direction.x*p*r.factor,x=r.direction.y*g*r.factor;for(const[,w]of c){if(!h(w))continue;let k={x:w.internals.positionAbsolute.x+y,y:w.internals.positionAbsolute.y+x};o&&(k=g1(k,a));const{position:C,positionAbsolute:_}=YF({nodeId:w.id,nextPosition:k,nodeLookup:c,nodeExtent:n,nodeOrigin:u,onError:s});w.position=C,w.internals.positionAbsolute=_,d.set(w.id,w)}l(d)},[])}const L6=E.createContext(null),qAe=L6.Provider;L6.Consumer;const I6=()=>E.useContext(L6),YAe=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),WAe=(e,r,n)=>o=>{const{connectionClickStartHandle:a,connectionMode:i,connection:s}=o,{fromHandle:l,toHandle:c,isValid:u}=s,d=c?.nodeId===e&&c?.id===r&&c?.type===n;return{connectingFrom:l?.nodeId===e&&l?.id===r&&l?.type===n,connectingTo:d,clickConnecting:a?.nodeId===e&&a?.id===r&&a?.type===n,isPossibleEndHandle:i===tp.Strict?l?.type!==n:e!==l?.nodeId||r!==l?.id,connectionInProcess:!!l,clickConnectionInProcess:!!a,valid:d&&u}};function XAe({type:e="source",position:r=tt.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:a=!0,isConnectableEnd:i=!0,id:s,onConnect:l,children:c,className:u,onMouseDown:d,onTouchStart:h,...p},g){const y=s||null,x=e==="target",w=pr(),k=I6(),{connectOnClick:C,noPanClassName:_,rfId:T}=At(YAe,Nr),{connectingFrom:A,connectingTo:N,clickConnecting:$,isPossibleEndHandle:R,connectionInProcess:M,clickConnectionInProcess:O,valid:B}=At(WAe(k,y,e),Nr);k||w.getState().onError?.("010",Qs.error010());const I=V=>{const{defaultEdgeOptions:L,onConnect:U,hasDefaultEdges:q}=w.getState(),X={...L,...V};if(q){const{edges:F,setEdges:J}=w.getState();J(m9e(X,F))}U?.(X),l?.(X)},Y=V=>{if(!k)return;const L=rH(V.nativeEvent);if(a&&(L&&V.button===0||!L)){const U=w.getState();A6.onPointerDown(V.nativeEvent,{handleDomNode:V.currentTarget,autoPanOnConnect:U.autoPanOnConnect,connectionMode:U.connectionMode,connectionRadius:U.connectionRadius,domNode:U.domNode,nodeLookup:U.nodeLookup,lib:U.lib,isTarget:x,handleId:y,nodeId:k,flowId:U.rfId,panBy:U.panBy,cancelConnection:U.cancelConnection,onConnectStart:U.onConnectStart,onConnectEnd:U.onConnectEnd,updateConnection:U.updateConnection,onConnect:I,isValidConnection:n||U.isValidConnection,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:U.autoPanSpeed,dragThreshold:U.connectionDragThreshold})}L?d?.(V):h?.(V)},D=V=>{const{onClickConnectStart:L,onClickConnectEnd:U,connectionClickStartHandle:q,connectionMode:X,isValidConnection:F,lib:J,rfId:Q,nodeLookup:z,connection:W}=w.getState();if(!k||!q&&!a)return;if(!q){L?.(V.nativeEvent,{nodeId:k,handleId:y,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:k,type:e,id:y}});return}const G=eH(V.target),Z=n||F,{connection:oe,isValid:ee}=A6.isValid(V.nativeEvent,{handle:{nodeId:k,id:y,type:e},connectionMode:X,fromNodeId:q.nodeId,fromHandleId:q.id||null,fromType:q.type,isValidConnection:Z,flowId:Q,doc:G,lib:J,nodeLookup:z});ee&&oe&&I(oe);const re=structuredClone(W);delete re.inProgress,re.toPosition=re.toHandle?re.toHandle.position:null,U?.(V,re),w.setState({connectionClickStartHandle:null})};return b.jsx("div",{"data-handleid":y,"data-nodeid":k,"data-handlepos":r,"data-id":`${T}-${k}-${y}-${e}`,className:an(["react-flow__handle",`react-flow__handle-${r}`,"nodrag",_,u,{source:!x,target:x,connectable:o,connectablestart:a,connectableend:i,clickconnecting:$,connectingfrom:A,connectingto:N,valid:B,connectionindicator:o&&(!M||R)&&(M||O?i:a)}]),onMouseDown:Y,onTouchStart:Y,onClick:C?D:void 0,ref:g,...p,children:c})}const uo=E.memo(JH(XAe));function GAe({data:e,isConnectable:r,sourcePosition:n=tt.Bottom}){return b.jsxs(b.Fragment,{children:[e?.label,b.jsx(uo,{type:"source",position:n,isConnectable:r})]})}function KAe({data:e,isConnectable:r,targetPosition:n=tt.Top,sourcePosition:o=tt.Bottom}){return b.jsxs(b.Fragment,{children:[b.jsx(uo,{type:"target",position:n,isConnectable:r}),e?.label,b.jsx(uo,{type:"source",position:o,isConnectable:r})]})}function ZAe(){return null}function QAe({data:e,isConnectable:r,targetPosition:n=tt.Top}){return b.jsxs(b.Fragment,{children:[b.jsx(uo,{type:"target",position:n,isConnectable:r}),e?.label]})}const $w={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},aU={input:GAe,default:KAe,output:QAe,group:ZAe};function JAe(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}const e7e=e=>{const{width:r,height:n,x:o,y:a}=rp(e.nodeLookup,{filter:i=>!!i.selected});return{width:Wi(r)?r:null,height:Wi(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${o}px,${a}px)`}};function t7e({onSelectionContextMenu:e,noPanClassName:r,disableKeyboardA11y:n}){const o=pr(),{width:a,height:i,transformString:s,userSelectionActive:l}=At(e7e,Nr),c=oU(),u=E.useRef(null);if(E.useEffect(()=>{n||u.current?.focus({preventScroll:!0})},[n]),nU({nodeRef:u}),l||!a||!i)return null;const d=e?p=>{const g=o.getState().nodes.filter(y=>y.selected);e(p,g)}:void 0,h=p=>{Object.prototype.hasOwnProperty.call($w,p.key)&&(p.preventDefault(),c({direction:$w[p.key],factor:p.shiftKey?4:1}))};return b.jsx("div",{className:an(["react-flow__nodesselection","react-flow__container",r]),style:{transform:s},children:b.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:h,style:{width:a,height:i}})})}const iU=typeof window<"u"?window:void 0,r7e=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function sU({children:e,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:s,paneClickDistance:l,deleteKeyCode:c,selectionKeyCode:u,selectionOnDrag:d,selectionMode:h,onSelectionStart:p,onSelectionEnd:g,multiSelectionKeyCode:y,panActivationKeyCode:x,zoomActivationKeyCode:w,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:T,panOnScrollSpeed:A,panOnScrollMode:N,zoomOnDoubleClick:$,panOnDrag:R,defaultViewport:M,translateExtent:O,minZoom:B,maxZoom:I,preventScrolling:Y,onSelectionContextMenu:D,noWheelClassName:V,noPanClassName:L,disableKeyboardA11y:U,onViewportChange:q,isControlledViewport:X}){const{nodesSelectionActive:F,userSelectionActive:J}=At(r7e),Q=x1(u,{target:iU}),z=x1(x,{target:iU}),W=z||R,G=z||T,Z=d&&W!==!0,oe=Q||J||Z;return LAe({deleteKeyCode:c,multiSelectionKeyCode:y}),b.jsx(jAe,{onPaneContextMenu:i,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:G,panOnScrollSpeed:A,panOnScrollMode:N,zoomOnDoubleClick:$,panOnDrag:!Q&&W,defaultViewport:M,translateExtent:O,minZoom:B,maxZoom:I,zoomActivationKeyCode:w,preventScrolling:Y,noWheelClassName:V,noPanClassName:L,onViewportChange:q,isControlledViewport:X,paneClickDistance:l,children:b.jsxs(UAe,{onSelectionStart:p,onSelectionEnd:g,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:s,panOnDrag:W,isSelecting:!!oe,selectionMode:h,selectionKeyPressed:Q,selectionOnDrag:Z,children:[e,F&&b.jsx(t7e,{onSelectionContextMenu:D,noPanClassName:L,disableKeyboardA11y:U})]})})}sU.displayName="FlowRenderer";const n7e=E.memo(sU),o7e=e=>r=>e?b6(r.nodeLookup,{x:0,y:0,width:r.width,height:r.height},r.transform,!0).map(n=>n.id):Array.from(r.nodeLookup.keys());function a7e(e){return At(E.useCallback(o7e(e),[e]),Nr)}const i7e=e=>e.updateNodeInternals;function s7e(){const e=At(i7e),[r]=E.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const o=new Map;n.forEach(a=>{const i=a.target.getAttribute("data-id");o.set(i,{id:i,nodeElement:a.target,force:!0})}),e(o)}));return E.useEffect(()=>()=>{r?.disconnect()},[r]),r}function l7e({node:e,nodeType:r,hasDimensions:n,resizeObserver:o}){const a=pr(),i=E.useRef(null),s=E.useRef(null),l=E.useRef(e.sourcePosition),c=E.useRef(e.targetPosition),u=E.useRef(r),d=n&&!!e.internals.handleBounds;return E.useEffect(()=>{i.current&&!e.hidden&&(!d||s.current!==i.current)&&(s.current&&o?.unobserve(s.current),o?.observe(i.current),s.current=i.current)},[d,e.hidden]),E.useEffect(()=>()=>{s.current&&(o?.unobserve(s.current),s.current=null)},[]),E.useEffect(()=>{if(i.current){const h=u.current!==r,p=l.current!==e.sourcePosition,g=c.current!==e.targetPosition;(h||p||g)&&(u.current=r,l.current=e.sourcePosition,c.current=e.targetPosition,a.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,r,e.sourcePosition,e.targetPosition]),i}function c7e({id:e,onClick:r,onMouseEnter:n,onMouseMove:o,onMouseLeave:a,onContextMenu:i,onDoubleClick:s,nodesDraggable:l,elementsSelectable:c,nodesConnectable:u,nodesFocusable:d,resizeObserver:h,noDragClassName:p,noPanClassName:g,disableKeyboardA11y:y,rfId:x,nodeTypes:w,nodeClickDistance:k,onError:C}){const{node:_,internals:T,isParent:A}=At(ee=>{const re=ee.nodeLookup.get(e),he=ee.parentLookup.has(e);return{node:re,internals:re.internals,isParent:he}},Nr);let N=_.type||"default",$=w?.[N]||aU[N];$===void 0&&(C?.("003",Qs.error003(N)),N="default",$=w?.default||aU.default);const R=!!(_.draggable||l&&typeof _.draggable>"u"),M=!!(_.selectable||c&&typeof _.selectable>"u"),O=!!(_.connectable||u&&typeof _.connectable>"u"),B=!!(_.focusable||d&&typeof _.focusable>"u"),I=pr(),Y=ZF(_),D=l7e({node:_,nodeType:N,hasDimensions:Y,resizeObserver:h}),V=nU({nodeRef:D,disabled:_.hidden||!R,noDragClassName:p,handleSelector:_.dragHandle,nodeId:e,isSelectable:M,nodeClickDistance:k}),L=oU();if(_.hidden)return null;const U=Wn(_),q=JAe(_),X=M||R||r||n||o||a,F=n?ee=>n(ee,{...T.userNode}):void 0,J=o?ee=>o(ee,{...T.userNode}):void 0,Q=a?ee=>a(ee,{...T.userNode}):void 0,z=i?ee=>i(ee,{...T.userNode}):void 0,W=s?ee=>s(ee,{...T.userNode}):void 0,G=ee=>{const{selectNodesOnDrag:re,nodeDragThreshold:he}=I.getState();M&&(!re||!R||he>0)&&D6({id:e,store:I,nodeRef:D}),r&&r(ee,{...T.userNode})},Z=ee=>{if(!(tH(ee.nativeEvent)||y)){if(jF.includes(ee.key)&&M){const re=ee.key==="Escape";D6({id:e,store:I,unselect:re,nodeRef:D})}else if(R&&_.selected&&Object.prototype.hasOwnProperty.call($w,ee.key)){ee.preventDefault();const{ariaLabelConfig:re}=I.getState();I.setState({ariaLiveMessage:re["node.a11yDescription.ariaLiveMessage"]({direction:ee.key.replace("Arrow","").toLowerCase(),x:~~T.positionAbsolute.x,y:~~T.positionAbsolute.y})}),L({direction:$w[ee.key],factor:ee.shiftKey?4:1})}}},oe=()=>{if(y||!D.current?.matches(":focus-visible"))return;const{transform:ee,width:re,height:he,autoPanOnNodeFocus:Ce,setCenter:ce}=I.getState();Ce&&(b6(new Map([[e,_]]),{x:0,y:0,width:re,height:he},ee,!0).length>0||ce(_.position.x+U.width/2,_.position.y+U.height/2,{zoom:ee[2]}))};return b.jsx("div",{className:an(["react-flow__node",`react-flow__node-${N}`,{[g]:R},_.className,{selected:_.selected,selectable:M,parent:A,draggable:R,dragging:V}]),ref:D,style:{zIndex:T.z,transform:`translate(${T.positionAbsolute.x}px,${T.positionAbsolute.y}px)`,pointerEvents:X?"all":"none",visibility:Y?"visible":"hidden",..._.style,...q},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:F,onMouseMove:J,onMouseLeave:Q,onContextMenu:z,onClick:G,onDoubleClick:W,onKeyDown:B?Z:void 0,tabIndex:B?0:void 0,onFocus:B?oe:void 0,role:_.ariaRole??(B?"group":void 0),"aria-roledescription":"node","aria-describedby":y?void 0:`${BH}-${x}`,"aria-label":_.ariaLabel,..._.domAttributes,children:b.jsx(qAe,{value:e,children:b.jsx($,{id:e,data:_.data,type:N,positionAbsoluteX:T.positionAbsolute.x,positionAbsoluteY:T.positionAbsolute.y,selected:_.selected??!1,selectable:M,draggable:R,deletable:_.deletable??!0,isConnectable:O,sourcePosition:_.sourcePosition,targetPosition:_.targetPosition,dragging:V,dragHandle:_.dragHandle,zIndex:T.z,parentId:_.parentId,...U})})})}const u7e=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function lU(e){const{nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,onError:i}=At(u7e,Nr),s=a7e(e.onlyRenderVisibleElements),l=s7e();return b.jsx("div",{className:"react-flow__nodes",style:Rw,children:s.map(c=>b.jsx(c7e,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:l,nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:i},c))})}lU.displayName="NodeRenderer";const d7e=E.memo(lU);function h7e(e){return At(E.useCallback(r=>{if(!e)return r.edges.map(o=>o.id);const n=[];if(r.width&&r.height)for(const o of r.edges){const a=r.nodeLookup.get(o.source),i=r.nodeLookup.get(o.target);a&&i&&h9e({sourceNode:a,targetNode:i,width:r.width,height:r.height,transform:r.transform})&&n.push(o.id)}return n},[e]),Nr)}const f7e=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e}};return b.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},p7e=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e,fill:e}};return b.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},cU={[gw.Arrow]:f7e,[gw.ArrowClosed]:p7e};function m7e(e){const r=pr();return E.useMemo(()=>Object.prototype.hasOwnProperty.call(cU,e)?cU[e]:(r.getState().onError?.("009",Qs.error009(e)),null),[e])}const g7e=({id:e,type:r,color:n,width:o=12.5,height:a=12.5,markerUnits:i="strokeWidth",strokeWidth:s,orient:l="auto-start-reverse"})=>{const c=m7e(r);return c?b.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${o}`,markerHeight:`${a}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:l,refX:"0",refY:"0",children:b.jsx(c,{color:n,strokeWidth:s})}):null},uU=({defaultColor:e,rfId:r})=>{const n=At(i=>i.edges),o=At(i=>i.defaultEdgeOptions),a=E.useMemo(()=>v9e(n,{id:r,defaultColor:e,defaultMarkerStart:o?.markerStart,defaultMarkerEnd:o?.markerEnd}),[n,o,r,e]);return a.length?b.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:b.jsx("defs",{children:a.map(i=>b.jsx(g7e,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};uU.displayName="MarkerDefinitions";var y7e=E.memo(uU);function dU({x:e,y:r,label:n,labelStyle:o,labelShowBg:a=!0,labelBgStyle:i,labelBgPadding:s=[2,4],labelBgBorderRadius:l=2,children:c,className:u,...d}){const[h,p]=E.useState({x:1,y:0,width:0,height:0}),g=an(["react-flow__edge-textwrapper",u]),y=E.useRef(null);return E.useEffect(()=>{if(y.current){const x=y.current.getBBox();p({x:x.x,y:x.y,width:x.width,height:x.height})}},[n]),n?b.jsxs("g",{transform:`translate(${e-h.width/2} ${r-h.height/2})`,className:g,visibility:h.width?"visible":"hidden",...d,children:[a&&b.jsx("rect",{width:h.width+2*s[0],x:-s[0],y:-s[1],height:h.height+2*s[1],className:"react-flow__edge-textbg",style:i,rx:l,ry:l}),b.jsx("text",{className:"react-flow__edge-text",y:h.height/2,dy:"0.3em",ref:y,style:o,children:n}),c]}):null}dU.displayName="EdgeText";const b7e=E.memo(dU);function Pw({path:e,labelX:r,labelY:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,interactionWidth:u=20,...d}){return b.jsxs(b.Fragment,{children:[b.jsx("path",{...d,d:e,fill:"none",className:an(["react-flow__edge-path",d.className])}),u?b.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:u,className:"react-flow__edge-interaction"}):null,o&&Wi(r)&&Wi(n)?b.jsx(b7e,{x:r,y:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c}):null]})}function hU({pos:e,x1:r,y1:n,x2:o,y2:a}){return e===tt.Left||e===tt.Right?[.5*(r+o),n]:[r,.5*(n+a)]}function fU({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top}){const[s,l]=hU({pos:n,x1:e,y1:r,x2:o,y2:a}),[c,u]=hU({pos:i,x1:o,y1:a,x2:e,y2:r}),[d,h,p,g]=oH({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${e},${r} C${s},${l} ${c},${u} ${o},${a}`,d,h,p,g]}function pU(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:s,targetPosition:l,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,interactionWidth:k})=>{const[C,_,T]=fU({sourceX:n,sourceY:o,sourcePosition:s,targetX:a,targetY:i,targetPosition:l}),A=e.isInternal?void 0:r;return b.jsx(Pw,{id:A,path:C,labelX:_,labelY:T,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,interactionWidth:k})})}const v7e=pU({isInternal:!1}),mU=pU({isInternal:!0});v7e.displayName="SimpleBezierEdge",mU.displayName="SimpleBezierEdgeInternal";function gU(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,sourcePosition:g=tt.Bottom,targetPosition:y=tt.Top,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,A]=_w({sourceX:n,sourceY:o,sourcePosition:g,targetX:a,targetY:i,targetPosition:y,borderRadius:k?.borderRadius,offset:k?.offset,stepPosition:k?.stepPosition}),N=e.isInternal?void 0:r;return b.jsx(Pw,{id:N,path:_,labelX:T,labelY:A,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,markerEnd:x,markerStart:w,interactionWidth:C})})}const yU=gU({isInternal:!1}),bU=gU({isInternal:!0});yU.displayName="SmoothStepEdge",bU.displayName="SmoothStepEdgeInternal";function vU(e){return E.memo(({id:r,...n})=>{const o=e.isInternal?void 0:r;return b.jsx(yU,{...n,id:o,pathOptions:E.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const x7e=vU({isInternal:!1}),xU=vU({isInternal:!0});x7e.displayName="StepEdge",xU.displayName="StepEdgeInternal";function wU(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,markerEnd:g,markerStart:y,interactionWidth:x})=>{const[w,k,C]=sH({sourceX:n,sourceY:o,targetX:a,targetY:i}),_=e.isInternal?void 0:r;return b.jsx(Pw,{id:_,path:w,labelX:k,labelY:C,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:u,labelBgPadding:d,labelBgBorderRadius:h,style:p,markerEnd:g,markerStart:y,interactionWidth:x})})}const w7e=wU({isInternal:!1}),kU=wU({isInternal:!0});w7e.displayName="StraightEdge",kU.displayName="StraightEdgeInternal";function _U(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:s=tt.Bottom,targetPosition:l=tt.Top,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,A]=kw({sourceX:n,sourceY:o,sourcePosition:s,targetX:a,targetY:i,targetPosition:l,curvature:k?.curvature}),N=e.isInternal?void 0:r;return b.jsx(Pw,{id:N,path:_,labelX:T,labelY:A,label:c,labelStyle:u,labelShowBg:d,labelBgStyle:h,labelBgPadding:p,labelBgBorderRadius:g,style:y,markerEnd:x,markerStart:w,interactionWidth:C})})}const k7e=_U({isInternal:!1}),EU=_U({isInternal:!0});k7e.displayName="BezierEdge",EU.displayName="BezierEdgeInternal";const SU={default:EU,straight:kU,step:xU,smoothstep:bU,simplebezier:mU},CU={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},_7e=(e,r,n)=>n===tt.Left?e-r:n===tt.Right?e+r:e,E7e=(e,r,n)=>n===tt.Top?e-r:n===tt.Bottom?e+r:e,TU="react-flow__edgeupdater";function AU({position:e,centerX:r,centerY:n,radius:o=10,onMouseDown:a,onMouseEnter:i,onMouseOut:s,type:l}){return b.jsx("circle",{onMouseDown:a,onMouseEnter:i,onMouseOut:s,className:an([TU,`${TU}-${l}`]),cx:_7e(r,o,e),cy:E7e(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function S7e({isReconnectable:e,reconnectRadius:r,edge:n,sourceX:o,sourceY:a,targetX:i,targetY:s,sourcePosition:l,targetPosition:c,onReconnect:u,onReconnectStart:d,onReconnectEnd:h,setReconnecting:p,setUpdateHover:g}){const y=pr(),x=(T,A)=>{if(T.button!==0)return;const{autoPanOnConnect:N,domNode:$,isValidConnection:R,connectionMode:M,connectionRadius:O,lib:B,onConnectStart:I,onConnectEnd:Y,cancelConnection:D,nodeLookup:V,rfId:L,panBy:U,updateConnection:q}=y.getState(),X=A.type==="target",F=(z,W)=>{p(!1),h?.(z,n,A.type,W)},J=z=>u?.(n,z),Q=(z,W)=>{p(!0),d?.(T,n,A.type),I?.(z,W)};A6.onPointerDown(T.nativeEvent,{autoPanOnConnect:N,connectionMode:M,connectionRadius:O,domNode:$,handleId:A.id,nodeId:A.nodeId,nodeLookup:V,isTarget:X,edgeUpdaterType:A.type,lib:B,flowId:L,cancelConnection:D,panBy:U,isValidConnection:R,onConnect:J,onConnectStart:Q,onConnectEnd:Y,onReconnectEnd:F,updateConnection:q,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,dragThreshold:y.getState().connectionDragThreshold,handleDomNode:T.currentTarget})},w=T=>x(T,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),k=T=>x(T,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),C=()=>g(!0),_=()=>g(!1);return b.jsxs(b.Fragment,{children:[(e===!0||e==="source")&&b.jsx(AU,{position:l,centerX:o,centerY:a,radius:r,onMouseDown:w,onMouseEnter:C,onMouseOut:_,type:"source"}),(e===!0||e==="target")&&b.jsx(AU,{position:c,centerX:i,centerY:s,radius:r,onMouseDown:k,onMouseEnter:C,onMouseOut:_,type:"target"})]})}function C7e({id:e,edgesFocusable:r,edgesReconnectable:n,elementsSelectable:o,onClick:a,onDoubleClick:i,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,reconnectRadius:d,onReconnect:h,onReconnectStart:p,onReconnectEnd:g,rfId:y,edgeTypes:x,noPanClassName:w,onError:k,disableKeyboardA11y:C}){let _=At(ce=>ce.edgeLookup.get(e));const T=At(ce=>ce.defaultEdgeOptions);_=T?{...T,..._}:_;let A=_.type||"default",N=x?.[A]||SU[A];N===void 0&&(k?.("011",Qs.error011(A)),A="default",N=x?.default||SU.default);const $=!!(_.focusable||r&&typeof _.focusable>"u"),R=typeof h<"u"&&(_.reconnectable||n&&typeof _.reconnectable>"u"),M=!!(_.selectable||o&&typeof _.selectable>"u"),O=E.useRef(null),[B,I]=E.useState(!1),[Y,D]=E.useState(!1),V=pr(),{zIndex:L,sourceX:U,sourceY:q,targetX:X,targetY:F,sourcePosition:J,targetPosition:Q}=At(E.useCallback(ce=>{const de=ce.nodeLookup.get(_.source),be=ce.nodeLookup.get(_.target);if(!de||!be)return{zIndex:_.zIndex,...CU};const De=dH({id:e,sourceNode:de,targetNode:be,sourceHandle:_.sourceHandle||null,targetHandle:_.targetHandle||null,connectionMode:ce.connectionMode,onError:k});return{zIndex:d9e({selected:_.selected,zIndex:_.zIndex,sourceNode:de,targetNode:be,elevateOnSelect:ce.elevateEdgesOnSelect}),...De||CU}},[_.source,_.target,_.sourceHandle,_.targetHandle,_.selected,_.zIndex]),Nr),z=E.useMemo(()=>_.markerStart?`url('#${w6(_.markerStart,y)}')`:void 0,[_.markerStart,y]),W=E.useMemo(()=>_.markerEnd?`url('#${w6(_.markerEnd,y)}')`:void 0,[_.markerEnd,y]);if(_.hidden||U===null||q===null||X===null||F===null)return null;const G=ce=>{const{addSelectedEdges:de,unselectNodesAndEdges:be,multiSelectionActive:De}=V.getState();M&&(V.setState({nodesSelectionActive:!1}),_.selected&&De?(be({nodes:[],edges:[_]}),O.current?.blur()):de([e])),a&&a(ce,_)},Z=i?ce=>{i(ce,{..._})}:void 0,oe=s?ce=>{s(ce,{..._})}:void 0,ee=l?ce=>{l(ce,{..._})}:void 0,re=c?ce=>{c(ce,{..._})}:void 0,he=u?ce=>{u(ce,{..._})}:void 0,Ce=ce=>{if(!C&&jF.includes(ce.key)&&M){const{unselectNodesAndEdges:de,addSelectedEdges:be}=V.getState();ce.key==="Escape"?(O.current?.blur(),de({edges:[_]})):be([e])}};return b.jsx("svg",{style:{zIndex:L},children:b.jsxs("g",{className:an(["react-flow__edge",`react-flow__edge-${A}`,_.className,w,{selected:_.selected,animated:_.animated,inactive:!M&&!a,updating:B,selectable:M}]),onClick:G,onDoubleClick:Z,onContextMenu:oe,onMouseEnter:ee,onMouseMove:re,onMouseLeave:he,onKeyDown:$?Ce:void 0,tabIndex:$?0:void 0,role:_.ariaRole??($?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":_.ariaLabel===null?void 0:_.ariaLabel||`Edge from ${_.source} to ${_.target}`,"aria-describedby":$?`${FH}-${y}`:void 0,ref:O,..._.domAttributes,children:[!Y&&b.jsx(N,{id:e,source:_.source,target:_.target,type:_.type,selected:_.selected,animated:_.animated,selectable:M,deletable:_.deletable??!0,label:_.label,labelStyle:_.labelStyle,labelShowBg:_.labelShowBg,labelBgStyle:_.labelBgStyle,labelBgPadding:_.labelBgPadding,labelBgBorderRadius:_.labelBgBorderRadius,sourceX:U,sourceY:q,targetX:X,targetY:F,sourcePosition:J,targetPosition:Q,data:_.data,style:_.style,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerStart:z,markerEnd:W,pathOptions:"pathOptions"in _?_.pathOptions:void 0,interactionWidth:_.interactionWidth}),R&&b.jsx(S7e,{edge:_,isReconnectable:R,reconnectRadius:d,onReconnect:h,onReconnectStart:p,onReconnectEnd:g,sourceX:U,sourceY:q,targetX:X,targetY:F,sourcePosition:J,targetPosition:Q,setUpdateHover:I,setReconnecting:D})]})})}const T7e=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function NU({defaultMarkerColor:e,onlyRenderVisibleElements:r,rfId:n,edgeTypes:o,noPanClassName:a,onReconnect:i,onEdgeContextMenu:s,onEdgeMouseEnter:l,onEdgeMouseMove:c,onEdgeMouseLeave:u,onEdgeClick:d,reconnectRadius:h,onEdgeDoubleClick:p,onReconnectStart:g,onReconnectEnd:y,disableKeyboardA11y:x}){const{edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,onError:_}=At(T7e,Nr),T=h7e(r);return b.jsxs("div",{className:"react-flow__edges",children:[b.jsx(y7e,{defaultColor:e,rfId:n}),T.map(A=>b.jsx(C7e,{id:A,edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,noPanClassName:a,onReconnect:i,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onClick:d,reconnectRadius:h,onDoubleClick:p,onReconnectStart:g,onReconnectEnd:y,rfId:n,onError:_,edgeTypes:o,disableKeyboardA11y:x},A))]})}NU.displayName="EdgeRenderer";const A7e=E.memo(NU),N7e=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function R7e({children:e}){const r=At(N7e);return b.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:r},children:e})}function $7e(e){const r=up(),n=E.useRef(!1);E.useEffect(()=>{!n.current&&r.viewportInitialized&&e&&(setTimeout(()=>e(r),1),n.current=!0)},[e,r.viewportInitialized])}const P7e=e=>e.panZoom?.syncViewport;function M7e(e){const r=At(P7e),n=pr();return E.useEffect(()=>{e&&(r?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,r]),null}function O7e(e){return e.connection.inProgress?{...e.connection,to:y1(e.connection.to,e.transform)}:{...e.connection}}function D7e(e){return O7e}function L7e(e){const r=D7e();return At(r,Nr)}const I7e=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function z7e({containerStyle:e,style:r,type:n,component:o}){const{nodesConnectable:a,width:i,height:s,isValid:l,inProgress:c}=At(I7e,Nr);return i&&a&&c?b.jsx("svg",{style:e,width:i,height:s,className:"react-flow__connectionline react-flow__container",children:b.jsx("g",{className:an(["react-flow__connection",UF(l)]),children:b.jsx(RU,{style:r,type:n,CustomComponent:o,isValid:l})})}):null}const RU=({style:e,type:r=eu.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:a,from:i,fromNode:s,fromHandle:l,fromPosition:c,to:u,toNode:d,toHandle:h,toPosition:p}=L7e();if(!a)return;if(n)return b.jsx(n,{connectionLineType:r,connectionLineStyle:e,fromNode:s,fromHandle:l,fromX:i.x,fromY:i.y,toX:u.x,toY:u.y,fromPosition:c,toPosition:p,connectionStatus:UF(o),toNode:d,toHandle:h});let g="";const y={sourceX:i.x,sourceY:i.y,sourcePosition:c,targetX:u.x,targetY:u.y,targetPosition:p};switch(r){case eu.Bezier:[g]=kw(y);break;case eu.SimpleBezier:[g]=fU(y);break;case eu.Step:[g]=_w({...y,borderRadius:0});break;case eu.SmoothStep:[g]=_w(y);break;default:[g]=sH(y)}return b.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};RU.displayName="ConnectionLine";const j7e={};function $U(e=j7e){E.useRef(e),pr(),E.useEffect(()=>{},[e])}function B7e(){pr(),E.useRef(!1),E.useEffect(()=>{},[])}function PU({nodeTypes:e,edgeTypes:r,onInit:n,onNodeClick:o,onEdgeClick:a,onNodeDoubleClick:i,onEdgeDoubleClick:s,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,onSelectionContextMenu:h,onSelectionStart:p,onSelectionEnd:g,connectionLineType:y,connectionLineStyle:x,connectionLineComponent:w,connectionLineContainerStyle:k,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,multiSelectionKeyCode:A,panActivationKeyCode:N,zoomActivationKeyCode:$,deleteKeyCode:R,onlyRenderVisibleElements:M,elementsSelectable:O,defaultViewport:B,translateExtent:I,minZoom:Y,maxZoom:D,preventScrolling:V,defaultMarkerColor:L,zoomOnScroll:U,zoomOnPinch:q,panOnScroll:X,panOnScrollSpeed:F,panOnScrollMode:J,zoomOnDoubleClick:Q,panOnDrag:z,onPaneClick:W,onPaneMouseEnter:G,onPaneMouseMove:Z,onPaneMouseLeave:oe,onPaneScroll:ee,onPaneContextMenu:re,paneClickDistance:he,nodeClickDistance:Ce,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:be,onEdgeMouseLeave:De,reconnectRadius:Ge,onReconnect:Xe,onReconnectStart:_t,onReconnectEnd:Qe,noDragClassName:St,noWheelClassName:Ke,noPanClassName:We,disableKeyboardA11y:lt,nodeExtent:Et,rfId:Pn,viewport:_e,onViewportChange:we}){return $U(e),$U(r),B7e(),$7e(n),M7e(_e),b.jsx(n7e,{onPaneClick:W,onPaneMouseEnter:G,onPaneMouseMove:Z,onPaneMouseLeave:oe,onPaneContextMenu:re,onPaneScroll:ee,paneClickDistance:he,deleteKeyCode:R,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,onSelectionStart:p,onSelectionEnd:g,multiSelectionKeyCode:A,panActivationKeyCode:N,zoomActivationKeyCode:$,elementsSelectable:O,zoomOnScroll:U,zoomOnPinch:q,zoomOnDoubleClick:Q,panOnScroll:X,panOnScrollSpeed:F,panOnScrollMode:J,panOnDrag:z,defaultViewport:B,translateExtent:I,minZoom:Y,maxZoom:D,onSelectionContextMenu:h,preventScrolling:V,noDragClassName:St,noWheelClassName:Ke,noPanClassName:We,disableKeyboardA11y:lt,onViewportChange:we,isControlledViewport:!!_e,children:b.jsxs(R7e,{children:[b.jsx(A7e,{edgeTypes:r,onEdgeClick:a,onEdgeDoubleClick:s,onReconnect:Xe,onReconnectStart:_t,onReconnectEnd:Qe,onlyRenderVisibleElements:M,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:be,onEdgeMouseLeave:De,reconnectRadius:Ge,defaultMarkerColor:L,noPanClassName:We,disableKeyboardA11y:lt,rfId:Pn}),b.jsx(z7e,{style:x,type:y,component:w,containerStyle:k}),b.jsx("div",{className:"react-flow__edgelabel-renderer"}),b.jsx(d7e,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:i,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,nodeClickDistance:Ce,onlyRenderVisibleElements:M,noPanClassName:We,noDragClassName:St,disableKeyboardA11y:lt,nodeExtent:Et,rfId:Pn}),b.jsx("div",{className:"react-flow__viewport-portal"})]})})}PU.displayName="GraphView";const F7e=E.memo(PU),MU=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c=.5,maxZoom:u=2,nodeOrigin:d,nodeExtent:h}={})=>{const p=new Map,g=new Map,y=new Map,x=new Map,w=o??r??[],k=n??e??[],C=d??[0,0],_=h??d1;gH(y,x,w);const T=E6(k,p,g,{nodeOrigin:C,nodeExtent:_,elevateNodesOnSelect:!1});let A=[0,0,1];if(s&&a&&i){const N=rp(p,{filter:O=>!!((O.width||O.initialWidth)&&(O.height||O.initialHeight))}),{x:$,y:R,zoom:M}=tu(N,a,i,c,u,l?.padding??.1);A=[$,R,M]}return{rfId:"1",width:a??0,height:i??0,transform:A,nodes:k,nodesInitialized:T,nodeLookup:p,parentLookup:g,edges:w,edgeLookup:x,connectionLookup:y,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:c,maxZoom:u,translateExtent:d1,nodeExtent:_,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:tp.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:l,fitViewResolver:null,connection:{...FF},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:a9e,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:BF}},H7e=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:h})=>lAe((p,g)=>{async function y(){const{nodeLookup:x,panZoom:w,fitViewOptions:k,fitViewResolver:C,width:_,height:T,minZoom:A,maxZoom:N}=g();w&&(await n9e({nodes:x,width:_,height:T,panZoom:w,minZoom:A,maxZoom:N},k),C?.resolve(!0),p({fitViewResolver:null}))}return{...MU({nodes:e,edges:r,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:h,defaultNodes:n,defaultEdges:o}),setNodes:x=>{const{nodeLookup:w,parentLookup:k,nodeOrigin:C,elevateNodesOnSelect:_,fitViewQueued:T}=g(),A=E6(x,w,k,{nodeOrigin:C,nodeExtent:h,elevateNodesOnSelect:_,checkEquality:!0});T&&A?(y(),p({nodes:x,nodesInitialized:A,fitViewQueued:!1,fitViewOptions:void 0})):p({nodes:x,nodesInitialized:A})},setEdges:x=>{const{connectionLookup:w,edgeLookup:k}=g();gH(w,k,x),p({edges:x})},setDefaultNodesAndEdges:(x,w)=>{if(x){const{setNodes:k}=g();k(x),p({hasDefaultNodes:!0})}if(w){const{setEdges:k}=g();k(w),p({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:w,nodeLookup:k,parentLookup:C,domNode:_,nodeOrigin:T,nodeExtent:A,debug:N,fitViewQueued:$}=g(),{changes:R,updatedInternals:M}=C9e(x,k,C,_,T,A);M&&(k9e(k,C,{nodeOrigin:T,nodeExtent:A}),$?(y(),p({fitViewQueued:!1,fitViewOptions:void 0})):p({}),R?.length>0&&(N&&console.log("React Flow: trigger node changes",R),w?.(R)))},updateNodePositions:(x,w=!1)=>{const k=[],C=[],{nodeLookup:_,triggerNodeChanges:T}=g();for(const[A,N]of x){const $=_.get(A),R=!!($?.expandParent&&$?.parentId&&N?.position),M={id:A,type:"position",position:R?{x:Math.max(0,N.position.x),y:Math.max(0,N.position.y)}:N.position,dragging:w};R&&$.parentId&&k.push({id:A,parentId:$.parentId,rect:{...N.internals.positionAbsolute,width:N.measured.width??0,height:N.measured.height??0}}),C.push(M)}if(k.length>0){const{parentLookup:A,nodeOrigin:N}=g(),$=C6(k,_,A,N);C.push(...$)}T(C)},triggerNodeChanges:x=>{const{onNodesChange:w,setNodes:k,nodes:C,hasDefaultNodes:_,debug:T}=g();if(x?.length){if(_){const A=Aw(x,C);k(A)}T&&console.log("React Flow: trigger node changes",x),w?.(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:w,setEdges:k,edges:C,hasDefaultEdges:_,debug:T}=g();if(x?.length){if(_){const A=Nw(x,C);k(A)}T&&console.log("React Flow: trigger edge changes",x),w?.(x)}},addSelectedNodes:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const A=x.map(N=>Fd(N,!0));_(A);return}_(cp(C,new Set([...x]),!0)),T(cp(k))},addSelectedEdges:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const A=x.map(N=>Fd(N,!0));T(A);return}T(cp(k,new Set([...x]))),_(cp(C,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:w}={})=>{const{edges:k,nodes:C,nodeLookup:_,triggerNodeChanges:T,triggerEdgeChanges:A}=g(),N=x||C,$=w||k,R=N.map(O=>{const B=_.get(O.id);return B&&(B.selected=!1),Fd(O.id,!1)}),M=$.map(O=>Fd(O.id,!1));T(R),A(M)},setMinZoom:x=>{const{panZoom:w,maxZoom:k}=g();w?.setScaleExtent([x,k]),p({minZoom:x})},setMaxZoom:x=>{const{panZoom:w,minZoom:k}=g();w?.setScaleExtent([k,x]),p({maxZoom:x})},setTranslateExtent:x=>{g().panZoom?.setTranslateExtent(x),p({translateExtent:x})},setPaneClickDistance:x=>{g().panZoom?.setClickDistance(x)},resetSelectedElements:()=>{const{edges:x,nodes:w,triggerNodeChanges:k,triggerEdgeChanges:C,elementsSelectable:_}=g();if(!_)return;const T=w.reduce((N,$)=>$.selected?[...N,Fd($.id,!1)]:N,[]),A=x.reduce((N,$)=>$.selected?[...N,Fd($.id,!1)]:N,[]);k(T),C(A)},setNodeExtent:x=>{const{nodes:w,nodeLookup:k,parentLookup:C,nodeOrigin:_,elevateNodesOnSelect:T,nodeExtent:A}=g();x[0][0]===A[0][0]&&x[0][1]===A[0][1]&&x[1][0]===A[1][0]&&x[1][1]===A[1][1]||(E6(w,k,C,{nodeOrigin:_,nodeExtent:x,elevateNodesOnSelect:T,checkEquality:!1}),p({nodeExtent:x}))},panBy:x=>{const{transform:w,width:k,height:C,panZoom:_,translateExtent:T}=g();return T9e({delta:x,panZoom:_,transform:w,translateExtent:T,width:k,height:C})},setCenter:async(x,w,k)=>{const{width:C,height:_,maxZoom:T,panZoom:A}=g();if(!A)return Promise.resolve(!1);const N=typeof k?.zoom<"u"?k.zoom:T;return await A.setViewport({x:C/2-x*N,y:_/2-w*N,zoom:N},{duration:k?.duration,ease:k?.ease,interpolate:k?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{p({connection:{...FF}})},updateConnection:x=>{p({connection:x})},reset:()=>p({...MU()})}},Object.is);function Mw({initialNodes:e,initialEdges:r,defaultNodes:n,defaultEdges:o,initialWidth:a,initialHeight:i,initialMinZoom:s,initialMaxZoom:l,initialFitViewOptions:c,fitView:u,nodeOrigin:d,nodeExtent:h,children:p}){const[g]=E.useState(()=>H7e({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:u,minZoom:s,maxZoom:l,fitViewOptions:c,nodeOrigin:d,nodeExtent:h}));return b.jsx(cAe,{value:g,children:b.jsx(PAe,{children:p})})}function U7e({children:e,nodes:r,edges:n,defaultNodes:o,defaultEdges:a,width:i,height:s,fitView:l,fitViewOptions:c,minZoom:u,maxZoom:d,nodeOrigin:h,nodeExtent:p}){return E.useContext(Cw)?b.jsx(b.Fragment,{children:e}):b.jsx(Mw,{initialNodes:r,initialEdges:n,defaultNodes:o,defaultEdges:a,initialWidth:i,initialHeight:s,fitView:l,initialFitViewOptions:c,initialMinZoom:u,initialMaxZoom:d,nodeOrigin:h,nodeExtent:p,children:e})}const V7e={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function q7e({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,className:a,nodeTypes:i,edgeTypes:s,onNodeClick:l,onEdgeClick:c,onInit:u,onMove:d,onMoveStart:h,onMoveEnd:p,onConnect:g,onConnectStart:y,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:A,onNodeDoubleClick:N,onNodeDragStart:$,onNodeDrag:R,onNodeDragStop:M,onNodesDelete:O,onEdgesDelete:B,onDelete:I,onSelectionChange:Y,onSelectionDragStart:D,onSelectionDrag:V,onSelectionDragStop:L,onSelectionContextMenu:U,onSelectionStart:q,onSelectionEnd:X,onBeforeDelete:F,connectionMode:J,connectionLineType:Q=eu.Bezier,connectionLineStyle:z,connectionLineComponent:W,connectionLineContainerStyle:G,deleteKeyCode:Z="Backspace",selectionKeyCode:oe="Shift",selectionOnDrag:ee=!1,selectionMode:re=h1.Full,panActivationKeyCode:he="Space",multiSelectionKeyCode:Ce=ap()?"Meta":"Control",zoomActivationKeyCode:ce=ap()?"Meta":"Control",snapToGrid:de,snapGrid:be,onlyRenderVisibleElements:De=!1,selectNodesOnDrag:Ge,nodesDraggable:Xe,autoPanOnNodeFocus:_t,nodesConnectable:Qe,nodesFocusable:St,nodeOrigin:Ke=HH,edgesFocusable:We,edgesReconnectable:lt,elementsSelectable:Et=!0,defaultViewport:Pn=kAe,minZoom:_e=.5,maxZoom:we=2,translateExtent:rt=d1,preventScrolling:at=!0,nodeExtent:$t,defaultMarkerColor:Wr="#b1b1b7",zoomOnScroll:Pt=!0,zoomOnPinch:Tr=!0,panOnScroll:vo=!1,panOnScrollSpeed:Mn=.5,panOnScrollMode:Fr=zd.Free,zoomOnDoubleClick:no=!0,panOnDrag:ur=!0,onPaneClick:fa,onPaneMouseEnter:_l,onPaneMouseMove:Qh,onPaneMouseLeave:Cc,onPaneScroll:Ub,onPaneContextMenu:Sg,paneClickDistance:Hu=0,nodeClickDistance:Jh=0,children:ef,onReconnect:Cg,onReconnectStart:Vb,onReconnectEnd:Ti,onEdgeContextMenu:On,onEdgeDoubleClick:oo,onEdgeMouseEnter:El,onEdgeMouseMove:tf,onEdgeMouseLeave:qb,reconnectRadius:Yb=10,onNodesChange:Tg,onEdgesChange:Tc,noDragClassName:rf="nodrag",noWheelClassName:Sl="nowheel",noPanClassName:Ai="nopan",fitView:zs,fitViewOptions:Ni,connectOnClick:tn,attributionPosition:Ag,proOptions:Ng,defaultEdgeOptions:js,elevateNodesOnSelect:Cl,elevateEdgesOnSelect:Wb,disableKeyboardA11y:Uu=!1,autoPanOnConnect:Rg,autoPanOnNodeDrag:Xb,autoPanSpeed:Vu,connectionRadius:qu,isValidConnection:Fa,onError:nf,style:$g,id:Ri,nodeDragThreshold:of,connectionDragThreshold:af,viewport:Gb,onViewportChange:Pg,width:Io,height:Mg,colorMode:Kb="light",debug:Yu,onScroll:Wu,ariaLabelConfig:Xu,...Zb},zo){const Bs=Ri||"1",Og=CAe(Kb),sf=E.useCallback($i=>{$i.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Wu?.($i)},[Wu]);return b.jsx("div",{"data-testid":"rf__wrapper",...Zb,onScroll:sf,style:{...$g,...V7e},ref:zo,className:an(["react-flow",a,Og]),id:Ri,role:"application",children:b.jsxs(U7e,{nodes:e,edges:r,width:Io,height:Mg,fitView:zs,fitViewOptions:Ni,minZoom:_e,maxZoom:we,nodeOrigin:Ke,nodeExtent:$t,children:[b.jsx(F7e,{onInit:u,onNodeClick:l,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:A,onNodeDoubleClick:N,nodeTypes:i,edgeTypes:s,connectionLineType:Q,connectionLineStyle:z,connectionLineComponent:W,connectionLineContainerStyle:G,selectionKeyCode:oe,selectionOnDrag:ee,selectionMode:re,deleteKeyCode:Z,multiSelectionKeyCode:Ce,panActivationKeyCode:he,zoomActivationKeyCode:ce,onlyRenderVisibleElements:De,defaultViewport:Pn,translateExtent:rt,minZoom:_e,maxZoom:we,preventScrolling:at,zoomOnScroll:Pt,zoomOnPinch:Tr,zoomOnDoubleClick:no,panOnScroll:vo,panOnScrollSpeed:Mn,panOnScrollMode:Fr,panOnDrag:ur,onPaneClick:fa,onPaneMouseEnter:_l,onPaneMouseMove:Qh,onPaneMouseLeave:Cc,onPaneScroll:Ub,onPaneContextMenu:Sg,paneClickDistance:Hu,nodeClickDistance:Jh,onSelectionContextMenu:U,onSelectionStart:q,onSelectionEnd:X,onReconnect:Cg,onReconnectStart:Vb,onReconnectEnd:Ti,onEdgeContextMenu:On,onEdgeDoubleClick:oo,onEdgeMouseEnter:El,onEdgeMouseMove:tf,onEdgeMouseLeave:qb,reconnectRadius:Yb,defaultMarkerColor:Wr,noDragClassName:rf,noWheelClassName:Sl,noPanClassName:Ai,rfId:Bs,disableKeyboardA11y:Uu,nodeExtent:$t,viewport:Gb,onViewportChange:Pg}),b.jsx(SAe,{nodes:e,edges:r,defaultNodes:n,defaultEdges:o,onConnect:g,onConnectStart:y,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,nodesDraggable:Xe,autoPanOnNodeFocus:_t,nodesConnectable:Qe,nodesFocusable:St,edgesFocusable:We,edgesReconnectable:lt,elementsSelectable:Et,elevateNodesOnSelect:Cl,elevateEdgesOnSelect:Wb,minZoom:_e,maxZoom:we,nodeExtent:$t,onNodesChange:Tg,onEdgesChange:Tc,snapToGrid:de,snapGrid:be,connectionMode:J,translateExtent:rt,connectOnClick:tn,defaultEdgeOptions:js,fitView:zs,fitViewOptions:Ni,onNodesDelete:O,onEdgesDelete:B,onDelete:I,onNodeDragStart:$,onNodeDrag:R,onNodeDragStop:M,onSelectionDrag:V,onSelectionDragStart:D,onSelectionDragStop:L,onMove:d,onMoveStart:h,onMoveEnd:p,noPanClassName:Ai,nodeOrigin:Ke,rfId:Bs,autoPanOnConnect:Rg,autoPanOnNodeDrag:Xb,autoPanSpeed:Vu,onError:nf,connectionRadius:qu,isValidConnection:Fa,selectNodesOnDrag:Ge,nodeDragThreshold:of,connectionDragThreshold:af,onBeforeDelete:F,paneClickDistance:Hu,debug:Yu,ariaLabelConfig:Xu}),b.jsx(wAe,{onSelectionChange:Y}),ef,b.jsx(gAe,{proOptions:Ng,position:Ag}),b.jsx(mAe,{rfId:Bs,disableKeyboardA11y:Uu})]})})}var Y7e=JH(q7e);const W7e=e=>e.domNode?.querySelector(".react-flow__edgelabel-renderer");function OU({children:e}){const r=At(W7e);return r?ji.createPortal(e,r):null}function X7e(e){return At(E.useCallback(r=>r.nodeLookup.get(e),[e]),Nr)}function G7e({dimensions:e,lineWidth:r,variant:n,className:o}){return b.jsx("path",{strokeWidth:r,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:an(["react-flow__background-pattern",n,o])})}function K7e({radius:e,className:r}){return b.jsx("circle",{cx:e,cy:e,r:e,className:an(["react-flow__background-pattern","dots",r])})}var Gi;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Gi||(Gi={}));const Z7e={[Gi.Dots]:1,[Gi.Lines]:1,[Gi.Cross]:6},Q7e=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function DU({id:e,variant:r=Gi.Dots,gap:n=20,size:o,lineWidth:a=1,offset:i=0,color:s,bgColor:l,style:c,className:u,patternClassName:d}){const h=E.useRef(null),{transform:p,patternId:g}=At(Q7e,Nr),y=o||Z7e[r],x=r===Gi.Dots,w=r===Gi.Cross,k=Array.isArray(n)?n:[n,n],C=[k[0]*p[2]||1,k[1]*p[2]||1],_=y*p[2],T=Array.isArray(i)?i:[i,i],A=w?[_,_]:C,N=[T[0]*p[2]||1+A[0]/2,T[1]*p[2]||1+A[1]/2],$=`${g}${e||""}`;return b.jsxs("svg",{className:an(["react-flow__background",u]),style:{...c,...Rw,"--xy-background-color-props":l,"--xy-background-pattern-color-props":s},ref:h,"data-testid":"rf__background",children:[b.jsx("pattern",{id:$,x:p[0]%C[0],y:p[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${N[0]},-${N[1]})`,children:x?b.jsx(K7e,{radius:_/2,className:d}):b.jsx(G7e,{dimensions:A,lineWidth:a,variant:r,className:d})}),b.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${$})`})]})}DU.displayName="Background";const LU=E.memo(DU);function J7e(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:b.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function eNe(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:b.jsx("path",{d:"M0 0h32v4.2H0z"})})}function tNe(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:b.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function rNe(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function nNe(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Ow({children:e,className:r,...n}){return b.jsx("button",{type:"button",className:an(["react-flow__controls-button",r]),...n,children:e})}const oNe=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function IU({style:e,showZoom:r=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:a,onZoomIn:i,onZoomOut:s,onFitView:l,onInteractiveChange:c,className:u,children:d,position:h="bottom-left",orientation:p="vertical","aria-label":g}){const y=pr(),{isInteractive:x,minZoomReached:w,maxZoomReached:k,ariaLabelConfig:C}=At(oNe,Nr),{zoomIn:_,zoomOut:T,fitView:A}=up(),N=()=>{_(),i?.()},$=()=>{T(),s?.()},R=()=>{A(a),l?.()},M=()=>{y.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),c?.(!x)};return b.jsxs(ou,{className:an(["react-flow__controls",p==="horizontal"?"horizontal":"vertical",u]),position:h,style:e,"data-testid":"rf__controls","aria-label":g??C["controls.ariaLabel"],children:[r&&b.jsxs(b.Fragment,{children:[b.jsx(Ow,{onClick:N,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:k,children:b.jsx(J7e,{})}),b.jsx(Ow,{onClick:$,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:b.jsx(eNe,{})})]}),n&&b.jsx(Ow,{className:"react-flow__controls-fitview",onClick:R,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:b.jsx(tNe,{})}),o&&b.jsx(Ow,{className:"react-flow__controls-interactive",onClick:M,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:x?b.jsx(nNe,{}):b.jsx(rNe,{})}),d]})}IU.displayName="Controls",E.memo(IU);function aNe({id:e,x:r,y:n,width:o,height:a,style:i,color:s,strokeColor:l,strokeWidth:c,className:u,borderRadius:d,shapeRendering:h,selected:p,onClick:g}){const{background:y,backgroundColor:x}=i||{},w=s||y||x;return b.jsx("rect",{className:an(["react-flow__minimap-node",{selected:p},u]),x:r,y:n,rx:d,ry:d,width:o,height:a,style:{fill:w,stroke:l,strokeWidth:c},shapeRendering:h,onClick:g?k=>g(k,e):void 0})}const iNe=E.memo(aNe),sNe=e=>e.nodes.map(r=>r.id),z6=e=>e instanceof Function?e:()=>e;function lNe({nodeStrokeColor:e,nodeColor:r,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:a,nodeComponent:i=iNe,onClick:s}){const l=At(sNe,Nr),c=z6(r),u=z6(e),d=z6(n),h=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return b.jsx(b.Fragment,{children:l.map(p=>b.jsx(uNe,{id:p,nodeColorFunc:c,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:o,nodeStrokeWidth:a,NodeComponent:i,onClick:s,shapeRendering:h},p))})}function cNe({id:e,nodeColorFunc:r,nodeStrokeColorFunc:n,nodeClassNameFunc:o,nodeBorderRadius:a,nodeStrokeWidth:i,shapeRendering:s,NodeComponent:l,onClick:c}){const{node:u,x:d,y:h,width:p,height:g}=At(y=>{const{internals:x}=y.nodeLookup.get(e),w=x.userNode,{x:k,y:C}=x.positionAbsolute,{width:_,height:T}=Wn(w);return{node:w,x:k,y:C,width:_,height:T}},Nr);return!u||u.hidden||!ZF(u)?null:b.jsx(l,{x:d,y:h,width:p,height:g,style:u.style,selected:!!u.selected,className:o(u),color:r(u),borderRadius:a,strokeColor:n(u),strokeWidth:i,shapeRendering:s,onClick:c,id:u.id})}const uNe=E.memo(cNe);var dNe=E.memo(lNe);const hNe=200,fNe=150,pNe=e=>!e.hidden,mNe=e=>{const r={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:r,boundingRect:e.nodeLookup.size>0?vw(rp(e.nodeLookup,{filter:pNe}),r):r,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},gNe="react-flow__minimap-desc";function zU({style:e,className:r,nodeStrokeColor:n,nodeColor:o,nodeClassName:a="",nodeBorderRadius:i=5,nodeStrokeWidth:s,nodeComponent:l,bgColor:c,maskColor:u,maskStrokeColor:d,maskStrokeWidth:h,position:p="bottom-right",onClick:g,onNodeClick:y,pannable:x=!1,zoomable:w=!1,ariaLabel:k,inversePan:C,zoomStep:_=1,offsetScale:T=5}){const A=pr(),N=E.useRef(null),{boundingRect:$,viewBB:R,rfId:M,panZoom:O,translateExtent:B,flowWidth:I,flowHeight:Y,ariaLabelConfig:D}=At(mNe,Nr),V=e?.width??hNe,L=e?.height??fNe,U=$.width/V,q=$.height/L,X=Math.max(U,q),F=X*V,J=X*L,Q=T*X,z=$.x-(F-$.width)/2-Q,W=$.y-(J-$.height)/2-Q,G=F+Q*2,Z=J+Q*2,oe=`${gNe}-${M}`,ee=E.useRef(0),re=E.useRef();ee.current=X,E.useEffect(()=>{if(N.current&&O)return re.current=L9e({domNode:N.current,panZoom:O,getTransform:()=>A.getState().transform,getViewScale:()=>ee.current}),()=>{re.current?.destroy()}},[O]),E.useEffect(()=>{re.current?.update({translateExtent:B,width:I,height:Y,inversePan:C,pannable:x,zoomStep:_,zoomable:w})},[x,w,C,_,B,I,Y]);const he=g?de=>{const[be,De]=re.current?.pointer(de)||[0,0];g(de,{x:be,y:De})}:void 0,Ce=y?E.useCallback((de,be)=>{const De=A.getState().nodeLookup.get(be).internals.userNode;y(de,De)},[]):void 0,ce=k??D["minimap.ariaLabel"];return b.jsx(ou,{position:p,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-width-props":typeof h=="number"?h*X:void 0,"--xy-minimap-node-background-color-props":typeof o=="string"?o:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:an(["react-flow__minimap",r]),"data-testid":"rf__minimap",children:b.jsxs("svg",{width:V,height:L,viewBox:`${z} ${W} ${G} ${Z}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":oe,ref:N,onClick:he,children:[ce&&b.jsx("title",{id:oe,children:ce}),b.jsx(dNe,{onClick:Ce,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:a,nodeStrokeWidth:s,nodeComponent:l}),b.jsx("path",{className:"react-flow__minimap-mask",d:`M${z-Q},${W-Q}h${G+Q*2}v${Z+Q*2}h${-G-Q*2}z + M${R.x},${R.y}h${R.width}v${R.height}h${-R.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}zU.displayName="MiniMap",E.memo(zU);const yNe=e=>r=>e?`${Math.max(1/r.transform[2],1)}`:void 0,bNe={[lp.Line]:"right",[lp.Handle]:"bottom-right"};function vNe({nodeId:e,position:r,variant:n=lp.Handle,className:o,style:a=void 0,children:i,color:s,minWidth:l=10,minHeight:c=10,maxWidth:u=Number.MAX_VALUE,maxHeight:d=Number.MAX_VALUE,keepAspectRatio:h=!1,resizeDirection:p,autoScale:g=!0,shouldResize:y,onResizeStart:x,onResize:w,onResizeEnd:k}){const C=I6(),_=typeof e=="string"?e:C,T=pr(),A=E.useRef(null),N=n===lp.Handle,$=At(E.useCallback(yNe(N&&g),[N,g]),Nr),R=E.useRef(null),M=r??bNe[n];E.useEffect(()=>{if(!(!A.current||!_))return R.current||(R.current=Q9e({domNode:A.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:B,transform:I,snapGrid:Y,snapToGrid:D,nodeOrigin:V,domNode:L}=T.getState();return{nodeLookup:B,transform:I,snapGrid:Y,snapToGrid:D,nodeOrigin:V,paneDomNode:L}},onChange:(B,I)=>{const{triggerNodeChanges:Y,nodeLookup:D,parentLookup:V,nodeOrigin:L}=T.getState(),U=[],q={x:B.x,y:B.y},X=D.get(_);if(X&&X.expandParent&&X.parentId){const F=X.origin??L,J=B.width??X.measured.width??0,Q=B.height??X.measured.height??0,z={id:X.id,parentId:X.parentId,rect:{width:J,height:Q,...QF({x:B.x??X.position.x,y:B.y??X.position.y},{width:J,height:Q},X.parentId,D,F)}},W=C6([z],D,V,L);U.push(...W),q.x=B.x?Math.max(F[0]*J,B.x):void 0,q.y=B.y?Math.max(F[1]*Q,B.y):void 0}if(q.x!==void 0&&q.y!==void 0){const F={id:_,type:"position",position:{...q}};U.push(F)}if(B.width!==void 0&&B.height!==void 0){const F={id:_,type:"dimensions",resizing:!0,setAttributes:p?p==="horizontal"?"width":"height":!0,dimensions:{width:B.width,height:B.height}};U.push(F)}for(const F of I){const J={...F,type:"position"};U.push(J)}Y(U)},onEnd:({width:B,height:I})=>{const Y={id:_,type:"dimensions",resizing:!1,dimensions:{width:B,height:I}};T.getState().triggerNodeChanges([Y])}})),R.current.update({controlPosition:M,boundaries:{minWidth:l,minHeight:c,maxWidth:u,maxHeight:d},keepAspectRatio:h,resizeDirection:p,onResizeStart:x,onResize:w,onResizeEnd:k,shouldResize:y}),()=>{R.current?.destroy()}},[M,l,c,u,d,h,x,w,k,y]);const O=M.split("-");return b.jsx("div",{className:an(["react-flow__resize-control","nodrag",...O,n,o]),ref:A,style:{...a,scale:$,...s&&{[N?"backgroundColor":"borderColor"]:s}},children:i})}E.memo(vNe);const xNe=e=>e.domNode?.querySelector(".react-flow__renderer");function wNe({children:e}){const r=At(xNe);return r?ji.createPortal(e,r):null}const kNe=(e,r)=>e?.internals.positionAbsolute.x!==r?.internals.positionAbsolute.x||e?.internals.positionAbsolute.y!==r?.internals.positionAbsolute.y||e?.measured.width!==r?.measured.width||e?.measured.height!==r?.measured.height||e?.selected!==r?.selected||e?.internals.z!==r?.internals.z,_Ne=(e,r)=>{if(e.size!==r.size)return!1;for(const[n,o]of e)if(kNe(o,r.get(n)))return!1;return!0},ENe=e=>({x:e.transform[0],y:e.transform[1],zoom:e.transform[2],selectedNodesCount:e.nodes.filter(r=>r.selected).length});function jU({nodeId:e,children:r,className:n,style:o,isVisible:a,position:i=tt.Top,offset:s=10,align:l="center",...c}){const u=I6(),d=E.useCallback(T=>(Array.isArray(e)?e:[e||u||""]).reduce((A,N)=>{const $=T.nodeLookup.get(N);return $&&A.set($.id,$),A},new Map),[e,u]),h=At(d,_Ne),{x:p,y:g,zoom:y,selectedNodesCount:x}=At(ENe,Nr);if(!(typeof a=="boolean"?a:h.size===1&&h.values().next().value?.selected&&x===1)||!h.size)return null;const w=rp(h),k=Array.from(h.values()),C=Math.max(...k.map(T=>T.internals.z+1)),_={position:"absolute",transform:x9e(w,{x:p,y:g,zoom:y},i,s,l),zIndex:C,...o};return b.jsx(wNe,{children:b.jsx("div",{style:_,className:an(["react-flow__node-toolbar",n]),...c,"data-id":k.reduce((T,A)=>`${T}${A.id} `,"").trim(),children:r})})}var SNe=Object.getOwnPropertyNames,CNe=Object.getOwnPropertySymbols,TNe=Object.prototype.hasOwnProperty;function BU(e,r){return function(n,o,a){return e(n,o,a)&&r(n,o,a)}}function Dw(e){return function(r,n,o){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,o);var a=o.cache,i=a.get(r),s=a.get(n);if(i&&s)return i===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,o);return a.delete(r),a.delete(n),l}}function FU(e){return SNe(e).concat(CNe(e))}var ANe=Object.hasOwn||(function(e,r){return TNe.call(e,r)});function Hd(e,r){return e===r||!e&&!r&&e!==e&&r!==r}var NNe="__v",RNe="__o",$Ne="_owner",HU=Object.getOwnPropertyDescriptor,UU=Object.keys;function PNe(e,r,n){var o=e.length;if(r.length!==o)return!1;for(;o-- >0;)if(!n.equals(e[o],r[o],o,o,e,r,n))return!1;return!0}function MNe(e,r){return Hd(e.getTime(),r.getTime())}function ONe(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function DNe(e,r){return e===r}function VU(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.entries(),s,l,c=0;(s=i.next())&&!s.done;){for(var u=r.entries(),d=!1,h=0;(l=u.next())&&!l.done;){if(a[h]){h++;continue}var p=s.value,g=l.value;if(n.equals(p[0],g[0],c,h,e,r,n)&&n.equals(p[1],g[1],p[0],g[0],e,r,n)){d=a[h]=!0;break}h++}if(!d)return!1;c++}return!0}var LNe=Hd;function INe(e,r,n){var o=UU(e),a=o.length;if(UU(r).length!==a)return!1;for(;a-- >0;)if(!YU(e,r,n,o[a]))return!1;return!0}function w1(e,r,n){var o=FU(e),a=o.length;if(FU(r).length!==a)return!1;for(var i,s,l;a-- >0;)if(i=o[a],!YU(e,r,n,i)||(s=HU(e,i),l=HU(r,i),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function zNe(e,r){return Hd(e.valueOf(),r.valueOf())}function jNe(e,r){return e.source===r.source&&e.flags===r.flags}function qU(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.values(),s,l;(s=i.next())&&!s.done;){for(var c=r.values(),u=!1,d=0;(l=c.next())&&!l.done;){if(!a[d]&&n.equals(s.value,l.value,s.value,l.value,e,r,n)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function BNe(e,r){var n=e.length;if(r.length!==n)return!1;for(;n-- >0;)if(e[n]!==r[n])return!1;return!0}function FNe(e,r){return e.hostname===r.hostname&&e.pathname===r.pathname&&e.protocol===r.protocol&&e.port===r.port&&e.hash===r.hash&&e.username===r.username&&e.password===r.password}function YU(e,r,n,o){return(o===$Ne||o===RNe||o===NNe)&&(e.$$typeof||r.$$typeof)?!0:ANe(r,o)&&n.equals(e[o],r[o],o,o,e,r,n)}var HNe="[object Arguments]",UNe="[object Boolean]",VNe="[object Date]",qNe="[object Error]",YNe="[object Map]",WNe="[object Number]",XNe="[object Object]",GNe="[object RegExp]",KNe="[object Set]",ZNe="[object String]",QNe="[object URL]",JNe=Array.isArray,WU=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,XU=Object.assign,eRe=Object.prototype.toString.call.bind(Object.prototype.toString);function tRe(e){var r=e.areArraysEqual,n=e.areDatesEqual,o=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,s=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,d=e.areSetsEqual,h=e.areTypedArraysEqual,p=e.areUrlsEqual;return function(g,y,x){if(g===y)return!0;if(g==null||y==null)return!1;var w=typeof g;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?s(g,y,x):w==="function"?a(g,y,x):!1;var k=g.constructor;if(k!==y.constructor)return!1;if(k===Object)return l(g,y,x);if(JNe(g))return r(g,y,x);if(WU!=null&&WU(g))return h(g,y,x);if(k===Date)return n(g,y,x);if(k===RegExp)return u(g,y,x);if(k===Map)return i(g,y,x);if(k===Set)return d(g,y,x);var C=eRe(g);return C===VNe?n(g,y,x):C===GNe?u(g,y,x):C===YNe?i(g,y,x):C===KNe?d(g,y,x):C===XNe?typeof g.then!="function"&&typeof y.then!="function"&&l(g,y,x):C===QNe?p(g,y,x):C===qNe?o(g,y,x):C===HNe?l(g,y,x):C===UNe||C===WNe||C===ZNe?c(g,y,x):!1}}function rRe(e){var r=e.circular,n=e.createCustomConfig,o=e.strict,a={areArraysEqual:o?w1:PNe,areDatesEqual:MNe,areErrorsEqual:ONe,areFunctionsEqual:DNe,areMapsEqual:o?BU(VU,w1):VU,areNumbersEqual:LNe,areObjectsEqual:o?w1:INe,arePrimitiveWrappersEqual:zNe,areRegExpsEqual:jNe,areSetsEqual:o?BU(qU,w1):qU,areTypedArraysEqual:o?w1:BNe,areUrlsEqual:FNe};if(n&&(a=XU({},a,n(a))),r){var i=Dw(a.areArraysEqual),s=Dw(a.areMapsEqual),l=Dw(a.areObjectsEqual),c=Dw(a.areSetsEqual);a=XU({},a,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:l,areSetsEqual:c})}return a}function nRe(e){return function(r,n,o,a,i,s,l){return e(r,n,l)}}function oRe(e){var r=e.circular,n=e.comparator,o=e.createState,a=e.equals,i=e.strict;if(o)return function(l,c){var u=o(),d=u.cache,h=d===void 0?r?new WeakMap:void 0:d,p=u.meta;return n(l,c,{cache:h,equals:a,meta:p,strict:i})};if(r)return function(l,c){return n(l,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var s={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,c){return n(l,c,s)}}var ut=au();au({strict:!0}),au({circular:!0}),au({circular:!0,strict:!0});var Xn=au({createInternalComparator:function(){return Hd}});au({strict:!0,createInternalComparator:function(){return Hd}}),au({circular:!0,createInternalComparator:function(){return Hd}}),au({circular:!0,createInternalComparator:function(){return Hd},strict:!0});function au(e){e===void 0&&(e={});var r=e.circular,n=r===void 0?!1:r,o=e.createInternalComparator,a=e.createState,i=e.strict,s=i===void 0?!1:i,l=rRe(e),c=tRe(l),u=o?o(c):nRe(c);return oRe({circular:n,comparator:c,createState:a,equals:u,strict:s})}function aRe(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function sr(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return aRe(e,r,n);throw Error("Wrong number of arguments")}const iRe=e=>(r,n)=>{if(n===0)return e(r);if(!Number.isInteger(n))throw TypeError(`precision must be an integer: ${n.toString()}`);if(n>15||n<-15)throw RangeError("precision must be between -15 and 15");if(Number.isNaN(r)||!Number.isFinite(r))return e(r);let o=GU(r,n),a=e(o);return GU(a,-n)};function GU(e,r){let[n,o]=e.toString().split("e"),a=(o===void 0?0:Number.parseInt(o,10))+r,i=`${n}e${a.toString()}`;return Number.parseFloat(i)}function sRe(...e){return sr(iRe(Math.ceil),e)}function Ki(...e){return sr(lRe,e)}const lRe=(e,{min:r,max:n})=>r!==void 0&&en?n:e;function cRe(...e){return sr(uRe,e)}const uRe=(e,r)=>[...e,...r],Lw={done:!1,hasNext:!1};function yn(e,...r){let n=e,o=r.map(i=>"lazy"in i?dRe(i):void 0),a=0;for(;ayn(a,o),o)}throw Error("Wrong number of arguments")}function To(...e){return sr(pRe,e)}const pRe=(e,r)=>e.length>=r,ZU={asc:(e,r)=>e>r,desc:(e,r)=>ee(i,a)}function j6(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=ZU,s=r===void 0?void 0:j6(r,...n);return(l,c)=>{let u=o(l),d=o(c);return i(u,d)?1:i(d,u)?-1:s?.(l,c)??0}}function gRe(e){if(QU(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return QU(r)&&typeof n=="string"&&n in ZU&&o.length===0}const QU=e=>typeof e=="function"&&e.length===1;function B6(...e){return sr(Object.entries,e)}function dp(...e){return sr(yRe,e,bRe)}const yRe=(e,r)=>e.filter(r),bRe=e=>(r,n,o)=>e(r,n,o)?{done:!1,hasNext:!0,next:r}:Lw,JU=e=>Object.assign(e,{single:!0});function Iw(...e){return sr(vRe,e,JU(xRe))}const vRe=(e,r)=>e.find(r),xRe=e=>(r,n,o)=>e(r,n,o)?{done:!0,hasNext:!0,next:r}:Lw;function hp(...e){return sr(wRe,e,JU(kRe))}const wRe=([e])=>e,kRe=()=>_Re,_Re=e=>({hasNext:!0,next:e,done:!0});function ERe(...e){return sr(SRe,e,CRe)}const SRe=(e,r)=>e.flatMap(r),CRe=e=>(r,n,o)=>{let a=e(r,n,o);return Array.isArray(a)?{done:!1,hasNext:!0,hasMany:!0,next:a}:{done:!1,hasNext:!0,next:a}};function TRe(...e){return sr(ARe,e)}function ARe(e,r){for(let[n,o]of Object.entries(e))r(o,n,e);return e}function NRe(...e){return sr(RRe,e)}const RRe=(e,r)=>{let n=Object.create(null);for(let o=0;otypeof e=="function";function IRe(e){return e!==null}function tV(e){return e!=null}function rV(e){return e==null}function nV(e){return typeof e=="number"&&!Number.isNaN(e)}function U6(e){if(typeof e!="object"||!e)return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function V6(e){return typeof e=="string"}function Sa(e){return!!e}function oV(...e){return sr(zRe,e)}const zRe=(e,r)=>e.join(r);function q6(...e){return sr(Object.keys,e)}function Ud(...e){return sr(jRe,e)}const jRe=e=>e.at(-1);function Ao(...e){return sr(BRe,e,FRe)}const BRe=(e,r)=>e.map(r),FRe=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function E1(...e){return sr(HRe,e)}function HRe(e,r){let n={};for(let[o,a]of e.entries()){let[i,s]=r(a,o,e);n[i]=s}return n}function URe(...e){return sr(VRe,e)}function VRe(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function aV(...e){return sr(iV,e)}function iV(e,r){let n={...e,...r};for(let o in r){if(!(o in e))continue;let{[o]:a}=e;if(!U6(a))continue;let{[o]:i}=r;U6(i)&&(n[o]=iV(a,i))}return n}function Vd(...e){return sr(qRe,e)}function qRe(e,r){if(!To(r,1))return{...e};if(!To(r,2)){let{[r[0]]:o,...a}=e;return a}let n={...e};for(let o of r)delete n[o];return n}function zw(...e){return sr(YRe,e)}const YRe=e=>e.length===1?e[0]:void 0;function sV(...e){return sr(WRe,e)}const WRe=(e,r)=>{let n=[[],[]];for(let[o,a]of e.entries())r(a,o,e)?n[0].push(a):n[1].push(a);return n};function lV(...e){return sr(XRe,e)}function XRe(e,r){let n={};for(let o of r)o in e&&(n[o]=e[o]);return n}function GRe(...e){return sr(KRe,e)}function KRe(e,r){let n={};for(let[o,a]of Object.entries(e))r(a,o,e)&&(n[o]=a);return n}function Ca(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>cV(n,e,...r):cV(e,...r)}function cV(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function ZRe(...e){return sr(QRe,e)}function QRe(e,r){let n=[];for(let o=e;oe.reduce(r,n);function e$e(...e){return sr(t$e,e)}function t$e(e){return[...e].reverse()}function r$e(...e){return sr(n$e,e)}function n$e(e,r){let n=[...e];return n.sort(r),n}function jw(...e){return mRe(o$e,e)}const o$e=(e,r)=>[...e].sort(r);function uV(...e){return sr(a$e,e)}function a$e(e,r){return r(e),e}function Y6(...e){return fRe(i$e,e)}function i$e(){let e=new Set;return r=>e.has(r)?Lw:(e.add(r),{done:!1,hasNext:!0,next:r})}let Zi=[],su=0;const Bw=4;let s$e=e=>{let r=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=r.push(o),()=>{for(let i=su+Bw;i"u")return E$e;var r=S$e(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},T$e=mV(),pp="data-scroll-locked",A$e=function(e,r,n,o){var a=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),` + .`.concat(c$e,` { + overflow: hidden `).concat(o,`; + padding-right: `).concat(l,"px ").concat(o,`; + } + body[`).concat(pp,`] { + overflow: hidden `).concat(o,`; + overscroll-behavior: contain; + `).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&` + padding-left: `.concat(a,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(l,"px ").concat(o,`; + `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),` + } + + .`).concat(Fw,` { + right: `).concat(l,"px ").concat(o,`; + } + + .`).concat(Hw,` { + margin-right: `).concat(l,"px ").concat(o,`; + } + + .`).concat(Fw," .").concat(Fw,` { + right: 0 `).concat(o,`; + } + + .`).concat(Hw," .").concat(Hw,` { + margin-right: 0 `).concat(o,`; + } + + body[`).concat(pp,`] { + `).concat(u$e,": ").concat(l,`px; + } +`)},gV=function(){var e=parseInt(document.body.getAttribute(pp)||"0",10);return isFinite(e)?e:0},N$e=function(){E.useEffect(function(){return document.body.setAttribute(pp,(gV()+1).toString()),function(){var e=gV()-1;e<=0?document.body.removeAttribute(pp):document.body.setAttribute(pp,e.toString())}},[])},R$e=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;N$e();var i=E.useMemo(function(){return C$e(a)},[a]);return E.createElement(T$e,{styles:A$e(i,!r,a,n?"":"!important")})},K6=!1;if(typeof window<"u")try{var Vw=Object.defineProperty({},"passive",{get:function(){return K6=!0,!0}});window.addEventListener("test",Vw,Vw),window.removeEventListener("test",Vw,Vw)}catch{K6=!1}var mp=K6?{passive:!1}:!1,$$e=function(e){return e.tagName==="TEXTAREA"},yV=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!$$e(e)&&n[r]==="visible")},P$e=function(e){return yV(e,"overflowY")},M$e=function(e){return yV(e,"overflowX")},bV=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=vV(e,o);if(a){var i=xV(e,o),s=i[1],l=i[2];if(s>l)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},O$e=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},D$e=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},vV=function(e,r){return e==="v"?P$e(r):M$e(r)},xV=function(e,r){return e==="v"?O$e(r):D$e(r)},L$e=function(e,r){return e==="h"&&r==="rtl"?-1:1},I$e=function(e,r,n,o,a){var i=L$e(e,window.getComputedStyle(r).direction),s=i*o,l=n.target,c=r.contains(l),u=!1,d=s>0,h=0,p=0;do{if(!l)break;var g=xV(e,l),y=g[0],x=g[1],w=g[2],k=x-w-i*y;(y||k)&&vV(e,l)&&(h+=k,p+=y);var C=l.parentNode;l=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!c&&l!==document.body||c&&(r.contains(l)||r===l));return(d&&Math.abs(h)<1||!d&&Math.abs(p)<1)&&(u=!0),u},qw=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wV=function(e){return[e.deltaX,e.deltaY]},kV=function(e){return e&&"current"in e?e.current:e},z$e=function(e,r){return e[0]===r[0]&&e[1]===r[1]},j$e=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},B$e=0,gp=[];function F$e(e){var r=E.useRef([]),n=E.useRef([0,0]),o=E.useRef(),a=E.useState(B$e++)[0],i=E.useState(mV)[0],s=E.useRef(e);E.useEffect(function(){s.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=l$e([e.lockRef.current],(e.shards||[]).map(kV)).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=E.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!s.current.allowPinchZoom;var k=qw(x),C=n.current,_="deltaX"in x?x.deltaX:C[0]-k[0],T="deltaY"in x?x.deltaY:C[1]-k[1],A,N=x.target,$=Math.abs(_)>Math.abs(T)?"h":"v";if("touches"in x&&$==="h"&&N.type==="range")return!1;var R=bV($,N);if(!R)return!0;if(R?A=$:(A=$==="v"?"h":"v",R=bV($,N)),!R)return!1;if(!o.current&&"changedTouches"in x&&(_||T)&&(o.current=A),!A)return!0;var M=o.current||A;return I$e(M,w,x,M==="h"?_:T)},[]),c=E.useCallback(function(x){var w=x;if(!(!gp.length||gp[gp.length-1]!==i)){var k="deltaY"in w?wV(w):qw(w),C=r.current.filter(function(A){return A.name===w.type&&(A.target===w.target||w.target===A.shadowParent)&&z$e(A.delta,k)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var _=(s.current.shards||[]).map(kV).filter(Boolean).filter(function(A){return A.contains(w.target)}),T=_.length>0?l(w,_[0]):!s.current.noIsolation;T&&w.cancelable&&w.preventDefault()}}},[]),u=E.useCallback(function(x,w,k,C){var _={name:x,delta:w,target:k,should:C,shadowParent:H$e(k)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(T){return T!==_})},1)},[]),d=E.useCallback(function(x){n.current=qw(x),o.current=void 0},[]),h=E.useCallback(function(x){u(x.type,wV(x),x.target,l(x,e.lockRef.current))},[]),p=E.useCallback(function(x){u(x.type,qw(x),x.target,l(x,e.lockRef.current))},[]);E.useEffect(function(){return gp.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,mp),document.addEventListener("touchmove",c,mp),document.addEventListener("touchstart",d,mp),function(){gp=gp.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,mp),document.removeEventListener("touchmove",c,mp),document.removeEventListener("touchstart",d,mp)}},[]);var g=e.removeScrollBar,y=e.inert;return E.createElement(E.Fragment,null,y?E.createElement(i,{styles:j$e(a)}):null,g?E.createElement(R$e,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function H$e(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const U$e=y$e(pV,F$e);var S1=E.forwardRef(function(e,r){return E.createElement(Uw,Js({},e,{ref:r,sideCar:U$e}))});S1.classNames=Uw.classNames;function No(e){return Object.keys(e)}function Z6(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Q6(e,r){const n={...e},o=r;return Z6(e)&&Z6(r)&&Object.keys(r).forEach(a=>{Z6(o[a])&&a in e?n[a]=Q6(n[a],o[a]):n[a]=o[a]}),n}function V$e(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function q$e(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function J6(e){const r=q$e(e);return typeof r=="number"?r:typeof r=="string"?r.includes("calc")||r.includes("var")?r:r.includes("px")?Number(r.replace("px","")):r.includes("rem")?Number(r.replace("rem",""))*16:r.includes("em")?Number(r.replace("em",""))*16:Number(r):NaN}function _V(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function EV(e,{shouldScale:r=!1}={}){function n(o){if(o===0||o==="0")return`0${e}`;if(typeof o=="number"){const a=`${o/16}${e}`;return r?_V(a):a}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(i=>n(i)).join(",");if(o.includes(" "))return o.split(" ").map(i=>n(i)).join(" ");const a=o.replace("px","");if(!Number.isNaN(Number(a))){const i=`${Number(a)/16}${e}`;return r?_V(i):i}}return o}return n}const Ne=EV("rem",{shouldScale:!0}),SV=EV("em");function yp(e){return Object.keys(e).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{})}function CV(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const r=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>r.test(n))}return!1}function Qi(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==E.Fragment:!1}function ri(e){const r=E.createContext(null);return[({children:n,value:o})=>b.jsx(r.Provider,{value:o,children:n}),()=>{const n=E.useContext(r);if(n===null)throw new Error(e);return n}]}function C1(e=null){const r=E.createContext(e);return[({children:n,value:o})=>b.jsx(r.Provider,{value:o,children:n}),()=>E.useContext(r)]}function TV(e,r){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(r);return`${e}-${n}`}}function bp(e,r){let n=e;for(;(n=n.parentElement)&&!n.matches(r););return n}function Y$e(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].disabled)return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].disabled)return o}return e}function W$e(e,r,n){for(let o=e+1;o{n?.(l);const c=Array.from(bp(l.currentTarget,e)?.querySelectorAll(r)||[]).filter(y=>X$e(l.currentTarget,y,e)),u=c.findIndex(y=>l.currentTarget===y),d=W$e(u,c,o),h=Y$e(u,c,o),p=i==="rtl"?h:d,g=i==="rtl"?d:h;switch(l.key){case"ArrowRight":{s==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[p].focus(),a&&c[p].click());break}case"ArrowLeft":{s==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[g].focus(),a&&c[g].click());break}case"ArrowUp":{s==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[h].focus(),a&&c[h].click());break}case"ArrowDown":{s==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[d].focus(),a&&c[d].click());break}case"Home":{l.stopPropagation(),l.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{l.stopPropagation(),l.preventDefault();const y=c.length-1;!c[y].disabled&&c[y].focus();break}}}}const G$e={app:100,modal:200,popover:300,overlay:400,max:9999};function Yw(e){return G$e[e]}const AV=()=>{};function K$e(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||AV:n=>{n.key==="Escape"&&(e(n),r.onTrigger?.())}}function lr(e,r="size",n=!0){if(e!==void 0)return CV(e)?n?Ne(e):e:`var(--${r}-${e})`}function Ul(e){return lr(e,"mantine-spacing")}function bn(e){return e===void 0?"var(--mantine-radius-default)":lr(e,"mantine-radius")}function Ro(e){return lr(e,"mantine-font-size")}function Z$e(e){return lr(e,"mantine-line-height",!1)}function NV(e){if(e)return lr(e,"mantine-shadow",!1)}function vn(e,r){return n=>{e?.(n),r?.(n)}}function Q$e(e,r){return e in r?J6(r[e]):J6(e)}function RV(e,r){const n=e.map(o=>({value:o,px:Q$e(o,r)}));return n.sort((o,a)=>o.px-a.px),n}function A1(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function J$e(e,r,n){return n?Array.from(bp(n,r)?.querySelectorAll(e)||[]).findIndex(o=>o===n):null}function lu(e,r,n){return r===void 0&&n===void 0?e:r!==void 0&&n===void 0?Math.max(e,r):Math.min(r===void 0&&n!==void 0?e:Math.max(e,r),n)}function eC(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function ePe(e,r){if(e===r||Number.isNaN(e)&&Number.isNaN(r))return!0;if(!(e instanceof Object)||!(r instanceof Object))return!1;const n=Object.keys(e),{length:o}=n;if(o!==Object.keys(r).length)return!1;for(let a=0;a{r.current=e}),E.useMemo(()=>((...n)=>r.current?.(...n)),[])}function vp(e,r){const{delay:n,flushOnUnmount:o,leading:a}=typeof r=="number"?{delay:r,flushOnUnmount:!1,leading:!1}:r,i=it(e),s=E.useRef(0),l=E.useMemo(()=>{const c=Object.assign((...u)=>{window.clearTimeout(s.current);const d=c._isFirstCall;c._isFirstCall=!1;function h(){window.clearTimeout(s.current),s.current=0,c._isFirstCall=!0}if(a&&d){i(...u);const y=()=>{h()},x=()=>{s.current!==0&&(h(),i(...u))},w=()=>{h()};c.flush=x,c.cancel=w,s.current=window.setTimeout(y,n);return}if(a&&!d){const y=()=>{s.current!==0&&(h(),i(...u))},x=()=>{h()};c.flush=y,c.cancel=x;const w=()=>{h()};s.current=window.setTimeout(w,n);return}const p=()=>{s.current!==0&&(h(),i(...u))},g=()=>{h()};c.flush=p,c.cancel=g,s.current=window.setTimeout(p,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return c},[i,n,a]);return E.useEffect(()=>()=>{o?l.flush():l.cancel()},[l,o]),l}const tPe=["mousedown","touchstart"];function $V(e,r,n){const o=E.useRef(null),a=r||tPe;return E.useEffect(()=>{const i=s=>{const{target:l}=s??{};if(Array.isArray(n)){const c=!document.body.contains(l)&&l.tagName!=="HTML";n.every(u=>!!u&&!s.composedPath().includes(u))&&!c&&e()}else o.current&&!o.current.contains(l)&&e()};return a.forEach(s=>document.addEventListener(s,i)),()=>{a.forEach(s=>document.removeEventListener(s,i))}},[o,e,n]),o}function rPe(e={timeout:2e3}){const[r,n]=E.useState(null),[o,a]=E.useState(!1),[i,s]=E.useState(null),l=c=>{window.clearTimeout(i),s(window.setTimeout(()=>a(!1),e.timeout)),a(c)};return{copy:c=>{"clipboard"in navigator?navigator.clipboard.writeText(c).then(()=>l(!0)).catch(u=>n(u)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),n(null),window.clearTimeout(i)},error:r,copied:o}}function nPe(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function oPe(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function PV(e,r,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=E.useState(n?r:oPe(e));return E.useEffect(()=>{try{const i=window.matchMedia(e);return a(i.matches),nPe(i,s=>a(s.matches))}catch{return}},[e]),o||!1}function MV(e,r){return PV("(prefers-color-scheme: dark)",e==="dark",r)?"dark":"light"}function aPe(e,r,n={leading:!1}){const[o,a]=E.useState(e),i=E.useRef(null),s=E.useRef(!0),l=()=>window.clearTimeout(i.current);E.useEffect(()=>l,[]);const c=E.useCallback(u=>{l(),s.current&&n.leading?a(u):i.current=window.setTimeout(()=>{s.current=!0,a(u)},r),s.current=!1},[n.leading]);return[o,c]}function tC(e,r,n={leading:!1}){const[o,a]=E.useState(e),i=E.useRef(!1),s=E.useRef(null),l=E.useRef(!1),c=E.useCallback(()=>window.clearTimeout(s.current),[]);return E.useEffect(()=>{i.current&&(!l.current&&n.leading?(l.current=!0,a(e)):(c(),s.current=window.setTimeout(()=>{l.current=!1,a(e)},r)))},[e,n.leading,r]),E.useEffect(()=>(i.current=!0,c),[]),[o,c]}const N1=typeof document<"u"?E.useLayoutEffect:E.useEffect;function qd(e,r){const n=E.useRef(!1);E.useEffect(()=>()=>{n.current=!1},[]),E.useEffect(()=>{if(n.current)return e();n.current=!0},r)}function iPe({opened:e,shouldReturnFocus:r=!0}){const n=E.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return qd(()=>{let a=-1;const i=s=>{s.key==="Tab"&&window.clearTimeout(a)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:r&&(a=window.setTimeout(o,10)),()=>{window.clearTimeout(a),document.removeEventListener("keydown",i)}},[e,r]),o}const sPe=/input|select|textarea|button|object/,OV="a, input, select, textarea, button, object, [tabindex]";function lPe(e){return e.style.display==="none"}function cPe(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(lPe(r))return!1;r=r.parentNode}return!0}function DV(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function rC(e){const r=e.nodeName.toLowerCase(),n=!Number.isNaN(DV(e));return(sPe.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&cPe(e)}function LV(e){const r=DV(e);return(Number.isNaN(r)||r>=0)&&rC(e)}function uPe(e){return Array.from(e.querySelectorAll(OV)).filter(LV)}function dPe(e,r){const n=uPe(e);if(!n.length){r.preventDefault();return}const o=n[r.shiftKey?0:n.length-1],a=e.getRootNode();let i=o===a.activeElement||e===a.activeElement;const s=a.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(i=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===s.getAttribute("name")).includes(o)),!i)return;r.preventDefault();const l=n[r.shiftKey?n.length-1:0];l&&l.focus()}function IV(e=!0){const r=E.useRef(null),n=a=>{let i=a.querySelector("[data-autofocus]");if(!i){const s=Array.from(a.querySelectorAll(OV));i=s.find(LV)||s.find(rC)||null,!i&&rC(a)&&(i=a)}i&&i.focus({preventScroll:!0})},o=E.useCallback(a=>{e&&a!==null&&r.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),r.current=a):r.current=null)},[e]);return E.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const a=i=>{i.key==="Tab"&&r.current&&dPe(r.current,i)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),o}const hPe=Gr.useId||(()=>{});function fPe(){const e=hPe();return e?`mantine-${e.replace(/:/g,"")}`:""}function Ta(e){const r=fPe(),[n,o]=E.useState(r);return N1(()=>{o(eC())},[]),typeof e=="string"?e:typeof window>"u"?r:n}function xp(e,r,n){E.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}function pPe(e,r="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${r}: Failed to serialize the value`)}}function mPe(e){try{return e&&JSON.parse(e)}catch{return e}}function gPe(e){return{getItem:r=>{try{return window[e].getItem(r)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(r,n)=>{try{window[e].setItem(r,n)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:r=>{try{window[e].removeItem(r)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function zV(e,r){const n=e==="localStorage"?"mantine-local-storage":"mantine-session-storage",{getItem:o,setItem:a,removeItem:i}=gPe(e);return function({key:s,defaultValue:l,getInitialValueInEffect:c=!0,sync:u=!0,deserialize:d=mPe,serialize:h=p=>pPe(p,r)}){const p=E.useCallback(k=>{let C;try{C=typeof window>"u"||!(e in window)||window[e]===null||!!k}catch{C=!0}if(C)return l;const _=o(s);return _!==null?d(_):l},[s,l]),[g,y]=E.useState(p(c)),x=E.useCallback(k=>{k instanceof Function?y(C=>{const _=k(C);return a(s,h(_)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:k(C)}}))}),_}):(a(s,h(k)),window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:k}})),y(k))},[s]),w=E.useCallback(()=>{i(s),window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:l}}))},[]);return xp("storage",k=>{u&&k.storageArea===window[e]&&k.key===s&&y(d(k.newValue??void 0))}),xp(n,k=>{u&&k.detail.key===s&&y(k.detail.value)}),E.useEffect(()=>{l!==void 0&&g===void 0&&x(l)},[l,g,x]),E.useEffect(()=>{const k=p();k!==void 0&&x(k)},[s]),[g===void 0?l:g,x,w]}}function yPe(e){return zV("localStorage","use-local-storage")(e)}function bPe(e){return zV("sessionStorage","use-session-storage")(e)}function nC(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function jV(...e){const r=new Map;return n=>{if(e.forEach(o=>{const a=nC(o,n);a&&r.set(o,a)}),r.size>0)return()=>{e.forEach(o=>{const a=r.get(o);a&&typeof a=="function"?a():nC(o,null)}),r.clear()}}}function Rr(...e){return E.useCallback(jV(...e),e)}function vPe(e){return{x:lu(e.x,0,1),y:lu(e.y,0,1)}}function BV(e,r,n="ltr"){const o=E.useRef(!1),a=E.useRef(!1),i=E.useRef(0),[s,l]=E.useState(!1),c=E.useRef(null);return E.useEffect(()=>{o.current=!0},[]),{ref:E.useCallback(u=>{if(c.current&&(c.current(),c.current=null),!u)return;const d=({x:_,y:T})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(o.current&&u){u.style.userSelect="none";const A=u.getBoundingClientRect();if(A.width&&A.height){const N=lu((_-A.left)/A.width,0,1);e({x:n==="ltr"?N:1-N,y:lu((T-A.top)/A.height,0,1)})}}})},h=()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",y),document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",y)},p=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",y),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",y)},g=()=>{!a.current&&o.current&&(a.current=!0,typeof r?.onScrubStart=="function"&&r.onScrubStart(),l(!0),h())},y=()=>{a.current&&o.current&&(a.current=!1,l(!1),p(),setTimeout(()=>{typeof r?.onScrubEnd=="function"&&r.onScrubEnd()},0))},x=_=>{g(),_.preventDefault(),w(_)},w=_=>d({x:_.clientX,y:_.clientY}),k=_=>{_.cancelable&&_.preventDefault(),g(),C(_)},C=_=>{_.cancelable&&_.preventDefault(),d({x:_.changedTouches[0].clientX,y:_.changedTouches[0].clientY})};u.addEventListener("mousedown",x),u.addEventListener("touchstart",k,{passive:!1}),c.current=()=>{u.removeEventListener("mousedown",x),u.removeEventListener("touchstart",k)}},[n,e]),active:s}}function Vl({value:e,defaultValue:r,finalValue:n,onChange:o=()=>{}}){const[a,i]=E.useState(r!==void 0?r:n);return e!==void 0?[e,o,!0]:[a,(l,...c)=>{i(l),o?.(l,...c)},!1]}function FV(e,r){return PV("(prefers-reduced-motion: reduce)",e,r)}function xPe(e,r){if(!e||!r)return!1;if(e===r)return!0;if(e.length!==r.length)return!1;for(let n=0;n{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return xp("resize",n,HV),xp("orientationchange",n,HV),E.useEffect(n,[]),e}const EPe={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function Ww(e){const r=e.replace("Key","").toLowerCase();return EPe[e]||r}function SPe(e){const r=e.toLowerCase().split("+").map(i=>i.trim()),n={alt:r.includes("alt"),ctrl:r.includes("ctrl"),meta:r.includes("meta"),mod:r.includes("mod"),shift:r.includes("shift"),plus:r.includes("[plus]")},o=["alt","ctrl","meta","shift","mod"],a=r.find(i=>!o.includes(i));return{...n,key:a==="[plus]"?"+":a}}function CPe(e,r,n){const{alt:o,ctrl:a,meta:i,mod:s,shift:l,key:c}=e,{altKey:u,ctrlKey:d,metaKey:h,shiftKey:p,key:g,code:y}=r;if(o!==u)return!1;if(s){if(!d&&!h)return!1}else if(a!==d||i!==h)return!1;return l!==p?!1:!!(c&&(n?Ww(y)===Ww(c):Ww(g??y)===Ww(c)))}function UV(e,r){return n=>CPe(SPe(e),n,r)}function oC(e){return r=>{const n="nativeEvent"in r?r.nativeEvent:r;e.forEach(([o,a,i={preventDefault:!0,usePhysicalKeys:!1}])=>{UV(o,i.usePhysicalKeys)(n)&&(i.preventDefault&&r.preventDefault(),a(n))})}}function TPe(e,r,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!r.includes(e.target.tagName):!0}function APe(e,r=["INPUT","TEXTAREA","SELECT"],n=!1){E.useEffect(()=>{const o=a=>{e.forEach(([i,s,l={preventDefault:!0,usePhysicalKeys:!1}])=>{UV(i,l.usePhysicalKeys)(a)&&TPe(a,r,n)&&(l.preventDefault&&a.preventDefault(),s(a))})};return document.documentElement.addEventListener("keydown",o),()=>document.documentElement.removeEventListener("keydown",o)},[e])}function aC(){const[e,r]=E.useState(!1),n=E.useRef(null),o=E.useCallback(()=>{r(!0)},[]),a=E.useCallback(()=>{r(!1)},[]);return{ref:E.useCallback(i=>{n.current&&(n.current.removeEventListener("mouseenter",o),n.current.removeEventListener("mouseleave",a)),i&&(i.addEventListener("mouseenter",o),i.addEventListener("mouseleave",a)),n.current=i},[o,a]),hovered:e}}function NPe(e=!1,r={}){const[n,o]=E.useState(e),a=E.useCallback(()=>{o(l=>l||(r.onOpen?.(),!0))},[r.onOpen]),i=E.useCallback(()=>{o(l=>l&&(r.onClose?.(),!1))},[r.onClose]),s=E.useCallback(()=>{n?i():a()},[i,a,n]);return[n,{open:a,close:i,toggle:s}]}function RPe(e){return e.currentTarget instanceof HTMLElement&&e.relatedTarget instanceof HTMLElement?e.currentTarget.contains(e.relatedTarget):!1}function $Pe({onBlur:e,onFocus:r}={}){const[n,o]=E.useState(!1),a=E.useRef(!1),i=E.useRef(null),s=E.useCallback(d=>{o(d),a.current=d},[]),l=E.useCallback(d=>{a.current||(s(!0),r?.(d))},[r]),c=E.useCallback(d=>{a.current&&!RPe(d)&&(s(!1),e?.(d))},[e]),u=E.useCallback(d=>{d&&(i.current&&(i.current.removeEventListener("focusin",l),i.current.removeEventListener("focusout",c)),d.addEventListener("focusin",l),d.addEventListener("focusout",c))},[l,c]);return E.useEffect(()=>()=>{i.current&&(i.current.removeEventListener("focusin",l),i.current.removeEventListener("focusout",c))},[]),{ref:u,focused:n}}function VV(e,r,n={autoInvoke:!1}){const o=E.useRef(null),a=E.useCallback((...s)=>{o.current||(o.current=window.setTimeout(()=>{e(s),o.current=null},r))},[r]),i=E.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return E.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function qV(e,r,n){const o=E.useRef(null),a=E.useRef(null);return E.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(e),o.current.observe(i||a.current,r)),()=>{o.current?.disconnect()}},[e,r]),a}function PPe(){const[e,r]=E.useState(!1);return E.useEffect(()=>r(!0),[]),e}function YV(e){const[r,n]=E.useState({history:[e],current:0}),o=E.useCallback(c=>n(u=>{const d=[...u.history.slice(0,u.current+1),c];return{history:d,current:d.length-1}}),[]),a=E.useCallback((c=1)=>n(u=>({history:u.history,current:Math.max(0,u.current-c)})),[]),i=E.useCallback((c=1)=>n(u=>({history:u.history,current:Math.min(u.history.length-1,u.current+c)})),[]),s=E.useCallback(()=>{n({history:[e],current:0})},[e]),l=E.useMemo(()=>({back:a,forward:i,reset:s,set:o}),[a,i,s,o]);return[r.history[r.current],l,r]}function MPe(e,r){const n=it(e),o=E.useRef(null),a=E.useRef(null),i=E.useRef(!0),s=E.useRef(r),l=E.useRef(-1),c=()=>window.clearTimeout(l.current),u=E.useCallback((...p)=>{n(...p),o.current=p,a.current=p,i.current=!1},[n]),d=E.useCallback(()=>{o.current&&o.current!==a.current?(u(...o.current),l.current=window.setTimeout(d,s.current)):i.current=!0},[u]),h=E.useCallback((...p)=>{i.current?(u(...p),l.current=window.setTimeout(d,s.current)):o.current=p},[u,d]);return E.useEffect(()=>{s.current=r},[r]),[h,c]}function OPe(e,r){return MPe(e,r)[0]}function DPe(){return typeof process<"u"&&process.env?"production":"development"}function WV(e){const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}}function XV(e,r){return r.length===0?e:r.reduce((n,o)=>Math.abs(o-e){Object.entries(n).forEach(([o,a])=>{r[o]?r[o]=Ji(r[o],a):r[o]=a})}),r}function Gw({theme:e,classNames:r,props:n,stylesCtx:o}){const a=(Array.isArray(r)?r:[r]).map(i=>typeof i=="function"?i(e,n,o):i||LPe);return IPe(a)}function Kw({theme:e,styles:r,props:n,stylesCtx:o}){return(Array.isArray(r)?r:[r]).reduce((a,i)=>typeof i=="function"?{...a,...i(e,n,o)}:{...a,...i},{})}const Zw=E.createContext(null);function cu(){const e=E.useContext(Zw);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function zPe(){return cu().cssVariablesResolver}function jPe(){return cu().classNamesPrefix}function Yd(){return cu().getStyleNonce}function BPe(){return cu().withStaticClasses}function FPe(){return cu().headless}function HPe(){return cu().stylesTransform?.sx}function UPe(){return cu().stylesTransform?.styles}function Qw(){return cu().env||"default"}function VPe(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function qPe(e){let r=e.replace("#","");if(r.length===3){const s=r.split("");r=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}if(r.length===8){const s=parseInt(r.slice(6,8),16)/255;return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:s}}const n=parseInt(r,16),o=n>>16&255,a=n>>8&255,i=n&255;return{r:o,g:a,b:i,a:1}}function YPe(e){const[r,n,o,a]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:n,b:o,a:a===void 0?1:a}}function WPe(e){const r=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(r);if(!n)return{r:0,g:0,b:0,a:1};const o=parseInt(n[1],10),a=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,s=n[5]?parseFloat(n[5]):void 0,l=(1-Math.abs(2*i-1))*a,c=o/60,u=l*(1-Math.abs(c%2-1)),d=i-l/2;let h,p,g;return c>=0&&c<1?(h=l,p=u,g=0):c>=1&&c<2?(h=u,p=l,g=0):c>=2&&c<3?(h=0,p=l,g=u):c>=3&&c<4?(h=0,p=u,g=l):c>=4&&c<5?(h=u,p=0,g=l):(h=l,p=0,g=u),{r:Math.round((h+d)*255),g:Math.round((p+d)*255),b:Math.round((g+d)*255),a:s||1}}function iC(e){return VPe(e)?qPe(e):e.startsWith("rgb")?YPe(e):e.startsWith("hsl")?WPe(e):{r:0,g:0,b:0,a:1}}function Jw(e,r){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${r*100}%)`;const{r:n,g:o,b:a,a:i}=iC(e),s=1-r,l=c=>Math.round(c*s);return`rgba(${l(n)}, ${l(o)}, ${l(a)}, ${i})`}function R1(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function sC(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function XPe(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function GPe(e){if(e.startsWith("oklch("))return(XPe(e)||0)/100;const{r,g:n,b:o}=iC(e),a=r/255,i=n/255,s=o/255,l=sC(a),c=sC(i),u=sC(s);return .2126*l+.7152*c+.0722*u}function $1(e,r=.179){return e.startsWith("var(")?!1:GPe(e)>r}function uu({color:e,theme:r,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:$1(n==="dark"?r.white:r.black,r.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?r.colors.dark[2]:r.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:$1(n==="dark"?r.colors.dark[2]:r.colors.gray[6],r.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:$1(e==="white"?r.white:r.black,r.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,a]=e.split("."),i=a?Number(a):void 0,s=o in r.colors;if(s){const l=i!==void 0?r.colors[o][i]:r.colors[o][R1(r,n||"light")];return{color:o,value:l,shade:i,isThemeColor:s,isLight:$1(l,r.luminanceThreshold),variable:a?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:s,isLight:$1(e,r.luminanceThreshold),shade:i,variable:void 0}}function Jo(e,r){const n=uu({color:e||r.primaryColor,theme:r});return n.variable?`var(${n.variable})`:e}function lC(e,r){const n={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=Jo(n.from,r),a=Jo(n.to,r);return`linear-gradient(${n.deg}deg, ${o} 0%, ${a} 100%)`}function el(e,r){if(typeof e!="string"||r>1||r<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-r)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${r})`):e.replace(")",` / ${r})`);const{r:n,g:o,b:a}=iC(e);return`rgba(${n}, ${o}, ${a}, ${r})`}const wp=el,KPe=({color:e,theme:r,variant:n,gradient:o,autoContrast:a})=>{const i=uu({color:e,theme:r}),s=typeof a=="boolean"?a:r.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const l=s&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:l,border:`${Ne(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:l,border:`${Ne(1)} solid transparent`}:{background:e,hover:Jw(e,.1),color:l,border:`${Ne(1)} solid transparent`}}if(n==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Ne(1)} solid transparent`};const l=r.colors[i.color][i.shade];return{background:el(l,.1),hover:el(l,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ne(1)} solid transparent`}}return{background:el(e,.1),hover:el(e,.12),color:e,border:`${Ne(1)} solid transparent`}}if(n==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${Ne(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:el(r.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${Ne(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:el(e,.05),color:e,border:`${Ne(1)} solid ${e}`};if(n==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Ne(1)} solid transparent`};const l=r.colors[i.color][i.shade];return{background:"transparent",hover:el(l,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ne(1)} solid transparent`}}return{background:"transparent",hover:el(e,.12),color:e,border:`${Ne(1)} solid transparent`}}return n==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${Ne(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ne(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${Ne(1)} solid transparent`}:n==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:Jw(r.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${Ne(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Jw(r.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${Ne(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Jw(r.white,.01),color:e,border:`${Ne(1)} solid transparent`}:n==="gradient"?{background:lC(o,r),hover:lC(o,r),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${Ne(1)} solid var(--mantine-color-default-border)`}:{}},ZPe={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},KV="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",cC={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:ZPe,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:KPe,autoContrast:!1,luminanceThreshold:.3,fontFamily:KV,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:KV,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:Ne(34),lineHeight:"1.3"},h2:{fontSize:Ne(26),lineHeight:"1.35"},h3:{fontSize:Ne(22),lineHeight:"1.4"},h4:{fontSize:Ne(18),lineHeight:"1.45"},h5:{fontSize:Ne(16),lineHeight:"1.5"},h6:{fontSize:Ne(14),lineHeight:"1.5"}}},fontSizes:{xs:Ne(12),sm:Ne(14),md:Ne(16),lg:Ne(18),xl:Ne(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:Ne(2),sm:Ne(4),md:Ne(8),lg:Ne(16),xl:Ne(32)},spacing:{xs:Ne(10),sm:Ne(12),md:Ne(16),lg:Ne(20),xl:Ne(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${Ne(1)} ${Ne(3)} rgba(0, 0, 0, 0.05), 0 ${Ne(1)} ${Ne(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${Ne(1)} ${Ne(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ne(10)} ${Ne(15)} ${Ne(-5)}, rgba(0, 0, 0, 0.04) 0 ${Ne(7)} ${Ne(7)} ${Ne(-5)}`,md:`0 ${Ne(1)} ${Ne(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ne(20)} ${Ne(25)} ${Ne(-5)}, rgba(0, 0, 0, 0.04) 0 ${Ne(10)} ${Ne(10)} ${Ne(-5)}`,lg:`0 ${Ne(1)} ${Ne(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ne(28)} ${Ne(23)} ${Ne(-7)}, rgba(0, 0, 0, 0.04) 0 ${Ne(12)} ${Ne(12)} ${Ne(-7)}`,xl:`0 ${Ne(1)} ${Ne(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Ne(36)} ${Ne(28)} ${Ne(-7)}, rgba(0, 0, 0, 0.04) 0 ${Ne(17)} ${Ne(17)} ${Ne(-7)}`},other:{},components:{}};function ZV(e){return e==="auto"||e==="dark"||e==="light"}function QPe({key:e="mantine-color-scheme-value"}={}){let r;return{get:n=>{if(typeof window>"u")return n;try{const o=window.localStorage.getItem(e);return ZV(o)?o:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(o){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",o)}},subscribe:n=>{r=o=>{o.storageArea===window.localStorage&&o.key===e&&ZV(o.newValue)&&n(o.newValue)},window.addEventListener("storage",r)},unsubscribe:()=>{window.removeEventListener("storage",r)},clear:()=>{window.localStorage.removeItem(e)}}}const JPe="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",QV="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function uC(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function JV(e){if(!(e.primaryColor in e.colors))throw new Error(JPe);if(typeof e.primaryShade=="object"&&(!uC(e.primaryShade.dark)||!uC(e.primaryShade.light)))throw new Error(QV);if(typeof e.primaryShade=="number"&&!uC(e.primaryShade))throw new Error(QV)}function eMe(e,r){if(!r)return JV(e),e;const n=Q6(e,r);return r.fontFamily&&!r.headings?.fontFamily&&(n.headings.fontFamily=r.fontFamily),JV(n),n}const dC=E.createContext(null),tMe=()=>E.useContext(dC)||cC;function ho(){const e=E.useContext(dC);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function eq({theme:e,children:r,inherit:n=!0}){const o=tMe(),a=E.useMemo(()=>eMe(n?o:cC,e),[e,o,n]);return b.jsx(dC.Provider,{value:a,children:r})}eq.displayName="@mantine/core/MantineThemeProvider";function rMe(){const e=ho(),r=Yd(),n=No(e.breakpoints).reduce((o,a)=>{const i=e.breakpoints[a].includes("px"),s=J6(e.breakpoints[a]),l=i?`${s-.1}px`:SV(s-.1),c=i?`${s}px`:SV(s);return`${o}@media (max-width: ${l}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${a} {display: none !important;}}`},"");return b.jsx("style",{"data-mantine-styles":"classes",nonce:r?.(),dangerouslySetInnerHTML:{__html:n}})}function hC(e){return Object.entries(e).map(([r,n])=>`${r}: ${n};`).join("")}function fC(e,r){return(Array.isArray(e)?e:[e]).reduce((n,o)=>`${o}{${n}}`,r)}function nMe(e,r){const n=hC(e.variables),o=n?fC(r,n):"",a=hC(e.dark),i=hC(e.light),s=a?fC(r===":host"?`${r}([data-mantine-color-scheme="dark"])`:`${r}[data-mantine-color-scheme="dark"]`,a):"",l=i?fC(r===":host"?`${r}([data-mantine-color-scheme="light"])`:`${r}[data-mantine-color-scheme="light"]`,i):"";return`${o} + +${s} + +${l}`}function pC({color:e,theme:r,autoContrast:n}){return(typeof n=="boolean"?n:r.autoContrast)&&uu({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function tq(e,r){return pC({color:e.colors[e.primaryColor][R1(e,r)],theme:e,autoContrast:null})}function e3({theme:e,color:r,colorScheme:n,name:o=r,withColorValues:a=!0}){if(!e.colors[r])return{};if(n==="light"){const l=R1(e,"light"),c={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${l===9?8:l+1})`,[`--mantine-color-${o}-light`]:wp(e.colors[r][l],.1),[`--mantine-color-${o}-light-hover`]:wp(e.colors[r][l],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-outline-hover`]:wp(e.colors[r][l],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...c}:c}const i=R1(e,"dark"),s={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${i===9?8:i+1})`,[`--mantine-color-${o}-light`]:wp(e.colors[r][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:wp(e.colors[r][Math.max(0,i-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(i-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(i-4,0)})`,[`--mantine-color-${o}-outline-hover`]:wp(e.colors[r][Math.max(i-4,0)],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...s}:s}function oMe(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function kp(e,r,n){No(r).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:r[o]}))}const rq=e=>{const r=R1(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:Ne(e.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":tq(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${r})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":tq(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};kp(o.variables,e.breakpoints,"breakpoint"),kp(o.variables,e.spacing,"spacing"),kp(o.variables,e.fontSizes,"font-size"),kp(o.variables,e.lineHeights,"line-height"),kp(o.variables,e.shadows,"shadow"),kp(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,s)=>{o.variables[`--mantine-primary-color-${s}`]=`var(--mantine-color-${e.primaryColor}-${s})`}),No(e.colors).forEach(i=>{const s=e.colors[i];if(oMe(s)){Object.assign(o.light,e3({theme:e,name:s.name,color:s.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,e3({theme:e,name:s.name,color:s.dark,colorScheme:"dark",withColorValues:!0}));return}s.forEach((l,c)=>{o.variables[`--mantine-color-${i}-${c}`]=l}),Object.assign(o.light,e3({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,e3({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const a=e.headings.sizes;return No(a).forEach(i=>{o.variables[`--mantine-${i}-font-size`]=a[i].fontSize,o.variables[`--mantine-${i}-line-height`]=a[i].lineHeight,o.variables[`--mantine-${i}-font-weight`]=a[i].fontWeight||e.headings.fontWeight}),o};function aMe({theme:e,generator:r}){const n=rq(e),o=r?.(e);return o?Q6(n,o):n}const mC=rq(cC);function iMe(e){const r={variables:{},light:{},dark:{}};return No(e.variables).forEach(n=>{mC.variables[n]!==e.variables[n]&&(r.variables[n]=e.variables[n])}),No(e.light).forEach(n=>{mC.light[n]!==e.light[n]&&(r.light[n]=e.light[n])}),No(e.dark).forEach(n=>{mC.dark[n]!==e.dark[n]&&(r.dark[n]=e.dark[n])}),r}function sMe(e){return` + ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; } + ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; } +`}function nq({cssVariablesSelector:e,deduplicateCssVariables:r}){const n=ho(),o=Yd(),a=zPe(),i=aMe({theme:n,generator:a}),s=e===":root"&&r,l=s?iMe(i):i,c=nMe(l,e);return c?b.jsx("style",{"data-mantine-styles":!0,nonce:o?.(),dangerouslySetInnerHTML:{__html:`${c}${s?"":sMe(e)}`}}):null}nq.displayName="@mantine/CssVariables";function _p(e,r){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,o=e!=="auto"?e:n?"dark":"light";r()?.setAttribute("data-mantine-color-scheme",o)}function lMe({manager:e,defaultColorScheme:r,getRootElement:n,forceColorScheme:o}){const a=E.useRef(null),[i,s]=E.useState(()=>e.get(r)),l=o||i,c=E.useCallback(d=>{o||(_p(d,n),s(d),e.set(d))},[e.set,l,o]),u=E.useCallback(()=>{s(r),_p(r,n),e.clear()},[e.clear,r]);return E.useEffect(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),N1(()=>{_p(e.get(r),n)},[]),E.useEffect(()=>{if(o)return _p(o,n),()=>{};o===void 0&&_p(i,n),typeof window<"u"&&"matchMedia"in window&&(a.current=window.matchMedia("(prefers-color-scheme: dark)"));const d=h=>{i==="auto"&&_p(h.matches?"dark":"light",n)};return a.current?.addEventListener("change",d),()=>a.current?.removeEventListener("change",d)},[i,o]),{colorScheme:l,setColorScheme:c,clearColorScheme:u}}function cMe({respectReducedMotion:e,getRootElement:r}){N1(()=>{e&&r()?.setAttribute("data-respect-reduced-motion","true")},[e])}function gC({theme:e,children:r,getStyleNonce:n,withStaticClasses:o=!0,withGlobalClasses:a=!0,deduplicateCssVariables:i=!0,withCssVariables:s=!0,cssVariablesSelector:l=":root",classNamesPrefix:c="mantine",colorSchemeManager:u=QPe(),defaultColorScheme:d="light",getRootElement:h=()=>document.documentElement,cssVariablesResolver:p,forceColorScheme:g,stylesTransform:y,env:x}){const{colorScheme:w,setColorScheme:k,clearColorScheme:C}=lMe({defaultColorScheme:d,forceColorScheme:g,manager:u,getRootElement:h});return cMe({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:h}),b.jsx(Zw.Provider,{value:{colorScheme:w,setColorScheme:k,clearColorScheme:C,getRootElement:h,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:p,cssVariablesSelector:l,withStaticClasses:o,stylesTransform:y,env:x},children:b.jsxs(eq,{theme:e,children:[s&&b.jsx(nq,{cssVariablesSelector:l,deduplicateCssVariables:i}),a&&b.jsx(rMe,{}),r]})})}gC.displayName="@mantine/core/MantineProvider";function yC({classNames:e,styles:r,props:n,stylesCtx:o}){const a=ho();return{resolvedClassNames:Gw({theme:a,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:Kw({theme:a,styles:r,props:n,stylesCtx:o||void 0})}}const uMe={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function dMe({theme:e,options:r,unstyled:n}){return Ji(r?.focusable&&!n&&(e.focusClassName||uMe[e.focusRing]),r?.active&&!n&&e.activeClassName)}function hMe({selector:e,stylesCtx:r,options:n,props:o,theme:a}){return Gw({theme:a,classNames:n?.classNames,props:n?.props||o,stylesCtx:r})[e]}function oq({selector:e,stylesCtx:r,theme:n,classNames:o,props:a}){return Gw({theme:n,classNames:o,props:a,stylesCtx:r})[e]}function fMe({rootSelector:e,selector:r,className:n}){return e===r?n:void 0}function pMe({selector:e,classes:r,unstyled:n}){return n?void 0:r[e]}function mMe({themeName:e,classNamesPrefix:r,selector:n,withStaticClass:o}){return o===!1?[]:e.map(a=>`${r}-${a}-${n}`)}function gMe({themeName:e,theme:r,selector:n,props:o,stylesCtx:a}){return e.map(i=>Gw({theme:r,classNames:r.components[i]?.classNames,props:o,stylesCtx:a})?.[n])}function yMe({options:e,classes:r,selector:n,unstyled:o}){return e?.variant&&!o?r[`${n}--${e.variant}`]:void 0}function bMe({theme:e,options:r,themeName:n,selector:o,classNamesPrefix:a,classNames:i,classes:s,unstyled:l,className:c,rootSelector:u,props:d,stylesCtx:h,withStaticClasses:p,headless:g,transformedStyles:y}){return Ji(dMe({theme:e,options:r,unstyled:l||g}),gMe({theme:e,themeName:n,selector:o,props:d,stylesCtx:h}),yMe({options:r,classes:s,selector:o,unstyled:l}),oq({selector:o,stylesCtx:h,theme:e,classNames:i,props:d}),oq({selector:o,stylesCtx:h,theme:e,classNames:y,props:d}),hMe({selector:o,stylesCtx:h,options:r,props:d,theme:e}),fMe({rootSelector:u,selector:o,className:c}),pMe({selector:o,classes:s,unstyled:l||g}),p&&!g&&mMe({themeName:n,classNamesPrefix:a,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function vMe({theme:e,themeName:r,props:n,stylesCtx:o,selector:a}){return r.map(i=>Kw({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:o})[a]).reduce((i,s)=>({...i,...s}),{})}function bC({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...bC({style:o,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function xMe(e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{r[o]={...r[o],...yp(n[o])}}),r),{})}function wMe({vars:e,varsResolver:r,theme:n,props:o,stylesCtx:a,selector:i,themeName:s,headless:l}){return xMe([l?{}:r?.(n,o,a),...s.map(c=>n.components?.[c]?.vars?.(n,o,a)),e?.(n,o,a)])?.[i]}function kMe({theme:e,themeName:r,selector:n,options:o,props:a,stylesCtx:i,rootSelector:s,styles:l,style:c,vars:u,varsResolver:d,headless:h,withStylesTransform:p}){return{...!p&&vMe({theme:e,themeName:r,props:a,stylesCtx:i,selector:n}),...!p&&Kw({theme:e,styles:l,props:a,stylesCtx:i})[n],...!p&&Kw({theme:e,styles:o?.styles,props:o?.props||a,stylesCtx:i})[n],...wMe({theme:e,props:a,stylesCtx:i,vars:u,varsResolver:d,selector:n,themeName:r,headless:h}),...s===n?bC({style:c,theme:e}):null,...bC({style:o?.style,theme:e})}}function _Me({props:e,stylesCtx:r,themeName:n}){const o=ho(),a=UPe()?.();return{getTransformedStyles:i=>a?[...i.map(s=>a(s,{props:e,theme:o,ctx:r})),...n.map(s=>a(o.components[s]?.styles,{props:e,theme:o,ctx:r}))].filter(Boolean):[],withStylesTransform:!!a}}function bt({name:e,classes:r,props:n,stylesCtx:o,className:a,style:i,rootSelector:s="root",unstyled:l,classNames:c,styles:u,vars:d,varsResolver:h,attributes:p}){const g=ho(),y=jPe(),x=BPe(),w=FPe(),k=(Array.isArray(e)?e:[e]).filter(T=>T),{withStylesTransform:C,getTransformedStyles:_}=_Me({props:n,stylesCtx:o,themeName:k});return(T,A)=>({className:bMe({theme:g,options:A,themeName:k,selector:T,classNamesPrefix:y,classNames:c,classes:r,unstyled:l,className:a,rootSelector:s,props:n,stylesCtx:o,withStaticClasses:x,headless:w,transformedStyles:_([A?.styles,u])}),style:kMe({theme:g,themeName:k,selector:T,options:A,props:n,stylesCtx:o,rootSelector:s,styles:u,style:i,vars:d,varsResolver:h,headless:w,withStylesTransform:C}),...p?.[T]})}function EMe(e,r){return typeof e=="boolean"?e:r.autoContrast}function aq(e){const r=document.createElement("style");return r.setAttribute("data-mantine-styles","inline"),r.innerHTML="*, *::before, *::after {transition: none !important;}",r.setAttribute("data-mantine-disable-transition","true"),e&&r.setAttribute("nonce",e),document.head.appendChild(r),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(n=>n.remove())}function SMe({keepTransitions:e}={}){const r=E.useRef(AV),n=E.useRef(-1),o=E.useContext(Zw),a=Yd(),i=E.useRef(a?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const s=h=>{o.setColorScheme(h),r.current=e?()=>{}:aq(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},l=()=>{o.clearColorScheme(),r.current=e?()=>{}:aq(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},c=MV("light",{getInitialValueInEffect:!1}),u=o.colorScheme==="auto"?c:o.colorScheme,d=E.useCallback(()=>s(u==="light"?"dark":"light"),[s,u]);return E.useEffect(()=>()=>{r.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:s,clearColorScheme:l,toggleColorScheme:d}}function ze(e,r,n){const o=ho(),a=o.components[e]?.defaultProps,i=typeof a=="function"?a(o):a;return{...r,...i,...yp(n)}}function vC(e){return No(e).reduce((r,n)=>e[n]!==void 0?`${r}${V$e(n)}:${e[n]};`:r,"").trim()}function CMe({selector:e,styles:r,media:n,container:o}){const a=r?vC(r):"",i=Array.isArray(n)?n.map(l=>`@media${l.query}{${e}{${vC(l.styles)}}}`):[],s=Array.isArray(o)?o.map(l=>`@container ${l.query}{${e}{${vC(l.styles)}}}`):[];return`${a?`${e}{${a}}`:""}${i.join("")}${s.join("")}`.trim()}function t3(e){const r=Yd();return b.jsx("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:CMe(e)}})}function iq(e){const{m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,me:c,ms:u,p:d,px:h,py:p,pt:g,pb:y,pl:x,pr:w,pe:k,ps:C,bd:_,bdrs:T,bg:A,c:N,opacity:$,ff:R,fz:M,fw:O,lts:B,ta:I,lh:Y,fs:D,tt:V,td:L,w:U,miw:q,maw:X,h:F,mih:J,mah:Q,bgsz:z,bgp:W,bgr:G,bga:Z,pos:oe,top:ee,left:re,bottom:he,right:Ce,inset:ce,display:de,flex:be,hiddenFrom:De,visibleFrom:Ge,lightHidden:Xe,darkHidden:_t,sx:Qe,...St}=e;return{styleProps:yp({m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,me:c,ms:u,p:d,px:h,py:p,pt:g,pb:y,pl:x,pr:w,pe:k,ps:C,bd:_,bg:A,c:N,opacity:$,ff:R,fz:M,fw:O,lts:B,ta:I,lh:Y,fs:D,tt:V,td:L,w:U,miw:q,maw:X,h:F,mih:J,mah:Q,bgsz:z,bgp:W,bgr:G,bga:Z,pos:oe,top:ee,left:re,bottom:he,right:Ce,inset:ce,display:de,flex:be,bdrs:T,hiddenFrom:De,visibleFrom:Ge,lightHidden:Xe,darkHidden:_t,sx:Qe}),rest:St}}const TMe={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function xC(e,r){const n=uu({color:e,theme:r});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function AMe(e,r){const n=uu({color:e,theme:r});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:xC(e,r)}function NMe(e,r){if(typeof e=="number")return Ne(e);if(typeof e=="string"){const[n,o,...a]=e.split(" ").filter(s=>s.trim()!=="");let i=`${Ne(n)}`;return o&&(i+=` ${o}`),a.length>0&&(i+=` ${xC(a.join(" "),r)}`),i.trim()}return e}const sq={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function RMe(e){return typeof e=="string"&&e in sq?sq[e]:e}const $Me=["h1","h2","h3","h4","h5","h6"];function PMe(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&$Me.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?Ne(e):e}function MMe(e){return e}const OMe=["h1","h2","h3","h4","h5","h6"];function DMe(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&OMe.includes(e)?`var(--mantine-${e}-line-height)`:e}function LMe(e,r){return typeof e=="string"&&e in r.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?Ne(e):e}function IMe(e){return typeof e=="number"?Ne(e):e}function zMe(e,r){if(typeof e=="number")return Ne(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in r.spacing))return Ne(e);const o=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e}const wC={color:xC,textColor:AMe,fontSize:PMe,spacing:zMe,radius:LMe,identity:MMe,size:IMe,lineHeight:DMe,fontFamily:RMe,border:NMe};function lq(e){return e.replace("(min-width: ","").replace("em)","")}function jMe({media:e,...r}){const n=Object.keys(e).sort((o,a)=>Number(lq(o))-Number(lq(a))).map(o=>({query:o,styles:e[o]}));return{...r,media:n}}function BMe(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function FMe(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function HMe(e){return typeof e=="object"&&e!==null?No(e).filter(r=>r!=="base"):[]}function UMe(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function cq({styleProps:e,data:r,theme:n}){return jMe(No(e).reduce((o,a)=>{if(a==="hiddenFrom"||a==="visibleFrom"||a==="sx")return o;const i=r[a],s=Array.isArray(i.property)?i.property:[i.property],l=FMe(e[a]);if(!BMe(e[a]))return s.forEach(u=>{o.inlineStyles[u]=wC[i.type](l,n)}),o;o.hasResponsiveStyles=!0;const c=HMe(e[a]);return s.forEach(u=>{l!=null&&(o.styles[u]=wC[i.type](l,n)),c.forEach(d=>{const h=`(min-width: ${n.breakpoints[d]})`;o.media[h]={...o.media[h],[u]:wC[i.type](UMe(e[a],d),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function r3(){return`__m__-${E.useId().replace(/[:«»]/g,"")}`}function kC(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...kC(o,r)}),{}):typeof e=="function"?e(r):e??{}}function uq(e){return e.startsWith("data-")?e:`data-${e}`}function VMe(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(r[uq(n)]=e[n]),r},{})}function dq(e){return e?typeof e=="string"?{[uq(e)]:!0}:Array.isArray(e)?[...e].reduce((r,n)=>({...r,...dq(n)}),{}):VMe(e):null}function _C(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,..._C(o,r)}),{}):typeof e=="function"?e(r):e??{}}function qMe({theme:e,style:r,vars:n,styleProps:o}){const a=_C(r,e),i=_C(n,e);return{...a,...i,...o}}const hq=E.forwardRef(({component:e,style:r,__vars:n,className:o,variant:a,mod:i,size:s,hiddenFrom:l,visibleFrom:c,lightHidden:u,darkHidden:d,renderRoot:h,__size:p,...g},y)=>{const x=ho(),w=e||"div",{styleProps:k,rest:C}=iq(g),_=HPe()?.()?.(k.sx),T=r3(),A=cq({styleProps:k,theme:x,data:TMe}),N={ref:y,style:qMe({theme:x,style:r,vars:n,styleProps:A.inlineStyles}),className:Ji(o,_,{[T]:A.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${c}`]:c}),"data-variant":a,"data-size":CV(s)?void 0:s||void 0,size:p,...dq(i),...C};return b.jsxs(b.Fragment,{children:[A.hasResponsiveStyles&&b.jsx(t3,{selector:`.${T}`,styles:A.styles,media:A.media}),typeof h=="function"?h(N):b.jsx(w,{...N})]})});hq.displayName="@mantine/core/Box";const Se=hq;function fq(e){return e}function YMe(e){const r=e;return n=>{const o=E.forwardRef((a,i)=>b.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o}}function st(e){const r=E.forwardRef(e);return r.extend=fq,r.withProps=n=>{const o=E.forwardRef((a,i)=>b.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r}function Gn(e){const r=E.forwardRef(e);return r.withProps=n=>{const o=E.forwardRef((a,i)=>b.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r.extend=fq,r}const WMe=E.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function du(){return E.useContext(WMe)}function XMe(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function EC(e){return e?.current?e.current.scrollHeight:"auto"}const n3=typeof window<"u"&&window.requestAnimationFrame,pq=0,GMe=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function KMe({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:a=!1}){const i=E.useRef(null),s=GMe(a),[l,c]=E.useState(o?{}:s),u=y=>{ji.flushSync(()=>c(y))},d=y=>{u(x=>({...x,...y}))};function h(y){const x=e||XMe(y);return{transition:`height ${x}ms ${r}, opacity ${x}ms ${r}`}}qd(()=>{typeof n3=="function"&&n3(o?()=>{d({willChange:"height",display:"block",overflow:"hidden"}),n3(()=>{const y=EC(i);d({...h(y),height:y})})}:()=>{const y=EC(i);d({...h(y),willChange:"height",height:y}),n3(()=>d({height:pq,overflow:"hidden"}))})},[o]);const p=y=>{if(!(y.target!==i.current||y.propertyName!=="height"))if(o){const x=EC(i);x===l.height?u({}):d({height:x}),n()}else l.height===pq&&(u(s),n())};function g({style:y={},refKey:x="ref",...w}={}){const k=w[x],C={"aria-hidden":!o,...w,[x]:jV(i,k),onTransitionEnd:p,style:{boxSizing:"border-box",...y,...l}};return Gr.version.startsWith("18")?o||(C.inert=""):C.inert=!o,C}return g}const ZMe={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},mq=st((e,r)=>{const{children:n,in:o,transitionDuration:a,transitionTimingFunction:i,style:s,onTransitionEnd:l,animateOpacity:c,keepMounted:u,...d}=ze("Collapse",ZMe,e),h=ho(),p=FV(),g=h.respectReducedMotion&&p?0:a,y=KMe({opened:o,transitionDuration:g,transitionTimingFunction:i,onTransitionEnd:l,keepMounted:u});return g===0?o?b.jsx(Se,{...d,children:n}):null:b.jsx(Se,{...y({style:{opacity:o||!c?1:0,transition:c?`opacity ${g}ms ${i}`:"none",...kC(s,h)},ref:r,...d}),children:n})});mq.displayName="@mantine/core/Collapse";function o3(){return typeof window<"u"}function Ep(e){return gq(e)?(e.nodeName||"").toLowerCase():"#document"}function ea(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function tl(e){var r;return(r=(gq(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function gq(e){return o3()?e instanceof Node||e instanceof ea(e).Node:!1}function $r(e){return o3()?e instanceof Element||e instanceof ea(e).Element:!1}function Aa(e){return o3()?e instanceof HTMLElement||e instanceof ea(e).HTMLElement:!1}function SC(e){return!o3()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ea(e).ShadowRoot}const QMe=new Set(["inline","contents"]);function P1(e){const{overflow:r,overflowX:n,overflowY:o,display:a}=ni(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!QMe.has(a)}const JMe=new Set(["table","td","th"]);function eOe(e){return JMe.has(Ep(e))}const tOe=[":popover-open",":modal"];function a3(e){return tOe.some(r=>{try{return e.matches(r)}catch{return!1}})}const rOe=["transform","translate","scale","rotate","perspective"],nOe=["transform","translate","scale","rotate","perspective","filter"],oOe=["paint","layout","strict","content"];function CC(e){const r=i3(),n=$r(e)?ni(e):e;return rOe.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||nOe.some(o=>(n.willChange||"").includes(o))||oOe.some(o=>(n.contain||"").includes(o))}function aOe(e){let r=Yl(e);for(;Aa(r)&&!ql(r);){if(CC(r))return r;if(a3(r))return null;r=Yl(r)}return null}function i3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iOe=new Set(["html","body","#document"]);function ql(e){return iOe.has(Ep(e))}function ni(e){return ea(e).getComputedStyle(e)}function s3(e){return $r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yl(e){if(Ep(e)==="html")return e;const r=e.assignedSlot||e.parentNode||SC(e)&&e.host||tl(e);return SC(r)?r.host:r}function yq(e){const r=Yl(e);return ql(r)?e.ownerDocument?e.ownerDocument.body:e.body:Aa(r)&&P1(r)?r:yq(r)}function Wl(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=yq(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),s=ea(a);if(i){const l=TC(s);return r.concat(s,s.visualViewport||[],P1(a)?a:[],l&&n?Wl(l):[])}return r.concat(a,Wl(a,[],n))}function TC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const bq=["top","right","bottom","left"],vq=["start","end"],xq=bq.reduce((e,r)=>e.concat(r,r+"-"+vq[0],r+"-"+vq[1]),[]),es=Math.min,$o=Math.max,l3=Math.round,c3=Math.floor,rl=e=>({x:e,y:e}),sOe={left:"right",right:"left",bottom:"top",top:"bottom"},lOe={start:"end",end:"start"};function AC(e,r,n){return $o(e,es(r,n))}function ts(e,r){return typeof e=="function"?e(r):e}function Na(e){return e.split("-")[0]}function rs(e){return e.split("-")[1]}function NC(e){return e==="x"?"y":"x"}function RC(e){return e==="y"?"height":"width"}const cOe=new Set(["top","bottom"]);function ns(e){return cOe.has(Na(e))?"y":"x"}function $C(e){return NC(ns(e))}function wq(e,r,n){n===void 0&&(n=!1);const o=rs(e),a=$C(e),i=RC(a);let s=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(s=d3(s)),[s,d3(s)]}function uOe(e){const r=d3(e);return[u3(e),r,u3(r)]}function u3(e){return e.replace(/start|end/g,r=>lOe[r])}const kq=["left","right"],_q=["right","left"],dOe=["top","bottom"],hOe=["bottom","top"];function fOe(e,r,n){switch(e){case"top":case"bottom":return n?r?_q:kq:r?kq:_q;case"left":case"right":return r?dOe:hOe;default:return[]}}function pOe(e,r,n,o){const a=rs(e);let i=fOe(Na(e),n==="start",o);return a&&(i=i.map(s=>s+"-"+a),r&&(i=i.concat(i.map(u3)))),i}function d3(e){return e.replace(/left|right|bottom|top/g,r=>sOe[r])}function mOe(e){return{top:0,right:0,bottom:0,left:0,...e}}function PC(e){return typeof e!="number"?mOe(e):{top:e,right:e,bottom:e,left:e}}function Sp(e){const{x:r,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:r,right:r+o,bottom:n+a,x:r,y:n}}function gOe(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function yOe(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:n,version:o}=r;return n+"/"+o}).join(" "):navigator.userAgent}function bOe(){return/apple/i.test(navigator.vendor)}function vOe(){return gOe().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function xOe(){return yOe().includes("jsdom/")}const Eq="data-floating-ui-focusable",wOe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Sq(e){let r=e.activeElement;for(;((n=r)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;r=r.shadowRoot.activeElement}return r}function M1(e,r){if(!e||!r)return!1;const n=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(n&&SC(n)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Cp(e){return"composedPath"in e?e.composedPath()[0]:e.target}function MC(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const n=e;return n.target!=null&&r.contains(n.target)}function kOe(e){return e.matches("html,body")}function Wd(e){return e?.ownerDocument||document}function _Oe(e){return Aa(e)&&e.matches(wOe)}function EOe(e){if(!e||xOe())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function SOe(e){return e?e.hasAttribute(Eq)?e:e.querySelector("["+Eq+"]")||e:null}function h3(e,r,n){return n===void 0&&(n=!0),e.filter(o=>{var a;return o.parentId===r&&(!n||((a=o.context)==null?void 0:a.open))}).flatMap(o=>[o,...h3(e,o.id,n)])}function COe(e){return"nativeEvent"in e}function OC(e,r){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var TOe=typeof document<"u",AOe=function(){},nl=TOe?E.useLayoutEffect:AOe;const NOe={...Vv};function f3(e){const r=E.useRef(e);return nl(()=>{r.current=e}),r}const ROe=NOe.useInsertionEffect,$Oe=ROe||(e=>e());function ol(e){const r=E.useRef(()=>{});return $Oe(()=>{r.current=e}),E.useCallback(function(){for(var n=arguments.length,o=new Array(n),a=0;a{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(r));let u=await s.getElementRects({reference:e,floating:r,strategy:a}),{x:d,y:h}=Cq(u,o,c),p=o,g={},y=0;for(let x=0;x({name:"arrow",options:e,async fn(r){const{x:n,y:o,placement:a,rects:i,platform:s,elements:l,middlewareData:c}=r,{element:u,padding:d=0}=ts(e,r)||{};if(u==null)return{};const h=PC(d),p={x:n,y:o},g=$C(a),y=RC(g),x=await s.getDimensions(u),w=g==="y",k=w?"top":"left",C=w?"bottom":"right",_=w?"clientHeight":"clientWidth",T=i.reference[y]+i.reference[g]-p[g]-i.floating[y],A=p[g]-i.reference[g],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let $=N?N[_]:0;(!$||!await(s.isElement==null?void 0:s.isElement(N)))&&($=l.floating[_]||i.floating[y]);const R=T/2-A/2,M=$/2-x[y]/2-1,O=es(h[k],M),B=es(h[C],M),I=O,Y=$-x[y]-B,D=$/2-x[y]/2+R,V=AC(I,D,Y),L=!c.arrow&&rs(a)!=null&&D!==V&&i.reference[y]/2-(Drs(o)===e),...n.filter(o=>rs(o)!==e)]:n.filter(o=>Na(o)===o)).filter(o=>e?rs(o)===e||(r?u3(o)!==o:!1):!0)}const DOe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var n,o,a;const{rects:i,middlewareData:s,placement:l,platform:c,elements:u}=r,{crossAxis:d=!1,alignment:h,allowedPlacements:p=xq,autoAlignment:g=!0,...y}=ts(e,r),x=h!==void 0||p===xq?OOe(h||null,g,p):p,w=await Tp(r,y),k=((n=s.autoPlacement)==null?void 0:n.index)||0,C=x[k];if(C==null)return{};const _=wq(C,i,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(l!==C)return{reset:{placement:x[0]}};const T=[w[Na(C)],w[_[0]],w[_[1]]],A=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:C,overflows:T}],N=x[k+1];if(N)return{data:{index:k+1,overflows:A},reset:{placement:N}};const $=A.map(M=>{const O=rs(M.placement);return[M.placement,O&&d?M.overflows.slice(0,2).reduce((B,I)=>B+I,0):M.overflows[0],M.overflows]}).sort((M,O)=>M[1]-O[1]),R=((a=$.filter(M=>M[2].slice(0,rs(M[0])?2:3).every(O=>O<=0))[0])==null?void 0:a[0])||$[0][0];return R!==l?{data:{index:k+1,overflows:A},reset:{placement:R}}:{}}}},LOe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,o;const{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:u}=r,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...w}=ts(e,r);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=Na(a),C=ns(l),_=Na(l)===l,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),A=p||(_||!x?[d3(l)]:uOe(l)),N=y!=="none";!p&&N&&A.push(...pOe(l,x,y,T));const $=[l,...A],R=await Tp(r,w),M=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&M.push(R[k]),h){const D=wq(a,s,T);M.push(R[D[0]],R[D[1]])}if(O=[...O,{placement:a,overflows:M}],!M.every(D=>D<=0)){var B,I;const D=(((B=i.flip)==null?void 0:B.index)||0)+1,V=$[D];if(V&&(!(h==="alignment"&&C!==ns(V))||O.every(U=>ns(U.placement)===C?U.overflows[0]>0:!0)))return{data:{index:D,overflows:O},reset:{placement:V}};let L=(I=O.filter(U=>U.overflows[0]<=0).sort((U,q)=>U.overflows[1]-q.overflows[1])[0])==null?void 0:I.placement;if(!L)switch(g){case"bestFit":{var Y;const U=(Y=O.filter(q=>{if(N){const X=ns(q.placement);return X===C||X==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(X=>X>0).reduce((X,F)=>X+F,0)]).sort((q,X)=>q[1]-X[1])[0])==null?void 0:Y[0];U&&(L=U);break}case"initialPlacement":L=l;break}if(a!==L)return{reset:{placement:L}}}return{}}}};function Tq(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function Aq(e){return bq.some(r=>e[r]>=0)}const IOe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:o="referenceHidden",...a}=ts(e,r);switch(o){case"referenceHidden":{const i=await Tp(r,{...a,elementContext:"reference"}),s=Tq(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Aq(s)}}}case"escaped":{const i=await Tp(r,{...a,altBoundary:!0}),s=Tq(i,n.floating);return{data:{escapedOffsets:s,escaped:Aq(s)}}}default:return{}}}}};function Nq(e){const r=es(...e.map(i=>i.left)),n=es(...e.map(i=>i.top)),o=$o(...e.map(i=>i.right)),a=$o(...e.map(i=>i.bottom));return{x:r,y:n,width:o-r,height:a-n}}function zOe(e){const r=e.slice().sort((a,i)=>a.y-i.y),n=[];let o=null;for(let a=0;ao.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map(a=>Sp(Nq(a)))}const jOe=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(r){const{placement:n,elements:o,rects:a,platform:i,strategy:s}=r,{padding:l=2,x:c,y:u}=ts(e,r),d=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(o.reference))||[]),h=zOe(d),p=Sp(Nq(d)),g=PC(l);function y(){if(h.length===2&&h[0].left>h[1].right&&c!=null&&u!=null)return h.find(w=>c>w.left-g.left&&cw.top-g.top&&u=2){if(ns(n)==="y"){const O=h[0],B=h[h.length-1],I=Na(n)==="top",Y=O.top,D=B.bottom,V=I?O.left:B.left,L=I?O.right:B.right,U=L-V,q=D-Y;return{top:Y,bottom:D,left:V,right:L,width:U,height:q,x:V,y:Y}}const w=Na(n)==="left",k=$o(...h.map(O=>O.right)),C=es(...h.map(O=>O.left)),_=h.filter(O=>w?O.left===C:O.right===k),T=_[0].top,A=_[_.length-1].bottom,N=C,$=k,R=$-N,M=A-T;return{top:T,bottom:A,left:N,right:$,width:R,height:M,x:N,y:T}}return p}const x=await i.getElementRects({reference:{getBoundingClientRect:y},floating:o.floating,strategy:s});return a.reference.x!==x.reference.x||a.reference.y!==x.reference.y||a.reference.width!==x.reference.width||a.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},Rq=new Set(["left","top"]);async function BOe(e,r){const{placement:n,platform:o,elements:a}=e,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),s=Na(n),l=rs(n),c=ns(n)==="y",u=Rq.has(s)?-1:1,d=i&&c?-1:1,h=ts(r,e);let{mainAxis:p,crossAxis:g,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof y=="number"&&(g=l==="end"?y*-1:y),c?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const FOe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,o;const{x:a,y:i,placement:s,middlewareData:l}=r,c=await BOe(r,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:s}}}}},HOe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:k,y:C}=w;return{x:k,y:C}}},...c}=ts(e,r),u={x:n,y:o},d=await Tp(r,c),h=ns(Na(a)),p=NC(h);let g=u[p],y=u[h];if(i){const w=p==="y"?"top":"left",k=p==="y"?"bottom":"right",C=g+d[w],_=g-d[k];g=AC(C,g,_)}if(s){const w=h==="y"?"top":"left",k=h==="y"?"bottom":"right",C=y+d[w],_=y-d[k];y=AC(C,y,_)}const x=l.fn({...r,[p]:g,[h]:y});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[p]:i,[h]:s}}}}}},UOe=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:o,placement:a,rects:i,middlewareData:s}=r,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=ts(e,r),d={x:n,y:o},h=ns(a),p=NC(h);let g=d[p],y=d[h];const x=ts(l,r),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const _=p==="y"?"height":"width",T=i.reference[p]-i.floating[_]+w.mainAxis,A=i.reference[p]+i.reference[_]-w.mainAxis;gA&&(g=A)}if(u){var k,C;const _=p==="y"?"width":"height",T=Rq.has(Na(a)),A=i.reference[h]-i.floating[_]+(T&&((k=s.offset)==null?void 0:k[h])||0)+(T?0:w.crossAxis),N=i.reference[h]+i.reference[_]+(T?0:((C=s.offset)==null?void 0:C[h])||0)-(T?w.crossAxis:0);yN&&(y=N)}return{[p]:g,[h]:y}}}},VOe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var n,o;const{placement:a,rects:i,platform:s,elements:l}=r,{apply:c=()=>{},...u}=ts(e,r),d=await Tp(r,u),h=Na(a),p=rs(a),g=ns(a)==="y",{width:y,height:x}=i.floating;let w,k;h==="top"||h==="bottom"?(w=h,k=p===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(k=h,w=p==="end"?"top":"bottom");const C=x-d.top-d.bottom,_=y-d.left-d.right,T=es(x-d[w],C),A=es(y-d[k],_),N=!r.middlewareData.shift;let $=T,R=A;if((n=r.middlewareData.shift)!=null&&n.enabled.x&&(R=_),(o=r.middlewareData.shift)!=null&&o.enabled.y&&($=C),N&&!p){const O=$o(d.left,0),B=$o(d.right,0),I=$o(d.top,0),Y=$o(d.bottom,0);g?R=y-2*(O!==0||B!==0?O+B:$o(d.left,d.right)):$=x-2*(I!==0||Y!==0?I+Y:$o(d.top,d.bottom))}await c({...r,availableWidth:R,availableHeight:$});const M=await s.getDimensions(l.floating);return y!==M.width||x!==M.height?{reset:{rects:!0}}:{}}}};function $q(e){const r=ni(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Aa(e),i=a?e.offsetWidth:n,s=a?e.offsetHeight:o,l=l3(n)!==i||l3(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function DC(e){return $r(e)?e:e.contextElement}function Ap(e){const r=DC(e);if(!Aa(r))return rl(1);const n=r.getBoundingClientRect(),{width:o,height:a,$:i}=$q(r);let s=(i?l3(n.width):n.width)/o,l=(i?l3(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const qOe=rl(0);function Pq(e){const r=ea(e);return!i3()||!r.visualViewport?qOe:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function YOe(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==ea(e)?!1:r}function Xd(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=DC(e);let s=rl(1);r&&(o?$r(o)&&(s=Ap(o)):s=Ap(e));const l=YOe(i,n,o)?Pq(i):rl(0);let c=(a.left+l.x)/s.x,u=(a.top+l.y)/s.y,d=a.width/s.x,h=a.height/s.y;if(i){const p=ea(i),g=o&&$r(o)?ea(o):o;let y=p,x=TC(y);for(;x&&o&&g!==y;){const w=Ap(x),k=x.getBoundingClientRect(),C=ni(x),_=k.left+(x.clientLeft+parseFloat(C.paddingLeft))*w.x,T=k.top+(x.clientTop+parseFloat(C.paddingTop))*w.y;c*=w.x,u*=w.y,d*=w.x,h*=w.y,c+=_,u+=T,y=ea(x),x=TC(y)}}return Sp({width:d,height:h,x:c,y:u})}function p3(e,r){const n=s3(e).scrollLeft;return r?r.left+n:Xd(tl(e)).left+n}function Mq(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-p3(e,n),a=n.top+r.scrollTop;return{x:o,y:a}}function WOe(e){let{elements:r,rect:n,offsetParent:o,strategy:a}=e;const i=a==="fixed",s=tl(o),l=r?a3(r.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=rl(1);const d=rl(0),h=Aa(o);if((h||!h&&!i)&&((Ep(o)!=="body"||P1(s))&&(c=s3(o)),Aa(o))){const g=Xd(o);u=Ap(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}const p=s&&!h&&!i?Mq(s,c):rl(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function XOe(e){return Array.from(e.getClientRects())}function GOe(e){const r=tl(e),n=s3(e),o=e.ownerDocument.body,a=$o(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=$o(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+p3(e);const l=-n.scrollTop;return ni(o).direction==="rtl"&&(s+=$o(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}const Oq=25;function KOe(e,r){const n=ea(e),o=tl(e),a=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;const d=i3();(!d||d&&r==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}const u=p3(o);if(u<=0){const d=o.ownerDocument,h=d.body,p=getComputedStyle(h),g=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(o.clientWidth-h.clientWidth-g);y<=Oq&&(i-=y)}else u<=Oq&&(i+=u);return{width:i,height:s,x:l,y:c}}const ZOe=new Set(["absolute","fixed"]);function QOe(e,r){const n=Xd(e,!0,r==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=Aa(e)?Ap(e):rl(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,u=o*i.y;return{width:s,height:l,x:c,y:u}}function Dq(e,r,n){let o;if(r==="viewport")o=KOe(e,n);else if(r==="document")o=GOe(tl(e));else if($r(r))o=QOe(r,n);else{const a=Pq(e);o={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return Sp(o)}function Lq(e,r){const n=Yl(e);return n===r||!$r(n)||ql(n)?!1:ni(n).position==="fixed"||Lq(n,r)}function JOe(e,r){const n=r.get(e);if(n)return n;let o=Wl(e,[],!1).filter(l=>$r(l)&&Ep(l)!=="body"),a=null;const i=ni(e).position==="fixed";let s=i?Yl(e):e;for(;$r(s)&&!ql(s);){const l=ni(s),c=CC(s);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&a&&ZOe.has(a.position)||P1(s)&&!c&&Lq(e,s))?o=o.filter(u=>u!==s):a=l,s=Yl(s)}return r.set(e,o),o}function eDe(e){let{element:r,boundary:n,rootBoundary:o,strategy:a}=e;const i=[...n==="clippingAncestors"?a3(r)?[]:JOe(r,this._c):[].concat(n),o],s=i[0],l=i.reduce((c,u)=>{const d=Dq(r,u,a);return c.top=$o(d.top,c.top),c.right=es(d.right,c.right),c.bottom=es(d.bottom,c.bottom),c.left=$o(d.left,c.left),c},Dq(r,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tDe(e){const{width:r,height:n}=$q(e);return{width:r,height:n}}function rDe(e,r,n){const o=Aa(r),a=tl(r),i=n==="fixed",s=Xd(e,!0,i,r);let l={scrollLeft:0,scrollTop:0};const c=rl(0);function u(){c.x=p3(a)}if(o||!o&&!i)if((Ep(r)!=="body"||P1(a))&&(l=s3(r)),o){const g=Xd(r,!0,i,r);c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}else a&&u();i&&!o&&a&&u();const d=a&&!o&&!i?Mq(a,l):rl(0),h=s.left+l.scrollLeft-c.x-d.x,p=s.top+l.scrollTop-c.y-d.y;return{x:h,y:p,width:s.width,height:s.height}}function LC(e){return ni(e).position==="static"}function Iq(e,r){if(!Aa(e)||ni(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return tl(e)===n&&(n=n.ownerDocument.body),n}function zq(e,r){const n=ea(e);if(a3(e))return n;if(!Aa(e)){let a=Yl(e);for(;a&&!ql(a);){if($r(a)&&!LC(a))return a;a=Yl(a)}return n}let o=Iq(e,r);for(;o&&eOe(o)&&LC(o);)o=Iq(o,r);return o&&ql(o)&&LC(o)&&!CC(o)?n:o||aOe(e)||n}const nDe=async function(e){const r=this.getOffsetParent||zq,n=this.getDimensions,o=await n(e.floating);return{reference:rDe(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function oDe(e){return ni(e).direction==="rtl"}const aDe={convertOffsetParentRelativeRectToViewportRelativeRect:WOe,getDocumentElement:tl,getClippingRect:eDe,getOffsetParent:zq,getElementRects:nDe,getClientRects:XOe,getDimensions:tDe,getScale:Ap,isElement:$r,isRTL:oDe};function jq(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function iDe(e,r){let n=null,o;const a=tl(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:d,top:h,width:p,height:g}=u;if(l||r(),!p||!g)return;const y=c3(h),x=c3(a.clientWidth-(d+p)),w=c3(a.clientHeight-(h+g)),k=c3(d),C={rootMargin:-y+"px "+-x+"px "+-w+"px "+-k+"px",threshold:$o(0,es(1,c))||1};let _=!0;function T(A){const N=A[0].intersectionRatio;if(N!==c){if(!_)return s();N?s(!1,N):o=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!jq(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(T,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return s(!0),i}function m3(e,r,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=DC(e),d=a||i?[...u?Wl(u):[],...Wl(r)]:[];d.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const h=u&&l?iDe(u,n):null;let p=-1,g=null;s&&(g=new ResizeObserver(k=>{let[C]=k;C&&C.target===u&&g&&(g.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(r)})),n()}),u&&!c&&g.observe(u),g.observe(r));let y,x=c?Xd(e):null;c&&w();function w(){const k=Xd(e);x&&!jq(x,k)&&n(),x=k,y=requestAnimationFrame(w)}return n(),()=>{var k;d.forEach(C=>{a&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),h?.(),(k=g)==null||k.disconnect(),g=null,c&&cancelAnimationFrame(y)}}const Bq=FOe,sDe=DOe,lDe=HOe,cDe=LOe,Fq=VOe,Hq=IOe,Uq=MOe,uDe=jOe,dDe=UOe,Vq=(e,r,n)=>{const o=new Map,a={platform:aDe,...n},i={...a.platform,_c:o};return POe(e,r,{...a,platform:i})};var hDe=typeof document<"u",fDe=function(){},g3=hDe?E.useLayoutEffect:fDe;function y3(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let n,o,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==r.length)return!1;for(o=n;o--!==0;)if(!y3(e[o],r[o]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){const i=a[o];if(!(i==="_owner"&&e.$$typeof)&&!y3(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function qq(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yq(e,r){const n=qq(e);return Math.round(r*n)/n}function IC(e){const r=E.useRef(e);return g3(()=>{r.current=e}),r}function pDe(e){e===void 0&&(e={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=E.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[p,g]=E.useState(o);y3(p,o)||g(o);const[y,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(q=>{q!==N.current&&(N.current=q,x(q))},[]),_=E.useCallback(q=>{q!==$.current&&($.current=q,k(q))},[]),T=i||y,A=s||w,N=E.useRef(null),$=E.useRef(null),R=E.useRef(d),M=c!=null,O=IC(c),B=IC(a),I=IC(u),Y=E.useCallback(()=>{if(!N.current||!$.current)return;const q={placement:r,strategy:n,middleware:p};B.current&&(q.platform=B.current),Vq(N.current,$.current,q).then(X=>{const F={...X,isPositioned:I.current!==!1};D.current&&!y3(R.current,F)&&(R.current=F,ji.flushSync(()=>{h(F)}))})},[p,r,n,B,I]);g3(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,h(q=>({...q,isPositioned:!1})))},[u]);const D=E.useRef(!1);g3(()=>(D.current=!0,()=>{D.current=!1}),[]),g3(()=>{if(T&&(N.current=T),A&&($.current=A),T&&A){if(O.current)return O.current(T,A,Y);Y()}},[T,A,Y,O,M]);const V=E.useMemo(()=>({reference:N,floating:$,setReference:C,setFloating:_}),[C,_]),L=E.useMemo(()=>({reference:T,floating:A}),[T,A]),U=E.useMemo(()=>{const q={position:n,left:0,top:0};if(!L.floating)return q;const X=Yq(L.floating,d.x),F=Yq(L.floating,d.y);return l?{...q,transform:"translate("+X+"px, "+F+"px)",...qq(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:F}},[n,l,L.floating,d.x,d.y]);return E.useMemo(()=>({...d,update:Y,refs:V,elements:L,floatingStyles:U}),[d,Y,V,L,U])}const mDe=e=>{function r(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:a}=typeof e=="function"?e(n):e;return o&&r(o)?o.current!=null?Uq({element:o.current,padding:a}).fn(n):{}:o?Uq({element:o,padding:a}).fn(n):{}}}},Wq=(e,r)=>({...Bq(e),options:[e,r]}),zC=(e,r)=>({...lDe(e),options:[e,r]}),Xq=(e,r)=>({...dDe(e),options:[e,r]}),b3=(e,r)=>({...cDe(e),options:[e,r]}),gDe=(e,r)=>({...Fq(e),options:[e,r]}),yDe=(e,r)=>({...Hq(e),options:[e,r]}),O1=(e,r)=>({...uDe(e),options:[e,r]}),Gq=(e,r)=>({...mDe(e),options:[e,r]});function Kq(e){const r=E.useRef(void 0),n=E.useCallback(o=>{const a=e.map(i=>{if(i!=null){if(typeof i=="function"){const s=i,l=s(o);return typeof l=="function"?l:()=>{s(null)}}return i.current=o,()=>{i.current=null}}});return()=>{a.forEach(i=>i?.())}},e);return E.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))},e)}const bDe="data-floating-ui-focusable",Zq="active",Qq="selected",vDe={...Vv};let Jq=!1,xDe=0;const eY=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xDe++;function wDe(){const[e,r]=E.useState(()=>Jq?eY():void 0);return nl(()=>{e==null&&r(eY())},[]),E.useEffect(()=>{Jq=!0},[]),e}const kDe=vDe.useId,tY=kDe||wDe;function _De(){const e=new Map;return{emit(r,n){var o;(o=e.get(r))==null||o.forEach(a=>a(n))},on(r,n){e.has(r)||e.set(r,new Set),e.get(r).add(n)},off(r,n){var o;(o=e.get(r))==null||o.delete(n)}}}const EDe=E.createContext(null),SDe=E.createContext(null),jC=()=>{var e;return((e=E.useContext(EDe))==null?void 0:e.id)||null},BC=()=>E.useContext(SDe);function FC(e){return"data-floating-ui-"+e}function oi(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const rY=FC("safe-polygon");function v3(e,r,n){if(n&&!OC(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[r]}return e?.[r]}function HC(e){return typeof e=="function"?e():e}function nY(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:d=!1,restMs:h=0,move:p=!0}=r,g=BC(),y=jC(),x=f3(u),w=f3(c),k=f3(n),C=f3(h),_=E.useRef(),T=E.useRef(-1),A=E.useRef(),N=E.useRef(-1),$=E.useRef(!0),R=E.useRef(!1),M=E.useRef(()=>{}),O=E.useRef(!1),B=ol(()=>{var U;const q=(U=a.current.openEvent)==null?void 0:U.type;return q?.includes("mouse")&&q!=="mousedown"});E.useEffect(()=>{if(!l)return;function U(q){let{open:X}=q;X||(oi(T),oi(N),$.current=!0,O.current=!1)}return i.on("openchange",U),()=>{i.off("openchange",U)}},[l,i]),E.useEffect(()=>{if(!l||!x.current||!n)return;function U(X){B()&&o(!1,X,"hover")}const q=Wd(s.floating).documentElement;return q.addEventListener("mouseleave",U),()=>{q.removeEventListener("mouseleave",U)}},[s.floating,n,o,l,x,B]);const I=E.useCallback(function(U,q,X){q===void 0&&(q=!0),X===void 0&&(X="hover");const F=v3(w.current,"close",_.current);F&&!A.current?(oi(T),T.current=window.setTimeout(()=>o(!1,U,X),F)):q&&(oi(T),o(!1,U,X))},[w,o]),Y=ol(()=>{M.current(),A.current=void 0}),D=ol(()=>{if(R.current){const U=Wd(s.floating).body;U.style.pointerEvents="",U.removeAttribute(rY),R.current=!1}}),V=ol(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);E.useEffect(()=>{if(!l)return;function U(Q){if(oi(T),$.current=!1,d&&!OC(_.current)||HC(C.current)>0&&!v3(w.current,"open"))return;const z=v3(w.current,"open",_.current);z?T.current=window.setTimeout(()=>{k.current||o(!0,Q,"hover")},z):n||o(!0,Q,"hover")}function q(Q){if(V()){D();return}M.current();const z=Wd(s.floating);if(oi(N),O.current=!1,x.current&&a.current.floatingContext){n||oi(T),A.current=x.current({...a.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){D(),Y(),V()||I(Q,!0,"safe-polygon")}});const W=A.current;z.addEventListener("mousemove",W),M.current=()=>{z.removeEventListener("mousemove",W)};return}(_.current!=="touch"||!M1(s.floating,Q.relatedTarget))&&I(Q)}function X(Q){V()||a.current.floatingContext&&(x.current==null||x.current({...a.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){D(),Y(),V()||I(Q)}})(Q))}function F(){oi(T)}function J(Q){V()||I(Q,!1)}if($r(s.domReference)){const Q=s.domReference,z=s.floating;return n&&Q.addEventListener("mouseleave",X),p&&Q.addEventListener("mousemove",U,{once:!0}),Q.addEventListener("mouseenter",U),Q.addEventListener("mouseleave",q),z&&(z.addEventListener("mouseleave",X),z.addEventListener("mouseenter",F),z.addEventListener("mouseleave",J)),()=>{n&&Q.removeEventListener("mouseleave",X),p&&Q.removeEventListener("mousemove",U),Q.removeEventListener("mouseenter",U),Q.removeEventListener("mouseleave",q),z&&(z.removeEventListener("mouseleave",X),z.removeEventListener("mouseenter",F),z.removeEventListener("mouseleave",J))}}},[s,l,e,d,p,I,Y,D,o,n,k,g,w,x,a,V,C]),nl(()=>{var U;if(l&&n&&(U=x.current)!=null&&(U=U.__options)!=null&&U.blockPointerEvents&&B()){R.current=!0;const X=s.floating;if($r(s.domReference)&&X){var q;const F=Wd(s.floating).body;F.setAttribute(rY,"");const J=s.domReference,Q=g==null||(q=g.nodesRef.current.find(z=>z.id===y))==null||(q=q.context)==null?void 0:q.elements.floating;return Q&&(Q.style.pointerEvents=""),F.style.pointerEvents="none",J.style.pointerEvents="auto",X.style.pointerEvents="auto",()=>{F.style.pointerEvents="",J.style.pointerEvents="",X.style.pointerEvents=""}}}},[l,n,y,s,g,x,B]),nl(()=>{n||(_.current=void 0,O.current=!1,Y(),D())},[n,Y,D]),E.useEffect(()=>()=>{Y(),oi(T),oi(N),D()},[l,s.domReference,Y,D]);const L=E.useMemo(()=>{function U(q){_.current=q.pointerType}return{onPointerDown:U,onPointerEnter:U,onMouseMove(q){const{nativeEvent:X}=q;function F(){!$.current&&!k.current&&o(!0,X,"hover")}d&&!OC(_.current)||n||HC(C.current)===0||O.current&&q.movementX**2+q.movementY**2<2||(oi(N),_.current==="touch"?F():(O.current=!0,N.current=window.setTimeout(F,HC(C.current))))}}},[d,o,n,k,C]);return E.useMemo(()=>l?{reference:L}:{},[l,L])}const UC=()=>{},oY=E.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:UC,setState:UC,isInstantPhase:!1}),CDe=()=>E.useContext(oY);function aY(e){const{children:r,delay:n,timeoutMs:o=0}=e,[a,i]=E.useReducer((c,u)=>({...c,...u}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=E.useRef(null),l=E.useCallback(c=>{i({currentId:c})},[]);return nl(()=>{a.currentId?s.current===null?s.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)},[a.currentId,a.isInstantPhase]),b.jsx(oY.Provider,{value:E.useMemo(()=>({...a,setState:i,setCurrentId:l}),[a,l]),children:r})}function iY(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,floatingId:a}=e,{id:i,enabled:s=!0}=r,l=i??a,c=CDe(),{currentId:u,setCurrentId:d,initialDelay:h,setState:p,timeoutMs:g}=c;return nl(()=>{s&&u&&(p({delay:{open:1,close:v3(h,"close")}}),u!==l&&o(!1))},[s,l,o,p,u,h]),nl(()=>{function y(){o(!1),p({delay:h,currentId:null})}if(s&&u&&!n&&u===l){if(g){const x=window.setTimeout(y,g);return()=>{clearTimeout(x)}}y()}},[s,n,p,u,l,o,h,g]),nl(()=>{s&&(d===UC||!n||d(l))},[s,n,d,l]),c}const TDe={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ADe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},sY=e=>{var r,n;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function lY(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,elements:a,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:d=!1,referencePressEvent:h="pointerdown",ancestorScroll:p=!1,bubbles:g,capture:y}=r,x=BC(),w=ol(typeof c=="function"?c:()=>!1),k=typeof c=="function"?w:c,C=E.useRef(!1),{escapeKey:_,outsidePress:T}=sY(g),{escapeKey:A,outsidePress:N}=sY(y),$=E.useRef(!1),R=ol(D=>{var V;if(!n||!s||!l||D.key!=="Escape"||$.current)return;const L=(V=i.current.floatingContext)==null?void 0:V.nodeId,U=x?h3(x.nodesRef.current,L):[];if(!_&&(D.stopPropagation(),U.length>0)){let q=!0;if(U.forEach(X=>{var F;if((F=X.context)!=null&&F.open&&!X.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o(!1,COe(D)?D.nativeEvent:D,"escape-key")}),M=ol(D=>{var V;const L=()=>{var U;R(D),(U=Cp(D))==null||U.removeEventListener("keydown",L)};(V=Cp(D))==null||V.addEventListener("keydown",L)}),O=ol(D=>{var V;const L=i.current.insideReactTree;i.current.insideReactTree=!1;const U=C.current;if(C.current=!1,u==="click"&&U||L||typeof k=="function"&&!k(D))return;const q=Cp(D),X="["+FC("inert")+"]",F=Wd(a.floating).querySelectorAll(X);let J=$r(q)?q:null;for(;J&&!ql(J);){const G=Yl(J);if(ql(G)||!$r(G))break;J=G}if(F.length&&$r(q)&&!kOe(q)&&!M1(q,a.floating)&&Array.from(F).every(G=>!M1(J,G)))return;if(Aa(q)&&Y){const G=ql(q),Z=ni(q),oe=/auto|scroll/,ee=G||oe.test(Z.overflowX),re=G||oe.test(Z.overflowY),he=ee&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,Ce=re&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,ce=Z.direction==="rtl",de=Ce&&(ce?D.offsetX<=q.offsetWidth-q.clientWidth:D.offsetX>q.clientWidth),be=he&&D.offsetY>q.clientHeight;if(de||be)return}const Q=(V=i.current.floatingContext)==null?void 0:V.nodeId,z=x&&h3(x.nodesRef.current,Q).some(G=>{var Z;return MC(D,(Z=G.context)==null?void 0:Z.elements.floating)});if(MC(D,a.floating)||MC(D,a.domReference)||z)return;const W=x?h3(x.nodesRef.current,Q):[];if(W.length>0){let G=!0;if(W.forEach(Z=>{var oe;if((oe=Z.context)!=null&&oe.open&&!Z.context.dataRef.current.__outsidePressBubbles){G=!1;return}}),!G)return}o(!1,D,"outside-press")}),B=ol(D=>{var V;const L=()=>{var U;O(D),(U=Cp(D))==null||U.removeEventListener(u,L)};(V=Cp(D))==null||V.addEventListener(u,L)});E.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=T;let D=-1;function V(F){o(!1,F,"ancestor-scroll")}function L(){window.clearTimeout(D),$.current=!0}function U(){D=window.setTimeout(()=>{$.current=!1},i3()?5:0)}const q=Wd(a.floating);l&&(q.addEventListener("keydown",A?M:R,A),q.addEventListener("compositionstart",L),q.addEventListener("compositionend",U)),k&&q.addEventListener(u,N?B:O,N);let X=[];return p&&($r(a.domReference)&&(X=Wl(a.domReference)),$r(a.floating)&&(X=X.concat(Wl(a.floating))),!$r(a.reference)&&a.reference&&a.reference.contextElement&&(X=X.concat(Wl(a.reference.contextElement)))),X=X.filter(F=>{var J;return F!==((J=q.defaultView)==null?void 0:J.visualViewport)}),X.forEach(F=>{F.addEventListener("scroll",V,{passive:!0})}),()=>{l&&(q.removeEventListener("keydown",A?M:R,A),q.removeEventListener("compositionstart",L),q.removeEventListener("compositionend",U)),k&&q.removeEventListener(u,N?B:O,N),X.forEach(F=>{F.removeEventListener("scroll",V)}),window.clearTimeout(D)}},[i,a,l,k,u,n,o,p,s,_,T,R,A,M,O,N,B]),E.useEffect(()=>{i.current.insideReactTree=!1},[i,k,u]);const I=E.useMemo(()=>({onKeyDown:R,...d&&{[TDe[h]]:D=>{o(!1,D.nativeEvent,"reference-press")},...h!=="click"&&{onClick(D){o(!1,D.nativeEvent,"reference-press")}}}}),[R,o,d,h]),Y=E.useMemo(()=>({onKeyDown:R,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[ADe[u]]:()=>{i.current.insideReactTree=!0}}),[R,u,i]);return E.useMemo(()=>s?{reference:I,floating:Y}:{},[s,I,Y])}function NDe(e){const{open:r=!1,onOpenChange:n,elements:o}=e,a=tY(),i=E.useRef({}),[s]=E.useState(()=>_De()),l=jC()!=null,[c,u]=E.useState(o.reference),d=ol((g,y,x)=>{i.current.openEvent=g?y:void 0,s.emit("openchange",{open:g,event:y,reason:x,nested:l}),n?.(g,y,x)}),h=E.useMemo(()=>({setPositionReference:u}),[]),p=E.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return E.useMemo(()=>({dataRef:i,open:r,onOpenChange:d,elements:p,events:s,floatingId:a,refs:h}),[r,d,p,s,a,h])}function x3(e){e===void 0&&(e={});const{nodeId:r}=e,n=NDe({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,s]=E.useState(null),[l,c]=E.useState(null),u=a?.domReference||i,d=E.useRef(null),h=BC();nl(()=>{u&&(d.current=u)},[u]);const p=pDe({...e,elements:{...a,...l&&{reference:l}}}),g=E.useCallback(C=>{const _=$r(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(_),p.refs.setReference(_)},[p.refs]),y=E.useCallback(C=>{($r(C)||C===null)&&(d.current=C,s(C)),($r(p.refs.reference.current)||p.refs.reference.current===null||C!==null&&!$r(C))&&p.refs.setReference(C)},[p.refs]),x=E.useMemo(()=>({...p.refs,setReference:y,setPositionReference:g,domReference:d}),[p.refs,y,g]),w=E.useMemo(()=>({...p.elements,domReference:u}),[p.elements,u]),k=E.useMemo(()=>({...p,...o,refs:x,elements:w,nodeId:r}),[p,x,w,r,o]);return nl(()=>{o.dataRef.current.floatingContext=k;const C=h?.nodesRef.current.find(_=>_.id===r);C&&(C.context=k)}),E.useMemo(()=>({...p,context:k,refs:x,elements:w}),[p,x,w,k])}function VC(){return vOe()&&bOe()}function RDe(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,events:a,dataRef:i,elements:s}=e,{enabled:l=!0,visibleOnly:c=!0}=r,u=E.useRef(!1),d=E.useRef(-1),h=E.useRef(!0);E.useEffect(()=>{if(!l)return;const g=ea(s.domReference);function y(){!n&&Aa(s.domReference)&&s.domReference===Sq(Wd(s.domReference))&&(u.current=!0)}function x(){h.current=!0}function w(){h.current=!1}return g.addEventListener("blur",y),VC()&&(g.addEventListener("keydown",x,!0),g.addEventListener("pointerdown",w,!0)),()=>{g.removeEventListener("blur",y),VC()&&(g.removeEventListener("keydown",x,!0),g.removeEventListener("pointerdown",w,!0))}},[s.domReference,n,l]),E.useEffect(()=>{if(!l)return;function g(y){let{reason:x}=y;(x==="reference-press"||x==="escape-key")&&(u.current=!0)}return a.on("openchange",g),()=>{a.off("openchange",g)}},[a,l]),E.useEffect(()=>()=>{oi(d)},[]);const p=E.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(g){if(u.current)return;const y=Cp(g.nativeEvent);if(c&&$r(y)){if(VC()&&!g.relatedTarget){if(!h.current&&!_Oe(y))return}else if(!EOe(y))return}o(!0,g.nativeEvent,"focus")},onBlur(g){u.current=!1;const y=g.relatedTarget,x=g.nativeEvent,w=$r(y)&&y.hasAttribute(FC("focus-guard"))&&y.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var k;const C=Sq(s.domReference?s.domReference.ownerDocument:document);!y&&C===s.domReference||M1((k=i.current.floatingContext)==null?void 0:k.refs.floating.current,C)||M1(s.domReference,C)||w||o(!1,x,"focus")})}}),[i,s.domReference,o,c]);return E.useMemo(()=>l?{reference:p}:{},[l,p])}function qC(e,r,n){const o=new Map,a=n==="item";let i=e;if(a&&e){const{[Zq]:s,[Qq]:l,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[bDe]:""},...i,...r.map(s=>{const l=s?s[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((s,l)=>(l&&Object.entries(l).forEach(c=>{let[u,d]=c;if(!(a&&[Zq,Qq].includes(u)))if(u.indexOf("on")===0){if(o.has(u)||o.set(u,[]),typeof d=="function"){var h;(h=o.get(u))==null||h.push(d),s[u]=function(){for(var p,g=arguments.length,y=new Array(g),x=0;xw(...y)).find(w=>w!==void 0)}}}else s[u]=d}),s),{})}}function cY(e){e===void 0&&(e=[]);const r=e.map(l=>l?.reference),n=e.map(l=>l?.floating),o=e.map(l=>l?.item),a=E.useCallback(l=>qC(l,e,"reference"),r),i=E.useCallback(l=>qC(l,e,"floating"),n),s=E.useCallback(l=>qC(l,e,"item"),o);return E.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:s}),[a,i,s])}const $De=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function uY(e,r){var n,o;r===void 0&&(r={});const{open:a,elements:i,floatingId:s}=e,{enabled:l=!0,role:c="dialog"}=r,u=tY(),d=((n=i.domReference)==null?void 0:n.id)||u,h=E.useMemo(()=>{var k;return((k=SOe(i.floating))==null?void 0:k.id)||s},[i.floating,s]),p=(o=$De.get(c))!=null?o:c,g=jC()!=null,y=E.useMemo(()=>p==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:a?h:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":p==="alertdialog"?"dialog":p,"aria-controls":a?h:void 0,...p==="listbox"&&{role:"combobox"},...p==="menu"&&{id:d},...p==="menu"&&g&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[p,h,g,a,d,c]),x=E.useMemo(()=>{const k={id:h,...p&&{role:p}};return p==="tooltip"||c==="label"?k:{...k,...p==="menu"&&{"aria-labelledby":d}}},[p,h,d,c]),w=E.useCallback(k=>{let{active:C,selected:_}=k;const T={role:"option",...C&&{id:h+"-fui-option"}};switch(c){case"select":case"combobox":return{...T,"aria-selected":_}}return{}},[h,c]);return E.useMemo(()=>l?{reference:y,floating:x,item:w}:{},[l,y,x,w])}const[PDe,ai]=ri("ScrollArea.Root component was not found in tree");function Np(e,r){const n=it(r);N1(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}const MDe=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=ai(),[i,s]=E.useState(0),[l,c]=E.useState(0),u=!!(i&&l);return Np(a.scrollbarX,()=>{const d=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(d),c(d)}),Np(a.scrollbarY,()=>{const d=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(d),s(d)}),u?b.jsx("div",{...o,ref:r,style:{...n,width:i,height:l}}):null}),ODe=E.forwardRef((e,r)=>{const n=ai(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?b.jsx(MDe,{...e,ref:r}):null}),DDe={scrollHideDelay:1e3,type:"hover"},dY=E.forwardRef((e,r)=>{const{type:n,scrollHideDelay:o,scrollbars:a,getStyles:i,...s}=ze("ScrollAreaRoot",DDe,e),[l,c]=E.useState(null),[u,d]=E.useState(null),[h,p]=E.useState(null),[g,y]=E.useState(null),[x,w]=E.useState(null),[k,C]=E.useState(0),[_,T]=E.useState(0),[A,N]=E.useState(!1),[$,R]=E.useState(!1),M=Rr(r,O=>c(O));return b.jsx(PDe,{value:{type:n,scrollHideDelay:o,scrollArea:l,viewport:u,onViewportChange:d,content:h,onContentChange:p,scrollbarX:g,onScrollbarXChange:y,scrollbarXEnabled:A,onScrollbarXEnabledChange:N,scrollbarY:x,onScrollbarYChange:w,scrollbarYEnabled:$,onScrollbarYEnabledChange:R,onCornerWidthChange:C,onCornerHeightChange:T,getStyles:i},children:b.jsx(Se,{...s,ref:M,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${k}px`,"--sa-corner-height":a!=="xy"?"0px":`${_}px`}})})});dY.displayName="@mantine/core/ScrollAreaRoot";function hY(e,r){const n=e/r;return Number.isNaN(n)?0:n}function w3(e){const r=hY(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*r;return Math.max(o,18)}function fY(e,r){return n=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(n-e[0])}}function LDe(e,[r,n]){return Math.min(n,Math.max(r,e))}function pY(e,r,n="ltr"){const o=w3(r),a=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,i=r.scrollbar.size-a,s=r.content-r.viewport,l=i-o,c=n==="ltr"?[0,s]:[s*-1,0],u=LDe(e,c);return fY([0,s],[0,l])(u)}function IDe(e,r,n,o="ltr"){const a=w3(n),i=a/2,s=r||i,l=a-s,c=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,d=n.content-n.viewport,h=o==="ltr"?[0,d]:[d*-1,0];return fY([c,u],h)(e)}function mY(e,r){return e>0&&e{e?.(o),(n===!1||!o.defaultPrevented)&&r?.(o)}}const[zDe,gY]=ri("ScrollAreaScrollbar was not found in tree"),yY=E.forwardRef((e,r)=>{const{sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...h}=e,p=ai(),[g,y]=E.useState(null),x=Rr(r,R=>y(R)),w=E.useRef(null),k=E.useRef(""),{viewport:C}=p,_=n.content-n.viewport,T=it(u),A=it(l),N=vp(d,10),$=R=>{if(w.current){const M=R.clientX-w.current.left,O=R.clientY-w.current.top;c({x:M,y:O})}};return E.useEffect(()=>{const R=M=>{const O=M.target;g?.contains(O)&&T(M,_)};return document.addEventListener("wheel",R,{passive:!1}),()=>document.removeEventListener("wheel",R,{passive:!1})},[C,g,_,T]),E.useEffect(A,[n,A]),Np(g,N),Np(p.content,N),b.jsx(zDe,{value:{scrollbar:g,hasThumb:o,onThumbChange:it(a),onThumbPointerUp:it(i),onThumbPositionChange:A,onThumbPointerDown:it(s)},children:b.jsx("div",{...h,ref:x,"data-mantine-scrollbar":!0,style:{position:"absolute",...h.style},onPointerDown:Gd(e.onPointerDown,R=>{R.preventDefault(),R.button===0&&(R.target.setPointerCapture(R.pointerId),w.current=g.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",$(R))}),onPointerMove:Gd(e.onPointerMove,$),onPointerUp:Gd(e.onPointerUp,R=>{const M=R.target;M.hasPointerCapture(R.pointerId)&&(R.preventDefault(),M.releasePointerCapture(R.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=k.current,w.current=null}})})}),bY=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,s=ai(),[l,c]=E.useState(),u=E.useRef(null),d=Rr(r,u,s.onScrollbarXChange);return E.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),b.jsx(yY,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{...a,"--sa-thumb-width":`${w3(n)}px`},onThumbPointerDown:h=>e.onThumbPointerDown(h.x),onDragScroll:h=>e.onDragScroll(h.x),onWheelScroll:(h,p)=>{if(s.viewport){const g=s.viewport.scrollLeft+h.deltaX;e.onWheelScroll(g),mY(g,p)&&h.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:hu(l.paddingLeft),paddingEnd:hu(l.paddingRight)}})}})});bY.displayName="@mantine/core/ScrollAreaScrollbarX";const vY=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,s=ai(),[l,c]=E.useState(),u=E.useRef(null),d=Rr(r,u,s.onScrollbarYChange);return E.useEffect(()=>{u.current&&c(window.getComputedStyle(u.current))},[]),b.jsx(yY,{...i,"data-orientation":"vertical",ref:d,sizes:n,style:{"--sa-thumb-height":`${w3(n)}px`,...a},onThumbPointerDown:h=>e.onThumbPointerDown(h.y),onDragScroll:h=>e.onDragScroll(h.y),onWheelScroll:(h,p)=>{if(s.viewport){const g=s.viewport.scrollTop+h.deltaY;e.onWheelScroll(g),mY(g,p)&&h.preventDefault()}},onResize:()=>{u.current&&s.viewport&&l&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:hu(l.paddingTop),paddingEnd:hu(l.paddingBottom)}})}})});vY.displayName="@mantine/core/ScrollAreaScrollbarY";const k3=E.forwardRef((e,r)=>{const{orientation:n="vertical",...o}=e,{dir:a}=du(),i=ai(),s=E.useRef(null),l=E.useRef(0),[c,u]=E.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=hY(c.viewport,c.content),h={...o,sizes:c,onSizesChange:u,hasThumb:d>0&&d<1,onThumbChange:g=>{s.current=g},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:g=>{l.current=g}},p=(g,y)=>IDe(g,l.current,c,y);return n==="horizontal"?b.jsx(bY,{...h,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const g=i.viewport.scrollLeft,y=pY(g,c,a);s.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollLeft=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollLeft=p(g,a))}}):n==="vertical"?b.jsx(vY,{...h,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const g=i.viewport.scrollTop,y=pY(g,c);c.scrollbar.size===0?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollTop=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollTop=p(g))}}):null});k3.displayName="@mantine/core/ScrollAreaScrollbarVisible";const YC=E.forwardRef((e,r)=>{const n=ai(),{forceMount:o,...a}=e,[i,s]=E.useState(!1),l=e.orientation==="horizontal",c=vp(()=>{if(n.viewport){const u=n.viewport.offsetWidth{const{forceMount:n,...o}=e,a=ai(),[i,s]=E.useState(!1);return E.useEffect(()=>{const{scrollArea:l}=a;let c=0;if(l){const u=()=>{window.clearTimeout(c),s(!0)},d=()=>{c=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",d)}}},[a.scrollArea,a.scrollHideDelay]),n||i?b.jsx(YC,{"data-state":i?"visible":"hidden",...o,ref:r}):null});xY.displayName="@mantine/core/ScrollAreaScrollbarHover";const jDe=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ai(),i=e.orientation==="horizontal",[s,l]=E.useState("hidden"),c=vp(()=>l("idle"),100);return E.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>l("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,a.scrollHideDelay]),E.useEffect(()=>{const{viewport:u}=a,d=i?"scrollLeft":"scrollTop";if(u){let h=u[d];const p=()=>{const g=u[d];h!==g&&(l("scrolling"),c()),h=g};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[a.viewport,i,c]),n||s!=="hidden"?b.jsx(k3,{"data-state":s==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:Gd(e.onPointerEnter,()=>l("interacting")),onPointerLeave:Gd(e.onPointerLeave,()=>l("idle"))}):null}),WC=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ai(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=a,l=e.orientation==="horizontal";return E.useEffect(()=>(l?i(!0):s(!0),()=>{l?i(!1):s(!1)}),[l,i,s]),a.type==="hover"?b.jsx(xY,{...o,ref:r,forceMount:n}):a.type==="scroll"?b.jsx(jDe,{...o,ref:r,forceMount:n}):a.type==="auto"?b.jsx(YC,{...o,ref:r,forceMount:n}):a.type==="always"?b.jsx(k3,{...o,ref:r}):null});WC.displayName="@mantine/core/ScrollAreaScrollbar";function BDe(e,r=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function a(){const i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,l=n.top!==i.top;(s||l)&&r(),n=i,o=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(o)}const wY=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=ai(),i=gY(),{onThumbPositionChange:s}=i,l=Rr(r,d=>i.onThumbChange(d)),c=E.useRef(void 0),u=vp(()=>{c.current&&(c.current(),c.current=void 0)},100);return E.useEffect(()=>{const{viewport:d}=a;if(d){const h=()=>{if(u(),!c.current){const p=BDe(d,s);c.current=p,s()}};return s(),d.addEventListener("scroll",h),()=>d.removeEventListener("scroll",h)}},[a.viewport,u,s]),b.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Gd(e.onPointerDownCapture,d=>{const h=d.target.getBoundingClientRect(),p=d.clientX-h.left,g=d.clientY-h.top;i.onThumbPointerDown({x:p,y:g})}),onPointerUp:Gd(e.onPointerUp,i.onThumbPointerUp)})});wY.displayName="@mantine/core/ScrollAreaThumb";const XC=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=gY();return n||a.hasThumb?b.jsx(wY,{ref:r,...o}):null});XC.displayName="@mantine/core/ScrollAreaThumb";const kY=E.forwardRef(({children:e,style:r,...n},o)=>{const a=ai(),i=Rr(o,a.onViewportChange);return b.jsx(Se,{...n,ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...r},children:b.jsx("div",{...a.getStyles("content"),ref:a.onContentChange,children:e})})});kY.displayName="@mantine/core/ScrollAreaViewport";var GC={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const _Y={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},FDe=(e,{scrollbarSize:r,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":Ne(r),"--scrollarea-over-scroll-behavior":n}}),os=st((e,r)=>{const n=ze("ScrollArea",_Y,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,scrollbarSize:c,vars:u,type:d,scrollHideDelay:h,viewportProps:p,viewportRef:g,onScrollPositionChange:y,children:x,offsetScrollbars:w,scrollbars:k,onBottomReached:C,onTopReached:_,overscrollBehavior:T,attributes:A,...N}=n,[$,R]=E.useState(!1),[M,O]=E.useState(!1),[B,I]=E.useState(!1),Y=bt({name:"ScrollArea",props:n,classes:GC,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:A,vars:u,varsResolver:FDe}),D=E.useRef(null),V=Kq([g,D]);return E.useEffect(()=>{if(!D.current||w!=="present")return;const L=D.current,U=new ResizeObserver(()=>{const{scrollHeight:q,clientHeight:X,scrollWidth:F,clientWidth:J}=L;O(q>X),I(F>J)});return U.observe(L),()=>U.disconnect()},[D,w]),b.jsxs(dY,{getStyles:Y,type:d==="never"?"always":d,scrollHideDelay:h,ref:r,scrollbars:k,...Y("root"),...N,children:[b.jsx(kY,{...p,...Y("viewport",{style:p?.style}),ref:V,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":k||void 0,"data-horizontal-hidden":w==="present"&&!B?"true":void 0,"data-vertical-hidden":w==="present"&&!M?"true":void 0,onScroll:L=>{p?.onScroll?.(L),y?.({x:L.currentTarget.scrollLeft,y:L.currentTarget.scrollTop});const{scrollTop:U,scrollHeight:q,clientHeight:X}=L.currentTarget;U-(q-X)>=-.6&&C?.(),U===0&&_?.()},children:x}),(k==="xy"||k==="x")&&b.jsx(WC,{...Y("scrollbar"),orientation:"horizontal","data-hidden":d==="never"||w==="present"&&!B?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:b.jsx(XC,{...Y("thumb")})}),(k==="xy"||k==="y")&&b.jsx(WC,{...Y("scrollbar"),orientation:"vertical","data-hidden":d==="never"||w==="present"&&!M?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:b.jsx(XC,{...Y("thumb")})}),b.jsx(ODe,{...Y("corner"),"data-hovered":$||void 0,"data-hidden":d==="never"||void 0})]})});os.displayName="@mantine/core/ScrollArea";const ta=st((e,r)=>{const{children:n,classNames:o,styles:a,scrollbarSize:i,scrollHideDelay:s,type:l,dir:c,offsetScrollbars:u,viewportRef:d,onScrollPositionChange:h,unstyled:p,variant:g,viewportProps:y,scrollbars:x,style:w,vars:k,onBottomReached:C,onTopReached:_,onOverflowChange:T,...A}=ze("ScrollAreaAutosize",_Y,e),N=E.useRef(null),$=Kq([d,N]),[R,M]=E.useState(!1),O=E.useRef(!1);return E.useEffect(()=>{if(!T)return;const B=N.current;if(!B)return;const I=()=>{const D=B.scrollHeight>B.clientHeight;D!==R&&(O.current?T?.(D):(O.current=!0,D&&T?.(!0)),M(D))};I();const Y=new ResizeObserver(I);return Y.observe(B),()=>Y.disconnect()},[T,R]),b.jsx(Se,{...A,ref:r,style:[{display:"flex",overflow:"hidden"},w],children:b.jsx(Se,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...x==="y"&&{minWidth:0},...x==="x"&&{minHeight:0},...x==="xy"&&{minWidth:0,minHeight:0},...x===!1&&{minWidth:0,minHeight:0}},children:b.jsx(os,{classNames:o,styles:a,scrollHideDelay:s,scrollbarSize:i,type:l,dir:c,offsetScrollbars:u,viewportRef:$,onScrollPositionChange:h,unstyled:p,variant:g,viewportProps:y,vars:k,scrollbars:x,onBottomReached:C,onTopReached:_,"data-autosize":"true",children:n})})})});os.classes=GC,ta.displayName="@mantine/core/ScrollAreaAutosize",ta.classes=GC,os.Autosize=ta;var EY={root:"m_87cf2631"};const HDe={__staticSelector:"UnstyledButton"},Pr=Gn((e,r)=>{const n=ze("UnstyledButton",HDe,e),{className:o,component:a="button",__staticSelector:i,unstyled:s,classNames:l,styles:c,style:u,attributes:d,...h}=n,p=bt({name:i,props:n,classes:EY,className:o,style:u,classNames:l,styles:c,unstyled:s,attributes:d});return b.jsx(Se,{...p("root",{focusable:!0}),component:a,ref:r,type:a==="button"?"button":void 0,...h})});Pr.classes=EY,Pr.displayName="@mantine/core/UnstyledButton";var SY={root:"m_515a97f8"};const _3=st((e,r)=>{const n=ze("VisuallyHidden",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,attributes:u,...d}=n,h=bt({name:"VisuallyHidden",classes:SY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:u});return b.jsx(Se,{component:"span",ref:r,...h("root"),...d})});_3.classes=SY,_3.displayName="@mantine/core/VisuallyHidden";var CY={root:"m_1b7284a3"};const UDe=(e,{radius:r,shadow:n})=>({root:{"--paper-radius":r===void 0?void 0:bn(r),"--paper-shadow":NV(n)}}),Rp=Gn((e,r)=>{const n=ze("Paper",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,withBorder:c,vars:u,radius:d,shadow:h,variant:p,mod:g,attributes:y,...x}=n,w=bt({name:"Paper",props:n,classes:CY,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:u,varsResolver:UDe});return b.jsx(Se,{ref:r,mod:[{"data-with-border":c},g],...w("root"),variant:p,...x})});Rp.classes=CY,Rp.displayName="@mantine/core/Paper";function TY(e,r,n,o){return e==="center"||o==="center"?{top:r}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function AY(e,r,n,o,a){return e==="center"||o==="center"?{left:r}:e==="end"?{[a==="ltr"?"right":"left"]:n}:e==="start"?{[a==="ltr"?"left":"right"]:n}:{}}const VDe={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function qDe({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,arrowX:i,arrowY:s,dir:l}){const[c,u="center"]=e.split("-"),d={width:r,height:r,transform:"rotate(45deg)",position:"absolute",[VDe[c]]:o},h=-r/2;return c==="left"?{...d,...TY(u,s,n,a),right:h,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...d,...TY(u,s,n,a),left:h,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...d,...AY(u,i,n,a,l),bottom:h,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...d,...AY(u,i,n,a,l),top:h,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const E3=E.forwardRef(({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,visible:i,arrowX:s,arrowY:l,style:c,...u},d)=>{const{dir:h}=du();return i?b.jsx("div",{...u,ref:d,style:{...c,...qDe({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,dir:h,arrowX:s,arrowY:l})}}):null});E3.displayName="@mantine/core/FloatingArrow";function NY(e,r){if(e==="rtl"&&(r.includes("right")||r.includes("left"))){const[n,o]=r.split("-"),a=n==="right"?"left":"right";return o===void 0?a:`${a}-${o}`}return r}var RY={root:"m_9814e45f"};const YDe={zIndex:Yw("modal")},WDe=(e,{gradient:r,color:n,backgroundOpacity:o,blur:a,radius:i,zIndex:s})=>({root:{"--overlay-bg":r||(n!==void 0||o!==void 0)&&el(n||"#000",o??.6)||void 0,"--overlay-filter":a?`blur(${Ne(a)})`:void 0,"--overlay-radius":i===void 0?void 0:bn(i),"--overlay-z-index":s?.toString()}}),KC=Gn((e,r)=>{const n=ze("Overlay",YDe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,fixed:u,center:d,children:h,radius:p,zIndex:g,gradient:y,blur:x,color:w,backgroundOpacity:k,mod:C,attributes:_,...T}=n,A=bt({name:"Overlay",props:n,classes:RY,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:_,vars:c,varsResolver:WDe});return b.jsx(Se,{ref:r,...A("root"),mod:[{center:d,fixed:u},C],...T,children:h})});KC.classes=RY,KC.displayName="@mantine/core/Overlay";function ZC(e){const r=document.createElement("div");return r.setAttribute("data-portal","true"),typeof e.className=="string"&&r.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(r.style,e.style),typeof e.id=="string"&&r.setAttribute("id",e.id),r}function XDe({target:e,reuseTargetNode:r,...n}){if(e)return typeof e=="string"?document.querySelector(e)||ZC(n):e;if(r){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const a=ZC(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return ZC(n)}const GDe={reuseTargetNode:!0},D1=st((e,r)=>{const{children:n,target:o,reuseTargetNode:a,...i}=ze("Portal",GDe,e),[s,l]=E.useState(!1),c=E.useRef(null);return N1(()=>(l(!0),c.current=XDe({target:o,reuseTargetNode:a,...i}),nC(r,c.current),!o&&!a&&c.current&&document.body.appendChild(c.current),()=>{!o&&!a&&c.current&&document.body.removeChild(c.current)}),[o]),!s||!c.current?null:ji.createPortal(b.jsx(b.Fragment,{children:n}),c.current)});D1.displayName="@mantine/core/Portal";const $p=st(({withinPortal:e=!0,children:r,...n},o)=>Qw()==="test"||!e?b.jsx(b.Fragment,{children:r}):b.jsx(D1,{ref:o,...n,children:r}));$p.displayName="@mantine/core/OptionalPortal";const L1=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),S3={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...L1("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...L1("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...L1("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...L1("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...L1("top"),common:{transformOrigin:"top right"}}},$Y={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function KDe({transition:e,state:r,duration:n,timingFunction:o}){const a={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in S3?{transitionProperty:S3[e].transitionProperty,...a,...S3[e].common,...S3[e][$Y[r]]}:{}:{transitionProperty:e.transitionProperty,...a,...e.common,...e[$Y[r]]}}function ZDe({duration:e,exitDuration:r,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:s,onExited:l,enterDelay:c,exitDelay:u}){const d=ho(),h=FV(),p=d.respectReducedMotion?h:!1,[g,y]=E.useState(p?0:e),[x,w]=E.useState(o?"entered":"exited"),k=E.useRef(-1),C=E.useRef(-1),_=E.useRef(-1);function T(){window.clearTimeout(k.current),window.clearTimeout(C.current),cancelAnimationFrame(_.current)}const A=$=>{T();const R=$?a:i,M=$?s:l,O=p?0:$?e:r;y(O),O===0?(typeof R=="function"&&R(),typeof M=="function"&&M(),w($?"entered":"exited")):_.current=requestAnimationFrame(()=>{TD.flushSync(()=>{w($?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof R=="function"&&R(),w($?"entering":"exiting"),k.current=window.setTimeout(()=>{typeof M=="function"&&M(),w($?"entered":"exited")},O)})})},N=$=>{if(T(),typeof($?c:u)!="number"){A($);return}C.current=window.setTimeout(()=>{A($)},$?c:u)};return qd(()=>{N(o)},[o]),E.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:x,transitionTimingFunction:n||"ease"}}function fu({keepMounted:e,transition:r="fade",duration:n=250,exitDuration:o=n,mounted:a,children:i,timingFunction:s="ease",onExit:l,onEntered:c,onEnter:u,onExited:d,enterDelay:h,exitDelay:p}){const g=Qw(),{transitionDuration:y,transitionStatus:x,transitionTimingFunction:w}=ZDe({mounted:a,exitDuration:o,duration:n,timingFunction:s,onExit:l,onEntered:c,onEnter:u,onExited:d,enterDelay:h,exitDelay:p});return y===0||g==="test"?a?b.jsx(b.Fragment,{children:i({})}):e?i({display:"none"}):null:x==="exited"?e?i({display:"none"}):null:b.jsx(b.Fragment,{children:i(KDe({transition:r,duration:y,state:x,timingFunction:w}))})}fu.displayName="@mantine/core/Transition";const[QDe,PY]=ri("Popover component was not found in the tree");function C3({children:e,active:r=!0,refProp:n="ref",innerRef:o}){const a=IV(r),i=Rr(a,o);return Qi(e)?E.cloneElement(e,{[n]:i}):e}function MY(e){return b.jsx(_3,{tabIndex:-1,"data-autofocus":!0,...e})}C3.displayName="@mantine/core/FocusTrap",MY.displayName="@mantine/core/FocusTrapInitialFocus",C3.InitialFocus=MY;var OY={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Xl=st((e,r)=>{const n=ze("PopoverDropdown",null,e),{className:o,style:a,vars:i,children:s,onKeyDownCapture:l,variant:c,classNames:u,styles:d,...h}=n,p=PY(),g=iPe({opened:p.opened,shouldReturnFocus:p.returnFocus}),y=p.withRoles?{"aria-labelledby":p.getTargetId(),id:p.getDropdownId(),role:"dialog",tabIndex:-1}:{},x=Rr(r,p.floating);return p.disabled?null:b.jsx($p,{...p.portalProps,withinPortal:p.withinPortal,children:b.jsx(fu,{mounted:p.opened,...p.transitionProps,transition:p.transitionProps?.transition||"fade",duration:p.transitionProps?.duration??150,keepMounted:p.keepMounted,exitDuration:typeof p.transitionProps?.exitDuration=="number"?p.transitionProps.exitDuration:p.transitionProps?.duration,children:w=>b.jsx(C3,{active:p.trapFocus&&p.opened,innerRef:x,children:b.jsxs(Se,{...y,...h,variant:c,onKeyDownCapture:K$e(()=>{p.onClose?.(),p.onDismiss?.()},{active:p.closeOnEscape,onTrigger:g,onKeyDown:l}),"data-position":p.placement,"data-fixed":p.floatingStrategy==="fixed"||void 0,...p.getStyles("dropdown",{className:o,props:n,classNames:u,styles:d,style:[{...w,zIndex:p.zIndex,top:p.y??0,left:p.x??0,width:p.width==="target"?void 0:Ne(p.width),...p.referenceHidden?{display:"none"}:null},p.resolvedStyles.dropdown,d?.dropdown,a]}),children:[s,b.jsx(E3,{ref:p.arrowRef,arrowX:p.arrowX,arrowY:p.arrowY,visible:p.withArrow,position:p.placement,arrowSize:p.arrowSize,arrowRadius:p.arrowRadius,arrowOffset:p.arrowOffset,arrowPosition:p.arrowPosition,...p.getStyles("arrow",{props:n,classNames:u,styles:d})})]})})})})});Xl.classes=OY,Xl.displayName="@mantine/core/PopoverDropdown";const JDe={refProp:"ref",popupType:"dialog"},pu=st((e,r)=>{const{children:n,refProp:o,popupType:a,...i}=ze("PopoverTarget",JDe,e);if(!Qi(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=i,l=PY(),c=Rr(l.reference,Xw(n),r),u=l.withRoles?{"aria-haspopup":a,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return E.cloneElement(n,{...s,...u,...l.targetProps,className:Ji(l.targetProps.className,s.className,n.props.className),[o]:c,...l.controlled?null:{onClick:()=>{l.onToggle(),n.props.onClick?.()}}})});pu.displayName="@mantine/core/PopoverTarget";function eLe(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function tLe(e,r,n){const o=eLe(e.middlewares),a=[Wq(e.offset),yDe()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.shift&&a.push(zC(typeof o.shift=="boolean"?{limiter:Xq(),padding:5}:{limiter:Xq(),padding:5,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?b3():b3(o.flip)),o.inline&&a.push(typeof o.inline=="boolean"?O1():O1(o.inline)),a.push(Gq({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&a.push(gDe({...typeof o.size=="boolean"?{}:o.size,apply({rects:i,availableWidth:s,availableHeight:l,...c}){const u=r().refs.floating.current?.style??{};o.size&&(typeof o.size=="object"&&o.size.apply?o.size.apply({rects:i,availableWidth:s,availableHeight:l,...c}):Object.assign(u,{maxWidth:`${s}px`,maxHeight:`${l}px`})),e.width==="target"&&Object.assign(u,{width:`${i.reference.width}px`})}})),a}function rLe(e){const r=Qw(),[n,o]=Vl({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),a=E.useRef(n),i=()=>{n&&!e.disabled&&o(!1)},s=()=>{e.disabled||o(!n)},l=x3({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:tLe(e,()=>l,r),whileElementsMounted:e.keepMounted?void 0:m3});return E.useEffect(()=>{if(!(!l.refs.reference.current||!l.refs.floating.current)&&n)return m3(l.refs.reference.current,l.refs.floating.current,l.update)},[n,l.update]),qd(()=>{e.onPositionChange?.(l.placement),e.positionRef.current=l.placement},[l.placement,e.preventPositionChangeWhenVisible]),qd(()=>{n!==a.current&&(n?e.onOpen?.():e.onClose?.()),a.current=n},[n,e.onClose,e.onOpen]),qd(()=>{let c=-1;return n&&(c=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(c)}},[n,e.position]),{floating:l,controlled:typeof e.opened=="boolean",opened:n,onClose:i,onToggle:s}}const nLe={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:Yw("popover"),__staticSelector:"Popover",width:"max-content"},oLe=(e,{radius:r,shadow:n})=>({dropdown:{"--popover-radius":r===void 0?void 0:bn(r),"--popover-shadow":NV(n)}});function mr(e){const r=ze("Popover",nLe,e),{children:n,position:o,offset:a,onPositionChange:i,positionDependencies:s,opened:l,transitionProps:c,onExitTransitionEnd:u,onEnterTransitionEnd:d,width:h,middlewares:p,withArrow:g,arrowSize:y,arrowOffset:x,arrowRadius:w,arrowPosition:k,unstyled:C,classNames:_,styles:T,closeOnClickOutside:A,withinPortal:N,portalProps:$,closeOnEscape:R,clickOutsideEvents:M,trapFocus:O,onClose:B,onDismiss:I,onOpen:Y,onChange:D,zIndex:V,radius:L,shadow:U,id:q,defaultOpened:X,__staticSelector:F,withRoles:J,disabled:Q,returnFocus:z,variant:W,keepMounted:G,vars:Z,floatingStrategy:oe,withOverlay:ee,overlayProps:re,hideDetached:he,attributes:Ce,preventPositionChangeWhenVisible:ce,...de}=r,be=bt({name:F,props:r,classes:OY,classNames:_,styles:T,unstyled:C,attributes:Ce,rootSelector:"dropdown",vars:Z,varsResolver:oLe}),{resolvedStyles:De}=yC({classNames:_,styles:T,props:r}),[Ge,Xe]=E.useState(l??X??!1),_t=E.useRef(o),Qe=E.useRef(null),[St,Ke]=E.useState(null),[We,lt]=E.useState(null),{dir:Et}=du(),Pn=Qw(),_e=Ta(q),we=rLe({middlewares:p,width:h,position:NY(Et,o),offset:typeof a=="number"?a+(g?y/2:0):a,arrowRef:Qe,arrowOffset:x,onPositionChange:i,positionDependencies:s,opened:l,defaultOpened:X,onChange:D,onOpen:Y,onClose:B,onDismiss:I,strategy:oe,dropdownVisible:Ge,setDropdownVisible:Xe,positionRef:_t,disabled:Q,preventPositionChangeWhenVisible:ce,keepMounted:G});$V(()=>{A&&(we.onClose(),I?.())},M,[St,We]);const rt=E.useCallback(Pt=>{Ke(Pt),we.floating.refs.setReference(Pt)},[we.floating.refs.setReference]),at=E.useCallback(Pt=>{lt(Pt),we.floating.refs.setFloating(Pt)},[we.floating.refs.setFloating]),$t=E.useCallback(()=>{c?.onExited?.(),u?.(),Xe(!1),_t.current=o},[c?.onExited,u]),Wr=E.useCallback(()=>{c?.onEntered?.(),d?.()},[c?.onEntered,d]);return b.jsxs(QDe,{value:{returnFocus:z,disabled:Q,controlled:we.controlled,reference:rt,floating:at,x:we.floating.x,y:we.floating.y,arrowX:we.floating?.middlewareData?.arrow?.x,arrowY:we.floating?.middlewareData?.arrow?.y,opened:we.opened,arrowRef:Qe,transitionProps:{...c,onExited:$t,onEntered:Wr},width:h,withArrow:g,arrowSize:y,arrowOffset:x,arrowRadius:w,arrowPosition:k,placement:we.floating.placement,trapFocus:O,withinPortal:N,portalProps:$,zIndex:V,radius:L,shadow:U,closeOnEscape:R,onDismiss:I,onClose:we.onClose,onToggle:we.onToggle,getTargetId:()=>`${_e}-target`,getDropdownId:()=>`${_e}-dropdown`,withRoles:J,targetProps:de,__staticSelector:F,classNames:_,styles:T,unstyled:C,variant:W,keepMounted:G,getStyles:be,resolvedStyles:De,floatingStrategy:oe,referenceHidden:he&&Pn!=="test"?we.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ee&&b.jsx(fu,{transition:"fade",mounted:we.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:Pt=>b.jsx($p,{withinPortal:N,children:b.jsx(KC,{...re,...be("overlay",{className:re?.className,style:[Pt,re?.style]})})})})]})}mr.Target=pu,mr.Dropdown=Xl,mr.displayName="@mantine/core/Popover",mr.extend=e=>e;var as={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const DY=E.forwardRef(({className:e,...r},n)=>b.jsxs(Se,{component:"span",className:Ji(as.barsLoader,e),...r,ref:n,children:[b.jsx("span",{className:as.bar}),b.jsx("span",{className:as.bar}),b.jsx("span",{className:as.bar})]}));DY.displayName="@mantine/core/Bars";const LY=E.forwardRef(({className:e,...r},n)=>b.jsxs(Se,{component:"span",className:Ji(as.dotsLoader,e),...r,ref:n,children:[b.jsx("span",{className:as.dot}),b.jsx("span",{className:as.dot}),b.jsx("span",{className:as.dot})]}));LY.displayName="@mantine/core/Dots";const IY=E.forwardRef(({className:e,...r},n)=>b.jsx(Se,{component:"span",className:Ji(as.ovalLoader,e),...r,ref:n}));IY.displayName="@mantine/core/Oval";const zY={bars:DY,oval:IY,dots:LY},aLe={loaders:zY,type:"oval"},iLe=(e,{size:r,color:n})=>({root:{"--loader-size":lr(r,"loader-size"),"--loader-color":n?Jo(n,e):void 0}}),Pp=st((e,r)=>{const n=ze("Loader",aLe,e),{size:o,color:a,type:i,vars:s,className:l,style:c,classNames:u,styles:d,unstyled:h,loaders:p,variant:g,children:y,attributes:x,...w}=n,k=bt({name:"Loader",props:n,classes:as,className:l,style:c,classNames:u,styles:d,unstyled:h,attributes:x,vars:s,varsResolver:iLe});return y?b.jsx(Se,{...k("root"),ref:r,...w,children:y}):b.jsx(Se,{...k("root"),ref:r,component:p[i],variant:g,size:o,...w})});Pp.defaultLoaders=zY,Pp.classes=as,Pp.displayName="@mantine/core/Loader";var Mp={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const jY={orientation:"horizontal"},sLe=(e,{borderWidth:r})=>({group:{"--ai-border-width":Ne(r)}}),T3=st((e,r)=>{const n=ze("ActionIconGroup",jY,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,orientation:c,vars:u,borderWidth:d,variant:h,mod:p,attributes:g,...y}=ze("ActionIconGroup",jY,e),x=bt({name:"ActionIconGroup",props:n,classes:Mp,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:u,varsResolver:sLe,rootSelector:"group"});return b.jsx(Se,{...x("group"),ref:r,variant:h,mod:[{"data-orientation":c},p],role:"group",...y})});T3.classes=Mp,T3.displayName="@mantine/core/ActionIconGroup";const lLe=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":lr(s,"section-height"),"--section-padding-x":lr(s,"section-padding-x"),"--section-fz":Ro(s),"--section-radius":r===void 0?void 0:bn(r),"--section-bg":n||a?l.background:void 0,"--section-color":l.color,"--section-bd":n||a?l.border:void 0}}},QC=st((e,r)=>{const n=ze("ActionIconGroupSection",null,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,vars:c,variant:u,gradient:d,radius:h,autoContrast:p,attributes:g,...y}=n,x=bt({name:"ActionIconGroupSection",props:n,classes:Mp,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:lLe,rootSelector:"groupSection"});return b.jsx(Se,{...x("groupSection"),ref:r,variant:u,...y})});QC.classes=Mp,QC.displayName="@mantine/core/ActionIconGroupSection";const cLe=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:s})=>{const l=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:s});return{root:{"--ai-size":lr(r,"ai-size"),"--ai-radius":n===void 0?void 0:bn(n),"--ai-bg":i||o?l.background:void 0,"--ai-hover":i||o?l.hover:void 0,"--ai-hover-color":i||o?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":i||o?l.border:void 0}}},or=Gn((e,r)=>{const n=ze("ActionIcon",null,e),{className:o,unstyled:a,variant:i,classNames:s,styles:l,style:c,loading:u,loaderProps:d,size:h,color:p,radius:g,__staticSelector:y,gradient:x,vars:w,children:k,disabled:C,"data-disabled":_,autoContrast:T,mod:A,attributes:N,...$}=n,R=bt({name:["ActionIcon",y],props:n,className:o,style:c,classes:Mp,classNames:s,styles:l,unstyled:a,attributes:N,vars:w,varsResolver:cLe});return b.jsxs(Pr,{...R("root",{active:!C&&!u&&!_}),...$,unstyled:a,variant:i,size:h,disabled:C||u,ref:r,mod:[{loading:u,disabled:C||_},A],children:[typeof u=="boolean"&&b.jsx(fu,{mounted:u,transition:"slide-down",duration:150,children:M=>b.jsx(Se,{component:"span",...R("loader",{style:M}),"aria-hidden":!0,children:b.jsx(Pp,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),b.jsx(Se,{component:"span",mod:{loading:u},...R("icon"),children:k})]})});or.classes=Mp,or.displayName="@mantine/core/ActionIcon",or.Group=T3,or.GroupSection=QC;const BY=E.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:r,...n},o)=>b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:e,height:e},ref:o,...n,children:b.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));BY.displayName="@mantine/core/CloseIcon";var FY={root:"m_86a44da5","root--subtle":"m_220c80f2"};const uLe={variant:"subtle"},dLe=(e,{size:r,radius:n,iconSize:o})=>({root:{"--cb-size":lr(r,"cb-size"),"--cb-radius":n===void 0?void 0:bn(n),"--cb-icon-size":Ne(o)}}),Kd=Gn((e,r)=>{const n=ze("CloseButton",uLe,e),{iconSize:o,children:a,vars:i,radius:s,className:l,classNames:c,style:u,styles:d,unstyled:h,"data-disabled":p,disabled:g,variant:y,icon:x,mod:w,attributes:k,__staticSelector:C,..._}=n,T=bt({name:C||"CloseButton",props:n,className:l,style:u,classes:FY,classNames:c,styles:d,unstyled:h,attributes:k,vars:i,varsResolver:dLe});return b.jsxs(Pr,{ref:r,..._,unstyled:h,variant:y,disabled:g,mod:[{disabled:g||p},w],...T("root",{variant:y,active:!g&&!p}),children:[x||b.jsx(BY,{}),a]})});Kd.classes=FY,Kd.displayName="@mantine/core/CloseButton";function hLe(e){return E.Children.toArray(e).filter(Boolean)}var HY={root:"m_4081bf90"};const fLe={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},pLe=(e,{grow:r,preventGrowOverflow:n,gap:o,align:a,justify:i,wrap:s},{childWidth:l})=>({root:{"--group-child-width":r&&n?l:void 0,"--group-gap":Ul(o),"--group-align":a,"--group-justify":i,"--group-wrap":s}}),Ur=st((e,r)=>{const n=ze("Group",fLe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,children:c,gap:u,align:d,justify:h,wrap:p,grow:g,preventGrowOverflow:y,vars:x,variant:w,__size:k,mod:C,attributes:_,...T}=n,A=hLe(c),N=A.length,$=Ul(u??"md"),R={childWidth:`calc(${100/N}% - (${$} - ${$} / ${N}))`},M=bt({name:"Group",props:n,stylesCtx:R,className:a,style:i,classes:HY,classNames:o,styles:s,unstyled:l,attributes:_,vars:x,varsResolver:pLe});return b.jsx(Se,{...M("root"),ref:r,variant:w,mod:[{grow:g},C],size:k,...T,children:A})});Ur.classes=HY,Ur.displayName="@mantine/core/Group";const[mLe,gLe]=C1({size:"sm"}),UY=st((e,r)=>{const n=ze("InputClearButton",null,e),{size:o,variant:a,vars:i,classNames:s,styles:l,...c}=n,u=gLe(),{resolvedClassNames:d,resolvedStyles:h}=yC({classNames:s,styles:l,props:n});return b.jsx(Kd,{variant:a||"transparent",ref:r,size:o||u?.size||"sm",classNames:d,styles:h,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...c.style},...c})});UY.displayName="@mantine/core/InputClearButton";const yLe={xs:7,sm:8,md:10,lg:12,xl:15};function bLe({__clearable:e,__clearSection:r,rightSection:n,__defaultRightSection:o,size:a="sm"}){const i=e&&r;return i&&(n||o)?b.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:yLe[a]},children:[i,n||o]}):n||i||o}const[vLe,A3]=C1({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var ii={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const xLe=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${Ro(r)} - ${Ne(2)})`}}),N3=st((e,r)=>{const n=ze("InputDescription",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,__staticSelector:d,__inheritStyles:h=!0,attributes:p,variant:g,...y}=ze("InputDescription",null,n),x=A3(),w=bt({name:["InputWrapper",d],props:n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:p,rootSelector:"description",vars:c,varsResolver:xLe}),k=h&&x?.getStyles||w;return b.jsx(Se,{component:"p",ref:r,variant:g,size:u,...k("description",x?.getStyles?{className:a,style:i}:void 0),...y})});N3.classes=ii,N3.displayName="@mantine/core/InputDescription";const wLe=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${Ro(r)} - ${Ne(2)})`}}),R3=st((e,r)=>{const n=ze("InputError",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,attributes:d,__staticSelector:h,__inheritStyles:p=!0,variant:g,...y}=n,x=bt({name:["InputWrapper",h],props:n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:d,rootSelector:"error",vars:c,varsResolver:wLe}),w=A3(),k=p&&w?.getStyles||x;return b.jsx(Se,{component:"p",ref:r,variant:g,size:u,...k("error",w?.getStyles?{className:a,style:i}:void 0),...y})});R3.classes=ii,R3.displayName="@mantine/core/InputError";const VY={labelElement:"label"},kLe=(e,{size:r})=>({label:{"--input-label-size":Ro(r),"--input-asterisk-color":void 0}}),$3=st((e,r)=>{const n=ze("InputLabel",VY,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,labelElement:u,size:d,required:h,htmlFor:p,onMouseDown:g,children:y,__staticSelector:x,variant:w,mod:k,attributes:C,..._}=ze("InputLabel",VY,n),T=bt({name:["InputWrapper",x],props:n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:C,rootSelector:"label",vars:c,varsResolver:kLe}),A=A3(),N=A?.getStyles||T;return b.jsxs(Se,{...N("label",A?.getStyles?{className:a,style:i}:void 0),component:u,variant:w,size:d,ref:r,htmlFor:u==="label"?p:void 0,mod:[{required:h},k],onMouseDown:$=>{g?.($),!$.defaultPrevented&&$.detail>1&&$.preventDefault()},..._,children:[y,h&&b.jsx("span",{...N("required"),"aria-hidden":!0,children:" *"})]})});$3.classes=ii,$3.displayName="@mantine/core/InputLabel";const JC=st((e,r)=>{const n=ze("InputPlaceholder",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,__staticSelector:u,variant:d,error:h,mod:p,attributes:g,...y}=n,x=bt({name:["InputPlaceholder",u],props:n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,rootSelector:"placeholder"});return b.jsx(Se,{...x("placeholder"),mod:[{error:!!h},p],component:"span",variant:d,ref:r,...y})});JC.classes=ii,JC.displayName="@mantine/core/InputPlaceholder";function _Le(e,{hasDescription:r,hasError:n}){const o=e.findIndex(l=>l==="input"),a=e.slice(0,o),i=e.slice(o+1),s=r&&a.includes("description")||n&&a.includes("error");return{offsetBottom:r&&i.includes("description")||n&&i.includes("error"),offsetTop:s}}const ELe={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},SLe=(e,{size:r})=>({label:{"--input-label-size":Ro(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${Ro(r)} - ${Ne(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${Ro(r)} - ${Ne(2)})`}}),eT=st((e,r)=>{const n=ze("InputWrapper",ELe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,variant:d,__staticSelector:h,inputContainer:p,inputWrapperOrder:g,label:y,error:x,description:w,labelProps:k,descriptionProps:C,errorProps:_,labelElement:T,children:A,withAsterisk:N,id:$,required:R,__stylesApiProps:M,mod:O,attributes:B,...I}=n,Y=bt({name:["InputWrapper",h],props:M||n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:B,vars:c,varsResolver:SLe}),D={size:u,variant:d,__staticSelector:h},V=Ta($),L=typeof N=="boolean"?N:R,U=_?.id||`${V}-error`,q=C?.id||`${V}-description`,X=V,F=!!x&&typeof x!="boolean",J=!!w,Q=`${F?U:""} ${J?q:""}`,z=Q.trim().length>0?Q.trim():void 0,W=k?.id||`${V}-label`,G=y&&b.jsx($3,{labelElement:T,id:W,htmlFor:X,required:L,...D,...k,children:y},"label"),Z=J&&b.jsx(N3,{...C,...D,size:C?.size||D.size,id:C?.id||q,children:w},"description"),oe=b.jsx(E.Fragment,{children:p(A)},"input"),ee=F&&E.createElement(R3,{..._,...D,size:_?.size||D.size,key:"error",id:_?.id||U},x),re=g.map(he=>{switch(he){case"label":return G;case"input":return oe;case"description":return Z;case"error":return ee;default:return null}});return b.jsx(vLe,{value:{getStyles:Y,describedBy:z,inputId:X,labelId:W,..._Le(g,{hasDescription:J,hasError:F})},children:b.jsx(Se,{ref:r,variant:d,size:u,mod:[{error:!!x},O],...Y("root"),...I,children:re})})});eT.classes=ii,eT.displayName="@mantine/core/InputWrapper";const CLe={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},TLe=(e,r,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":lr(r.size,"input-height"),"--input-fz":Ro(r.size),"--input-radius":r.radius===void 0?void 0:bn(r.radius),"--input-left-section-width":r.leftSectionWidth!==void 0?Ne(r.leftSectionWidth):void 0,"--input-right-section-width":r.rightSectionWidth!==void 0?Ne(r.rightSectionWidth):void 0,"--input-padding-y":r.multiline?lr(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),Ra=Gn((e,r)=>{const n=ze("Input",CLe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,required:c,__staticSelector:u,__stylesApiProps:d,size:h,wrapperProps:p,error:g,disabled:y,leftSection:x,leftSectionProps:w,leftSectionWidth:k,rightSection:C,rightSectionProps:_,rightSectionWidth:T,rightSectionPointerEvents:A,leftSectionPointerEvents:N,variant:$,vars:R,pointer:M,multiline:O,radius:B,id:I,withAria:Y,withErrorStyles:D,mod:V,inputSize:L,attributes:U,__clearSection:q,__clearable:X,__defaultRightSection:F,...J}=n,{styleProps:Q,rest:z}=iq(J),W=A3(),G={offsetBottom:W?.offsetBottom,offsetTop:W?.offsetTop},Z=bt({name:["Input",u],props:d||n,classes:ii,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:U,stylesCtx:G,rootSelector:"wrapper",vars:R,varsResolver:TLe}),oe=Y?{required:c,disabled:y,"aria-invalid":!!g,"aria-describedby":W?.describedBy,id:W?.inputId||I}:{},ee=bLe({__clearable:X,__clearSection:q,rightSection:C,__defaultRightSection:F,size:h});return b.jsx(mLe,{value:{size:h||"sm"},children:b.jsxs(Se,{...Z("wrapper"),...Q,...p,mod:[{error:!!g&&D,pointer:M,disabled:y,multiline:O,"data-with-right-section":!!ee,"data-with-left-section":!!x},V],variant:$,size:h,children:[x&&b.jsx("div",{...w,"data-position":"left",...Z("section",{className:w?.className,style:w?.style}),children:x}),b.jsx(Se,{component:"input",...z,...oe,ref:r,required:c,mod:{disabled:y,error:!!g&&D},variant:$,__size:L,...Z("input")}),ee&&b.jsx("div",{..._,"data-position":"right",...Z("section",{className:_?.className,style:_?.style}),children:ee})]})})});Ra.classes=ii,Ra.Wrapper=eT,Ra.Label=$3,Ra.Error=R3,Ra.Description=N3,Ra.Placeholder=JC,Ra.ClearButton=UY,Ra.displayName="@mantine/core/Input";const ALe={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var qY={root:"m_8bffd616"};const Op=Gn((e,r)=>{const n=ze("Flex",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,gap:u,rowGap:d,columnGap:h,align:p,justify:g,wrap:y,direction:x,attributes:w,...k}=n,C=bt({name:"Flex",classes:qY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:w,vars:c}),_=ho(),T=r3(),A=cq({styleProps:{gap:u,rowGap:d,columnGap:h,align:p,justify:g,wrap:y,direction:x},theme:_,data:ALe});return b.jsxs(b.Fragment,{children:[A.hasResponsiveStyles&&b.jsx(t3,{selector:`.${T}`,styles:A.styles,media:A.media}),b.jsx(Se,{ref:r,...C("root",{className:T,style:yp(A.inlineStyles)}),...k})]})});Op.classes=qY,Op.displayName="@mantine/core/Flex";function NLe(e,r){if(!r||!e)return!1;let n=r.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function RLe({target:e,parent:r,ref:n,displayAfterTransitionEnd:o}){const a=E.useRef(-1),[i,s]=E.useState(!1),[l,c]=E.useState(typeof o=="boolean"?o:!1),u=()=>{if(!e||!r||!n.current)return;const g=e.getBoundingClientRect(),y=r.getBoundingClientRect(),x=window.getComputedStyle(e),w=window.getComputedStyle(r),k=hu(x.borderTopWidth)+hu(w.borderTopWidth),C=hu(x.borderLeftWidth)+hu(w.borderLeftWidth),_={top:g.top-y.top-k,left:g.left-y.left-C,width:g.width,height:g.height};n.current.style.transform=`translateY(${_.top}px) translateX(${_.left}px)`,n.current.style.width=`${_.width}px`,n.current.style.height=`${_.height}px`},d=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),u(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},h=E.useRef(null),p=E.useRef(null);return E.useEffect(()=>{if(u(),e)return h.current=new ResizeObserver(d),h.current.observe(e),r&&(p.current=new ResizeObserver(d),p.current.observe(r)),()=>{h.current?.disconnect(),p.current?.disconnect()}},[r,e]),E.useEffect(()=>{if(r){const g=y=>{NLe(y.target,r)&&(d(),c(!1))};return r.addEventListener("transitionend",g),()=>{r.removeEventListener("transitionend",g)}}},[r]),VV(()=>{DPe()!=="test"&&s(!0)},20,{autoInvoke:!0}),qV(g=>{g.forEach(y=>{y.type==="attributes"&&y.attributeName==="dir"&&d()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:l}}var YY={root:"m_96b553a6"};const $Le=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),P3=st((e,r)=>{const n=ze("FloatingIndicator",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,target:u,parent:d,transitionDuration:h,mod:p,displayAfterTransitionEnd:g,attributes:y,...x}=n,w=bt({name:"FloatingIndicator",classes:YY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:c,varsResolver:$Le}),k=E.useRef(null),{initialized:C,hidden:_}=RLe({target:u,parent:d,ref:k,displayAfterTransitionEnd:g}),T=Rr(r,k);return!u||!d?null:b.jsx(Se,{ref:T,mod:[{initialized:C,hidden:_},p],...w("root"),...x})});P3.displayName="@mantine/core/FloatingIndicator",P3.classes=YY;function WY({open:e,close:r,openDelay:n,closeDelay:o}){const a=E.useRef(-1),i=E.useRef(-1),s=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},l=()=>{s(),n===0||n===void 0?e():a.current=window.setTimeout(e,n)},c=()=>{s(),o===0||o===void 0?r():i.current=window.setTimeout(r,o)};return E.useEffect(()=>s,[]),{openDropdown:l,closeDropdown:c}}function tT({style:e,size:r=16,...n}){return b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:Ne(r),height:Ne(r),display:"block"},...n,children:b.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}tT.displayName="@mantine/core/AccordionChevron";var XY={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const PLe=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:o||"light",autoContrast:a});return{root:{"--alert-radius":r===void 0?void 0:bn(r),"--alert-bg":n||o?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||o?i.border:void 0}}},M3=st((e,r)=>{const n=ze("Alert",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,radius:u,color:d,title:h,children:p,id:g,icon:y,withCloseButton:x,onClose:w,closeButtonLabel:k,variant:C,autoContrast:_,attributes:T,...A}=n,N=bt({name:"Alert",classes:XY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:T,vars:c,varsResolver:PLe}),$=Ta(g),R=h&&`${$}-title`||void 0,M=`${$}-body`;return b.jsx(Se,{id:$,...N("root",{variant:C}),variant:C,ref:r,...A,role:"alert","aria-describedby":M,"aria-labelledby":R,children:b.jsxs("div",{...N("wrapper"),children:[y&&b.jsx("div",{...N("icon"),children:y}),b.jsxs("div",{...N("body"),children:[h&&b.jsx("div",{...N("title"),"data-with-close-button":x||void 0,children:b.jsx("span",{id:R,...N("label"),children:h})}),p&&b.jsx("div",{id:M,...N("message"),"data-variant":C,children:p})]}),x&&b.jsx(Kd,{...N("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:l})]})})});M3.classes=XY,M3.displayName="@mantine/core/Alert";var GY={root:"m_b6d8b162"};function MLe(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const OLe={inherit:!1},DLe=(e,{variant:r,lineClamp:n,gradient:o,size:a,color:i})=>({root:{"--text-fz":Ro(a),"--text-lh":Z$e(a),"--text-gradient":r==="gradient"?lC(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?Jo(i,e):void 0}}),wt=Gn((e,r)=>{const n=ze("Text",OLe,e),{lineClamp:o,truncate:a,inline:i,inherit:s,gradient:l,span:c,__staticSelector:u,vars:d,className:h,style:p,classNames:g,styles:y,unstyled:x,variant:w,mod:k,size:C,attributes:_,...T}=n,A=bt({name:["Text",u],props:n,classes:GY,className:h,style:p,classNames:g,styles:y,unstyled:x,attributes:_,vars:d,varsResolver:DLe});return b.jsx(Se,{...A("root",{focusable:!0}),ref:r,component:c?"span":"p",variant:w,mod:[{"data-truncate":MLe(a),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":s},k],size:C,...T})});wt.classes=GY,wt.displayName="@mantine/core/Text";var KY={root:"m_849cf0da"};const LLe={underline:"hover"},rT=Gn((e,r)=>{const{underline:n,className:o,unstyled:a,mod:i,...s}=ze("Anchor",LLe,e);return b.jsx(wt,{component:"a",ref:r,className:Ji({[KY.root]:!a},o),...s,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:a})});rT.classes=KY,rT.displayName="@mantine/core/Anchor";var si={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const ILe={error:null},zLe=(e,{size:r,color:n})=>({chevron:{"--combobox-chevron-size":lr(r,"combobox-chevron-size"),"--combobox-chevron-color":n?Jo(n,e):void 0}}),nT=st((e,r)=>{const n=ze("ComboboxChevron",ILe,e),{size:o,error:a,style:i,className:s,classNames:l,styles:c,unstyled:u,vars:d,mod:h,...p}=n,g=bt({name:"ComboboxChevron",classes:si,props:n,style:i,className:s,classNames:l,styles:c,unstyled:u,vars:d,varsResolver:zLe,rootSelector:"chevron"});return b.jsx(Se,{component:"svg",...p,...g("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:a},h],ref:r,children:b.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});nT.classes=si,nT.displayName="@mantine/core/ComboboxChevron";const[jLe,li]=ri("Combobox component was not found in tree"),ZY=E.forwardRef(({size:e,onMouseDown:r,onClick:n,onClear:o,...a},i)=>b.jsx(Ra.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...a,onMouseDown:s=>{s.preventDefault(),r?.(s)},onClick:s=>{o(),n?.(s)}}));ZY.displayName="@mantine/core/ComboboxClearButton";const O3=st((e,r)=>{const{classNames:n,styles:o,className:a,style:i,hidden:s,...l}=ze("ComboboxDropdown",null,e),c=li();return b.jsx(mr.Dropdown,{...l,ref:r,role:"presentation","data-hidden":s||void 0,...c.getStyles("dropdown",{className:a,style:i,classNames:n,styles:o})})});O3.classes=si,O3.displayName="@mantine/core/ComboboxDropdown";const BLe={refProp:"ref"},QY=st((e,r)=>{const{children:n,refProp:o}=ze("ComboboxDropdownTarget",BLe,e);if(li(),!Qi(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return b.jsx(mr.Target,{ref:r,refProp:o,children:n})});QY.displayName="@mantine/core/ComboboxDropdownTarget";const I1=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("ComboboxEmpty",null,e),c=li();return b.jsx(Se,{ref:r,...c.getStyles("empty",{className:o,classNames:n,styles:i,style:a}),...l})});I1.classes=si,I1.displayName="@mantine/core/ComboboxEmpty";function oT({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:n,withExpandedAttribute:o,targetType:a,autoComplete:i}){const s=li(),[l,c]=E.useState(null),u=d=>{if(e?.(d),!s.readOnly&&r){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),s.store.dropdownOpened?c(s.store.selectNextOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),s.store.dropdownOpened?c(s.store.selectPreviousOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const h=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&h!==-1?(d.preventDefault(),s.store.clickSelectedOption()):a==="button"&&(d.preventDefault(),s.store.openDropdown("keyboard"))}d.key==="Escape"&&s.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&a==="button"&&(d.preventDefault(),s.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":o?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&l||void 0,autoComplete:i,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},onKeyDown:u}}const FLe={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},JY=st((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...u}=ze("ComboboxEventsTarget",FLe,e);if(!Qi(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=li(),h=oT({targetType:l,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c});return E.cloneElement(n,{...h,...u,[o]:Rr(r,d.store.targetRef,Xw(n))})});JY.displayName="@mantine/core/ComboboxEventsTarget";const aT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("ComboboxFooter",null,e),c=li();return b.jsx(Se,{ref:r,...c.getStyles("footer",{className:o,classNames:n,style:a,styles:i}),...l,onMouseDown:u=>{u.preventDefault()}})});aT.classes=si,aT.displayName="@mantine/core/ComboboxFooter";const iT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,children:l,label:c,id:u,...d}=ze("ComboboxGroup",null,e),h=li(),p=Ta(u);return b.jsxs(Se,{ref:r,role:"group","aria-labelledby":c?p:void 0,...h.getStyles("group",{className:o,classNames:n,style:a,styles:i}),...d,children:[c&&b.jsx("div",{id:p,...h.getStyles("groupLabel",{classNames:n,styles:i}),children:c}),l]})});iT.classes=si,iT.displayName="@mantine/core/ComboboxGroup";const sT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("ComboboxHeader",null,e),c=li();return b.jsx(Se,{ref:r,...c.getStyles("header",{className:o,classNames:n,style:a,styles:i}),...l,onMouseDown:u=>{u.preventDefault()}})});sT.classes=si,sT.displayName="@mantine/core/ComboboxHeader";function eW({value:e,valuesDivider:r=",",...n}){return b.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...n})}eW.displayName="@mantine/core/ComboboxHiddenInput";const z1=st((e,r)=>{const n=ze("ComboboxOption",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,onClick:c,id:u,active:d,onMouseDown:h,onMouseOver:p,disabled:g,selected:y,mod:x,...w}=n,k=li(),C=E.useId(),_=u||C;return b.jsx(Se,{...k.getStyles("option",{className:a,classNames:o,styles:s,style:i}),...w,ref:r,id:_,mod:["combobox-option",{"combobox-active":d,"combobox-disabled":g,"combobox-selected":y},x],role:"option",onClick:T=>{g?T.preventDefault():(k.onOptionSubmit?.(n.value,n),c?.(T))},onMouseDown:T=>{T.preventDefault(),h?.(T)},onMouseOver:T=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),p?.(T)}})});z1.classes=si,z1.displayName="@mantine/core/ComboboxOption";const D3=st((e,r)=>{const n=ze("ComboboxOptions",null,e),{classNames:o,className:a,style:i,styles:s,id:l,onMouseDown:c,labelledBy:u,...d}=n,h=li(),p=Ta(l);return E.useEffect(()=>{h.store.setListId(p)},[p]),b.jsx(Se,{ref:r,...h.getStyles("options",{className:a,style:i,classNames:o,styles:s}),...d,id:p,role:"listbox","aria-labelledby":u,onMouseDown:g=>{g.preventDefault(),c?.(g)}})});D3.classes=si,D3.displayName="@mantine/core/ComboboxOptions";const HLe={withAriaAttributes:!0,withKeyboardNavigation:!0},lT=st((e,r)=>{const n=ze("ComboboxSearch",HLe,e),{classNames:o,styles:a,unstyled:i,vars:s,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:u,size:d,...h}=n,p=li(),g=p.getStyles("search"),y=oT({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return b.jsx(Ra,{ref:Rr(r,p.store.searchRef),classNames:[{input:g.className},o],styles:[{input:g.style},a],size:d||p.size,...y,...h,__staticSelector:"Combobox"})});lT.classes=si,lT.displayName="@mantine/core/ComboboxSearch";const ULe={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},cT=st((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...u}=ze("ComboboxTarget",ULe,e);if(!Qi(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=li(),h=oT({targetType:l,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c}),p=E.cloneElement(n,{...h,...u});return b.jsx(mr.Target,{ref:Rr(r,d.store.targetRef),children:p})});cT.displayName="@mantine/core/ComboboxTarget";function VLe(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function qLe(e,r,n){for(let o=e+1;o{l||(c(!0),a?.(L))},[c,a,l]),k=E.useCallback((L="unknown")=>{l&&(c(!1),o?.(L))},[c,o,l]),C=E.useCallback((L="unknown")=>{l?k(L):w(L)},[k,w,l]),_=E.useCallback(()=>{const L=document.querySelector(`#${u.current} [data-combobox-selected]`);L?.removeAttribute("data-combobox-selected"),L?.removeAttribute("aria-selected")},[]),T=E.useCallback(L=>{const U=document.getElementById(u.current)?.querySelectorAll("[data-combobox-option]");if(!U)return null;const q=L>=U.length?0:L<0?U.length-1:L;return d.current=q,U?.[q]&&!U[q].hasAttribute("data-combobox-disabled")?(_(),U[q].setAttribute("data-combobox-selected","true"),U[q].setAttribute("aria-selected","true"),U[q].scrollIntoView({block:"nearest",behavior:s}),U[q].id):null},[s,_]),A=E.useCallback(()=>{const L=document.querySelector(`#${u.current} [data-combobox-active]`);if(L){const U=document.querySelectorAll(`#${u.current} [data-combobox-option]`),q=Array.from(U).findIndex(X=>X===L);return T(q)}return T(0)},[T]),N=E.useCallback(()=>T(qLe(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),$=E.useCallback(()=>T(VLe(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),R=E.useCallback(()=>T(YLe(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[T]),M=E.useCallback((L="selected",U)=>{x.current=window.setTimeout(()=>{const q=document.querySelectorAll(`#${u.current} [data-combobox-option]`),X=Array.from(q).findIndex(F=>F.hasAttribute(`data-combobox-${L}`));d.current=X,U?.scrollIntoView&&q[X]?.scrollIntoView({block:"nearest",behavior:s})},0)},[]),O=E.useCallback(()=>{d.current=-1,_()},[_]),B=E.useCallback(()=>{document.querySelectorAll(`#${u.current} [data-combobox-option]`)?.[d.current]?.click()},[]),I=E.useCallback(L=>{u.current=L},[]),Y=E.useCallback(()=>{g.current=window.setTimeout(()=>h.current?.focus(),0)},[]),D=E.useCallback(()=>{y.current=window.setTimeout(()=>p.current?.focus(),0)},[]),V=E.useCallback(()=>d.current,[]);return E.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout(x.current)},[]),{dropdownOpened:l,openDropdown:w,closeDropdown:k,toggleDropdown:C,selectedOptionIndex:d.current,getSelectedOptionIndex:V,selectOption:T,selectFirstOption:R,selectActiveOption:A,selectNextOption:N,selectPreviousOption:$,resetSelectedOption:O,updateSelectedOptionIndex:M,listId:u.current,setListId:I,clickSelectedOption:B,searchRef:h,focusSearchInput:Y,targetRef:p,focusTarget:D}}const WLe={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},XLe=(e,{size:r,dropdownPadding:n})=>({options:{"--combobox-option-fz":Ro(r),"--combobox-option-padding":lr(r,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Ne(n),"--combobox-option-fz":Ro(r),"--combobox-option-padding":lr(r,"combobox-option-padding")}});function Kn(e){const r=ze("Combobox",WLe,e),{classNames:n,styles:o,unstyled:a,children:i,store:s,vars:l,onOptionSubmit:c,onClose:u,size:d,dropdownPadding:h,resetSelectionOnOptionHover:p,__staticSelector:g,readOnly:y,attributes:x,...w}=r,k=tW(),C=s||k,_=bt({name:g||"Combobox",classes:si,props:r,classNames:n,styles:o,unstyled:a,attributes:x,vars:l,varsResolver:XLe}),T=()=>{u?.(),C.closeDropdown()};return b.jsx(jLe,{value:{getStyles:_,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:p,readOnly:y},children:b.jsx(mr,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...w,onChange:A=>!A&&T(),withRoles:!1,unstyled:a,children:i})})}const GLe=e=>e;Kn.extend=GLe,Kn.classes=si,Kn.displayName="@mantine/core/Combobox",Kn.Target=cT,Kn.Dropdown=O3,Kn.Options=D3,Kn.Option=z1,Kn.Search=lT,Kn.Empty=I1,Kn.Chevron=nT,Kn.Footer=aT,Kn.Header=sT,Kn.EventsTarget=JY,Kn.DropdownTarget=QY,Kn.Group=iT,Kn.ClearButton=ZY,Kn.HiddenInput=eW;function rW({size:e,style:r,...n}){const o=e!==void 0?{width:Ne(e),height:Ne(e),...r}:r;return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...n,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var nW={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const KLe=(e,{radius:r,color:n,gradient:o,variant:a,size:i,autoContrast:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:s});return{root:{"--badge-height":lr(i,"badge-height"),"--badge-padding-x":lr(i,"badge-padding-x"),"--badge-fz":lr(i,"badge-fz"),"--badge-radius":r===void 0?void 0:bn(r),"--badge-bg":n||a?l.background:void 0,"--badge-color":n||a?l.color:void 0,"--badge-bd":n||a?l.border:void 0,"--badge-dot-color":a==="dot"?Jo(n,e):void 0}}},Gl=Gn((e,r)=>{const n=ze("Badge",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,radius:u,color:d,gradient:h,leftSection:p,rightSection:g,children:y,variant:x,fullWidth:w,autoContrast:k,circle:C,mod:_,attributes:T,...A}=n,N=bt({name:"Badge",props:n,classes:nW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:T,vars:c,varsResolver:KLe});return b.jsxs(Se,{variant:x,mod:[{block:w,circle:C,"with-right-section":!!g,"with-left-section":!!p},_],...N("root",{variant:x}),ref:r,...A,children:[p&&b.jsx("span",{...N("section"),"data-position":"left",children:p}),b.jsx("span",{...N("label"),children:y}),g&&b.jsx("span",{...N("section"),"data-position":"right",children:g})]})});Gl.classes=nW,Gl.displayName="@mantine/core/Badge";var oW={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const ZLe={separator:"/"},QLe=(e,{separatorMargin:r})=>({root:{"--bc-separator-margin":Ul(r)}}),L3=st((e,r)=>{const n=ze("Breadcrumbs",ZLe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,children:u,separator:d,separatorMargin:h,attributes:p,...g}=n,y=bt({name:"Breadcrumbs",classes:oW,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:p,vars:c,varsResolver:QLe}),x=E.Children.toArray(u).reduce((w,k,C,_)=>{const T=Qi(k)?E.cloneElement(k,{...y("breadcrumb",{className:k.props?.className}),key:C}):E.createElement("div",{...y("breadcrumb"),key:C},k);return w.push(T),C!==_.length-1&&w.push(E.createElement(Se,{...y("separator"),key:`separator-${C}`},d)),w},[]);return b.jsx(Se,{ref:r,...y("root"),...g,children:x})});L3.classes=oW,L3.displayName="@mantine/core/Breadcrumbs";var Dp={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const aW={orientation:"horizontal"},JLe=(e,{borderWidth:r})=>({group:{"--button-border-width":Ne(r)}}),uT=st((e,r)=>{const n=ze("ButtonGroup",aW,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,orientation:c,vars:u,borderWidth:d,variant:h,mod:p,attributes:g,...y}=ze("ButtonGroup",aW,e),x=bt({name:"ButtonGroup",props:n,classes:Dp,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:u,varsResolver:JLe,rootSelector:"group"});return b.jsx(Se,{...x("group"),ref:r,variant:h,mod:[{"data-orientation":c},p],role:"group",...y})});uT.classes=Dp,uT.displayName="@mantine/core/ButtonGroup";const eIe=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":lr(s,"section-height"),"--section-padding-x":lr(s,"section-padding-x"),"--section-fz":s?.includes("compact")?Ro(s.replace("compact-","")):Ro(s),"--section-radius":r===void 0?void 0:bn(r),"--section-bg":n||a?l.background:void 0,"--section-color":l.color,"--section-bd":n||a?l.border:void 0}}},dT=st((e,r)=>{const n=ze("ButtonGroupSection",null,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,vars:c,variant:u,gradient:d,radius:h,autoContrast:p,attributes:g,...y}=n,x=bt({name:"ButtonGroupSection",props:n,classes:Dp,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:eIe,rootSelector:"groupSection"});return b.jsx(Se,{...x("groupSection"),ref:r,variant:u,...y})});dT.classes=Dp,dT.displayName="@mantine/core/ButtonGroupSection";const tIe={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Ne(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},rIe=(e,{radius:r,color:n,gradient:o,variant:a,size:i,justify:s,autoContrast:l})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:l});return{root:{"--button-justify":s,"--button-height":lr(i,"button-height"),"--button-padding-x":lr(i,"button-padding-x"),"--button-fz":i?.includes("compact")?Ro(i.replace("compact-","")):Ro(i),"--button-radius":r===void 0?void 0:bn(r),"--button-bg":n||a?c.background:void 0,"--button-hover":n||a?c.hover:void 0,"--button-color":c.color,"--button-bd":n||a?c.border:void 0,"--button-hover-color":n||a?c.hoverColor:void 0}}},Zn=Gn((e,r)=>{const n=ze("Button",null,e),{style:o,vars:a,className:i,color:s,disabled:l,children:c,leftSection:u,rightSection:d,fullWidth:h,variant:p,radius:g,loading:y,loaderProps:x,gradient:w,classNames:k,styles:C,unstyled:_,"data-disabled":T,autoContrast:A,mod:N,attributes:$,...R}=n,M=bt({name:"Button",props:n,classes:Dp,className:i,style:o,classNames:k,styles:C,unstyled:_,attributes:$,vars:a,varsResolver:rIe}),O=!!u,B=!!d;return b.jsxs(Pr,{ref:r,...M("root",{active:!l&&!y&&!T}),unstyled:_,variant:p,disabled:l||y,mod:[{disabled:l||T,loading:y,block:h,"with-left-section":O,"with-right-section":B},N],...R,children:[typeof y=="boolean"&&b.jsx(fu,{mounted:y,transition:tIe,duration:150,children:I=>b.jsx(Se,{component:"span",...M("loader",{style:I}),"aria-hidden":!0,children:b.jsx(Pp,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...x})})}),b.jsxs("span",{...M("inner"),children:[u&&b.jsx(Se,{component:"span",...M("section"),mod:{position:"left"},children:u}),b.jsx(Se,{component:"span",mod:{loading:y},...M("label"),children:c}),d&&b.jsx(Se,{component:"span",...M("section"),mod:{position:"right"},children:d})]})]})});Zn.classes=Dp,Zn.displayName="@mantine/core/Button",Zn.Group=uT,Zn.GroupSection=dT;const[nIe,oIe]=ri("Card component was not found in tree");var hT={root:"m_e615b15f",section:"m_599a2148"};const I3=Gn((e,r)=>{const n=ze("CardSection",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,withBorder:c,inheritPadding:u,mod:d,...h}=n,p=oIe();return b.jsx(Se,{ref:r,mod:[{"with-border":c,"inherit-padding":u},d],...p.getStyles("section",{className:a,style:i,styles:s,classNames:o}),...h})});I3.classes=hT,I3.displayName="@mantine/core/CardSection";const aIe=(e,{padding:r})=>({root:{"--card-padding":Ul(r)}}),z3=Gn((e,r)=>{const n=ze("Card",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,children:u,padding:d,attributes:h,...p}=n,g=bt({name:"Card",props:n,classes:hT,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:aIe}),y=E.Children.toArray(u),x=y.map((w,k)=>typeof w=="object"&&w&&"type"in w&&w.type===I3?E.cloneElement(w,{"data-first-section":k===0||void 0,"data-last-section":k===y.length-1||void 0}):w);return b.jsx(nIe,{value:{getStyles:g},children:b.jsx(Rp,{ref:r,unstyled:l,...g("root"),...p,children:x})})});z3.classes=hT,z3.displayName="@mantine/core/Card",z3.Section=I3;var iW={root:"m_b183c0a2"};const iIe=(e,{color:r})=>({root:{"--code-bg":r?Jo(r,e):void 0}}),j3=st((e,r)=>{const n=ze("Code",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,block:d,variant:h,mod:p,attributes:g,...y}=n,x=bt({name:"Code",props:n,classes:iW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:iIe});return b.jsx(Se,{component:d?"pre":"code",variant:h,ref:r,mod:[{block:d},p],...x("root"),...y,dir:"ltr"})});j3.classes=iW,j3.displayName="@mantine/core/Code";var sW={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const lW={withShadow:!0},sIe=(e,{radius:r,size:n})=>({root:{"--cs-radius":r===void 0?void 0:bn(r),"--cs-size":Ne(n)}}),j1=Gn((e,r)=>{const n=ze("ColorSwatch",lW,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,size:d,radius:h,withShadow:p,children:g,variant:y,attributes:x,...w}=ze("ColorSwatch",lW,n),k=bt({name:"ColorSwatch",props:n,classes:sW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:x,vars:c,varsResolver:sIe});return b.jsxs(Se,{ref:r,variant:y,size:d,...k("root",{focusable:!0}),...w,children:[b.jsx("span",{...k("alphaOverlay")}),p&&b.jsx("span",{...k("shadowOverlay")}),b.jsx("span",{...k("colorOverlay",{style:{backgroundColor:u}})}),b.jsx("span",{...k("childrenOverlay"),children:g})]})});j1.classes=sW,j1.displayName="@mantine/core/ColorSwatch";const lIe={timeout:1e3};function cW(e){const{children:r,timeout:n,value:o,...a}=ze("CopyButton",lIe,e),i=rPe({timeout:n});return b.jsx(b.Fragment,{children:r({copy:()=>i.copy(o),copied:i.copied,...a})})}cW.displayName="@mantine/core/CopyButton";var uW={root:"m_3eebeb36",label:"m_9e365f20"};const cIe={orientation:"horizontal"},uIe=(e,{color:r,variant:n,size:o})=>({root:{"--divider-color":r?Jo(r,e):void 0,"--divider-border-style":n,"--divider-size":lr(o,"divider-size")}}),Lp=st((e,r)=>{const n=ze("Divider",cIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,orientation:d,label:h,labelPosition:p,mod:g,attributes:y,...x}=n,w=bt({name:"Divider",classes:uW,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:y,vars:c,varsResolver:uIe});return b.jsx(Se,{ref:r,mod:[{orientation:d,"with-label":!!h},g],...w("root"),...x,role:"separator",children:h&&b.jsx(Se,{component:"span",mod:{position:p},...w("label"),children:h})})});Lp.classes=uW,Lp.displayName="@mantine/core/Divider";const[dW,hW]=ri("Grid component was not found in tree"),fT=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,fW=(e,r,n)=>n||e==="auto"?"100%":e==="content"?"unset":fT(e,r),pW=(e,r)=>{if(e)return e==="auto"||r?"1":"auto"},mW=(e,r)=>e===0?"0":e?`${100/(r/e)}%`:void 0;function dIe({span:e,order:r,offset:n,selector:o}){const a=ho(),i=hW(),s=i.breakpoints||a.breakpoints,l=A1(e)===void 0?12:A1(e),c=yp({"--col-order":A1(r)?.toString(),"--col-flex-grow":pW(l,i.grow),"--col-flex-basis":fT(l,i.columns),"--col-width":l==="content"?"auto":void 0,"--col-max-width":fW(l,i.columns,i.grow),"--col-offset":mW(A1(n),i.columns)}),u=No(s).reduce((h,p)=>(h[p]||(h[p]={}),typeof r=="object"&&r[p]!==void 0&&(h[p]["--col-order"]=r[p]?.toString()),typeof e=="object"&&e[p]!==void 0&&(h[p]["--col-flex-grow"]=pW(e[p],i.grow),h[p]["--col-flex-basis"]=fT(e[p],i.columns),h[p]["--col-width"]=e[p]==="content"?"auto":void 0,h[p]["--col-max-width"]=fW(e[p],i.columns,i.grow)),typeof n=="object"&&n[p]!==void 0&&(h[p]["--col-offset"]=mW(n[p],i.columns)),h),{}),d=RV(No(u),s).filter(h=>No(u[h.value]).length>0).map(h=>({query:i.type==="container"?`mantine-grid (min-width: ${s[h.value]})`:`(min-width: ${s[h.value]})`,styles:u[h.value]}));return b.jsx(t3,{styles:c,media:i.type==="container"?void 0:d,container:i.type==="container"?d:void 0,selector:o})}var pT={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const hIe={span:12},Zd=st((e,r)=>{const n=ze("GridCol",hIe,e),{classNames:o,className:a,style:i,styles:s,vars:l,span:c,order:u,offset:d,...h}=n,p=hW(),g=r3();return b.jsxs(b.Fragment,{children:[b.jsx(dIe,{selector:`.${g}`,span:c,order:u,offset:d}),b.jsx(Se,{ref:r,...p.getStyles("col",{className:Ji(a,g),style:i,classNames:o,styles:s}),...h})]})});Zd.classes=pT,Zd.displayName="@mantine/core/GridCol";function gW({gutter:e,selector:r,breakpoints:n,type:o}){const a=ho(),i=n||a.breakpoints,s=yp({"--grid-gutter":Ul(A1(e))}),l=No(i).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--grid-gutter"]=Ul(e[d])),u),{}),c=RV(No(l),i).filter(u=>No(l[u.value]).length>0).map(u=>({query:o==="container"?`mantine-grid (min-width: ${i[u.value]})`:`(min-width: ${i[u.value]})`,styles:l[u.value]}));return b.jsx(t3,{styles:s,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:r})}const fIe={gutter:"md",grow:!1,columns:12},pIe=(e,{justify:r,align:n,overflow:o})=>({root:{"--grid-justify":r,"--grid-align":n,"--grid-overflow":o}}),B1=st((e,r)=>{const n=ze("Grid",fIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,grow:u,gutter:d,columns:h,align:p,justify:g,children:y,breakpoints:x,type:w,attributes:k,...C}=n,_=bt({name:"Grid",classes:pT,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:k,vars:c,varsResolver:pIe}),T=r3();return w==="container"&&x?b.jsxs(dW,{value:{getStyles:_,grow:u,columns:h,breakpoints:x,type:w},children:[b.jsx(gW,{selector:`.${T}`,...n}),b.jsx("div",{..._("container"),children:b.jsx(Se,{ref:r,..._("root",{className:T}),...C,children:b.jsx("div",{..._("inner"),children:y})})})]}):b.jsxs(dW,{value:{getStyles:_,grow:u,columns:h,breakpoints:x,type:w},children:[b.jsx(gW,{selector:`.${T}`,...n}),b.jsx(Se,{ref:r,..._("root",{className:T}),...C,children:b.jsx("div",{..._("inner"),children:y})})]})});B1.classes=pT,B1.displayName="@mantine/core/Grid",B1.Col=Zd;function yW({color:e,theme:r,defaultShade:n}){const o=uu({color:e,theme:r});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var bW={root:"m_bcb3f3c2"};const mIe={color:"yellow"},gIe=(e,{color:r})=>({root:{"--mark-bg-dark":yW({color:r,theme:e,defaultShade:5}),"--mark-bg-light":yW({color:r,theme:e,defaultShade:2})}}),mT=st((e,r)=>{const n=ze("Mark",mIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:u,variant:d,attributes:h,...p}=n,g=bt({name:"Mark",props:n,className:a,style:i,classes:bW,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:gIe});return b.jsx(Se,{component:"mark",ref:r,variant:d,...g("root"),...p})});mT.classes=bW,mT.displayName="@mantine/core/Mark";function vW(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function yIe(e,r){if(r==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(r)?r.map(vW):vW(r);if(!(Array.isArray(n)?n.filter(i=>i.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];const o=typeof n=="string"?n.trim():n.filter(i=>i.trim().length!==0).map(i=>i.trim()).sort((i,s)=>s.length-i.length).join("|"),a=new RegExp(`(${o})`,"gi");return e.split(a).map(i=>({chunk:i,highlighted:a.test(i)})).filter(({chunk:i})=>i)}const Kl=Gn((e,r)=>{const{unstyled:n,children:o,highlight:a,highlightStyles:i,color:s,...l}=ze("Highlight",null,e),c=yIe(o,a);return b.jsx(wt,{unstyled:n,ref:r,...l,__staticSelector:"Highlight",children:c.map(({chunk:u,highlighted:d},h)=>d?b.jsx(mT,{unstyled:n,color:s,style:i,"data-highlight":u,children:u},h):b.jsx("span",{children:u},h))})});Kl.classes=wt.classes,Kl.displayName="@mantine/core/Highlight";const[bIe,xW]=ri("HoverCard component was not found in the tree"),wW=E.createContext(!1),vIe=wW.Provider,gT=()=>E.useContext(wW);function yT(e){const{children:r,onMouseEnter:n,onMouseLeave:o,...a}=ze("HoverCardDropdown",null,e),i=xW();if(gT()&&i.getFloatingProps&&i.floating){const c=i.getFloatingProps();return b.jsx(mr.Dropdown,{ref:i.floating,...c,onMouseEnter:vn(n,c.onMouseEnter),onMouseLeave:vn(o,c.onMouseLeave),...a,children:r})}const s=vn(n,i.openDropdown),l=vn(o,i.closeDropdown);return b.jsx(mr.Dropdown,{onMouseEnter:s,onMouseLeave:l,...a,children:r})}yT.displayName="@mantine/core/HoverCardDropdown";const xIe={openDelay:0,closeDelay:0};function bT(e){const{openDelay:r,closeDelay:n,children:o}=ze("HoverCardGroup",xIe,e);return b.jsx(vIe,{value:!0,children:b.jsx(aY,{delay:{open:r,close:n},children:o})})}bT.displayName="@mantine/core/HoverCardGroup",bT.extend=e=>e;const wIe={refProp:"ref"},vT=E.forwardRef((e,r)=>{const{children:n,refProp:o,eventPropsWrapperName:a,...i}=ze("HoverCardTarget",wIe,e);if(!Qi(n))throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=xW();if(gT()&&s.getReferenceProps&&s.reference){const d=s.getReferenceProps();return b.jsx(mr.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:{...d,ref:s.reference}}:{...d,ref:s.reference})})}const l=vn(n.props.onMouseEnter,s.openDropdown),c=vn(n.props.onMouseLeave,s.closeDropdown),u={onMouseEnter:l,onMouseLeave:c};return b.jsx(mr.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:u}:u)})});vT.displayName="@mantine/core/HoverCardTarget";function kIe(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=gT(),i=Ta(),s=E.useRef(-1),l=E.useRef(-1),c=E.useCallback(()=>{window.clearTimeout(s.current),window.clearTimeout(l.current)},[]),u=E.useCallback(C=>{n(C),C?(g(i),e.onOpen?.()):e.onClose?.()},[i,e.onOpen,e.onClose]),{context:d,refs:h}=x3({open:o,onOpenChange:u}),{delay:p,setCurrentId:g}=iY(d,{id:i}),{getReferenceProps:y,getFloatingProps:x}=cY([nY(d,{enabled:!0,delay:a?p:{open:e.openDelay,close:e.closeDelay}}),uY(d,{role:"dialog"}),lY(d,{enabled:a})]),w=E.useCallback(()=>{a||(c(),e.openDelay===0||e.openDelay===void 0?u(!0):s.current=window.setTimeout(()=>u(!0),e.openDelay))},[a,c,e.openDelay,u]),k=E.useCallback(()=>{a||(c(),e.closeDelay===0||e.closeDelay===void 0?u(!1):l.current=window.setTimeout(()=>u(!1),e.closeDelay))},[a,c,e.closeDelay,u]);return E.useEffect(()=>()=>c(),[c]),{opened:o,reference:h.setReference,floating:h.setFloating,getReferenceProps:y,getFloatingProps:x,openDropdown:w,closeDropdown:k}}const _Ie={openDelay:0,closeDelay:150,initiallyOpened:!1};function Ip(e){const{children:r,onOpen:n,onClose:o,openDelay:a,closeDelay:i,initiallyOpened:s,...l}=ze("HoverCard",_Ie,e),c=kIe({openDelay:a,closeDelay:i,defaultOpened:s,onOpen:n,onClose:o});return b.jsx(bIe,{value:{openDropdown:c.openDropdown,closeDropdown:c.closeDropdown,getReferenceProps:c.getReferenceProps,getFloatingProps:c.getFloatingProps,reference:c.reference,floating:c.floating},children:b.jsx(mr,{...l,opened:c.opened,__staticSelector:"HoverCard",children:r})})}Ip.displayName="@mantine/core/HoverCard",Ip.Target=vT,Ip.Dropdown=yT,Ip.Group=bT,Ip.extend=e=>e;var EIe=E.useLayoutEffect;const[SIe,mu]=ri("Menu component was not found in the tree");var gu={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const xT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("MenuDivider",null,e),c=mu();return b.jsx(Se,{ref:r,...c.getStyles("divider",{className:o,style:a,styles:i,classNames:n}),...l})});xT.classes=gu,xT.displayName="@mantine/core/MenuDivider";const F1=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,onMouseEnter:l,onMouseLeave:c,onKeyDown:u,children:d,...h}=ze("MenuDropdown",null,e),p=E.useRef(null),g=mu(),y=vn(u,k=>{(k.key==="ArrowUp"||k.key==="ArrowDown")&&(k.preventDefault(),p.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=vn(l,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),w=vn(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return b.jsxs(mr.Dropdown,{...h,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Rr(r,p),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:y,children:[g.withInitialFocusPlaceholder&&b.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),d]})});F1.classes=gu,F1.displayName="@mantine/core/MenuDropdown";const[CIe,B3]=C1(),H1=Gn((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,color:l,closeMenuOnClick:c,leftSection:u,rightSection:d,children:h,disabled:p,"data-disabled":g,...y}=ze("MenuItem",null,e),x=mu(),w=B3(),k=ho(),{dir:C}=du(),_=E.useRef(null),T=y,A=vn(T.onClick,()=>{g||(typeof c=="boolean"?c&&x.closeDropdownImmediately():x.closeOnItemClick&&x.closeDropdownImmediately())}),N=l?k.variantColorResolver({color:l,theme:k,variant:"light"}):void 0,$=l?uu({color:l,theme:k}):null,R=vn(T.onKeyDown,M=>{M.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())});return b.jsxs(Pr,{onMouseDown:M=>M.preventDefault(),...y,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Rr(_,r),role:"menuitem",disabled:p,"data-menu-item":!0,"data-disabled":p||g||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:T1({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:R}),__vars:{"--menu-item-color":$?.isThemeColor&&$?.shade===void 0?`var(--mantine-color-${$.color}-6)`:N?.color,"--menu-item-hover":N?.hover},children:[u&&b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:u}),h&&b.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:h}),d&&b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:d})]})});H1.classes=gu,H1.displayName="@mantine/core/MenuItem";const wT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("MenuLabel",null,e),c=mu();return b.jsx(Se,{ref:r,...c.getStyles("label",{className:o,style:a,styles:i,classNames:n}),...l})});wT.classes=gu,wT.displayName="@mantine/core/MenuLabel";const kT=st((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,onMouseEnter:l,onMouseLeave:c,onKeyDown:u,children:d,...h}=ze("MenuSubDropdown",null,e),p=E.useRef(null),g=mu(),y=B3(),x=vn(l,y?.open),w=vn(c,y?.close);return b.jsx(mr.Dropdown,{...h,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Rr(r,p),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:d})});kT.classes=gu,kT.displayName="@mantine/core/MenuSubDropdown";const _T=Gn((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,color:l,leftSection:c,rightSection:u,children:d,disabled:h,"data-disabled":p,closeMenuOnClick:g,...y}=ze("MenuSubItem",null,e),x=mu(),w=B3(),k=ho(),{dir:C}=du(),_=E.useRef(null),T=y,A=l?k.variantColorResolver({color:l,theme:k,variant:"light"}):void 0,N=l?uu({color:l,theme:k}):null,$=vn(T.onKeyDown,B=>{B.key==="ArrowRight"&&(w?.open(),w?.focusFirstItem()),B.key==="ArrowLeft"&&w?.parentContext&&(w.parentContext.close(),w.parentContext.focusParentItem())}),R=vn(T.onClick,()=>{!p&&g&&x.closeDropdownImmediately()}),M=vn(T.onMouseEnter,w?.open),O=vn(T.onMouseLeave,w?.close);return b.jsxs(Pr,{onMouseDown:B=>B.preventDefault(),...y,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Rr(_,r),role:"menuitem",disabled:h,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":h||p||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:M,onMouseLeave:O,onClick:R,onKeyDown:T1({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:$}),__vars:{"--menu-item-color":N?.isThemeColor&&N?.shade===void 0?`var(--mantine-color-${N.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[c&&b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:c}),d&&b.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:d}),b.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:u||b.jsx(tT,{...x.getStyles("chevron"),size:14})})]})});_T.classes=gu,_T.displayName="@mantine/core/MenuSubItem";function kW({children:e,refProp:r}){if(!Qi(e))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return mu(),b.jsx(mr.Target,{refProp:r,popupType:"menu",children:e})}kW.displayName="@mantine/core/MenuSubTarget";const TIe={offset:0,position:"right-start",transitionProps:{duration:0},middlewares:{shift:{crossAxis:!0}}};function zp(e){const{children:r,closeDelay:n,...o}=ze("MenuSub",TIe,e),a=Ta(),[i,{open:s,close:l}]=NPe(!1),c=B3(),{openDropdown:u,closeDropdown:d}=WY({open:s,close:l,closeDelay:n,openDelay:0});return b.jsx(CIe,{value:{opened:i,close:d,open:u,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-target`)?.focus()},16),parentContext:c},children:b.jsx(mr,{opened:i,...o,withinPortal:!1,withArrow:!1,id:a,children:r})})}zp.extend=e=>e,zp.displayName="@mantine/core/MenuSub",zp.Target=kW,zp.Dropdown=kT,zp.Item=_T;const AIe={refProp:"ref"},F3=E.forwardRef((e,r)=>{const{children:n,refProp:o,...a}=ze("MenuTarget",AIe,e);if(!Qi(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=mu(),s=n.props,l=vn(s.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),c=vn(s.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),u=vn(s.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return b.jsx(mr.Target,{refProp:o,popupType:"menu",ref:r,...a,children:E.cloneElement(n,{onClick:l,onMouseEnter:c,onMouseLeave:u,"data-expanded":i.opened?!0:void 0})})});F3.displayName="@mantine/core/MenuTarget";const NIe={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function fo(e){const r=ze("Menu",NIe,e),{children:n,onOpen:o,onClose:a,opened:i,defaultOpened:s,trapFocus:l,onChange:c,closeOnItemClick:u,loop:d,closeOnEscape:h,trigger:p,openDelay:g,closeDelay:y,classNames:x,styles:w,unstyled:k,variant:C,vars:_,menuItemTabIndex:T,keepMounted:A,withInitialFocusPlaceholder:N,attributes:$,...R}=r,M=bt({name:"Menu",classes:gu,props:r,classNames:x,styles:w,unstyled:k,attributes:$}),[O,B]=Vl({value:i,defaultValue:s,finalValue:!1,onChange:c}),[I,Y]=E.useState(!1),D=()=>{B(!1),Y(!1),O&&a?.()},V=()=>{B(!0),!O&&o?.()},L=()=>{O?D():V()},{openDropdown:U,closeDropdown:q}=WY({open:V,close:D,closeDelay:y,openDelay:g}),X=Q=>J$e("[data-menu-item]","[data-menu-dropdown]",Q),{resolvedClassNames:F,resolvedStyles:J}=yC({classNames:x,styles:w,props:r});return b.jsx(SIe,{value:{getStyles:M,opened:O,toggleDropdown:L,getItemIndex:X,openedViaClick:I,setOpenedViaClick:Y,closeOnItemClick:u,closeDropdown:p==="click"?D:q,openDropdown:p==="click"?V:U,closeDropdownImmediately:D,loop:d,trigger:p,unstyled:k,menuItemTabIndex:T,withInitialFocusPlaceholder:N},children:b.jsx(mr,{...R,opened:O,onChange:L,defaultOpened:s,trapFocus:A?!1:l,closeOnEscape:h,__staticSelector:"Menu",classNames:F,styles:J,unstyled:k,variant:C,keepMounted:A,children:n})})}fo.extend=e=>e,fo.withProps=YMe(fo),fo.classes=gu,fo.displayName="@mantine/core/Menu",fo.Item=H1,fo.Label=wT,fo.Dropdown=F1,fo.Target=F3,fo.Divider=xT,fo.Sub=zp;const[y2t,_W]=C1(),[RIe,$Ie]=C1();var H3={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const PIe=(e,{gap:r},{size:n})=>({group:{"--pg-gap":r!==void 0?lr(r):lr(n,"pg-gap")}}),ET=st((e,r)=>{const n=ze("PillGroup",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:u,disabled:d,attributes:h,...p}=n,g=_W()?.size||u||void 0,y=bt({name:"PillGroup",classes:H3,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:PIe,stylesCtx:{size:g},rootSelector:"group"});return b.jsx(RIe,{value:{size:g,disabled:d},children:b.jsx(Se,{ref:r,size:g,...y("group"),...p})})});ET.classes=H3,ET.displayName="@mantine/core/PillGroup";const MIe={variant:"default"},OIe=(e,{radius:r},{size:n})=>({root:{"--pill-fz":lr(n,"pill-fz"),"--pill-height":lr(n,"pill-height"),"--pill-radius":r===void 0?void 0:bn(r)}}),U3=st((e,r)=>{const n=ze("Pill",MIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,variant:u,children:d,withRemoveButton:h,onRemove:p,removeButtonProps:g,radius:y,size:x,disabled:w,mod:k,attributes:C,..._}=n,T=$Ie(),A=_W(),N=x||T?.size||void 0,$=A?.variant==="filled"?"contrast":u||"default",R=bt({name:"Pill",classes:H3,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:C,vars:c,varsResolver:OIe,stylesCtx:{size:N}});return b.jsxs(Se,{component:"span",ref:r,variant:$,size:N,...R("root",{variant:$}),mod:[{"with-remove":h&&!w,disabled:w||T?.disabled},k],..._,children:[b.jsx("span",{...R("label"),children:d}),h&&b.jsx(Kd,{variant:"transparent",radius:y,tabIndex:-1,"aria-hidden":!0,unstyled:l,...g,...R("remove",{className:g?.className,style:g?.style}),onMouseDown:M=>{M.preventDefault(),M.stopPropagation(),g?.onMouseDown?.(M)},onClick:M=>{M.stopPropagation(),p?.(),g?.onClick?.(M)}})]})});U3.classes=H3,U3.displayName="@mantine/core/Pill",U3.Group=ET;var EW={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const DIe=(e,{variant:r,color:n,childrenOffset:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:a});return{root:{"--nl-bg":n||r?i.background:void 0,"--nl-hover":n||r?i.hover:void 0,"--nl-color":n||r?i.color:void 0},children:{"--nl-offset":Ul(o)}}},ST=Gn((e,r)=>{const n=ze("NavLink",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,opened:u,defaultOpened:d,onChange:h,children:p,active:g,disabled:y,leftSection:x,rightSection:w,label:k,description:C,disableRightSectionRotation:_,noWrap:T,childrenOffset:A,autoContrast:N,mod:$,attributes:R,...M}=n,O=bt({name:"NavLink",props:n,classes:EW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:R,vars:c,varsResolver:DIe}),[B,I]=Vl({value:u,defaultValue:d,finalValue:!1,onChange:h}),Y=!!p,D=V=>{M.onClick?.(V),Y&&(V.preventDefault(),I(!B))};return b.jsxs(b.Fragment,{children:[b.jsxs(Pr,{...O("root"),component:"a",ref:r,onClick:D,onKeyDown:V=>{M.onKeyDown?.(V),V.nativeEvent.code==="Space"&&Y&&(V.preventDefault(),I(!B))},unstyled:l,mod:[{disabled:y,active:g,expanded:B},$],...M,children:[x&&b.jsx(Se,{component:"span",...O("section"),mod:{position:"left"},children:x}),b.jsxs(Se,{...O("body"),mod:{"no-wrap":T},children:[b.jsx(Se,{component:"span",...O("label"),children:k}),b.jsx(Se,{component:"span",mod:{active:g},...O("description"),children:C})]}),(Y||w!==void 0)&&b.jsx(Se,{...O("section"),component:"span",mod:{rotate:B&&!_,position:"right"},children:Y?w!==void 0?w:b.jsx(tT,{...O("chevron")}):w})]}),Y&&b.jsx(mq,{in:B,...O("collapse"),children:b.jsx("div",{...O("children"),children:p})})]})});ST.classes=EW,ST.displayName="@mantine/core/NavLink";var SW={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const LIe={withCloseButton:!0},IIe=(e,{radius:r,color:n})=>({root:{"--notification-radius":r===void 0?void 0:bn(r),"--notification-color":n?Jo(n,e):void 0}}),V3=st((e,r)=>{const n=ze("Notification",LIe,e),{className:o,color:a,radius:i,loading:s,withCloseButton:l,withBorder:c,title:u,icon:d,children:h,onClose:p,closeButtonProps:g,classNames:y,style:x,styles:w,unstyled:k,variant:C,vars:_,mod:T,loaderProps:A,role:N,attributes:$,...R}=n,M=bt({name:"Notification",classes:SW,props:n,className:o,style:x,classNames:y,styles:w,unstyled:k,attributes:$,vars:_,varsResolver:IIe});return b.jsxs(Se,{...M("root"),mod:[{"data-with-icon":!!d||s,"data-with-border":c},T],ref:r,variant:C,role:N||"alert",...R,children:[d&&!s&&b.jsx("div",{...M("icon"),children:d}),s&&b.jsx(Pp,{size:28,color:a,...A,...M("loader")}),b.jsxs("div",{...M("body"),children:[u&&b.jsx("div",{...M("title"),children:u}),b.jsx(Se,{...M("description"),mod:{"data-with-title":!!u},children:h})]}),l&&b.jsx(Kd,{iconSize:16,color:"gray",...g,unstyled:k,onClick:p,...M("closeButton")})]})});V3.classes=SW,V3.displayName="@mantine/core/Notification";const zIe={duration:100,transition:"fade"};function CW(e,r){return{...zIe,...r,...e}}function jIe({offset:e,position:r,defaultOpened:n}){const[o,a]=E.useState(n),i=E.useRef(null),{x:s,y:l,elements:c,refs:u,update:d,placement:h}=x3({placement:r,middleware:[zC({crossAxis:!0,padding:5,rootBoundary:"document"})]}),p=h.includes("right")?e:r.includes("left")?e*-1:0,g=h.includes("bottom")?e:r.includes("top")?e*-1:0,y=E.useCallback(({clientX:x,clientY:w})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x,y:w,left:x+p,top:w+g,right:x,bottom:w}}})},[c.reference]);return E.useEffect(()=>{if(u.floating.current){const x=i.current;x.addEventListener("mousemove",y);const w=Wl(u.floating.current);return w.forEach(k=>{k.addEventListener("scroll",d)}),()=>{x.removeEventListener("mousemove",y),w.forEach(k=>{k.removeEventListener("scroll",d)})}}},[c.reference,u.floating.current,d,y,o]),{handleMouseMove:y,x:s,y:l,opened:o,setOpened:a,boundaryRef:i,floating:u.setFloating}}var q3={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const BIe={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Yw("popover")},FIe=(e,{radius:r,color:n})=>({tooltip:{"--tooltip-radius":r===void 0?void 0:bn(r),"--tooltip-bg":n?Jo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),CT=st((e,r)=>{const n=ze("TooltipFloating",BIe,e),{children:o,refProp:a,withinPortal:i,style:s,className:l,classNames:c,styles:u,unstyled:d,radius:h,color:p,label:g,offset:y,position:x,multiline:w,zIndex:k,disabled:C,defaultOpened:_,variant:T,vars:A,portalProps:N,attributes:$,...R}=n,M=ho(),O=bt({name:"TooltipFloating",props:n,classes:q3,className:l,style:s,classNames:c,styles:u,unstyled:d,attributes:$,rootSelector:"tooltip",vars:A,varsResolver:FIe}),{handleMouseMove:B,x:I,y:Y,opened:D,boundaryRef:V,floating:L,setOpened:U}=jIe({offset:y,position:x,defaultOpened:_});if(!Qi(o))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const q=Rr(V,Xw(o),r),X=o.props,F=Q=>{X.onMouseEnter?.(Q),B(Q),U(!0)},J=Q=>{X.onMouseLeave?.(Q),U(!1)};return b.jsxs(b.Fragment,{children:[b.jsx($p,{...N,withinPortal:i,children:b.jsx(Se,{...R,...O("tooltip",{style:{...kC(s,M),zIndex:k,display:!C&&D?"block":"none",top:(Y&&Math.round(Y))??"",left:(I&&Math.round(I))??""}}),variant:T,ref:L,mod:{multiline:w},children:g})}),E.cloneElement(o,{...X,[a]:q,onMouseEnter:F,onMouseLeave:J})]})});CT.classes=q3,CT.displayName="@mantine/core/TooltipFloating";const TW=E.createContext(!1),HIe=TW.Provider,UIe=()=>E.useContext(TW),VIe={openDelay:0,closeDelay:0};function Qd(e){const{openDelay:r,closeDelay:n,children:o}=ze("TooltipGroup",VIe,e);return b.jsx(HIe,{value:!0,children:b.jsx(aY,{delay:{open:r,close:n},children:o})})}Qd.displayName="@mantine/core/TooltipGroup",Qd.extend=e=>e;function qIe(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function YIe(e){const r=qIe(e.middlewares),n=[Wq(e.offset)];return r.shift&&n.push(zC(typeof r.shift=="boolean"?{padding:8}:{padding:8,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?b3():b3(r.flip)),n.push(Gq({element:e.arrowRef,padding:e.arrowOffset})),r.inline?n.push(typeof r.inline=="boolean"?O1():O1(r.inline)):e.inline&&n.push(O1()),n}function WIe(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=UIe(),i=Ta(),s=E.useCallback(T=>{n(T),T&&w(i)},[i]),{x:l,y:c,context:u,refs:d,placement:h,middlewareData:{arrow:{x:p,y:g}={}}}=x3({strategy:e.strategy,placement:e.position,open:o,onOpenChange:s,middleware:YIe(e),whileElementsMounted:m3}),{delay:y,currentId:x,setCurrentId:w}=iY(u,{id:i}),{getReferenceProps:k,getFloatingProps:C}=cY([nY(u,{enabled:e.events?.hover,delay:a?y:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),RDe(u,{enabled:e.events?.focus,visibleOnly:!0}),uY(u,{role:"tooltip"}),lY(u,{enabled:typeof e.opened>"u"})]);qd(()=>{e.onPositionChange?.(h)},[h]);const _=o&&x&&x!==i;return{x:l,y:c,arrowX:p,arrowY:g,reference:d.setReference,floating:d.setFloating,getFloatingProps:C,getReferenceProps:k,isGroupPhase:_,opened:o,placement:h}}const AW={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Yw("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},XIe=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:a,variant:o||"filled"});return{tooltip:{"--tooltip-radius":r===void 0?void 0:bn(r),"--tooltip-bg":n?i.background:void 0,"--tooltip-color":n?i.color:void 0}}},po=st((e,r)=>{const n=ze("Tooltip",AW,e),{children:o,position:a,refProp:i,label:s,openDelay:l,closeDelay:c,onPositionChange:u,opened:d,defaultOpened:h,withinPortal:p,radius:g,color:y,classNames:x,styles:w,unstyled:k,style:C,className:_,withArrow:T,arrowSize:A,arrowOffset:N,arrowRadius:$,arrowPosition:R,offset:M,transitionProps:O,multiline:B,events:I,zIndex:Y,disabled:D,positionDependencies:V,onClick:L,onMouseEnter:U,onMouseLeave:q,inline:X,variant:F,keepMounted:J,vars:Q,portalProps:z,mod:W,floatingStrategy:G,middlewares:Z,autoContrast:oe,attributes:ee,target:re,...he}=ze("Tooltip",AW,n),{dir:Ce}=du(),ce=E.useRef(null),de=WIe({position:NY(Ce,a),closeDelay:c,openDelay:l,onPositionChange:u,opened:d,defaultOpened:h,events:I,arrowRef:ce,arrowOffset:N,offset:typeof M=="number"?M+(T?A/2:0):M,positionDependencies:[...V,re??o],inline:X,strategy:G,middlewares:Z});E.useEffect(()=>{const Qe=re instanceof HTMLElement?re:typeof re=="string"?document.querySelector(re):re?.current||null;Qe&&de.reference(Qe)},[re,de]);const be=bt({name:"Tooltip",props:n,classes:q3,className:_,style:C,classNames:x,styles:w,unstyled:k,attributes:ee,rootSelector:"tooltip",vars:Q,varsResolver:XIe});if(!re&&!Qi(o))return null;if(re){const Qe=CW(O,{duration:100,transition:"fade"});return b.jsx(b.Fragment,{children:b.jsx($p,{...z,withinPortal:p,children:b.jsx(fu,{...Qe,keepMounted:J,mounted:!D&&!!de.opened,duration:de.isGroupPhase?10:Qe.duration,children:St=>b.jsxs(Se,{...he,"data-fixed":G==="fixed"||void 0,variant:F,mod:[{multiline:B},W],...de.getFloatingProps({ref:de.floating,className:be("tooltip").className,style:{...be("tooltip").style,...St,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[s,b.jsx(E3,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:A,arrowOffset:N,arrowRadius:$,arrowPosition:R,...be("arrow")})]})})})})}const De=o,Ge=De.props,Xe=Rr(de.reference,Xw(De),r),_t=CW(O,{duration:100,transition:"fade"});return b.jsxs(b.Fragment,{children:[b.jsx($p,{...z,withinPortal:p,children:b.jsx(fu,{..._t,keepMounted:J,mounted:!D&&!!de.opened,duration:de.isGroupPhase?10:_t.duration,children:Qe=>b.jsxs(Se,{...he,"data-fixed":G==="fixed"||void 0,variant:F,mod:[{multiline:B},W],...de.getFloatingProps({ref:de.floating,className:be("tooltip").className,style:{...be("tooltip").style,...Qe,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[s,b.jsx(E3,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:A,arrowOffset:N,arrowRadius:$,arrowPosition:R,...be("arrow")})]})})}),E.cloneElement(De,de.getReferenceProps({onClick:L,onMouseEnter:U,onMouseLeave:q,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:Ji(_,Ge.className),...Ge,[i]:Xe}))]})});po.classes=q3,po.displayName="@mantine/core/Tooltip",po.Floating=CT,po.Group=Qd;var NW={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const GIe={withItemsBorders:!0},KIe=(e,{radius:r,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":r===void 0?void 0:bn(r),"--sc-color":n?Jo(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":lr(a,"sc-padding"),"--sc-font-size":Ro(a)}}),U1=st((e,r)=>{const n=ze("SegmentedControl",GIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,data:u,value:d,defaultValue:h,onChange:p,size:g,name:y,disabled:x,readOnly:w,fullWidth:k,orientation:C,radius:_,color:T,transitionDuration:A,transitionTimingFunction:N,variant:$,autoContrast:R,withItemsBorders:M,mod:O,attributes:B,...I}=n,Y=bt({name:"SegmentedControl",props:n,classes:NW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:B,vars:c,varsResolver:KIe}),D=ho(),V=u.map(re=>typeof re=="string"?{label:re,value:re}:re),L=PPe(),[U,q]=E.useState(eC()),[X,F]=E.useState(null),[J,Q]=E.useState({}),z=(re,he)=>{J[he]=re,Q(J)},[W,G]=Vl({value:d,defaultValue:h,finalValue:Array.isArray(u)?V.find(re=>!re.disabled)?.value??u[0]?.value??null:null,onChange:p}),Z=Ta(y),oe=V.map(re=>E.createElement(Se,{...Y("control"),mod:{active:W===re.value,orientation:C},key:re.value},E.createElement("input",{...Y("input"),disabled:x||re.disabled,type:"radio",name:Z,value:re.value,id:`${Z}-${re.value}`,checked:W===re.value,onChange:()=>!w&&G(re.value),"data-focus-ring":D.focusRing,key:`${re.value}-input`}),E.createElement(Se,{component:"label",...Y("label"),mod:{active:W===re.value&&!(x||re.disabled),disabled:x||re.disabled,"read-only":w},htmlFor:`${Z}-${re.value}`,ref:he=>z(he,re.value),__vars:{"--sc-label-color":T!==void 0?pC({color:T,theme:D,autoContrast:R}):void 0},key:`${re.value}-label`},b.jsx("span",{...Y("innerLabel"),children:re.label})))),ee=Rr(r,re=>F(re));return kPe(()=>{q(eC())},[u.length]),u.length===0?null:b.jsxs(Se,{...Y("root"),variant:$,size:g,ref:ee,mod:[{"full-width":k,orientation:C,initialized:L,"with-items-borders":M},O],...I,role:"radiogroup","data-disabled":x,children:[typeof W=="string"&&b.jsx(P3,{target:J[W],parent:X,component:"span",transitionDuration:"var(--sc-transition-duration)",...Y("indicator")},U),oe]})});U1.classes=NW,U1.displayName="@mantine/core/SegmentedControl";const[ZIe,Y3]=ri("SliderProvider was not found in tree"),RW=E.forwardRef(({size:e,disabled:r,variant:n,color:o,thumbSize:a,radius:i,...s},l)=>{const{getStyles:c}=Y3();return b.jsx(Se,{tabIndex:-1,variant:n,size:e,ref:l,...c("root"),...s})});RW.displayName="@mantine/core/SliderRoot";const $W=E.forwardRef(({max:e,min:r,value:n,position:o,label:a,dragging:i,onMouseDown:s,onKeyDownCapture:l,labelTransitionProps:c,labelAlwaysOn:u,thumbLabel:d,onFocus:h,onBlur:p,showLabelOnHover:g,isHovered:y,children:x=null,disabled:w},k)=>{const{getStyles:C}=Y3(),[_,T]=E.useState(!1),A=u||i||_||g&&y;return b.jsxs(Se,{tabIndex:0,role:"slider","aria-label":d,"aria-valuemax":e,"aria-valuemin":r,"aria-valuenow":n,ref:k,__vars:{"--slider-thumb-offset":`${o}%`},...C("thumb",{focusable:!0}),mod:{dragging:i,disabled:w},onFocus:N=>{T(!0),typeof h=="function"&&h(N)},onBlur:N=>{T(!1),typeof p=="function"&&p(N)},onTouchStart:s,onMouseDown:s,onKeyDownCapture:l,onClick:N=>N.stopPropagation(),children:[x,b.jsx(fu,{mounted:a!=null&&!!A,transition:"fade",duration:0,...c,children:N=>b.jsx("div",{...C("label",{style:N}),children:a})})]})});$W.displayName="@mantine/core/SliderThumb";function PW({value:e,min:r,max:n}){const o=(e-r)/(n-r)*100;return Math.min(Math.max(o,0),100)}function QIe({mark:e,offset:r,value:n,inverted:o=!1}){return o?typeof r=="number"&&e.value<=r||e.value>=n:typeof r=="number"?e.value>=r&&e.value<=n:e.value<=n}function MW({marks:e,min:r,max:n,disabled:o,value:a,offset:i,inverted:s}){const{getStyles:l}=Y3();if(!e)return null;const c=e.map((u,d)=>E.createElement(Se,{...l("markWrapper"),__vars:{"--mark-offset":`${PW({value:u.value,min:r,max:n})}%`},key:d},b.jsx(Se,{...l("mark"),mod:{filled:QIe({mark:u,value:a,offset:i,inverted:s}),disabled:o}}),u.label&&b.jsx("div",{...l("markLabel"),children:u.label})));return b.jsx("div",{children:c})}MW.displayName="@mantine/core/SliderMarks";function OW({filled:e,children:r,offset:n,disabled:o,marksOffset:a,inverted:i,containerProps:s,...l}){const{getStyles:c}=Y3();return b.jsx(Se,{...c("trackContainer"),mod:{disabled:o},...s,children:b.jsxs(Se,{...c("track"),mod:{inverted:i,disabled:o},children:[b.jsx(Se,{mod:{inverted:i,disabled:o},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...c("bar")}),r,b.jsx(MW,{...l,offset:a,disabled:o,inverted:i})]})})}OW.displayName="@mantine/core/SliderTrack";function JIe({value:e,containerWidth:r,min:n,max:o,step:a,precision:i}){const s=(r?Math.min(Math.max(e,0),r)/r:e)*(o-n),l=(s!==0?Math.round(s/a)*a:0)+n,c=Math.max(l,n);return i!==void 0?Number(c.toFixed(i)):c}function W3(e,r){return parseFloat(e.toFixed(r))}function eze(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function TT(e,r){const n=[...r].sort((o,a)=>o.value-a.value).find(o=>o.value>e);return n?n.value:e}function AT(e,r){const n=[...r].sort((o,a)=>a.value-o.value).find(o=>o.valuen.value-o.value);return r.length>0?r[0].value:0}function LW(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[r.length-1].value:100}var IW={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const tze={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},thumbLabel:"",showLabelOnHover:!0,scale:e=>e,size:"md"},rze=(e,{size:r,color:n,thumbSize:o,radius:a})=>({root:{"--slider-size":lr(r,"slider-size"),"--slider-color":n?Jo(n,e):void 0,"--slider-radius":a===void 0?void 0:bn(a),"--slider-thumb-size":o!==void 0?Ne(o):"calc(var(--slider-size) * 2)"}}),NT=st((e,r)=>{const n=ze("Slider",tze,e),{classNames:o,styles:a,value:i,onChange:s,onChangeEnd:l,size:c,min:u,max:d,domain:h,step:p,precision:g,defaultValue:y,name:x,marks:w,label:k,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:A,thumbChildren:N,disabled:$,unstyled:R,scale:M,inverted:O,className:B,style:I,vars:Y,hiddenInputProps:D,restrictToMarks:V,thumbProps:L,attributes:U,...q}=n,X=bt({name:"Slider",props:n,classes:IW,classNames:o,className:B,styles:a,style:I,attributes:U,vars:Y,varsResolver:rze,unstyled:R}),{dir:F}=du(),[J,Q]=E.useState(!1),[z,W]=Vl({value:typeof i=="number"?lu(i,u,d):i,defaultValue:typeof y=="number"?lu(y,u,d):y,finalValue:lu(0,u,d),onChange:s}),G=E.useRef(z),Z=E.useRef(l);E.useEffect(()=>{Z.current=l},[l]);const oe=E.useRef(null),ee=E.useRef(null),[re,he]=h||[u,d],Ce=PW({value:z,min:re,max:he}),ce=M(z),de=typeof k=="function"?k(ce):k,be=g??eze(p),De=E.useCallback(({x:Ke})=>{if(!$){const We=JIe({value:Ke,min:re,max:he,step:p,precision:be}),lt=lu(We,u,d);W(V&&w?.length?XV(lt,w.map(Et=>Et.value)):lt),G.current=lt}},[$,u,d,re,he,p,be,W,w,V]),Ge=E.useCallback(()=>{if(!$&&Z.current){const Ke=V&&w?.length?XV(G.current,w.map(We=>We.value)):G.current;Z.current(Ke)}},[$,w,V]),{ref:Xe,active:_t}=BV(De,{onScrubEnd:Ge},F),Qe=E.useCallback(Ke=>{!$&&Z.current&&Z.current(Ke)},[$]),St=Ke=>{if(!$)switch(Ke.key){case"ArrowUp":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=TT(z,w);W(lt),Qe(lt);break}const We=W3(Math.min(Math.max(z+p,u),d),be);W(We),Qe(We);break}case"ArrowRight":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=F==="rtl"?AT(z,w):TT(z,w);W(lt),Qe(lt);break}const We=W3(Math.min(Math.max(F==="rtl"?z-p:z+p,u),d),be);W(We),Qe(We);break}case"ArrowDown":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=AT(z,w);W(lt),Qe(lt);break}const We=W3(Math.min(Math.max(z-p,u),d),be);W(We),Qe(We);break}case"ArrowLeft":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){const lt=F==="rtl"?TT(z,w):AT(z,w);W(lt),Qe(lt);break}const We=W3(Math.min(Math.max(F==="rtl"?z+p:z-p,u),d),be);W(We),Qe(We);break}case"Home":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){W(DW(w)),Qe(DW(w));break}W(u),Qe(u);break}case"End":{if(Ke.preventDefault(),ee.current?.focus(),V&&w){W(LW(w)),Qe(LW(w));break}W(d),Qe(d);break}}};return b.jsx(ZIe,{value:{getStyles:X},children:b.jsxs(RW,{...q,ref:Rr(r,oe),onKeyDownCapture:St,onMouseDownCapture:()=>oe.current?.focus(),size:c,disabled:$,children:[b.jsx(OW,{inverted:O,offset:0,filled:Ce,marks:w,min:re,max:he,value:ce,disabled:$,containerProps:{ref:Xe,onMouseEnter:A?()=>Q(!0):void 0,onMouseLeave:A?()=>Q(!1):void 0},children:b.jsx($W,{max:he,min:re,value:ce,position:Ce,dragging:_t,label:de,ref:ee,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:A,isHovered:J,disabled:$,...L,children:N})}),b.jsx("input",{type:"hidden",name:x,value:ce,...D})]})})});NT.classes=IW,NT.displayName="@mantine/core/Slider";const RT=st((e,r)=>{const{w:n,h:o,miw:a,mih:i,...s}=ze("Space",null,e);return b.jsx(Se,{ref:r,...s,w:n,miw:a??n,h:o,mih:i??o})});RT.displayName="@mantine/core/Space";var zW={root:"m_6d731127"};const nze={gap:"md",align:"stretch",justify:"flex-start"},oze=(e,{gap:r,align:n,justify:o})=>({root:{"--stack-gap":Ul(r),"--stack-align":n,"--stack-justify":o}}),ra=st((e,r)=>{const n=ze("Stack",nze,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,align:u,justify:d,gap:h,variant:p,attributes:g,...y}=n,x=bt({name:"Stack",props:n,classes:zW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:oze});return b.jsx(Se,{ref:r,...x("root"),variant:p,...y})});ra.classes=zW,ra.displayName="@mantine/core/Stack";const[aze,$T]=ri("Tabs component was not found in the tree");var V1={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const q1=st((e,r)=>{const n=ze("TabsList",null,e),{children:o,className:a,grow:i,justify:s,classNames:l,styles:c,style:u,mod:d,...h}=n,p=$T();return b.jsx(Se,{...h,...p.getStyles("list",{className:a,style:u,classNames:l,styles:c,props:n,variant:p.variant}),ref:r,role:"tablist",variant:p.variant,mod:[{grow:i,orientation:p.orientation,placement:p.orientation==="vertical"&&p.placement,inverted:p.inverted},d],"aria-orientation":p.orientation,__vars:{"--tabs-justify":s},children:o})});q1.classes=V1,q1.displayName="@mantine/core/TabsList";const Zl=st((e,r)=>{const n=ze("TabsPanel",null,e),{children:o,className:a,value:i,classNames:s,styles:l,style:c,mod:u,keepMounted:d,...h}=n,p=$T(),g=p.value===i,y=p.keepMounted||d||g?o:null;return b.jsx(Se,{...p.getStyles("panel",{className:a,classNames:s,styles:l,style:[c,g?void 0:{display:"none"}],props:n}),ref:r,mod:[{orientation:p.orientation},u],role:"tabpanel",id:p.getPanelId(i),"aria-labelledby":p.getTabId(i),...h,children:y})});Zl.classes=V1,Zl.displayName="@mantine/core/TabsPanel";const jp=st((e,r)=>{const n=ze("TabsTab",null,e),{className:o,children:a,rightSection:i,leftSection:s,value:l,onClick:c,onKeyDown:u,disabled:d,color:h,style:p,classNames:g,styles:y,vars:x,mod:w,tabIndex:k,...C}=n,_=ho(),{dir:T}=du(),A=$T(),N=l===A.value,$=M=>{A.onChange(A.allowTabDeactivation&&l===A.value?null:l),c?.(M)},R={classNames:g,styles:y,props:n};return b.jsxs(Pr,{...C,...A.getStyles("tab",{className:o,style:p,variant:A.variant,...R}),disabled:d,unstyled:A.unstyled,variant:A.variant,mod:[{active:N,disabled:d,orientation:A.orientation,inverted:A.inverted,placement:A.orientation==="vertical"&&A.placement},w],ref:r,role:"tab",id:A.getTabId(l),"aria-selected":N,tabIndex:k!==void 0?k:N||A.value===null?0:-1,"aria-controls":A.getPanelId(l),onClick:$,__vars:{"--tabs-color":h?Jo(h,_):void 0},onKeyDown:T1({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:A.activateTabWithKeyboard,loop:A.loop,orientation:A.orientation||"horizontal",dir:T,onKeyDown:u}),children:[s&&b.jsx("span",{...A.getStyles("tabSection",R),"data-position":"left",children:s}),a&&b.jsx("span",{...A.getStyles("tabLabel",R),children:a}),i&&b.jsx("span",{...A.getStyles("tabSection",R),"data-position":"right",children:i})]})});jp.classes=V1,jp.displayName="@mantine/core/TabsTab";const jW="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",ize={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},sze=(e,{radius:r,color:n,autoContrast:o})=>({root:{"--tabs-radius":bn(r),"--tabs-color":Jo(n,e),"--tabs-text-color":EMe(o,e)?pC({color:n,theme:e,autoContrast:o}):void 0}}),Jd=st((e,r)=>{const n=ze("Tabs",ize,e),{defaultValue:o,value:a,onChange:i,orientation:s,children:l,loop:c,id:u,activateTabWithKeyboard:d,allowTabDeactivation:h,variant:p,color:g,radius:y,inverted:x,placement:w,keepMounted:k,classNames:C,styles:_,unstyled:T,className:A,style:N,vars:$,autoContrast:R,mod:M,attributes:O,...B}=n,I=Ta(u),[Y,D]=Vl({value:a,defaultValue:o,finalValue:null,onChange:i}),V=bt({name:"Tabs",props:n,classes:V1,className:A,style:N,classNames:C,styles:_,unstyled:T,attributes:O,vars:$,varsResolver:sze});return b.jsx(aze,{value:{placement:w,value:Y,orientation:s,id:I,loop:c,activateTabWithKeyboard:d,getTabId:TV(`${I}-tab`,jW),getPanelId:TV(`${I}-panel`,jW),onChange:D,allowTabDeactivation:h,variant:p,color:g,radius:y,inverted:x,keepMounted:k,unstyled:T,getStyles:V},children:b.jsx(Se,{ref:r,id:I,variant:p,mod:[{orientation:s,inverted:s==="horizontal"&&x,placement:s==="vertical"&&w},M],...V("root"),...B,children:l})})});Jd.classes=V1,Jd.displayName="@mantine/core/Tabs",Jd.Tab=jp,Jd.Panel=Zl,Jd.List=q1;var BW={root:"m_7341320d"};const lze=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:s})=>{const l=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:s});return{root:{"--ti-size":lr(r,"ti-size"),"--ti-radius":n===void 0?void 0:bn(n),"--ti-bg":i||o?l.background:void 0,"--ti-color":i||o?l.color:void 0,"--ti-bd":i||o?l.border:void 0}}},ci=st((e,r)=>{const n=ze("ThemeIcon",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,autoContrast:u,attributes:d,...h}=n,p=bt({name:"ThemeIcon",classes:BW,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:d,vars:c,varsResolver:lze});return b.jsx(Se,{ref:r,...p("root"),...h})});ci.classes=BW,ci.displayName="@mantine/core/ThemeIcon";const cze=["h1","h2","h3","h4","h5","h6"],uze=["xs","sm","md","lg","xl"];function dze(e,r){const n=r!==void 0?r:`h${e}`;return cze.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:uze.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:Ne(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var FW={root:"m_8a5d1357"};const hze={order:1},fze=(e,{order:r,size:n,lineClamp:o,textWrap:a})=>{const i=dze(r||1,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":a}}},eh=st((e,r)=>{const n=ze("Title",hze,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,order:c,vars:u,size:d,variant:h,lineClamp:p,textWrap:g,mod:y,attributes:x,...w}=n,k=bt({name:"Title",props:n,classes:FW,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:x,vars:u,varsResolver:fze});return[1,2,3,4,5,6].includes(c)?b.jsx(Se,{...k("root"),component:`h${c}`,variant:h,ref:r,mod:[{order:c,"data-line-clamp":typeof p=="number"},y],size:d,...w}):null});eh.classes=FW,eh.displayName="@mantine/core/Title";function HW(e,r,n){if(!e||!r)return[];const o=n.indexOf(e),a=n.indexOf(r),i=Math.min(o,a),s=Math.max(o,a);return n.slice(i,s+1)}function PT({node:e,getStyles:r,rootIndex:n,controller:o,expandOnClick:a,selectOnClick:i,isSubtree:s,level:l=1,renderNode:c,flatValues:u,allowRangeSelection:d,expandOnSpace:h,checkOnSpace:p}){const g=E.useRef(null),y=(e.children||[]).map(_=>b.jsx(PT,{node:_,flatValues:u,getStyles:r,rootIndex:void 0,level:l+1,controller:o,expandOnClick:a,isSubtree:!0,renderNode:c,selectOnClick:i,allowRangeSelection:d,expandOnSpace:h,checkOnSpace:p},_.value)),x=_=>{if(_.nativeEvent.code==="ArrowRight"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]?_.currentTarget.querySelector("[role=treeitem]")?.focus():o.expand(e.value)),_.nativeEvent.code==="ArrowLeft"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]&&(e.children||[]).length>0?o.collapse(e.value):s&&bp(_.currentTarget,"[role=treeitem]")?.focus()),_.nativeEvent.code==="ArrowDown"||_.nativeEvent.code==="ArrowUp"){const T=bp(_.currentTarget,"[data-tree-root]");if(!T)return;_.stopPropagation(),_.preventDefault();const A=Array.from(T.querySelectorAll("[role=treeitem]")),N=A.indexOf(_.currentTarget);if(N===-1)return;const $=_.nativeEvent.code==="ArrowDown"?N+1:N-1;if(A[$]?.focus(),_.shiftKey){const R=A[$];R&&o.setSelectedState(HW(o.anchorNode,R.dataset.value,u))}}_.nativeEvent.code==="Space"&&(h&&(_.stopPropagation(),_.preventDefault(),o.toggleExpanded(e.value)),p&&(_.stopPropagation(),_.preventDefault(),o.isNodeChecked(e.value)?o.uncheckNode(e.value):o.checkNode(e.value)))},w=_=>{_.stopPropagation(),d&&_.shiftKey&&o.anchorNode?(o.setSelectedState(HW(o.anchorNode,e.value,u)),g.current?.focus()):(a&&o.toggleExpanded(e.value),i&&o.select(e.value),g.current?.focus())},k=o.selectedState.includes(e.value),C={...r("label"),onClick:w,"data-selected":k||void 0,"data-value":e.value,"data-hovered":o.hoveredNode===e.value||void 0};return b.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${l-1})`}}),role:"treeitem","aria-selected":k,"data-value":e.value,"data-selected":k||void 0,"data-hovered":o.hoveredNode===e.value||void 0,"data-level":l,tabIndex:n===0?0:-1,onKeyDown:x,ref:g,onMouseOver:_=>{_.stopPropagation(),o.setHoveredNode(e.value)},onMouseLeave:_=>{_.stopPropagation(),o.setHoveredNode(null)},children:[typeof c=="function"?c({node:e,level:l,selected:k,tree:o,expanded:o.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:C}):b.jsx("div",{...C,children:e.label}),o.expandedState[e.value]&&y.length>0&&b.jsx(Se,{component:"ul",role:"group",...r("subtree"),"data-level":l,children:y})]})}PT.displayName="@mantine/core/TreeNode";function X3(e,r,n=[]){const o=[];for(const a of e)if(Array.isArray(a.children)&&a.children.length>0){const i=X3(a.children,r,n);if(i.currentTreeChecked.length===a.children.length){const s=i.currentTreeChecked.every(c=>c.checked),l={checked:s,indeterminate:!s,value:a.value,hasChildren:!0};o.push(l),n.push(l)}else if(i.currentTreeChecked.length>0){const s={checked:!1,indeterminate:!0,value:a.value,hasChildren:!0};o.push(s),n.push(s)}}else if(r.includes(a.value)){const i={checked:!0,indeterminate:!1,value:a.value,hasChildren:!1};o.push(i),n.push(i)}return{result:n,currentTreeChecked:o}}function UW(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const o=UW(e,n.children);if(o)return o}}return null}function G3(e,r,n=[]){const o=UW(e,r);return o?!Array.isArray(o.children)||o.children.length===0?[o.value]:(o.children.forEach(a=>{Array.isArray(a.children)&&a.children.length>0?G3(a.value,r,n):n.push(a.value)}),n):n}function VW(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...VW(n.children)):r.push(n.value),r),[])}function pze(e,r,n){return n.length===0?!1:n.includes(e)?!0:X3(r,n).result.some(o=>o.value===e&&o.checked)}const mze=WV(pze);function gze(e,r,n){return n.length===0?!1:X3(r,n).result.some(o=>o.value===e&&o.indeterminate)}const yze=WV(gze);function qW(e,r,n,o={}){return r.forEach(a=>{o[a.value]=a.value in e?e[a.value]:a.value===n,Array.isArray(a.children)&&qW(e,a.children,n,o)}),o}function bze(e,r){const n=[];return e.forEach(o=>n.push(...G3(o,r))),Array.from(new Set(n))}function Y1({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:o=!1,onNodeCollapse:a,onNodeExpand:i}={}){const[s,l]=E.useState([]),[c,u]=E.useState(n),[d,h]=E.useState(e),[p,g]=E.useState(r),[y,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(L=>{u(U=>qW(U,L,d)),g(U=>bze(U,L)),l(L)},[d,p]),_=E.useCallback(L=>{u(U=>{const q={...U,[L]:!U[L]};return q[L]?i?.(L):a?.(L),q})},[a,i]),T=E.useCallback(L=>{u(U=>(U[L]!==!1&&a?.(L),{...U,[L]:!1}))},[a]),A=E.useCallback(L=>{u(U=>(U[L]!==!0&&i?.(L),{...U,[L]:!0}))},[i]),N=E.useCallback(()=>{u(L=>{const U={...L};return Object.keys(U).forEach(q=>{U[q]=!0}),U})},[]),$=E.useCallback(()=>{u(L=>{const U={...L};return Object.keys(U).forEach(q=>{U[q]=!1}),U})},[]),R=E.useCallback(L=>h(U=>o?U.includes(L)?(x(null),U.filter(q=>q!==L)):(x(L),[...U,L]):U.includes(L)?(x(null),[]):(x(L),[L])),[]),M=E.useCallback(L=>{x(L),h(U=>o?U.includes(L)?U:[...U,L]:[L])},[]),O=E.useCallback(L=>{y===L&&x(null),h(U=>U.filter(q=>q!==L))},[]),B=E.useCallback(()=>{h([]),x(null)},[]),I=E.useCallback(L=>{const U=G3(L,s);g(q=>Array.from(new Set([...q,...U])))},[s]),Y=E.useCallback(L=>{const U=G3(L,s);g(q=>q.filter(X=>!U.includes(X)))},[s]),D=E.useCallback(()=>{g(()=>VW(s))},[s]),V=E.useCallback(()=>{g([])},[]);return{multiple:o,expandedState:c,selectedState:d,checkedState:p,anchorNode:y,initialize:C,toggleExpanded:_,collapse:T,expand:A,expandAllNodes:N,collapseAllNodes:$,setExpandedState:u,checkNode:I,uncheckNode:Y,checkAllNodes:D,uncheckAllNodes:V,setCheckedState:g,toggleSelected:R,select:M,deselect:O,clearSelected:B,setSelectedState:h,hoveredNode:w,setHoveredNode:k,getCheckedNodes:()=>X3(s,p).result,isNodeChecked:L=>mze(L,s,p),isNodeIndeterminate:L=>yze(L,s,p)}}var YW={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function WW(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...WW(n.children)),r),[])}const vze={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},xze=(e,{levelOffset:r})=>({root:{"--level-offset":Ul(r)}}),Bp=st((e,r)=>{const n=ze("Tree",vze,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,data:u,expandOnClick:d,tree:h,renderNode:p,selectOnClick:g,clearSelectionOnOutsideClick:y,allowRangeSelection:x,expandOnSpace:w,levelOffset:k,checkOnSpace:C,attributes:_,...T}=n,A=Y1(),N=h||A,$=bt({name:"Tree",classes:YW,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:_,vars:c,varsResolver:xze}),R=$V(()=>y&&N.clearSelected()),M=Rr(r,R),O=E.useMemo(()=>WW(u),[u]);E.useEffect(()=>{N.initialize(u)},[u]);const B=u.map((I,Y)=>b.jsx(PT,{node:I,getStyles:$,rootIndex:Y,expandOnClick:d,selectOnClick:g,controller:N,renderNode:p,flatValues:O,allowRangeSelection:x,expandOnSpace:w,checkOnSpace:C},I.value));return b.jsx(Se,{component:"ul",ref:M,...$("root"),...T,role:"tree","aria-multiselectable":N.multiple,"data-tree-root":!0,children:B})});Bp.displayName="@mantine/core/Tree",Bp.classes=YW;const MT=E.createContext(null);function XW(){const e=E.useContext(MT);if(!e)throw new Error("useRootContainer must be used within a RootContainer");return e}function wze(){return XW().ref}function kze(){return XW().ref.current}const GW=E.createContext(null);function _ze(){const e=E.useContext(GW);return e===null&&console.warn("ReduceGraphicsMode is not provided"),e??!1}const[Eze,Sze]=ri("PanningAtomSafeCtx is not provided");function Cze({id:e,className:r,reduceGraphics:n=!1,children:o}){const[a,i]=E.useState(!1),s=E.useRef(null),l=E.useRef(null);l.current||(l.current=s$e(!1)),QS(()=>{i(!0)},[]),E.useEffect(()=>l.current?.subscribe(u=>{s.current?.setAttribute("data-likec4-diagram-panning",u?"true":"false")}),[]);const c=E.useMemo(()=>({id:e,ref:s}),[e,s]);return b.jsx(Eze,{value:l.current,children:b.jsx(GW.Provider,{value:n,children:b.jsx("div",{id:e,className:Je("likec4-root",r),ref:s,...n&&{"data-likec4-reduced-graphics":!0},children:a&&!!c.ref.current&&b.jsx(MT.Provider,{value:c,children:o})})})})}const W1=E.createContext(null),OT=E.createContext(null);function Tze({children:e}){return E.useContext(OT)?b.jsx(b.Fragment,{children:e}):null}function Aze(){return E.useContext(W1)}function Ho(){const e=E.useContext(W1);if(!e)throw new Error("LikeC4Model not found. Make sure you have LikeC4ModelProvider.");return e}function Nze(){const e=Ho(),[r,n]=E.useState(e.$data.specification);return E.useEffect(()=>{n(o=>ut(o,e.$data.specification)?o:e.$data.specification)},[e]),r}const KW=E.createContext({}),Rze=["yellow","orange","amber","tomato","red","ruby","crimson","pink","pink","purple","violet","indigo","blue","teal","grass","lime"],$ze=e=>{const r=e.color;if(nB(e))return` + --colors-likec4-tag-bg: ${r}; + --colors-likec4-tag-bg-hover: color-mix(in srgb, ${r}, var(--colors-likec4-mix-color) 20%); + `;if(!Rze.includes(r))return"";let n="12";return["mint","grass","lime","yellow","amber"].includes(r)&&(n="dark-2"),` + --colors-likec4-tag-border: var(--colors-${r}-8); + --colors-likec4-tag-bg: var(--colors-${r}-9); + --colors-likec4-tag-bg-hover: var(--colors-${r}-10); + --colors-likec4-tag-text: var(--colors-${r}-${n}); + `};function Pze(e,r){return!e||iu(e)?"":yn(B6(e),ERe(([n,o])=>[`:is(${r} [data-likec4-tag="${n}"]) {`,$ze(o),"}"]),oV(` +`))}function Mze({children:e,rootSelector:r}){const n=Nze().tags,o=Pze(n,r);return b.jsxs(KW.Provider,{value:n,children:[o!==""&&b.jsx(Oze,{stylesheet:o}),e]})}const Oze=E.memo(({stylesheet:e})=>{const r=Yd()?.();return b.jsx("style",{"data-likec4-tags":!0,type:"text/css",dangerouslySetInnerHTML:{__html:e},nonce:r})});function Dze(e){return E.useContext(KW)[e]??{color:"tomato"}}function ZW(){return Ta().replace("mantine-","likec4-")}var Lze="css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,bgLinear,bgRadial,bgConic,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,boxSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,backgroundLinear,backgroundRadial,backgroundConic,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderBlockStartWidth,borderBlockEndWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,cursor,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,textStyle,layerStyle,animationStyle",Ize=Lze.split(","),zze="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",jze=zze.split(",").concat(Ize),Bze=new Map(jze.map(e=>[e,!0])),Fze=/&|@/,QW=co(e=>Bze.has(e)||e.startsWith("--")||Fze.test(e));const Hze=(e,r)=>!r.includes(e)&&!QW(e),Uze=(e,r)=>e.__shouldForwardProps__&&r?n=>e.__shouldForwardProps__(n)&&r(n):r,Vze=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;if(e.__cva__&&r.__cva__||e.__recipe__&&r.__recipe__)return e.merge(r);const n=new TypeError("Cannot merge cva with recipe. Please use either cva or recipe.");throw TypeError.captureStackTrace?.(n),n},qze=e=>typeof e=="string"?e:e?.displayName||e?.name||"Component";function DT(e,r={},n={}){const o=r.__cva__||r.__recipe__?r:J0(r),a=n.shouldForwardProp||Hze,i=p=>n.forwardProps?.includes(p)?!0:a(p,o.variantKeys),s=Object.assign(n.dataAttr&&r.__name__?{"data-recipe":r.__name__}:{},n.defaultProps),l=Vze(e.__cva__,o),c=Uze(e,i),u=e.__base__||e,d=E.forwardRef(function(p,g){const{as:y=u,unstyled:x,children:w,...k}=p,C=E.useMemo(()=>Object.assign({},s,k),[k]),[_,T,A,N,$]=E.useMemo(()=>Yn(C,GS.keys,c,l.variantKeys,QW),[C]);function R(){const{css:B,...I}=N,Y=l.__getCompoundVariantCss__?.(A);return Je(l(A,!1),ye(Y,I,B),C.className)}function M(){const{css:B,...I}=N,Y=l.raw(A);return Je(ye(Y,I,B),C.className)}const O=()=>{if(x){const{css:B,...I}=N;return Je(ye(I,B),C.className)}return r.__recipe__?R():M()};return E.createElement(y,{ref:g,...T,...$,...GS(_),className:O()},w??C.children)}),h=qze(u);return d.displayName=`styled.${h}`,d.__cva__=l,d.__base__=u,d.__shouldForwardProps__=i,d}function Yze(){const e=new Map;return new Proxy(DT,{apply(r,n,o){return DT(...o)},get(r,n){return e.has(n)||e.set(n,DT(n)),e.get(n)}})}const Ql=Yze(),JW={transform(e){return e}},Wze=(e={})=>{const r=Q0(JW,e);return JW.transform(r,Z0)},Vr=E.forwardRef(function(e,r){const[n,o]=Yn(e,[]),a=Wze(n),i={ref:r,...a,...o};return E.createElement(Ql.div,i)}),eX={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"column",...o}},defaultValues:{alignItems:"stretch",gap:"sm"}},LT=(e={})=>{const r=Q0(eX,e);return eX.transform(r,Z0)},X1=e=>ye(LT(e));X1.raw=LT;const Fp=E.forwardRef(function(e,r){const[n,o]=Yn(e,["justify","gap"]),a=LT(n),i={ref:r,...a,...o};return E.createElement(Ql.div,i)}),tX={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"row",...o}},defaultValues:{gap:"sm"}},IT=(e={})=>{const r=Q0(tX,e);return tX.transform(r,Z0)},Uo=e=>ye(IT(e));Uo.raw=IT;const xn=E.forwardRef(function(e,r){const[n,o]=Yn(e,["justify","gap"]),a=IT(n),i={ref:r,...a,...o};return E.createElement(Ql.div,i)}),rX={transform(e){return{position:"relative",maxWidth:"8xl",mx:"auto",px:{base:"4",md:"6",lg:"8"},...e}}},nX=(e={})=>{const r=Q0(rX,e);return rX.transform(r,Z0)},oX=e=>ye(nX(e));oX.raw=nX;const aX={transform(e,{map:r,isCssUnit:n,isCssVar:o}){const{inline:a,block:i,...s}=e,l=c=>n(c)||o(c)?c:`token(spacing.${c}, ${c})`;return{"--bleed-x":r(a,l),"--bleed-y":r(i,l),marginInline:"calc(var(--bleed-x, 0) * -1)",marginBlock:"calc(var(--bleed-y, 0) * -1)",...s}},defaultValues:{inline:"0",block:"0"}},iX=(e={})=>{const r=Q0(aX,e);return aX.transform(r,Z0)},sX=e=>ye(iX(e));sX.raw=iX;const Xze=E.createContext(null),zT={didCatch:!1,error:null};let jT=class extends E.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=zT}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var r,n,o=arguments.length,a=new Array(o),i=0;i0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==r.length||e.some((n,o)=>!Object.is(n,r[o]))}/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Kze=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],Hp=yt("outline","x","X",Kze);function BT({error:e,resetErrorBoundary:r}){const n=e instanceof Error?e.message:"Unknown error";return b.jsx(Vr,{css:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",padding:"0",backdropFilter:"blur(5px)",backgroundColor:{_dark:"[rgb(34 34 34 / 10%)]",_light:"[rgb(15 15 15/ 20%)]"},zIndex:1e3},children:b.jsxs(V3,{icon:b.jsx(Hp,{style:{width:16,height:16}}),styles:{icon:{alignSelf:"flex-start"}},color:"red",title:"Oops, something went wrong",p:"xl",withCloseButton:!1,children:[b.jsx(ta,{maw:"100%",mah:400,children:b.jsx(j3,{block:!0,children:n})}),b.jsx(Ur,{gap:"xs",mt:"xl",children:b.jsx(Zn,{color:"gray",size:"xs",variant:"light",onClick:()=>r(),children:"Reset"})})]})})}function lX(e){return b.jsx(jT,{FallbackComponent:BT,onError:(r,n)=>{console.error(r,n)},...e})}function Zze(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Qze(){const e=Zze();if(e.__xstate__)return e.__xstate__}const Jze=e=>{if(typeof window>"u")return;const r=Qze();r&&r.register(e)};class cX{constructor(r){this._process=r,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(r){const n={value:r,next:null};if(this._current){this._last.next=n,this._last=n;return}this._current=n,this._last=n,this._active&&this.flush()}flush(){for(;this._current;){const r=this._current;this._process(r.value),this._current=r.next}this._last=null}}const uX=".",eje="",dX="",tje="#",rje="*",hX="xstate.init",nje="xstate.error",G1="xstate.stop";function oje(e,r){return{type:`xstate.after.${e}.${r}`}}function FT(e,r){return{type:`xstate.done.state.${e}`,output:r}}function aje(e,r){return{type:`xstate.done.actor.${e}`,output:r,actorId:e}}function fX(e,r){return{type:`xstate.error.actor.${e}`,error:r,actorId:e}}function pX(e){return{type:hX,input:e}}function al(e){setTimeout(()=>{throw e})}const ije=typeof Symbol=="function"&&Symbol.observable||"@@observable";function mX(e,r){const n=gX(e),o=gX(r);return typeof o=="string"?typeof n=="string"?o===n:!1:typeof n=="string"?n in o:Object.keys(n).every(a=>a in o?mX(n[a],o[a]):!1)}function HT(e){if(vX(e))return e;const r=[];let n="";for(let o=0;otypeof r>"u"||typeof r=="string"?{target:r}:r)}function xX(e){if(!(e===void 0||e===eje))return Jl(e)}function K3(e,r,n){const o=typeof e=="object",a=o?e:void 0;return{next:(o?e.next:e)?.bind(a),error:(o?e.error:r)?.bind(a),complete:(o?e.complete:n)?.bind(a)}}function wX(e,r){return`${r}.${e}`}function VT(e,r){const n=r.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return e.implementations.actors[r];const[,o,a]=n,i=e.getStateNodeById(a).config.invoke;return(Array.isArray(i)?i[o]:i).src}function kX(e,r){return`${e.sessionId}.${r}`}let cje=0;function uje(e,r){const n=new Map,o=new Map,a=new WeakMap,i=new Set,s={},{clock:l,logger:c}=r,u={schedule:(p,g,y,x,w=Math.random().toString(36).slice(2))=>{const k={source:p,target:g,event:y,delay:x,id:w,startedAt:Date.now()},C=kX(p,w);h._snapshot._scheduledEvents[C]=k;const _=l.setTimeout(()=>{delete s[C],delete h._snapshot._scheduledEvents[C],h._relay(p,g,y)},x);s[C]=_},cancel:(p,g)=>{const y=kX(p,g),x=s[y];delete s[y],delete h._snapshot._scheduledEvents[y],x!==void 0&&l.clearTimeout(x)},cancelAll:p=>{for(const g in h._snapshot._scheduledEvents){const y=h._snapshot._scheduledEvents[g];y.source===p&&u.cancel(p,y.id)}}},d=p=>{if(!i.size)return;const g={...p,rootId:e.sessionId};i.forEach(y=>y.next?.(g))},h={_snapshot:{_scheduledEvents:(r?.snapshot&&r.snapshot.scheduler)??{}},_bookId:()=>`x:${cje++}`,_register:(p,g)=>(n.set(p,g),p),_unregister:p=>{n.delete(p.sessionId);const g=a.get(p);g!==void 0&&(o.delete(g),a.delete(p))},get:p=>o.get(p),_set:(p,g)=>{const y=o.get(p);if(y&&y!==g)throw new Error(`Actor with system ID '${p}' already exists.`);o.set(p,g),a.set(g,p)},inspect:p=>{const g=K3(p);return i.add(g),{unsubscribe(){i.delete(g)}}},_sendInspectionEvent:d,_relay:(p,g,y)=>{h._sendInspectionEvent({type:"@xstate.event",sourceRef:p,actorRef:g,event:y}),g._send(y)},scheduler:u,getSnapshot:()=>({_scheduledEvents:{...h._snapshot._scheduledEvents}}),start:()=>{const p=h._snapshot._scheduledEvents;h._snapshot._scheduledEvents={};for(const g in p){const{source:y,target:x,event:w,delay:k,id:C}=p[g];u.schedule(y,x,w,k,C)}},_clock:l,_logger:c};return h}let qT=!1;const YT=1;let na=(function(e){return e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped",e})({});const dje={clock:{setTimeout:(e,r)=>setTimeout(e,r),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class hje{constructor(r,n){this.logic=r,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new cX(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=na.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this._systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const o={...dje,...n},{clock:a,logger:i,parent:s,syncSnapshot:l,id:c,systemId:u,inspect:d}=o;this.system=s?s.system:uje(this,{clock:a,logger:i}),d&&!s&&this.system.inspect(K3(d)),this.sessionId=this.system._bookId(),this.id=c??this.sessionId,this.logger=n?.logger??this.system._logger,this.clock=n?.clock??this.system._clock,this._parent=s,this._syncSnapshot=l,this.options=o,this.src=o.src??r,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:h=>{this._deferred.push(h)},system:this.system,stopChild:h=>{if(h._parent!==this)throw new Error(`Cannot stop child actor ${h.id} of ${this.id} because it is not a child`);h._stop()},emit:h=>{const p=this.eventListeners.get(h.type),g=this.eventListeners.get("*");if(!p&&!g)return;const y=[...p?p.values():[],...g?g.values():[]];for(const x of y)try{x(h)}catch(w){al(w)}},actionExecutor:h=>{const p=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:h.type,params:h.params}}),!h.exec)return;const g=qT;try{qT=!0,h.exec(h.info,h.params)}finally{qT=g}};this._processingStatus===na.Running?p():this._deferred.push(p)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),u&&(this._systemId=u,this.system._set(u,this)),this._initState(n?.snapshot??n?.state),u&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(r){try{this._snapshot=r?this.logic.restoreSnapshot?this.logic.restoreSnapshot(r,this._actorScope):r:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(n){this._snapshot={status:"error",output:void 0,error:n}}}update(r,n){this._snapshot=r;let o;for(;o=this._deferred.shift();)try{o()}catch(a){this._deferred.length=0,this._snapshot={...r,status:"error",error:a}}switch(this._snapshot.status){case"active":for(const a of this.observers)try{a.next?.(r)}catch(i){al(i)}break;case"done":for(const a of this.observers)try{a.next?.(r)}catch(i){al(i)}this._stopProcedure(),this._complete(),this._doneEvent=aje(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:n,snapshot:r})}subscribe(r,n,o){const a=K3(r,n,o);if(this._processingStatus!==na.Stopped)this.observers.add(a);else switch(this._snapshot.status){case"done":try{a.complete?.()}catch(i){al(i)}break;case"error":{const i=this._snapshot.error;if(!a.error)al(i);else try{a.error(i)}catch(s){al(s)}break}}return{unsubscribe:()=>{this.observers.delete(a)}}}on(r,n){let o=this.eventListeners.get(r);o||(o=new Set,this.eventListeners.set(r,o));const a=n.bind(void 0);return o.add(a),{unsubscribe:()=>{o.delete(a)}}}start(){if(this._processingStatus===na.Running)return this;this._syncSnapshot&&this.subscribe({next:n=>{n.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:n})},error:()=>{}}),this.system._register(this.sessionId,this),this._systemId&&this.system._set(this._systemId,this),this._processingStatus=na.Running;const r=pX(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:r}),this._snapshot.status){case"done":return this.update(this._snapshot,r),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(n){return this._snapshot={...this._snapshot,status:"error",error:n},this._error(n),this}return this.update(this._snapshot,r),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(r){let n,o;try{n=this.logic.transition(this._snapshot,r,this._actorScope)}catch(a){o={err:a}}if(o){const{err:a}=o;this._snapshot={...this._snapshot,status:"error",error:a},this._error(a);return}this.update(n,r),r.type===G1&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===na.Stopped?this:(this.mailbox.clear(),this._processingStatus===na.NotStarted?(this._processingStatus=na.Stopped,this):(this.mailbox.enqueue({type:G1}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(const r of this.observers)try{r.complete?.()}catch(n){al(n)}this.observers.clear()}_reportError(r){if(!this.observers.size){this._parent||al(r);return}let n=!1;for(const o of this.observers){const a=o.error;n||=!a;try{a?.(r)}catch(i){al(i)}}this.observers.clear(),n&&al(r)}_error(r){this._stopProcedure(),this._reportError(r),this._parent&&this.system._relay(this,this._parent,fX(this.id,r))}_stopProcedure(){return this._processingStatus!==na.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new cX(this._process.bind(this)),this._processingStatus=na.Stopped,this.system._unregister(this),this)}_send(r){this._processingStatus!==na.Stopped&&this.mailbox.enqueue(r)}send(r){this.system._relay(void 0,this,r)}attachDevTools(){const{devTools:r}=this.options;r&&(typeof r=="function"?r:Jze)(this)}toJSON(){return{xstate$$type:YT,id:this.id}}getPersistedSnapshot(r){return this.logic.getPersistedSnapshot(this._snapshot,r)}[ije](){return this}getSnapshot(){return this._snapshot}}function Vp(e,...[r]){return new hje(e,r)}function fje(e,r,n,o,{sendId:a}){const i=typeof a=="function"?a(n,o):a;return[r,{sendId:i},void 0]}function pje(e,r){e.defer(()=>{e.system.scheduler.cancel(e.self,r.sendId)})}function oa(e){function r(n,o){}return r.type="xstate.cancel",r.sendId=e,r.resolve=fje,r.execute=pje,r}function mje(e,r,n,o,{id:a,systemId:i,src:s,input:l,syncSnapshot:c}){const u=typeof s=="string"?VT(r.machine,s):s,d=typeof a=="function"?a(n):a;let h,p;return u&&(p=typeof l=="function"?l({context:r.context,event:n.event,self:e.self}):l,h=Vp(u,{id:d,src:s,parent:e.self,syncSnapshot:c,systemId:i,input:p})),[nh(r,{children:{...r.children,[d]:h}}),{id:a,systemId:i,actorRef:h,src:s,input:p},void 0]}function gje(e,{actorRef:r}){r&&e.defer(()=>{r._processingStatus!==na.Stopped&&r.start()})}function qp(...[e,{id:r,systemId:n,input:o,syncSnapshot:a=!1}={}]){function i(s,l){}return i.type="xstate.spawnChild",i.id=r,i.systemId=n,i.src=e,i.input=o,i.syncSnapshot=a,i.resolve=mje,i.execute=gje,i}function yje(e,r,n,o,{actorRef:a}){const i=typeof a=="function"?a(n,o):a,s=typeof i=="string"?r.children[i]:i;let l=r.children;return s&&(l={...l},delete l[s.id]),[nh(r,{children:l}),s,void 0]}function bje(e,r){if(r){if(e.system._unregister(r),r._processingStatus!==na.Running){e.stopChild(r);return}e.defer(()=>{e.stopChild(r)})}}function yu(e){function r(n,o){}return r.type="xstate.stopChild",r.actorRef=e,r.resolve=yje,r.execute=bje,r}function vje(e,{context:r,event:n},{guards:o}){return o.every(a=>Yp(a,r,n,e))}function Z3(e){function r(n,o){return!1}return r.check=vje,r.guards=e,r}function xje(e,{context:r,event:n},{guards:o}){return o.some(a=>Yp(a,r,n,e))}function _X(e){function r(n,o){return!1}return r.check=xje,r.guards=e,r}function Yp(e,r,n,o){const{machine:a}=o,i=typeof e=="function",s=i?e:a.implementations.guards[typeof e=="string"?e:e.type];if(!i&&!s)throw new Error(`Guard '${typeof e=="string"?e:e.type}' is not implemented.'.`);if(typeof s!="function")return Yp(s,r,n,o);const l={context:r,event:n},c=i||typeof e=="string"?void 0:"params"in e?typeof e.params=="function"?e.params({context:r,event:n}):e.params:void 0;return"check"in s?s.check(o,l,s):s(l,c)}const WT=e=>e.type==="atomic"||e.type==="final";function Wp(e){return Object.values(e.states).filter(r=>r.type!=="history")}function K1(e,r){const n=[];if(r===e)return n;let o=e.parent;for(;o&&o!==r;)n.push(o),o=o.parent;return n}function Q3(e){const r=new Set(e),n=SX(r);for(const o of r)if(o.type==="compound"&&(!n.get(o)||!n.get(o).length))AX(o).forEach(a=>r.add(a));else if(o.type==="parallel"){for(const a of Wp(o))if(a.type!=="history"&&!r.has(a)){const i=AX(a);for(const s of i)r.add(s)}}for(const o of r){let a=o.parent;for(;a;)r.add(a),a=a.parent}return r}function EX(e,r){const n=r.get(e);if(!n)return{};if(e.type==="compound"){const a=n[0];if(a){if(WT(a))return a.key}else return{}}const o={};for(const a of n)o[a.key]=EX(a,r);return o}function SX(e){const r=new Map;for(const n of e)r.has(n)||r.set(n,[]),n.parent&&(r.has(n.parent)||r.set(n.parent,[]),r.get(n.parent).push(n));return r}function CX(e,r){const n=Q3(r);return EX(e,SX(n))}function XT(e,r){return r.type==="compound"?Wp(r).some(n=>n.type==="final"&&e.has(n)):r.type==="parallel"?Wp(r).every(n=>XT(e,n)):r.type==="final"}const J3=e=>e[0]===tje;function wje(e,r){return e.transitions.get(r)||[...e.transitions.keys()].filter(n=>{if(n===rje)return!0;if(!n.endsWith(".*"))return!1;const o=n.split("."),a=r.split(".");for(let i=0;io.length-n.length).flatMap(n=>e.transitions.get(n))}function kje(e){const r=e.config.after;if(!r)return[];const n=o=>{const a=oje(o,e.id),i=a.type;return e.entry.push(sn(a,{id:i,delay:o})),e.exit.push(oa(i)),i};return Object.keys(r).flatMap(o=>{const a=r[o],i=typeof a=="string"?{target:a}:a,s=Number.isNaN(+o)?o:+o,l=n(s);return Jl(i).map(c=>({...c,event:l,delay:s}))}).map(o=>{const{delay:a}=o;return{...th(e,o.event,o),delay:a}})}function th(e,r,n){const o=xX(n.target),a=n.reenter??!1,i=Sje(e,o),s={...n,actions:Jl(n.actions),guard:n.guard,target:i,source:e,reenter:a,eventType:r,toJSON:()=>({...s,source:`#${e.id}`,target:i?i.map(l=>`#${l.id}`):void 0})};return s}function _je(e){const r=new Map;if(e.config.on)for(const n of Object.keys(e.config.on)){if(n===dX)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const o=e.config.on[n];r.set(n,Up(o).map(a=>th(e,n,a)))}if(e.config.onDone){const n=`xstate.done.state.${e.id}`;r.set(n,Up(e.config.onDone).map(o=>th(e,n,o)))}for(const n of e.invoke){if(n.onDone){const o=`xstate.done.actor.${n.id}`;r.set(o,Up(n.onDone).map(a=>th(e,o,a)))}if(n.onError){const o=`xstate.error.actor.${n.id}`;r.set(o,Up(n.onError).map(a=>th(e,o,a)))}if(n.onSnapshot){const o=`xstate.snapshot.${n.id}`;r.set(o,Up(n.onSnapshot).map(a=>th(e,o,a)))}}for(const n of e.after){let o=r.get(n.eventType);o||(o=[],r.set(n.eventType,o)),o.push(n)}return r}function Eje(e,r){const n=typeof r=="string"?e.states[r]:r?e.states[r.target]:void 0;if(!n&&r)throw new Error(`Initial state node "${r}" not found on parent state node #${e.id}`);const o={source:e,actions:!r||typeof r=="string"?[]:Jl(r.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...o,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return o}function Sje(e,r){if(r!==void 0)return r.map(n=>{if(typeof n!="string")return n;if(J3(n))return e.machine.getStateNodeById(n);const o=n[0]===uX;if(o&&!e.parent)return ek(e,n.slice(1));const a=o?e.key+n:n;if(e.parent)try{return ek(e.parent,a)}catch(i){throw new Error(`Invalid transition definition for state node '${e.id}': +${i.message}`)}else throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`)})}function TX(e){const r=xX(e.config.target);return r?{target:r.map(n=>typeof n=="string"?ek(e.parent,n):n)}:e.parent.initial}function rh(e){return e.type==="history"}function AX(e){const r=NX(e);for(const n of r)for(const o of K1(n,e))r.add(o);return r}function NX(e){const r=new Set;function n(o){if(!r.has(o)){if(r.add(o),o.type==="compound")n(o.initial.target[0]);else if(o.type==="parallel")for(const a of Wp(o))n(a)}}return n(e),r}function Xp(e,r){if(J3(r))return e.machine.getStateNodeById(r);if(!e.states)throw new Error(`Unable to retrieve child state '${r}' from '${e.id}'; no child states exist.`);const n=e.states[r];if(!n)throw new Error(`Child state '${r}' does not exist on '${e.id}'`);return n}function ek(e,r){if(typeof r=="string"&&J3(r))try{return e.machine.getStateNodeById(r)}catch{}const n=HT(r).slice();let o=e;for(;n.length;){const a=n.shift();if(!a.length)break;o=Xp(o,a)}return o}function tk(e,r){if(typeof r=="string"){const a=e.states[r];if(!a)throw new Error(`State '${r}' does not exist on '${e.id}'`);return[e,a]}const n=Object.keys(r),o=n.map(a=>Xp(e,a)).filter(Boolean);return[e.machine.root,e].concat(o,n.reduce((a,i)=>{const s=Xp(e,i);if(!s)return a;const l=tk(s,r[i]);return a.concat(l)},[]))}function Cje(e,r,n,o){const a=Xp(e,r).next(n,o);return!a||!a.length?e.next(n,o):a}function Tje(e,r,n,o){const a=Object.keys(r),i=Xp(e,a[0]),s=GT(i,r[a[0]],n,o);return!s||!s.length?e.next(n,o):s}function Aje(e,r,n,o){const a=[];for(const i of Object.keys(r)){const s=r[i];if(!s)continue;const l=Xp(e,i),c=GT(l,s,n,o);c&&a.push(...c)}return a.length?a:e.next(n,o)}function GT(e,r,n,o){return typeof r=="string"?Cje(e,r,n,o):Object.keys(r).length===1?Tje(e,r,n,o):Aje(e,r,n,o)}function Nje(e){return Object.keys(e.states).map(r=>e.states[r]).filter(r=>r.type==="history")}function bu(e,r){let n=e;for(;n.parent&&n.parent!==r;)n=n.parent;return n.parent===r}function Rje(e,r){const n=new Set(e),o=new Set(r);for(const a of n)if(o.has(a))return!0;for(const a of o)if(n.has(a))return!0;return!1}function RX(e,r,n){const o=new Set;for(const a of e){let i=!1;const s=new Set;for(const l of o)if(Rje(ZT([a],r,n),ZT([l],r,n)))if(bu(a.source,l.source))s.add(l);else{i=!0;break}if(!i){for(const l of s)o.delete(l);o.add(a)}}return Array.from(o)}function $je(e){const[r,...n]=e;for(const o of K1(r,void 0))if(n.every(a=>bu(a,o)))return o}function KT(e,r){if(!e.target)return[];const n=new Set;for(const o of e.target)if(rh(o))if(r[o.id])for(const a of r[o.id])n.add(a);else for(const a of KT(TX(o),r))n.add(a);else n.add(o);return[...n]}function $X(e,r){const n=KT(e,r);if(!n)return;if(!e.reenter&&n.every(a=>a===e.source||bu(a,e.source)))return e.source;const o=$je(n.concat(e.source));if(o)return o;if(!e.reenter)return e.source.machine.root}function ZT(e,r,n){const o=new Set;for(const a of e)if(a.target?.length){const i=$X(a,n);a.reenter&&a.source===i&&o.add(i);for(const s of r)bu(s,i)&&o.add(s)}return[...o]}function Pje(e,r){if(e.length!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function QT(e,r,n,o,a,i){if(!e.length)return r;const s=new Set(r._nodes);let l=r.historyValue;const c=RX(e,s,l);let u=r;a||([u,l]=Lje(u,o,n,c,s,l,i,n.actionExecutor)),u=Kp(u,o,n,c.flatMap(h=>h.actions),i,void 0),u=Oje(u,o,n,c,s,i,l,a);const d=[...s];u.status==="done"&&(u=Kp(u,o,n,d.sort((h,p)=>p.order-h.order).flatMap(h=>h.exit),i,void 0));try{return l===r.historyValue&&Pje(r._nodes,s)?u:nh(u,{_nodes:d,historyValue:l})}catch(h){throw h}}function Mje(e,r,n,o,a){if(o.output===void 0)return;const i=FT(a.id,a.output!==void 0&&a.parent?UT(a.output,e.context,r,n.self):void 0);return UT(o.output,e.context,i,n.self)}function Oje(e,r,n,o,a,i,s,l){let c=e;const u=new Set,d=new Set;Dje(o,s,d,u),l&&d.add(e.machine.root);const h=new Set;for(const p of[...u].sort((g,y)=>g.order-y.order)){a.add(p);const g=[];g.push(...p.entry);for(const y of p.invoke)g.push(qp(y.src,{...y,syncSnapshot:!!y.onSnapshot}));if(d.has(p)){const y=p.initial.actions;g.push(...y)}if(c=Kp(c,r,n,g,i,p.invoke.map(y=>y.id)),p.type==="final"){const y=p.parent;let x=y?.type==="parallel"?y:y?.parent,w=x||p;for(y?.type==="compound"&&i.push(FT(y.id,p.output!==void 0?UT(p.output,c.context,r,n.self):void 0));x?.type==="parallel"&&!h.has(x)&&XT(a,x);)h.add(x),i.push(FT(x.id)),w=x,x=x.parent;if(x)continue;c=nh(c,{status:"done",output:Mje(c,r,n,c.machine.root,w)})}}return c}function Dje(e,r,n,o){for(const a of e){const i=$X(a,r);for(const l of a.target||[])!rh(l)&&(a.source!==l||a.source!==i||a.reenter)&&(o.add(l),n.add(l)),Gp(l,r,n,o);const s=KT(a,r);for(const l of s){const c=K1(l,i);i?.type==="parallel"&&c.push(i),PX(o,r,n,c,!a.source.parent&&a.reenter?void 0:i)}}}function Gp(e,r,n,o){if(rh(e))if(r[e.id]){const a=r[e.id];for(const i of a)o.add(i),Gp(i,r,n,o);for(const i of a)JT(i,e.parent,o,r,n)}else{const a=TX(e);for(const i of a.target)o.add(i),a===e.parent?.initial&&n.add(e.parent),Gp(i,r,n,o);for(const i of a.target)JT(i,e.parent,o,r,n)}else if(e.type==="compound"){const[a]=e.initial.target;rh(a)||(o.add(a),n.add(a)),Gp(a,r,n,o),JT(a,e,o,r,n)}else if(e.type==="parallel")for(const a of Wp(e).filter(i=>!rh(i)))[...o].some(i=>bu(i,a))||(rh(a)||(o.add(a),n.add(a)),Gp(a,r,n,o))}function PX(e,r,n,o,a){for(const i of o)if((!a||bu(i,a))&&e.add(i),i.type==="parallel")for(const s of Wp(i).filter(l=>!rh(l)))[...e].some(l=>bu(l,s))||(e.add(s),Gp(s,r,n,e))}function JT(e,r,n,o,a){PX(n,o,a,K1(e,r))}function Lje(e,r,n,o,a,i,s,l){let c=e;const u=ZT(o,a,i);u.sort((h,p)=>p.order-h.order);let d;for(const h of u)for(const p of Nje(h)){let g;p.history==="deep"?g=y=>WT(y)&&bu(y,h):g=y=>y.parent===h,d??={...i},d[p.id]=Array.from(a).filter(g)}for(const h of u)c=Kp(c,r,n,[...h.exit,...h.invoke.map(p=>yu(p.id))],s,void 0),a.delete(h);return[c,d||i]}function Ije(e,r){return e.implementations.actions[r]}function MX(e,r,n,o,a,i){const{machine:s}=e;let l=e;for(const c of o){const u=typeof c=="function",d=u?c:Ije(s,typeof c=="string"?c:c.type),h={context:l.context,event:r,self:n.self,system:n.system},p=u||typeof c=="string"?void 0:"params"in c?typeof c.params=="function"?c.params({context:l.context,event:r}):c.params:void 0;if(!d||!("resolve"in d)){n.actionExecutor({type:typeof c=="string"?c:typeof c=="object"?c.type:c.name||"(anonymous)",info:h,params:p,exec:d});continue}const g=d,[y,x,w]=g.resolve(n,l,h,p,d,a);l=y,"retryResolve"in g&&i?.push([g,x]),"execute"in g&&n.actionExecutor({type:g.type,info:h,params:x,exec:g.execute.bind(null,n,x)}),w&&(l=MX(l,r,n,w,a,i))}return l}function Kp(e,r,n,o,a,i){const s=i?[]:void 0,l=MX(e,r,n,o,{internalQueue:a,deferredActorIds:i},s);return s?.forEach(([c,u])=>{c.retryResolve(n,l,u)}),l}function e8(e,r,n,o){let a=e;const i=[];function s(u,d,h){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:d,snapshot:u,_transitions:h}),i.push(u)}if(r.type===G1)return a=nh(OX(a,r,n),{status:"stopped"}),s(a,r,[]),{snapshot:a,microstates:i};let l=r;if(l.type!==hX){const u=l,d=lje(u),h=DX(u,a);if(d&&!h.length)return a=nh(e,{status:"error",error:u.error}),s(a,u,[]),{snapshot:a,microstates:i};a=QT(h,e,n,l,!1,o),s(a,u,h)}let c=!0;for(;a.status==="active";){let u=c?zje(a,l):[];const d=u.length?a:void 0;if(!u.length){if(!o.length)break;l=o.shift(),u=DX(l,a)}a=QT(u,a,n,l,!1,o),c=a!==d,s(a,l,u)}return a.status!=="active"&&OX(a,l,n),{snapshot:a,microstates:i}}function OX(e,r,n){return Kp(e,r,n,Object.values(e.children).map(o=>yu(o)),[],void 0)}function DX(e,r){return r.machine.getTransitionData(r,e)}function zje(e,r){const n=new Set,o=e._nodes.filter(WT);for(const a of o)e:for(const i of[a].concat(K1(a,void 0)))if(i.always){for(const s of i.always)if(s.guard===void 0||Yp(s.guard,e.context,r,e)){n.add(s);break e}}return RX(Array.from(n),new Set(e._nodes),e.historyValue)}function jje(e,r){const n=Q3(tk(e,r));return CX(e,[...n])}function Bje(e){return!!e&&typeof e=="object"&&"machine"in e&&"value"in e}const Fje=function(e){return mX(e,this.value)},Hje=function(e){return this.tags.has(e)},Uje=function(e){const r=this.machine.getTransitionData(this,e);return!!r?.length&&r.some(n=>n.target!==void 0||n.actions.length)},Vje=function(){const{_nodes:e,tags:r,machine:n,getMeta:o,toJSON:a,can:i,hasTag:s,matches:l,...c}=this;return{...c,tags:Array.from(r)}},qje=function(){return this._nodes.reduce((e,r)=>(r.meta!==void 0&&(e[r.id]=r.meta),e),{})};function rk(e,r){return{status:e.status,output:e.output,error:e.error,machine:r,context:e.context,_nodes:e._nodes,value:CX(r.root,e._nodes),tags:new Set(e._nodes.flatMap(n=>n.tags)),children:e.children,historyValue:e.historyValue||{},matches:Fje,hasTag:Hje,can:Uje,getMeta:qje,toJSON:Vje}}function nh(e,r={}){return rk({...e,...r},e.machine)}function Yje(e){if(typeof e!="object"||e===null)return{};const r={};for(const n in e){const o=e[n];Array.isArray(o)&&(r[n]=o.map(a=>({id:a.id})))}return r}function Wje(e,r){const{_nodes:n,tags:o,machine:a,children:i,context:s,can:l,hasTag:c,matches:u,getMeta:d,toJSON:h,...p}=e,g={};for(const y in i){const x=i[y];g[y]={snapshot:x.getPersistedSnapshot(r),src:x.src,systemId:x._systemId,syncSnapshot:x._syncSnapshot}}return{...p,context:LX(s),children:g,historyValue:Yje(p.historyValue)}}function LX(e){let r;for(const n in e){const o=e[n];if(o&&typeof o=="object")if("sessionId"in o&&"send"in o&&"ref"in o)r??=Array.isArray(e)?e.slice():{...e},r[n]={xstate$$type:YT,id:o.id};else{const a=LX(o);a!==o&&(r??=Array.isArray(e)?e.slice():{...e},r[n]=a)}}return r??e}function Xje(e,r,n,o,{event:a,id:i,delay:s},{internalQueue:l}){const c=r.machine.implementations.delays;if(typeof a=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${a}" }) instead`);const u=typeof a=="function"?a(n,o):a;let d;if(typeof s=="string"){const h=c&&c[s];d=typeof h=="function"?h(n,o):h}else d=typeof s=="function"?s(n,o):s;return typeof d!="number"&&l.push(u),[r,{event:u,id:i,delay:d},void 0]}function Gje(e,r){const{event:n,delay:o,id:a}=r;if(typeof o=="number"){e.defer(()=>{const i=e.self;e.system.scheduler.schedule(i,i,n,o,a)});return}}function sn(e,r){function n(o,a){}return n.type="xstate.raise",n.event=e,n.id=r?.id,n.delay=r?.delay,n.resolve=Xje,n.execute=Gje,n}const IX=new WeakMap;function zX(e){return{config:e,start:(r,n)=>{const{self:o,system:a,emit:i}=n,s={receivers:void 0,dispose:void 0};IX.set(o,s),s.dispose=e({input:r.input,system:a,self:o,sendBack:l=>{o.getSnapshot().status!=="stopped"&&o._parent&&a._relay(o,o._parent,l)},receive:l=>{s.receivers??=new Set,s.receivers.add(l)},emit:i})},transition:(r,n,o)=>{const a=IX.get(o.self);return n.type===G1?(r={...r,status:"stopped",error:void 0},a.dispose?.(),r):(a.receivers?.forEach(i=>i(n)),r)},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}const jX="xstate.promise.resolve",BX="xstate.promise.reject",nk=new WeakMap;function Kje(e){return{config:e,transition:(r,n,o)=>{if(r.status!=="active")return r;switch(n.type){case jX:{const a=n.data;return{...r,status:"done",output:a,input:void 0}}case BX:return{...r,status:"error",error:n.data,input:void 0};case G1:return nk.get(o.self)?.abort(),{...r,status:"stopped",input:void 0};default:return r}},start:(r,{self:n,system:o,emit:a})=>{if(r.status!=="active")return;const i=new AbortController;nk.set(n,i),Promise.resolve(e({input:r.input,system:o,self:n,signal:i.signal,emit:a})).then(s=>{n.getSnapshot().status==="active"&&(nk.delete(n),o._relay(n,n,{type:jX,data:s}))},s=>{n.getSnapshot().status==="active"&&(nk.delete(n),o._relay(n,n,{type:BX,data:s}))})},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}function Zje(e,{machine:r,context:n},o,a){const i=(s,l)=>{if(typeof s=="string"){const c=VT(r,s);if(!c)throw new Error(`Actor logic '${s}' not implemented in machine '${r.id}'`);const u=Vp(c,{id:l?.id,parent:e.self,syncSnapshot:l?.syncSnapshot,input:typeof l?.input=="function"?l.input({context:n,event:o,self:e.self}):l?.input,src:s,systemId:l?.systemId});return a[u.id]=u,u}else return Vp(s,{id:l?.id,parent:e.self,syncSnapshot:l?.syncSnapshot,input:l?.input,src:s,systemId:l?.systemId})};return(s,l)=>{const c=i(s,l);return a[c.id]=c,e.defer(()=>{c._processingStatus!==na.Stopped&&c.start()}),c}}function Qje(e,r,n,o,{assignment:a}){if(!r.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const i={},s={context:r.context,event:n.event,spawn:Zje(e,r,n.event,i),self:e.self,system:e.system};let l={};if(typeof a=="function")l=a(s,o);else for(const u of Object.keys(a)){const d=a[u];l[u]=typeof d=="function"?d(s,o):d}const c=Object.assign({},r.context,l);return[nh(r,{context:c,children:Object.keys(i).length?{...r.children,...i}:r.children}),void 0,void 0]}function et(e){function r(n,o){}return r.type="xstate.assign",r.assignment=e,r.resolve=Qje,r}const FX=new WeakMap;function Zp(e,r,n){let o=FX.get(e);return o?r in o||(o[r]=n()):(o={[r]:n()},FX.set(e,o)),o[r]}const Jje={},Z1=e=>typeof e=="string"?{type:e}:typeof e=="function"?"resolve"in e?{type:e.type}:{type:e.name}:e;class ok{constructor(r,n){if(this.config=r,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(uX),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?yX(this.config.states,(o,a)=>new ok(o,{_parent:this,_key:a,_machine:this.machine})):Jje,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=Jl(this.config.entry).slice(),this.exit=Jl(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=Jl(r.tags).slice()}_initialize(){this.transitions=_je(this),this.config.always&&(this.always=Up(this.config.always).map(r=>th(this,dX,r))),Object.keys(this.states).forEach(r=>{this.states[r]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(Z1),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(r=>`#${r.id}`),source:`#${this.id}`,actions:this.initial.actions.map(Z1),eventType:null})}:void 0,history:this.history,states:yX(this.states,r=>r.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(r=>({...r,actions:r.actions.map(Z1)})),entry:this.entry.map(Z1),exit:this.exit.map(Z1),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return Zp(this,"invoke",()=>Jl(this.config.invoke).map((r,n)=>{const{src:o,systemId:a}=r,i=r.id??wX(this.id,n),s=typeof o=="string"?o:`xstate.invoke.${wX(this.id,n)}`;return{...r,src:s,id:i,systemId:a,toJSON(){const{onDone:l,onError:c,...u}=r;return{...u,type:"xstate.invoke",src:s,id:i}}}}))}get on(){return Zp(this,"on",()=>[...this.transitions].flatMap(([r,n])=>n.map(o=>[r,o])).reduce((r,[n,o])=>(r[n]=r[n]||[],r[n].push(o),r),{}))}get after(){return Zp(this,"delayedTransitions",()=>kje(this))}get initial(){return Zp(this,"initial",()=>Eje(this,this.config.initial))}next(r,n){const o=n.type,a=[];let i;const s=Zp(this,`candidates-${o}`,()=>wje(this,o));for(const l of s){const{guard:c}=l,u=r.context;let d=!1;try{d=!c||Yp(c,u,n,r)}catch(h){const p=typeof c=="string"?c:typeof c=="object"?c.type:void 0;throw new Error(`Unable to evaluate guard ${p?`'${p}' `:""}in transition for event '${o}' in state node '${this.id}': +${h.message}`)}if(d){a.push(...l.actions),i=l;break}}return i?[i]:void 0}get events(){return Zp(this,"events",()=>{const{states:r}=this,n=new Set(this.ownEvents);if(r)for(const o of Object.keys(r)){const a=r[o];if(a.states)for(const i of a.events)n.add(`${i}`)}return Array.from(n)})}get ownEvents(){const r=new Set([...this.transitions.keys()].filter(n=>this.transitions.get(n).some(o=>!(!o.target&&!o.actions.length&&!o.reenter))));return Array.from(r)}}const eBe="#";class t8{constructor(r,n){this.config=r,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=r.id||"(machine)",this.implementations={actors:n?.actors??{},actions:n?.actions??{},delays:n?.delays??{},guards:n?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new ok(r,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(r){const{actions:n,guards:o,actors:a,delays:i}=this.implementations;return new t8(this.config,{actions:{...n,...r.actions},guards:{...o,...r.guards},actors:{...a,...r.actors},delays:{...i,...r.delays}})}resolveState(r){const n=jje(this.root,r.value),o=Q3(tk(this.root,n));return rk({_nodes:[...o],context:r.context||{},children:{},status:XT(o,this.root)?"done":r.status||"active",output:r.output,error:r.error,historyValue:r.historyValue},this)}transition(r,n,o){return e8(r,n,o,[]).snapshot}microstep(r,n,o){return e8(r,n,o,[]).microstates}getTransitionData(r,n){return GT(this.root,r.value,r,n)||[]}getPreInitialState(r,n,o){const{context:a}=this.config,i=rk({context:typeof a!="function"&&a?a:{},_nodes:[this.root],children:{},status:"active"},this);return typeof a=="function"?Kp(i,n,r,[et(({spawn:s,event:l,self:c})=>a({spawn:s,input:l.input,self:c}))],o,void 0):i}getInitialSnapshot(r,n){const o=pX(n),a=[],i=this.getPreInitialState(r,o,a),s=QT([{target:[...NX(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],i,r,o,!0,a),{snapshot:l}=e8(s,o,r,a);return l}start(r){Object.values(r.children).forEach(n=>{n.getSnapshot().status==="active"&&n.start()})}getStateNodeById(r){const n=HT(r),o=n.slice(1),a=J3(n[0])?n[0].slice(eBe.length):n[0],i=this.idMap.get(a);if(!i)throw new Error(`Child state node '#${a}' does not exist on machine '${this.id}'`);return ek(i,o)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(r,n){return Wje(r,n)}restoreSnapshot(r,n){const o={},a=r.children;Object.keys(a).forEach(h=>{const p=a[h],g=p.snapshot,y=p.src,x=typeof y=="string"?VT(this,y):y;if(!x)return;const w=Vp(x,{id:h,parent:n.self,syncSnapshot:p.syncSnapshot,snapshot:g,src:y,systemId:p.systemId});o[h]=w});function i(h,p){if(p instanceof ok)return p;try{return h.machine.getStateNodeById(p.id)}catch{}}function s(h,p){if(!p||typeof p!="object")return{};const g={};for(const y in p){const x=p[y];for(const w of x){const k=i(h,w);k&&(g[y]??=[],g[y].push(k))}}return g}const l=s(this.root,r.historyValue),c=rk({...r,children:o,_nodes:Array.from(Q3(tk(this.root,r.value))),historyValue:l},this),u=new Set;function d(h,p){if(!u.has(h)){u.add(h);for(const g in h){const y=h[g];if(y&&typeof y=="object"){if("xstate$$type"in y&&y.xstate$$type===YT){h[g]=p[y.id];continue}d(y,p)}}}}return d(c.context,o),c}}function tBe(e,r,n,o,{event:a}){const i=typeof a=="function"?a(n,o):a;return[r,{event:i},void 0]}function rBe(e,{event:r}){e.defer(()=>e.emit(r))}function ui(e){function r(n,o){}return r.type="xstate.emit",r.event=e,r.resolve=tBe,r.execute=rBe,r}let r8=(function(e){return e.Parent="#_parent",e.Internal="#_internal",e})({});function nBe(e,r,n,o,{to:a,event:i,id:s,delay:l},c){const u=r.machine.implementations.delays;if(typeof i=="string")throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${i}" }) instead`);const d=typeof i=="function"?i(n,o):i;let h;if(typeof l=="string"){const y=u&&u[l];h=typeof y=="function"?y(n,o):y}else h=typeof l=="function"?l(n,o):l;const p=typeof a=="function"?a(n,o):a;let g;if(typeof p=="string"){if(p===r8.Parent?g=e.self._parent:p===r8.Internal?g=e.self:p.startsWith("#_")?g=r.children[p.slice(2)]:g=c.deferredActorIds?.includes(p)?p:r.children[p],!g)throw new Error(`Unable to send event to actor '${p}' from machine '${r.machine.id}'.`)}else g=p||e.self;return[r,{to:g,targetId:typeof p=="string"?p:void 0,event:d,id:s,delay:h},void 0]}function oBe(e,r,n){typeof n.to=="string"&&(n.to=r.children[n.to])}function aBe(e,r){e.defer(()=>{const{to:n,event:o,delay:a,id:i}=r;if(typeof a=="number"){e.system.scheduler.schedule(e.self,n,o,a,i);return}e.system._relay(e.self,n,o.type===nje?fX(e.self.id,o.data):o)})}function il(e,r,n){function o(a,i){}return o.type="xstate.sendTo",o.to=e,o.event=r,o.id=n?.id,o.delay=n?.delay,o.resolve=nBe,o.retryResolve=oBe,o.execute=aBe,o}function iBe(e,r){return il(r8.Parent,e,r)}function sBe(e,r,n,o,{collect:a}){const i=[],s=function(l){i.push(l)};return s.assign=(...l)=>{i.push(et(...l))},s.cancel=(...l)=>{i.push(oa(...l))},s.raise=(...l)=>{i.push(sn(...l))},s.sendTo=(...l)=>{i.push(il(...l))},s.sendParent=(...l)=>{i.push(iBe(...l))},s.spawnChild=(...l)=>{i.push(qp(...l))},s.stopChild=(...l)=>{i.push(yu(...l))},s.emit=(...l)=>{i.push(ui(...l))},a({context:n.context,event:n.event,enqueue:s,check:l=>Yp(l,r.context,n.event,r),self:e.self,system:e.system},o),[r,void 0,i]}function ln(e){function r(n,o){}return r.type="xstate.enqueueActions",r.collect=e,r.resolve=sBe,r}function Ut(e,r){const n=Jl(r);if(!n.includes(e.type)){const o=n.length===1?`type "${n[0]}"`:`one of types "${n.join('", "')}"`;throw new Error(`Expected event ${JSON.stringify(e)} to have ${o}`)}}function lBe(e,r){return new t8(e,r)}function ec({schemas:e,actors:r,actions:n,guards:o,delays:a}){return{createMachine:i=>lBe({...i,schemas:e},{actors:r,actions:n,guards:o,delays:a})}}$H();const HX=(e,r)=>{r(e);const n=e.getSnapshot().children;n&&Object.values(n).forEach(o=>{HX(o,r)})};function cBe(e){const r=[];HX(e,o=>{r.push([o,o.getSnapshot()]),o.observers=new Set});const n=e.system.getSnapshot?.();e.stop(),e.system._snapshot=n,r.forEach(([o,a])=>{o._processingStatus=0,o._snapshot=a})}function uBe(e,...[r]){let[[n,o],a]=E.useState(()=>{const i=Vp(e,r);return[e.config,i]});if(e.config!==n){const i=Vp(e,{...r,snapshot:o.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});a([e.config,i]),o=i}return EIe(()=>{o.logic.implementations=e.implementations}),o}function n8(e,...[r,n]){const o=uBe(e,r);return E.useEffect(()=>{if(!n)return;const a=o.subscribe(K3(n));return()=>{a.unsubscribe()}},[n]),E.useEffect(()=>(o.start(),()=>{cBe(o)}),[o]),o}function dBe(e,r){return e===r}function wn(e,r,n=dBe){const o=E.useCallback(i=>{if(!e)return()=>{};const{unsubscribe:s}=e.subscribe(i);return s},[e]),a=E.useCallback(()=>e?.getSnapshot(),[e]);return OH.useSyncExternalStoreWithSelector(o,a,a,r,n)}function tc(e){return{get overlaysActorRef(){return e.get("overlays")??null},get diagramActorRef(){return e.get("diagram")??null},get searchActorRef(){return e.get("search")??null}}}function Qp(e,r){return e.view.nodes.find(n=>n.id===r)??null}function o8(e,r){return e.view.edges.find(n=>n.id===r)??null}function hBe(e){const r=new Map,n=e.context.xynodes.reduce((o,a)=>{let i=a.position;if(a.parentId){const c=r.get(a.parentId)??{x:0,y:0};i={x:i.x+c.x,y:i.y+c.y}}if(r.set(a.id,i),a.hidden||a.data.dimmed)return o;const s=a.measured?.width??a.width??a.initialWidth,l=a.measured?.height??a.height??a.initialHeight;return o.minX=Math.min(o.minX,i.x),o.minY=Math.min(o.minY,i.y),o.maxX=Math.max(o.maxX,i.x+s),o.maxY=Math.max(o.maxY,i.y+l),o},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return n.minX===1/0?{bounds:e.context.view.bounds}:{duration:350,bounds:{x:n.minX-10,y:n.minY-10,width:n.maxX-n.minX+20,height:n.maxY-n.minY+20}}}const fBe=32;function pBe(e){const r=mt(e.context.activeWalkthrough),n=mt(e.context.xyedges.find(c=>c.id===r.stepId)),o=e.context.xystore.getState(),a=mt(o.nodeLookup.get(n.source)),i=mt(o.nodeLookup.get(n.target)),s=qF([a,i],o);let l;if(r.parallelPrefix){const c=e.context.xynodes.find(u=>u.type==="seq-parallel"&&u.data.parallelPrefix===r.parallelPrefix);c&&(l={x:c.position.x,y:c.position.y,...Wn(c)})}return l??=mBe(n,o),l?l=Qc.merge(l,s):l=s,{duration:350,bounds:Qc.expand(l,fBe)}}function mBe(e,r){const n=r.nodeLookup.get(e.source),o=r.nodeLookup.get(e.target);if(!n||!o)return null;const a=dH({id:e.id,sourceNode:n,targetNode:o,sourceHandle:e.sourceHandle||null,targetHandle:e.targetHandle||null,connectionMode:r.connectionMode});return a?Qc.fromPoints([[a.sourceX,a.sourceY],[a.targetX,a.targetY]]):null}const a8=E.createContext(null);a8.displayName="DiagramActorSafeContext";const gBe=a8.Provider,Jp=()=>{const e=E.useContext(a8);if(e===null)throw new Error("DiagramActorRef is not provided");return e};function Wt(){const e=Jp();return E.useMemo(()=>({actor:e,send:r=>e.send(r),navigateTo:(r,n)=>{e.send({type:"navigate.to",viewId:r,...n&&{fromNode:n}})},navigate:r=>{e.send({type:`navigate.${r}`})},fitDiagram:(r=350)=>{e.send({type:"fitDiagram",duration:r})},openRelationshipsBrowser:r=>{e.send({type:"open.relationshipsBrowser",fqn:r})},openSource:r=>{e.send({type:"open.source",...r})},openElementDetails:(r,n)=>{e.send({type:"open.elementDetails",fqn:r,fromNode:n})},openRelationshipDetails:(...r)=>{r.length===1?e.send({type:"open.relationshipDetails",params:{edgeId:r[0]}}):e.send({type:"open.relationshipDetails",params:{source:r[0],target:r[1]}})},updateNodeData:(r,n)=>{e.send({type:"update.nodeData",nodeId:r,data:n})},updateEdgeData:(r,n)=>{e.send({type:"update.edgeData",edgeId:r,data:n})},scheduleSaveManualLayout:()=>{e.send({type:"saveManualLayout.schedule"})},cancelSaveManualLayout:()=>{const r=e.getSnapshot().children.syncLayout?.getSnapshot().value;return e.send({type:"saveManualLayout.cancel"}),r==="pending"||r==="paused"},align:r=>{e.send({type:"layout.align",mode:r})},resetEdgeControlPoints:()=>{e.send({type:"layout.resetEdgeControlPoints"})},focusNode:r=>{e.send({type:"focus.node",nodeId:r})},get currentView(){return e.getSnapshot().context.view},getSnapshot:()=>e.getSnapshot(),getContext:()=>e.getSnapshot().context,findDiagramNode:r=>Qp(e.getSnapshot().context,r),findEdge:r=>e.getSnapshot().context.xyedges.find(n=>n.data.id===r)??null,findDiagramEdge:r=>o8(e.getSnapshot().context,r),startWalkthrough:()=>{e.send({type:"walkthrough.start"})},walkthroughStep:(r="next")=>{e.send({type:"walkthrough.step",direction:r})},stopWalkthrough:()=>{e.send({type:"walkthrough.end"})},toggleFeature:(r,n)=>{e.send({type:"toggle.feature",feature:r,...n!==void 0&&{forceValue:n}})},highlightNotation:(r,n)=>{e.send({type:"notations.highlight",notation:r,...n&&{kind:n}})},unhighlightNotation:()=>{e.send({type:"notations.unhighlight"})},openSearch:r=>{e.send({type:"open.search",...r&&{search:r}})},switchDynamicViewVariant:r=>{e.send({type:"switch.dynamicViewVariant",variant:r})}}),[e])}function UX(e,r=Xn){const n=Jp();return wn(n,it(e),r)}function $a(e,r=Xn,n){const o=Jp(),a=E.useCallback(i=>e(i.context),n??[]);return wn(o,a,r)}function is(e,r){const n=Jp(),o=E.useRef(r);o.current=r,E.useEffect(()=>{const a=n.on(e,i=>{o.current(i)});return()=>{a.unsubscribe()}},[n])}const yBe=e=>e.children.overlays;function VX(){return UX(yBe,Object.is)}const bBe=e=>e.children.search??null;function vBe(){return UX(bBe,Object.is)}function i8(e,r){e.indexOf(r)===-1&&e.push(r)}function ak(e,r){const n=e.indexOf(r);n>-1&&e.splice(n,1)}const rc=(e,r,n)=>n>r?r:n{};const nc={},qX=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function YX(e){return typeof e=="object"&&e!==null}const WX=e=>/^0[^.\s]+$/u.test(e);function l8(e){let r;return()=>(r===void 0&&(r=e()),r)}const di=e=>e,xBe=(e,r)=>n=>r(e(n)),Q1=(...e)=>e.reduce(xBe),em=(e,r,n)=>{const o=r-e;return o===0?1:(n-e)/o};class c8{constructor(){this.subscriptions=[]}add(r){return i8(this.subscriptions,r),()=>ak(this.subscriptions,r)}notify(r,n,o){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](r,n,o);else for(let i=0;ie*1e3,hi=e=>e/1e3;function XX(e,r){return r?e*(1e3/r):0}const wBe=(e,r,n)=>{const o=r-e;return((n-e)%o+o)%o+e},GX=(e,r,n)=>(((1-3*n+3*r)*e+(3*n-6*r))*e+3*r)*e,kBe=1e-7,_Be=12;function EBe(e,r,n,o,a){let i,s,l=0;do s=r+(n-r)/2,i=GX(s,o,a)-e,i>0?n=s:r=s;while(Math.abs(i)>kBe&&++l<_Be);return s}function J1(e,r,n,o){if(e===r&&n===o)return di;const a=i=>EBe(i,0,1,e,n);return i=>i===0||i===1?i:GX(a(i),r,o)}const KX=e=>r=>r<=.5?e(2*r)/2:(2-e(2*(1-r)))/2,ZX=e=>r=>1-e(1-r),QX=J1(.33,1.53,.69,.99),u8=ZX(QX),JX=KX(u8),eG=e=>(e*=2)<1?.5*u8(e):.5*(2-Math.pow(2,-10*(e-1))),d8=e=>1-Math.sin(Math.acos(e)),tG=ZX(d8),rG=KX(d8),SBe=J1(.42,0,1,1),CBe=J1(0,0,.58,1),nG=J1(.42,0,.58,1),oG=e=>Array.isArray(e)&&typeof e[0]!="number";function aG(e,r){return oG(e)?e[wBe(0,e.length,r)]:e}const iG=e=>Array.isArray(e)&&typeof e[0]=="number",TBe={linear:di,easeIn:SBe,easeInOut:nG,easeOut:CBe,circIn:d8,circInOut:rG,circOut:tG,backIn:u8,backInOut:JX,backOut:QX,anticipate:eG},ABe=e=>typeof e=="string",sG=e=>{if(iG(e)){s8(e.length===4);const[r,n,o,a]=e;return J1(r,n,o,a)}else if(ABe(e))return TBe[e];return e},ik=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function NBe(e,r){let n=new Set,o=new Set,a=!1,i=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(u.schedule(d),e()),d(l)}const u={schedule:(d,h=!1,p=!1)=>{const g=p&&a?n:o;return h&&s.add(d),g.has(d)||g.add(d),d},cancel:d=>{o.delete(d),s.delete(d)},process:d=>{if(l=d,a){i=!0;return}a=!0,[n,o]=[o,n],n.forEach(c),n.clear(),a=!1,i&&(i=!1,u.process(d))}};return u}const RBe=40;function lG(e,r){let n=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ik.reduce((k,C)=>(k[C]=NBe(i),k),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:h,preRender:p,render:g,postRender:y}=s,x=()=>{const k=nc.useManualTiming?a.timestamp:performance.now();n=!1,nc.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(k-a.timestamp,RBe),1)),a.timestamp=k,a.isProcessing=!0,l.process(a),c.process(a),u.process(a),d.process(a),h.process(a),p.process(a),g.process(a),y.process(a),a.isProcessing=!1,n&&r&&(o=!1,e(x))},w=()=>{n=!0,o=!0,a.isProcessing||e(x)};return{schedule:ik.reduce((k,C)=>{const _=s[C];return k[C]=(T,A=!1,N=!1)=>(n||w(),_.schedule(T,A,N)),k},{}),cancel:k=>{for(let C=0;C(sk===void 0&&aa.set(mo.isProcessing||nc.useManualTiming?mo.timestamp:performance.now()),sk),set:e=>{sk=e,queueMicrotask($Be)}},cG=e=>r=>typeof r=="string"&&r.startsWith(e),f8=cG("--"),PBe=cG("var(--"),p8=e=>PBe(e)?MBe.test(e.split("/*")[0].trim()):!1,MBe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tm={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ey={...tm,transform:e=>rc(0,1,e)},lk={...tm,default:1},ty=e=>Math.round(e*1e5)/1e5,m8=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function OBe(e){return e==null}const DBe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g8=(e,r)=>n=>!!(typeof n=="string"&&DBe.test(n)&&n.startsWith(e)||r&&!OBe(n)&&Object.prototype.hasOwnProperty.call(n,r)),uG=(e,r,n)=>o=>{if(typeof o!="string")return o;const[a,i,s,l]=o.match(m8);return{[e]:parseFloat(a),[r]:parseFloat(i),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},LBe=e=>rc(0,255,e),y8={...tm,transform:e=>Math.round(LBe(e))},oh={test:g8("rgb","red"),parse:uG("red","green","blue"),transform:({red:e,green:r,blue:n,alpha:o=1})=>"rgba("+y8.transform(e)+", "+y8.transform(r)+", "+y8.transform(n)+", "+ty(ey.transform(o))+")"};function IBe(e){let r="",n="",o="",a="";return e.length>5?(r=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),a=e.substring(7,9)):(r=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),a=e.substring(4,5),r+=r,n+=n,o+=o,a+=a),{red:parseInt(r,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const b8={test:g8("#"),parse:IBe,transform:oh.transform},ry=e=>({test:r=>typeof r=="string"&&r.endsWith(e)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${e}`}),xu=ry("deg"),sl=ry("%"),vt=ry("px"),zBe=ry("vh"),jBe=ry("vw"),dG={...sl,parse:e=>sl.parse(e)/100,transform:e=>sl.transform(e*100)},rm={test:g8("hsl","hue"),parse:uG("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+sl.transform(ty(r))+", "+sl.transform(ty(n))+", "+ty(ey.transform(o))+")"},kn={test:e=>oh.test(e)||b8.test(e)||rm.test(e),parse:e=>oh.test(e)?oh.parse(e):rm.test(e)?rm.parse(e):b8.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?oh.transform(e):rm.transform(e),getAnimatableNone:e=>{const r=kn.parse(e);return r.alpha=0,kn.transform(r)}},BBe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FBe(e){return isNaN(e)&&typeof e=="string"&&(e.match(m8)?.length||0)+(e.match(BBe)?.length||0)>0}const hG="number",fG="color",HBe="var",UBe="var(",pG="${}",VBe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ny(e){const r=e.toString(),n=[],o={color:[],number:[],var:[]},a=[];let i=0;const s=r.replace(VBe,l=>(kn.test(l)?(o.color.push(i),a.push(fG),n.push(kn.parse(l))):l.startsWith(UBe)?(o.var.push(i),a.push(HBe),n.push(l)):(o.number.push(i),a.push(hG),n.push(parseFloat(l))),++i,pG)).split(pG);return{values:n,split:s,indexes:o,types:a}}function mG(e){return ny(e).values}function gG(e){const{split:r,types:n}=ny(e),o=r.length;return a=>{let i="";for(let s=0;stypeof e=="number"?0:kn.test(e)?kn.getAnimatableNone(e):e;function YBe(e){const r=mG(e);return gG(e)(r.map(qBe))}const wu={test:FBe,parse:mG,createTransformer:gG,getAnimatableNone:YBe};function v8(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(r-e)*6*n:n<.5?r:n<.6666666666666666?e+(r-e)*(.6666666666666666-n)*6:e}function WBe({hue:e,saturation:r,lightness:n,alpha:o}){e/=360,r/=100,n/=100;let a=0,i=0,s=0;if(!r)a=i=s=n;else{const l=n<.5?n*(1+r):n+r-n*r,c=2*n-l;a=v8(c,l,e+.3333333333333333),i=v8(c,l,e),s=v8(c,l,e-.3333333333333333)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:o}}function ck(e,r){return n=>n>0?r:e}const Lr=(e,r,n)=>e+(r-e)*n,x8=(e,r,n)=>{const o=e*e,a=n*(r*r-o)+o;return a<0?0:Math.sqrt(a)},XBe=[b8,oh,rm],GBe=e=>XBe.find(r=>r.test(e));function yG(e){const r=GBe(e);if(!r)return!1;let n=r.parse(e);return r===rm&&(n=WBe(n)),n}const bG=(e,r)=>{const n=yG(e),o=yG(r);if(!n||!o)return ck(e,r);const a={...n};return i=>(a.red=x8(n.red,o.red,i),a.green=x8(n.green,o.green,i),a.blue=x8(n.blue,o.blue,i),a.alpha=Lr(n.alpha,o.alpha,i),oh.transform(a))},w8=new Set(["none","hidden"]);function KBe(e,r){return w8.has(e)?n=>n<=0?e:r:n=>n>=1?r:e}function ZBe(e,r){return n=>Lr(e,r,n)}function k8(e){return typeof e=="number"?ZBe:typeof e=="string"?p8(e)?ck:kn.test(e)?bG:eFe:Array.isArray(e)?vG:typeof e=="object"?kn.test(e)?bG:QBe:ck}function vG(e,r){const n=[...e],o=n.length,a=e.map((i,s)=>k8(i)(i,r[s]));return i=>{for(let s=0;s{for(const i in o)n[i]=o[i](a);return n}}function JBe(e,r){const n=[],o={color:0,var:0,number:0};for(let a=0;a{const n=wu.createTransformer(r),o=ny(e),a=ny(r);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?w8.has(e)&&!a.values.length||w8.has(r)&&!o.values.length?KBe(e,r):Q1(vG(JBe(o,a),a.values),n):ck(e,r)};function xG(e,r,n){return typeof e=="number"&&typeof r=="number"&&typeof n=="number"?Lr(e,r,n):k8(e)(e,r)}const tFe=e=>{const r=({timestamp:n})=>e(n);return{start:(n=!0)=>Mr.update(r,n),stop:()=>vu(r),now:()=>mo.isProcessing?mo.timestamp:aa.now()}},wG=(e,r,n=10)=>{let o="";const a=Math.max(Math.round(r/n),2);for(let i=0;i=uk?1/0:r}function kG(e,r=100,n){const o=n({...e,keyframes:[0,r]}),a=Math.min(_8(o),uk);return{type:"keyframes",ease:i=>o.next(a*i).value/r,duration:hi(a)}}const rFe=5;function _G(e,r,n){const o=Math.max(r-rFe,0);return XX(n-e(o),r-o)}const Kr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},E8=.001;function nFe({duration:e=Kr.duration,bounce:r=Kr.bounce,velocity:n=Kr.velocity,mass:o=Kr.mass}){let a,i,s=1-r;s=rc(Kr.minDamping,Kr.maxDamping,s),e=rc(Kr.minDuration,Kr.maxDuration,hi(e)),s<1?(a=u=>{const d=u*s,h=d*e,p=d-n,g=S8(u,s),y=Math.exp(-h);return E8-p/g*y},i=u=>{const d=u*s*e,h=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-d),y=S8(Math.pow(u,2),s);return(-a(u)+E8>0?-1:1)*((h-p)*g)/y}):(a=u=>{const d=Math.exp(-u*e),h=(u-n)*e+1;return-E8+d*h},i=u=>{const d=Math.exp(-u*e),h=(n-u)*(e*e);return d*h});const l=5/e,c=aFe(a,i,l);if(e=ss(e),isNaN(c))return{stiffness:Kr.stiffness,damping:Kr.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:s*2*Math.sqrt(o*u),duration:e}}}const oFe=12;function aFe(e,r,n){let o=n;for(let a=1;ae[n]!==void 0)}function lFe(e){let r={velocity:Kr.velocity,stiffness:Kr.stiffness,damping:Kr.damping,mass:Kr.mass,isResolvedFromDuration:!1,...e};if(!EG(e,sFe)&&EG(e,iFe))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),a=o*o,i=2*rc(.05,1,1-(e.bounce||0))*Math.sqrt(a);r={...r,mass:Kr.mass,stiffness:a,damping:i}}else{const n=nFe(e);r={...r,...n,mass:Kr.mass},r.isResolvedFromDuration=!0}return r}function oy(e=Kr.visualDuration,r=Kr.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:r}:e;let{restSpeed:o,restDelta:a}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:h,velocity:p,isResolvedFromDuration:g}=lFe({...n,velocity:-hi(n.velocity||0)}),y=p||0,x=u/(2*Math.sqrt(c*d)),w=s-i,k=hi(Math.sqrt(c/d)),C=Math.abs(w)<5;o||(o=C?Kr.restSpeed.granular:Kr.restSpeed.default),a||(a=C?Kr.restDelta.granular:Kr.restDelta.default);let _;if(x<1){const A=S8(k,x);_=N=>{const $=Math.exp(-x*k*N);return s-$*((y+x*k*w)/A*Math.sin(A*N)+w*Math.cos(A*N))}}else if(x===1)_=A=>s-Math.exp(-k*A)*(w+(y+k*w)*A);else{const A=k*Math.sqrt(x*x-1);_=N=>{const $=Math.exp(-x*k*N),R=Math.min(A*N,300);return s-$*((y+x*k*w)*Math.sinh(R)+A*w*Math.cosh(R))/A}}const T={calculatedDuration:g&&h||null,next:A=>{const N=_(A);if(g)l.done=A>=h;else{let $=A===0?y:0;x<1&&($=A===0?ss(y):_G(_,A,N));const R=Math.abs($)<=o,M=Math.abs(s-N)<=a;l.done=R&&M}return l.value=l.done?s:N,l},toString:()=>{const A=Math.min(_8(T),uk),N=wG($=>T.next(A*$).value,A,30);return A+"ms "+N},toTransition:()=>{}};return T}oy.applyToOptions=e=>{const r=kG(e,100,oy);return e.ease=r.ease,e.duration=ss(r.duration),e.type="keyframes",e};function C8({keyframes:e,velocity:r=0,power:n=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=e[0],p={done:!1,value:h},g=R=>l!==void 0&&Rc,y=R=>l===void 0?c:c===void 0||Math.abs(l-R)-x*Math.exp(-R/o),_=R=>k+C(R),T=R=>{const M=C(R),O=_(R);p.done=Math.abs(M)<=u,p.value=p.done?k:O};let A,N;const $=R=>{g(p.value)&&(A=R,N=oy({keyframes:[p.value,y(p.value)],velocity:_G(_,R,p.value),damping:a,stiffness:i,restDelta:u,restSpeed:d}))};return $(0),{calculatedDuration:null,next:R=>{let M=!1;return!N&&A===void 0&&(M=!0,T(R),$(R)),A!==void 0&&R>=A?N.next(R-A):(!M&&T(R),p)}}}function cFe(e,r,n){const o=[],a=n||nc.mix||xG,i=e.length-1;for(let s=0;sr[0];if(i===2&&r[0]===r[1])return()=>r[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),r=[...r].reverse());const l=cFe(r,o,a),c=l.length,u=d=>{if(s&&d1)for(;hu(rc(e[0],e[i-1],d)):u}function SG(e,r){const n=e[e.length-1];for(let o=1;o<=r;o++){const a=em(0,r,o);e.push(Lr(n,1,a))}}function CG(e){const r=[0];return SG(r,e.length-1),r}function dFe(e,r){return e.map(n=>n*r)}function hFe(e,r){return e.map(()=>r||nG).splice(0,e.length-1)}function ay({duration:e=300,keyframes:r,times:n,ease:o="easeInOut"}){const a=oG(o)?o.map(sG):sG(o),i={done:!1,value:r[0]},s=dFe(n&&n.length===r.length?n:CG(r),e),l=uFe(s,r,{ease:Array.isArray(a)?a:hFe(r,a)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const fFe=e=>e!==null;function T8(e,{repeat:r,repeatType:n="loop"},o,a=1){const i=e.filter(fFe),s=a<0||r&&n!=="loop"&&r%2===1?0:i.length-1;return!s||o===void 0?i[s]:o}const pFe={decay:C8,inertia:C8,tween:ay,keyframes:ay,spring:oy};function TG(e){typeof e.type=="string"&&(e.type=pFe[e.type])}class A8{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,n){return this.finished.then(r,n)}}const mFe=e=>e/100;class N8 extends A8{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==aa.now()&&this.tick(aa.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;TG(r);const{type:n=ay,repeat:o=0,repeatDelay:a=0,repeatType:i,velocity:s=0}=r;let{keyframes:l}=r;const c=n||ay;c!==ay&&typeof l[0]!="number"&&(this.mixKeyframes=Q1(mFe,xG(l[0],l[1])),l=[0,100]);const u=c({...r,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...r,keyframes:[...l].reverse(),velocity:-s})),u.calculatedDuration===null&&(u.calculatedDuration=_8(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+a,this.totalDuration=this.resolvedDuration*(o+1)-a,this.generator=u}updateTime(r){const n=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(r,n=!1){const{generator:o,totalDuration:a,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:u=0,keyframes:d,repeat:h,repeatType:p,repeatDelay:g,type:y,onUpdate:x,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-a/this.speed,this.startTime)),n?this.currentTime=r:this.updateTime(r);const k=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?k<0:k>a;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let _=this.currentTime,T=o;if(h){const R=Math.min(this.currentTime,a)/l;let M=Math.floor(R),O=R%1;!O&&R>=1&&(O=1),O===1&&M--,M=Math.min(M,h+1),M%2&&(p==="reverse"?(O=1-O,g&&(O-=g/l)):p==="mirror"&&(T=s)),_=rc(0,1,O)*l}const A=C?{done:!1,value:d[0]}:T.next(_);i&&(A.value=i(A.value));let{done:N}=A;!C&&c!==null&&(N=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return $&&y!==C8&&(A.value=T8(d,this.options,w,this.speed)),x&&x(A.value),$&&this.finish(),A}then(r,n){return this.finished.then(r,n)}get duration(){return hi(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+hi(r)}get time(){return hi(this.currentTime)}set time(r){r=ss(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(aa.now());const n=this.playbackSpeed!==r;this.playbackSpeed=r,n&&(this.time=hi(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=tFe,startTime:n}=this.options;this.driver||(this.driver=r(a=>this.tick(a))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(aa.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function gFe(e){for(let r=1;re*180/Math.PI,R8=e=>{const r=ah(Math.atan2(e[1],e[0]));return $8(r)},yFe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:R8,rotateZ:R8,skewX:e=>ah(Math.atan(e[1])),skewY:e=>ah(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$8=e=>(e=e%360,e<0&&(e+=360),e),AG=R8,NG=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),RG=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bFe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:NG,scaleY:RG,scale:e=>(NG(e)+RG(e))/2,rotateX:e=>$8(ah(Math.atan2(e[6],e[5]))),rotateY:e=>$8(ah(Math.atan2(-e[2],e[0]))),rotateZ:AG,rotate:AG,skewX:e=>ah(Math.atan(e[4])),skewY:e=>ah(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function P8(e){return e.includes("scale")?1:0}function M8(e,r){if(!e||e==="none")return P8(r);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,a;if(n)o=bFe,a=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=yFe,a=l}if(!a)return P8(r);const i=o[r],s=a[1].split(",").map(xFe);return typeof i=="function"?i(s):s[i]}const vFe=(e,r)=>{const{transform:n="none"}=getComputedStyle(e);return M8(n,r)};function xFe(e){return parseFloat(e.trim())}const nm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],om=new Set(nm),$G=e=>e===tm||e===vt,wFe=new Set(["x","y","z"]),kFe=nm.filter(e=>!wFe.has(e));function _Fe(e){const r=[];return kFe.forEach(n=>{const o=e.getValue(n);o!==void 0&&(r.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),r}const ih={width:({x:e},{paddingLeft:r="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),height:({y:e},{paddingTop:r="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),top:(e,{top:r})=>parseFloat(r),left:(e,{left:r})=>parseFloat(r),bottom:({y:e},{top:r})=>parseFloat(r)+(e.max-e.min),right:({x:e},{left:r})=>parseFloat(r)+(e.max-e.min),x:(e,{transform:r})=>M8(r,"x"),y:(e,{transform:r})=>M8(r,"y")};ih.translateX=ih.x,ih.translateY=ih.y;const sh=new Set;let O8=!1,D8=!1,L8=!1;function PG(){if(D8){const e=Array.from(sh).filter(o=>o.needsMeasurement),r=new Set(e.map(o=>o.element)),n=new Map;r.forEach(o=>{const a=_Fe(o);a.length&&(n.set(o,a),o.render())}),e.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const a=n.get(o);a&&a.forEach(([i,s])=>{o.getValue(i)?.set(s)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}D8=!1,O8=!1,sh.forEach(e=>e.complete(L8)),sh.clear()}function MG(){sh.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(D8=!0)})}function EFe(){L8=!0,MG(),PG(),L8=!1}class I8{constructor(r,n,o,a,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=n,this.name=o,this.motionValue=a,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(sh.add(this),O8||(O8=!0,Mr.read(MG),Mr.resolveKeyframes(PG))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:n,element:o,motionValue:a}=this;if(r[0]===null){const i=a?.get(),s=r[r.length-1];if(i!==void 0)r[0]=i;else if(o&&n){const l=o.readValue(n,s);l!=null&&(r[0]=l)}r[0]===void 0&&(r[0]=s),a&&i===void 0&&a.set(r[0])}gFe(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),sh.delete(this)}cancel(){this.state==="scheduled"&&(sh.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const SFe=e=>e.startsWith("--");function CFe(e,r,n){SFe(r)?e.style.setProperty(r,n):e.style[r]=n}const TFe=l8(()=>window.ScrollTimeline!==void 0),AFe={};function NFe(e,r){const n=l8(e);return()=>AFe[r]??n()}const OG=NFe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),iy=([e,r,n,o])=>`cubic-bezier(${e}, ${r}, ${n}, ${o})`,DG={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iy([0,.65,.55,1]),circOut:iy([.55,0,1,.45]),backIn:iy([.31,.01,.66,-.59]),backOut:iy([.33,1.53,.69,.99])};function LG(e,r){if(e)return typeof e=="function"?OG()?wG(e,r):"ease-out":iG(e)?iy(e):Array.isArray(e)?e.map(n=>LG(n,r)||DG.easeOut):DG[e]}function RFe(e,r,n,{delay:o=0,duration:a=300,repeat:i=0,repeatType:s="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[r]:n};c&&(d.offset=c);const h=LG(l,a);Array.isArray(h)&&(d.easing=h);const p={delay:o,duration:a,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(d,p)}function z8(e){return typeof e=="function"&&"applyToOptions"in e}function $Fe({type:e,...r}){return z8(e)&&OG()?e.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class PFe extends A8{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:n,name:o,keyframes:a,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:l,onComplete:c}=r;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=r,s8(typeof r.type!="string");const u=$Fe(r);this.animation=RFe(n,o,a,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=T8(a,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):CFe(n,o,d),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return hi(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+hi(r)}get time(){return hi(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=ss(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&TFe()?(this.animation.timeline=r,di):n(this)}}const IG={anticipate:eG,backInOut:JX,circInOut:rG};function MFe(e){return e in IG}function OFe(e){typeof e.ease=="string"&&MFe(e.ease)&&(e.ease=IG[e.ease])}const zG=10;class DFe extends PFe{constructor(r){OFe(r),TG(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:n,onUpdate:o,onComplete:a,element:i,...s}=this.options;if(!n)return;if(r!==void 0){n.set(r);return}const l=new N8({...s,autoplay:!1}),c=ss(this.finishedTime??this.time);n.setWithVelocity(l.sample(c-zG).value,l.sample(c).value,zG),l.stop()}}const jG=(e,r)=>r==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wu.test(e)||e==="0")&&!e.startsWith("url("));function LFe(e){const r=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function BFe(e){const{motionValue:r,name:n,repeatDelay:o,repeatType:a,damping:i,type:s}=e;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=r.owner.getProps();return jFe()&&n&&zFe.has(n)&&(n!=="transform"||!c)&&!l&&!o&&a!=="mirror"&&i!==0&&s!=="inertia"}const FFe=40;class HFe extends A8{constructor({autoplay:r=!0,delay:n=0,type:o="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",keyframes:l,name:c,motionValue:u,element:d,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=aa.now();const p={autoplay:r,delay:n,type:o,repeat:a,repeatDelay:i,repeatType:s,name:c,motionValue:u,element:d,...h},g=d?.KeyframeResolver||I8;this.keyframeResolver=new g(l,(y,x,w)=>this.onKeyframesResolved(y,x,p,!w),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,n,o,a){this.keyframeResolver=void 0;const{name:i,type:s,velocity:l,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=aa.now(),IFe(r,i,s,l)||((nc.instantAnimations||!c)&&d?.(T8(r,o,n)),r[0]=r[r.length-1],j8(o),o.repeat=0);const h={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>FFe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:r},p=!u&&BFe(h)?new DFe({...h,element:h.motionValue.owner.current}):new N8(h);p.finished.then(()=>this.notifyFinished()).catch(di),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(r,n){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),EFe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class UFe{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>r.finished))}getAll(r){return this.animations[0][r]}setAll(r,n){for(let o=0;oo.attachTimeline(r));return()=>{n.forEach((o,a)=>{o&&o(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return BG(this.animations,"duration")}get iterationDuration(){return BG(this.animations,"iterationDuration")}runAll(r){this.animations.forEach(n=>n[r]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function BG(e,r){let n=0;for(let o=0;on&&(n=a)}return n}class VFe extends UFe{then(r,n){return this.finished.finally(r).then(()=>{})}}const qFe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function YFe(e){const r=qFe.exec(e);if(!r)return[,];const[,n,o,a]=r;return[`--${n??o}`,a]}function FG(e,r,n=1){const[o,a]=YFe(e);if(!o)return;const i=window.getComputedStyle(r).getPropertyValue(o);if(i){const s=i.trim();return qX(s)?parseFloat(s):s}return p8(a)?FG(a,r,n+1):a}function B8(e,r){return e?.[r]??e?.default??e}const HG=new Set(["width","height","top","left","right","bottom",...nm]),WFe={test:e=>e==="auto",parse:e=>e},UG=e=>r=>r.test(e),VG=[tm,vt,sl,xu,jBe,zBe,WFe],qG=e=>VG.find(UG(e));function XFe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WX(e):!0}const GFe=new Set(["brightness","contrast","saturate","opacity"]);function KFe(e){const[r,n]=e.slice(0,-1).split("(");if(r==="drop-shadow")return e;const[o]=n.match(m8)||[];if(!o)return e;const a=n.replace(o,"");let i=GFe.has(r)?1:0;return o!==n&&(i*=100),r+"("+i+a+")"}const ZFe=/\b([a-z-]*)\(.*?\)/gu,F8={...wu,getAnimatableNone:e=>{const r=e.match(ZFe);return r?r.map(KFe).join(" "):e}},YG={...tm,transform:Math.round},QFe={rotate:xu,rotateX:xu,rotateY:xu,rotateZ:xu,scale:lk,scaleX:lk,scaleY:lk,scaleZ:lk,skew:xu,skewX:xu,skewY:xu,distance:vt,translateX:vt,translateY:vt,translateZ:vt,x:vt,y:vt,z:vt,perspective:vt,transformPerspective:vt,opacity:ey,originX:dG,originY:dG,originZ:vt},H8={borderWidth:vt,borderTopWidth:vt,borderRightWidth:vt,borderBottomWidth:vt,borderLeftWidth:vt,borderRadius:vt,radius:vt,borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomRightRadius:vt,borderBottomLeftRadius:vt,width:vt,maxWidth:vt,height:vt,maxHeight:vt,top:vt,right:vt,bottom:vt,left:vt,padding:vt,paddingTop:vt,paddingRight:vt,paddingBottom:vt,paddingLeft:vt,margin:vt,marginTop:vt,marginRight:vt,marginBottom:vt,marginLeft:vt,backgroundPositionX:vt,backgroundPositionY:vt,...QFe,zIndex:YG,fillOpacity:ey,strokeOpacity:ey,numOctaves:YG},JFe={...H8,color:kn,backgroundColor:kn,outlineColor:kn,fill:kn,stroke:kn,borderColor:kn,borderTopColor:kn,borderRightColor:kn,borderBottomColor:kn,borderLeftColor:kn,filter:F8,WebkitFilter:F8},WG=e=>JFe[e];function XG(e,r){let n=WG(e);return n!==F8&&(n=wu),n.getAnimatableNone?n.getAnimatableNone(r):void 0}const eHe=new Set(["auto","none","0"]);function tHe(e,r,n){let o=0,a;for(;o{r.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function GG(e,r,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const a=n?.[e]??o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const KG=(e,r)=>r&&typeof e=="number"?r.transform(e):e;function ZG(e){return YX(e)&&"offsetHeight"in e}const QG=30,nHe=e=>!isNaN(parseFloat(e));class oHe{constructor(r,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const a=aa.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=n.owner}setCurrent(r){this.current=r,this.updatedAt=aa.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=nHe(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,n){this.events[r]||(this.events[r]=new c8);const o=this.events[r].add(n);return r==="change"?()=>{o(),Mr.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,n){this.passiveEffect=r,this.stopPassiveEffect=n}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,n=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=aa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>QG)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,QG);return XX(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(r){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=r(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function lh(e,r){return new oHe(e,r)}const{schedule:U8}=lG(queueMicrotask,!1),ls={x:!1,y:!1};function JG(){return ls.x||ls.y}function aHe(e){return e==="x"||e==="y"?ls[e]?null:(ls[e]=!0,()=>{ls[e]=!1}):ls.x||ls.y?null:(ls.x=ls.y=!0,()=>{ls.x=ls.y=!1})}function eK(e,r){const n=GG(e),o=new AbortController,a={passive:!0,...r,signal:o.signal};return[n,a,()=>o.abort()]}function tK(e){return!(e.pointerType==="touch"||JG())}function iHe(e,r,n={}){const[o,a,i]=eK(e,n),s=l=>{if(!tK(l))return;const{target:c}=l,u=r(c,l);if(typeof u!="function"||!c)return;const d=h=>{tK(h)&&(u(h),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,a)};return o.forEach(l=>{l.addEventListener("pointerenter",s,a)}),i}const rK=(e,r)=>r?e===r?!0:rK(e,r.parentElement):!1,V8=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sHe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lHe(e){return sHe.has(e.tagName)||e.tabIndex!==-1}const dk=new WeakSet;function nK(e){return r=>{r.key==="Enter"&&e(r)}}function q8(e,r){e.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const cHe=(e,r)=>{const n=e.currentTarget;if(!n)return;const o=nK(()=>{if(dk.has(n))return;q8(n,"down");const a=nK(()=>{q8(n,"up")}),i=()=>q8(n,"cancel");n.addEventListener("keyup",a,r),n.addEventListener("blur",i,r)});n.addEventListener("keydown",o,r),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),r)};function oK(e){return V8(e)&&!JG()}function uHe(e,r,n={}){const[o,a,i]=eK(e,n),s=l=>{const c=l.currentTarget;if(!oK(l))return;dk.add(c);const u=r(c,l),d=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),dk.has(c)&&dk.delete(c),oK(g)&&typeof u=="function"&&u(g,{success:y})},h=g=>{d(g,c===window||c===document||n.useGlobalTarget||rK(c,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",h,a),window.addEventListener("pointercancel",p,a)};return o.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,a),ZG(l)&&(l.addEventListener("focus",c=>cHe(c,a)),!lHe(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function Y8(e){return YX(e)&&"ownerSVGElement"in e}function aK(e){return Y8(e)&&e.tagName==="svg"}const Qn=e=>!!(e&&e.getVelocity),dHe=[...VG,kn,wu],hHe=e=>dHe.find(UG(e));function W8(e){return typeof e=="object"&&!Array.isArray(e)}function iK(e,r,n,o){return typeof e=="string"&&W8(r)?GG(e,n,o):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function fHe(e,r,n){return e*(r+1)}function sK(e,r,n,o){return typeof r=="number"?r:r.startsWith("-")||r.startsWith("+")?Math.max(0,e+parseFloat(r)):r==="<"?n:r.startsWith("<")?Math.max(0,n+parseFloat(r.slice(1))):o.get(r)??e}function pHe(e,r,n){for(let o=0;or&&a.at{const M=xHe(T),{delay:O=0,times:B=CG(M),type:I="keyframes",repeat:Y,repeatType:D,repeatDelay:V=0,...L}=A;let{ease:U=r.ease||"easeOut",duration:q}=A;const X=typeof O=="function"?O($,R):O,F=M.length,J=z8(I)?I:a?.[I||"keyframes"];if(F<=2&&J){let G=100;if(F===2&&_He(M)){const ee=M[1]-M[0];G=Math.abs(ee)}const Z={...L};q!==void 0&&(Z.duration=ss(q));const oe=kG(Z,G,J);U=oe.ease,q=oe.duration}q??(q=i);const Q=h+X;B.length===1&&B[0]===0&&(B[1]=1);const z=B.length-M.length;if(z>0&&SG(B,z),M.length===1&&M.unshift(null),Y){q=fHe(q,Y);const G=[...M],Z=[...B];U=Array.isArray(U)?[...U]:[U];const oe=[...U];for(let ee=0;ee{for(const x in g){const w=g[x];w.sort(yHe);const k=[],C=[],_=[];for(let A=0;Atypeof e=="number",_He=e=>e.every(kHe),sy=new WeakMap,X8=e=>Array.isArray(e);function uK(e){const r=[{},{}];return e?.values.forEach((n,o)=>{r[0][o]=n.get(),r[1][o]=n.getVelocity()}),r}function G8(e,r,n,o){if(typeof r=="function"){const[a,i]=uK(o);r=r(n!==void 0?n:e.custom,a,i)}if(typeof r=="string"&&(r=e.variants&&e.variants[r]),typeof r=="function"){const[a,i]=uK(o);r=r(n!==void 0?n:e.custom,a,i)}return r}function am(e,r,n){const o=e.getProps();return G8(o,r,n!==void 0?n:o.custom,e)}function EHe(e,r,n){e.hasValue(r)?e.getValue(r).set(n):e.addValue(r,lh(n))}function SHe(e){return X8(e)?e[e.length-1]||0:e}function CHe(e,r){const n=am(e,r);let{transitionEnd:o={},transition:a={},...i}=n||{};i={...i,...o};for(const s in i){const l=SHe(i[s]);EHe(e,s,l)}}function THe(e){return!!(Qn(e)&&e.add)}function K8(e,r){const n=e.getValue("willChange");if(THe(n))return n.add(r);if(!n&&nc.WillChange){const o=new nc.WillChange("auto");e.addValue("willChange",o),o.add(r)}}const Z8=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),AHe="framerAppearId",dK="data-"+Z8(AHe);function hK(e){return e.props[dK]}const NHe=e=>e!==null;function RHe(e,{repeat:r,repeatType:n="loop"},o){const a=e.filter(NHe),i=r&&n!=="loop"&&r%2===1?0:a.length-1;return a[i]}const $He={type:"spring",stiffness:500,damping:25,restSpeed:10},PHe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),MHe={type:"keyframes",duration:.8},OHe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},DHe=(e,{keyframes:r})=>r.length>2?MHe:om.has(e)?e.startsWith("scale")?PHe(r[1]):$He:OHe;function LHe({when:e,delay:r,delayChildren:n,staggerChildren:o,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Q8=(e,r,n,o={},a,i)=>s=>{const l=B8(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-ss(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:r.getVelocity(),...l,delay:-u,onUpdate:p=>{r.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:r,element:i?void 0:a};LHe(l)||Object.assign(d,DHe(e,d)),d.duration&&(d.duration=ss(d.duration)),d.repeatDelay&&(d.repeatDelay=ss(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(j8(d),d.delay===0&&(h=!0)),(nc.instantAnimations||nc.skipAnimations)&&(h=!0,j8(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!i&&r.get()!==void 0){const p=RHe(d.keyframes,l);if(p!==void 0){Mr.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new N8(d):new HFe(d)};function IHe({protectedKeys:e,needsAnimating:r},n){const o=e.hasOwnProperty(n)&&r[n]!==!0;return r[n]=!1,o}function J8(e,r,{delay:n=0,transitionOverride:o,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=r;o&&(i=o);const c=[],u=a&&e.animationState&&e.animationState.getState()[a];for(const d in l){const h=e.getValue(d,e.latestValues[d]??null),p=l[d];if(p===void 0||u&&IHe(u,d))continue;const g={delay:n,...B8(i||{},d)},y=h.get();if(y!==void 0&&!h.isAnimating&&!Array.isArray(p)&&p===y&&!g.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const k=hK(e);if(k){const C=window.MotionHandoffAnimation(k,d,Mr);C!==null&&(g.startTime=C,x=!0)}}K8(e,d),h.start(Q8(d,h,p,e.shouldReduceMotion&&HG.has(d)?{type:!1}:g,e,x));const w=h.animation;w&&c.push(w)}return s&&Promise.all(c).then(()=>{Mr.update(()=>{s&&CHe(e,s)})}),c}function fK({top:e,left:r,right:n,bottom:o}){return{x:{min:r,max:n},y:{min:e,max:o}}}function zHe({x:e,y:r}){return{top:r.min,right:e.max,bottom:r.max,left:e.min}}function jHe(e,r){if(!r)return e;const n=r({x:e.left,y:e.top}),o=r({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function e9(e){return e===void 0||e===1}function t9({scale:e,scaleX:r,scaleY:n}){return!e9(e)||!e9(r)||!e9(n)}function ch(e){return t9(e)||pK(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pK(e){return mK(e.x)||mK(e.y)}function mK(e){return e&&e!=="0%"}function hk(e,r,n){const o=e-n,a=r*o;return n+a}function gK(e,r,n,o,a){return a!==void 0&&(e=hk(e,a,o)),hk(e,n,o)+r}function r9(e,r=0,n=1,o,a){e.min=gK(e.min,r,n,o,a),e.max=gK(e.max,r,n,o,a)}function yK(e,{x:r,y:n}){r9(e.x,r.translate,r.scale,r.originPoint),r9(e.y,n.translate,n.scale,n.originPoint)}const bK=.999999999999,vK=1.0000000000001;function BHe(e,r,n,o=!1){const a=n.length;if(!a)return;r.x=r.y=1;let i,s;for(let l=0;lbK&&(r.x=1),r.ybK&&(r.y=1)}function im(e,r){e.min=e.min+r,e.max=e.max+r}function xK(e,r,n,o,a=.5){const i=Lr(e.min,e.max,a);r9(e,r,n,i,o)}function sm(e,r){xK(e.x,r.x,r.scaleX,r.scale,r.originX),xK(e.y,r.y,r.scaleY,r.scale,r.originY)}function wK(e,r){return fK(jHe(e.getBoundingClientRect(),r))}function FHe(e,r,n){const o=wK(e,n),{scroll:a}=r;return a&&(im(o.x,a.offset.x),im(o.y,a.offset.y)),o}const kK={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lm={};for(const e in kK)lm[e]={isEnabled:r=>kK[e].some(n=>!!r[n])};const _K=()=>({translate:0,scale:1,origin:0,originPoint:0}),cm=()=>({x:_K(),y:_K()}),EK=()=>({min:0,max:0}),Zr=()=>({x:EK(),y:EK()}),n9=typeof window<"u",fk={current:null},o9={current:!1};function SK(){if(o9.current=!0,!!n9)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),r=()=>fk.current=e.matches;e.addEventListener("change",r),r()}else fk.current=!1}function pk(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ly(e){return typeof e=="string"||Array.isArray(e)}const a9=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i9=["initial",...a9];function mk(e){return pk(e.animate)||i9.some(r=>ly(e[r]))}function CK(e){return!!(mk(e)||e.variants)}function HHe(e,r,n){for(const o in r){const a=r[o],i=n[o];if(Qn(a))e.addValue(o,a);else if(Qn(i))e.addValue(o,lh(a,{owner:e}));else if(i!==a)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(o);e.addValue(o,lh(s!==void 0?s:a,{owner:e}))}}for(const o in n)r[o]===void 0&&e.removeValue(o);return r}const TK=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class AK{scrapeMotionValuesFromProps(r,n,o){return{}}constructor({parent:r,props:n,presenceContext:o,reducedMotionConfig:a,blockInitialAnimation:i,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=I8,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=aa.now();this.renderScheduledAtthis.bindToMotionValue(o,n)),o9.current||SK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fk.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),vu(this.notifyUpdate),vu(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,n){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=om.has(r);o&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",s=>{this.latestValues[r]=s,this.props.onUpdate&&Mr.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,r,n)),this.valueSubscriptions.set(r,()=>{a(),i&&i(),n.owner&&n.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in lm){const n=lm[r];if(!n)continue;const{isEnabled:o,Feature:a}=n;if(!this.features[r]&&a&&o(this.props)&&(this.features[r]=new a(this)),this.features[r]){const i=this.features[r];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Zr()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,n){this.latestValues[r]=n}update(r,n){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;on.variantChildren.delete(r)}addValue(r,n){const o=this.values.get(r);n!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,n),this.values.set(r,n),this.latestValues[r]=n.get())}removeValue(r){this.values.delete(r);const n=this.valueSubscriptions.get(r);n&&(n(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,n){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&n!==void 0&&(o=lh(n===null?void 0:n,{owner:this}),this.addValue(r,o)),o}readValue(r,n){let o=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return o!=null&&(typeof o=="string"&&(qX(o)||WX(o))?o=parseFloat(o):!hHe(o)&&wu.test(n)&&(o=XG(r,n)),this.setBaseTarget(r,Qn(o)?o.get():o)),Qn(o)?o.get():o}setBaseTarget(r,n){this.baseTarget[r]=n}getBaseTarget(r){const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const i=G8(this.props,n,this.presenceContext?.custom);i&&(o=i[r])}if(n&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,r);return a!==void 0&&!Qn(a)?a:this.initialValues[r]!==void 0&&o===void 0?void 0:this.baseTarget[r]}on(r,n){return this.events[r]||(this.events[r]=new c8),this.events[r].add(n)}notify(r,...n){this.events[r]&&this.events[r].notify(...n)}scheduleRenderMicrotask(){U8.render(this.render)}}class NK extends AK{constructor(){super(...arguments),this.KeyframeResolver=rHe}sortInstanceNodePosition(r,n){return r.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(r,n){return r.style?r.style[n]:void 0}removeValueFromRenderState(r,{vars:n,style:o}){delete n[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Qn(r)&&(this.childSubscription=r.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const UHe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VHe=nm.length;function qHe(e,r,n){let o="",a=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg";function JHe(e,r,n,o){RK(e,r,void 0,o);for(const a in r.attrs)e.setAttribute(OK.has(a)?a:Z8(a),r.attrs[a])}function LK(e,r,n){const o=l9(e,r,n);for(const a in e)if(Qn(e[a])||Qn(r[a])){const i=nm.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[i]=e[a]}return o}class IK extends NK{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Zr}getBaseTargetFromProps(r,n){return r[n]}readValueFromInstance(r,n){if(om.has(n)){const o=WG(n);return o&&o.default||0}return n=OK.has(n)?n:Z8(n),r.getAttribute(n)}scrapeMotionValuesFromProps(r,n,o){return LK(r,n,o)}build(r,n,o){MK(r,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(r,n,o,a){JHe(r,n,o,a)}mount(r){this.isSVGTag=DK(r.tagName),super.mount(r)}}function eUe(e){const r={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Y8(e)&&!aK(e)?new IK(r):new PK(r);n.mount(e),sy.set(e,n)}function tUe(e){const r={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new GHe(r);n.mount(e),sy.set(e,n)}function zK(e,r,n){const o=Qn(e)?e:lh(e);return o.start(Q8("",o,r,n)),o.animation}function rUe(e,r){return Qn(e)||typeof e=="number"||typeof e=="string"&&!W8(r)}function jK(e,r,n,o){const a=[];if(rUe(e,r))a.push(zK(e,W8(r)&&r.default||r,n&&(n.default||n)));else{const i=iK(e,r,o),s=i.length;for(let l=0;l{o.push(...jK(s,a,i))}),o}function oUe(e){return Array.isArray(e)&&e.some(Array.isArray)}function aUe(e){function r(n,o,a){let i=[],s;if(oUe(n))i=nUe(n,o,e);else{const{onComplete:c,...u}=a||{};typeof c=="function"&&(s=c),i=jK(n,o,u,e)}const l=new VFe(i);return s&&l.finished.then(s),l}return r}const iUe=aUe();function sUe(e,r){const n=aa.now(),o=({timestamp:a})=>{const i=a-n;i>=r&&(vu(o),e(i-r))};return Mr.setup(o,!0),()=>vu(o)}const BK=(e,r)=>Math.abs(e-r);function lUe(e,r){const n=BK(e.x,r.x),o=BK(e.y,r.y);return Math.sqrt(n**2+o**2)}const uy=E.createContext({});function um(e){const r=E.useRef(null);return r.current===null&&(r.current=e()),r.current}const c9=n9?E.useLayoutEffect:E.useEffect,gk=E.createContext(null),uh=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function FK(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function cUe(...e){return r=>{let n=!1;const o=e.map(a=>{const i=FK(a,r);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a{const{width:u,height:d,top:h,left:p,right:g}=s.current;if(r||!i.current||!u||!d)return;const y=n==="left"?`left: ${p}`:`right: ${g}`;i.current.dataset.motionPopId=a;const x=document.createElement("style");l&&(x.nonce=l);const w=o??document.head;return w.appendChild(x),x.sheet&&x.sheet.insertRule(` + [data-motion-pop-id="${a}"] { + position: absolute !important; + width: ${u}px !important; + height: ${d}px !important; + ${y}px !important; + top: ${h}px !important; + } + `),()=>{w.contains(x)&&w.removeChild(x)}},[r]),b.jsx(dUe,{isPresent:r,childRef:i,sizeRef:s,children:E.cloneElement(e,{ref:c})})}const fUe=({children:e,initial:r,isPresent:n,onExitComplete:o,custom:a,presenceAffectsLayout:i,mode:s,anchorX:l,root:c})=>{const u=um(pUe),d=E.useId();let h=!0,p=E.useMemo(()=>(h=!1,{id:d,initial:r,isPresent:n,custom:a,onExitComplete:g=>{u.set(g,!0);for(const y of u.values())if(!y)return;o&&o()},register:g=>(u.set(g,!1),()=>u.delete(g))}),[n,u,o]);return i&&h&&(p={...p}),E.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),E.useEffect(()=>{!n&&!u.size&&o&&o()},[n]),s==="popLayout"&&(e=b.jsx(hUe,{isPresent:n,anchorX:l,root:c,children:e})),b.jsx(gk.Provider,{value:p,children:e})};function pUe(){return new Map}function HK(e=!0){const r=E.useContext(gk);if(r===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:a}=r,i=E.useId();E.useEffect(()=>{if(e)return a(i)},[e]);const s=E.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,s]:[!0]}const yk=e=>e.key||"";function UK(e){const r=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&r.push(n)}),r}const Pa=({children:e,custom:r,initial:n=!0,onExitComplete:o,presenceAffectsLayout:a=!0,mode:i="sync",propagate:s=!1,anchorX:l="left",root:c})=>{const[u,d]=HK(s),h=E.useMemo(()=>UK(e),[e]),p=s&&!u?[]:h.map(yk),g=E.useRef(!0),y=E.useRef(h),x=um(()=>new Map),[w,k]=E.useState(h),[C,_]=E.useState(h);c9(()=>{g.current=!1,y.current=h;for(let N=0;N{const $=yk(N),R=s&&!u?!1:h===C||p.includes($),M=()=>{if(x.has($))x.set($,!0);else return;let O=!0;x.forEach(B=>{B||(O=!1)}),O&&(A?.(),_(y.current),s&&d?.(),o&&o())};return b.jsx(fUe,{isPresent:R,initial:!g.current||n?void 0:!1,custom:r,presenceAffectsLayout:a,mode:i,root:c,onExitComplete:R?void 0:M,anchorX:l,children:N},$)})})},mUe=E.createContext(null);function gUe(){const e=E.useRef(!1);return c9(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function yUe(){const e=gUe(),[r,n]=E.useState(0),o=E.useCallback(()=>{e.current&&n(r+1)},[r]);return[E.useCallback(()=>Mr.postRender(o),[o]),r]}const bUe=e=>!e.isLayoutDirty&&e.willUpdate(!1);function vUe(){const e=new Set,r=new WeakMap,n=()=>e.forEach(bUe);return{add:o=>{e.add(o),r.set(o,o.addEventListener("willUpdate",n))},remove:o=>{e.delete(o);const a=r.get(o);a&&(a(),r.delete(o)),n()},dirty:n}}const VK=e=>e===!0,xUe=e=>VK(e===!0)||e==="id",dm=({children:e,id:r,inherit:n=!0})=>{const o=E.useContext(uy),a=E.useContext(mUe),[i,s]=yUe(),l=E.useRef(null),c=o.id||a;l.current===null&&(xUe(n)&&c&&(r=r?c+"-"+r:c),l.current={id:r,group:VK(n)&&o.group||vUe()});const u=E.useMemo(()=>({...l.current,forceRender:i}),[s]);return b.jsx(uy.Provider,{value:u,children:e})},u9=E.createContext({strict:!1});function d9(e){for(const r in e)lm[r]={...lm[r],...e[r]}}function wUe({children:e,features:r,strict:n=!1}){const[,o]=E.useState(!h9(r)),a=E.useRef(void 0);if(!h9(r)){const{renderer:i,...s}=r;a.current=i,d9(s)}return E.useEffect(()=>{h9(r)&&r().then(({renderer:i,...s})=>{d9(s),a.current=i,o(!0)})},[]),b.jsx(u9.Provider,{value:{renderer:a.current,strict:n},children:e})}function h9(e){return typeof e=="function"}const kUe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bk(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kUe.has(e)}let qK=e=>!bk(e);function YK(e){typeof e=="function"&&(qK=r=>r.startsWith("on")?!bk(r):e(r))}try{YK(require("@emotion/is-prop-valid").default)}catch{}function _Ue(e,r,n){const o={};for(const a in e)a==="values"&&typeof e.values=="object"||(qK(a)||n===!0&&bk(a)||!r&&!bk(a)||e.draggable&&a.startsWith("onDrag"))&&(o[a]=e[a]);return o}function EUe({children:e,isValidProp:r,...n}){r&&YK(r),n={...E.useContext(uh),...n},n.isStatic=um(()=>n.isStatic);const o=E.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return b.jsx(uh.Provider,{value:o,children:e})}const vk=E.createContext({});function SUe(e,r){if(mk(e)){const{initial:n,animate:o}=e;return{initial:n===!1||ly(n)?n:void 0,animate:ly(o)?o:void 0}}return e.inherit!==!1?r:{}}function CUe(e){const{initial:r,animate:n}=SUe(e,E.useContext(vk));return E.useMemo(()=>({initial:r,animate:n}),[WK(r),WK(n)])}function WK(e){return Array.isArray(e)?e.join(" "):e}const f9=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function XK(e,r,n){for(const o in r)!Qn(r[o])&&!$K(o,n)&&(e[o]=r[o])}function TUe({transformTemplate:e},r){return E.useMemo(()=>{const n=f9();return s9(n,r,e),Object.assign({},n.vars,n.style)},[r])}function AUe(e,r){const n=e.style||{},o={};return XK(o,n,e),Object.assign(o,TUe(e,r)),o}function NUe(e,r){const n={},o=AUe(e,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const GK=()=>({...f9(),attrs:{}});function RUe(e,r,n,o){const a=E.useMemo(()=>{const i=GK();return MK(i,r,DK(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[r]);if(e.style){const i={};XK(i,e.style,e),a.style={...i,...a.style}}return a}const $Ue=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function p9(e){return typeof e!="string"||e.includes("-")?!1:!!($Ue.indexOf(e)>-1||/[A-Z]/u.test(e))}function PUe(e,r,n,{latestValues:o},a,i=!1){const s=(p9(e)?RUe:NUe)(r,o,a,e),l=_Ue(r,typeof e=="string",i),c=e!==E.Fragment?{...l,...s,ref:n}:{},{children:u}=r,d=E.useMemo(()=>Qn(u)?u.get():u,[u]);return E.createElement(e,{...c,children:d})}function xk(e){return Qn(e)?e.get():e}function MUe({scrapeMotionValuesFromProps:e,createRenderState:r},n,o,a){return{latestValues:OUe(n,o,a,e),renderState:r()}}function OUe(e,r,n,o){const a={},i=o(e,{});for(const p in i)a[p]=xk(i[p]);let{initial:s,animate:l}=e;const c=mk(e),u=CK(e);r&&u&&!c&&e.inherit!==!1&&(s===void 0&&(s=r.initial),l===void 0&&(l=r.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const h=d?l:s;if(h&&typeof h!="boolean"&&!pk(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g(r,n)=>{const o=E.useContext(vk),a=E.useContext(gk),i=()=>MUe(e,r,o,a);return n?i():um(i)},DUe=KK({scrapeMotionValuesFromProps:l9,createRenderState:f9}),LUe=KK({scrapeMotionValuesFromProps:LK,createRenderState:GK}),IUe=Symbol.for("motionComponentSymbol");function hm(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zUe(e,r,n){return E.useCallback(o=>{o&&e.onMount&&e.onMount(o),r&&(o?r.mount(o):r.unmount()),n&&(typeof n=="function"?n(o):hm(n)&&(n.current=o))},[r])}const ZK=E.createContext({});function jUe(e,r,n,o,a){const{visualElement:i}=E.useContext(vk),s=E.useContext(u9),l=E.useContext(gk),c=E.useContext(uh).reducedMotion,u=E.useRef(null);o=o||s.renderer,!u.current&&o&&(u.current=o(e,{visualState:r,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const d=u.current,h=E.useContext(ZK);d&&!d.projection&&a&&(d.type==="html"||d.type==="svg")&&BUe(u.current,n,a,h);const p=E.useRef(!1);E.useInsertionEffect(()=>{d&&p.current&&d.update(n,l)});const g=n[dK],y=E.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return c9(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),y.current&&d.animationState&&d.animationState.animateChanges())}),E.useEffect(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),y.current=!1),d.enteringChildren=void 0)}),d}function BUe(e,r,n,o){const{layoutId:a,layout:i,drag:s,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=r;e.projection=new n(e.latestValues,r["data-framer-portal-id"]?void 0:QK(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!s||l&&hm(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:u})}function QK(e){if(e)return e.options.allowProjection!==!1?e.projection:QK(e.parent)}function wk(e,{forwardMotionProps:r=!1}={},n,o){n&&d9(n);const a=p9(e)?LUe:DUe;function i(l,c){let u;const d={...E.useContext(uh),...l,layoutId:FUe(l)},{isStatic:h}=d,p=CUe(l),g=a(l,h);if(!h&&n9){HUe();const y=UUe(d);u=y.MeasureLayout,p.visualElement=jUe(e,g,d,o,y.ProjectionNode)}return b.jsxs(vk.Provider,{value:p,children:[u&&p.visualElement?b.jsx(u,{visualElement:p.visualElement,...d}):null,PUe(e,l,zUe(g,p.visualElement,c),g,h,r)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=E.forwardRef(i);return s[IUe]=e,s}function FUe({layoutId:e}){const r=E.useContext(uy).id;return r&&e!==void 0?r+"-"+e:e}function HUe(e,r){E.useContext(u9).strict}function UUe(e){const{drag:r,layout:n}=lm;if(!r&&!n)return{};const o={...r,...n};return{MeasureLayout:r?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function VUe(e,r){if(typeof Proxy>"u")return wk;const n=new Map,o=(i,s)=>wk(i,s,e,r),a=(i,s)=>o(i,s);return new Proxy(a,{get:(i,s)=>s==="create"?o:(n.has(s)||n.set(s,wk(s,void 0,e,r)),n.get(s))})}const cs=VUe(),qUe=(e,r)=>p9(e)?new IK(r):new PK(r,{allowProjection:e!==E.Fragment});function JK(e,r,n,o=0,a=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(r),s=e.size,l=(s-1)*o;return typeof n=="function"?n(i,s):a===1?i*o:l-i*o}function m9(e,r,n={}){const o=am(e,r,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const i=o?()=>Promise.all(J8(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=a;return YUe(e,r,c,u,d,h,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[c,u]=l==="beforeChildren"?[i,s]:[s,i];return c().then(()=>u())}else return Promise.all([i(),s(n.delay)])}function YUe(e,r,n=0,o=0,a=0,i=1,s){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",r),l.push(m9(c,r,{...s,delay:n+(typeof o=="function"?0:o)+JK(e.variantChildren,c,o,a,i)}).then(()=>c.notify("AnimationComplete",r)));return Promise.all(l)}function WUe(e,r,n={}){e.notify("AnimationStart",r);let o;if(Array.isArray(r)){const a=r.map(i=>m9(e,i,n));o=Promise.all(a)}else if(typeof r=="string")o=m9(e,r,n);else{const a=typeof r=="function"?am(e,r,n.custom):r;o=Promise.all(J8(e,a,n))}return o.then(()=>{e.notify("AnimationComplete",r)})}function eZ(e,r){if(!Array.isArray(r))return!1;const n=r.length;if(n!==e.length)return!1;for(let o=0;oPromise.all(r.map(({animation:n,options:o})=>WUe(e,n,o)))}function QUe(e){let r=ZUe(e),n=rZ(),o=!0;const a=c=>(u,d)=>{const h=am(e,d,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:p,transitionEnd:g,...y}=h;u={...u,...y,...g}}return u};function i(c){r=c(e)}function s(c){const{props:u}=e,d=tZ(e.parent)||{},h=[],p=new Set;let g={},y=1/0;for(let w=0;wy&&T,M=!1;const O=Array.isArray(_)?_:[_];let B=O.reduce(a(k),{});A===!1&&(B={});const{prevResolvedValues:I={}}=C,Y={...I,...B},D=L=>{R=!0,p.has(L)&&(M=!0,p.delete(L)),C.needsAnimating[L]=!0;const U=e.getValue(L);U&&(U.liveStyle=!1)};for(const L in Y){const U=B[L],q=I[L];if(g.hasOwnProperty(L))continue;let X=!1;X8(U)&&X8(q)?X=!eZ(U,q):X=U!==q,X?U!=null?D(L):p.add(L):U!==void 0&&p.has(L)?D(L):C.protectedKeys[L]=!0}C.prevProp=_,C.prevResolvedValues=B,C.isActive&&(g={...g,...B}),o&&e.blockInitialAnimation&&(R=!1);const V=N&&$;R&&(!V||M)&&h.push(...O.map(L=>{const U={type:k};if(typeof L=="string"&&o&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,X=am(q,L);if(q.enteringChildren&&X){const{delayChildren:F}=X.transition||{};U.delay=JK(q.enteringChildren,e,F)}}return{animation:L,options:U}}))}if(p.size){const w={};if(typeof u.initial!="boolean"){const k=am(e,Array.isArray(u.initial)?u.initial[0]:u.initial);k&&k.transition&&(w.transition=k.transition)}p.forEach(k=>{const C=e.getBaseTarget(k),_=e.getValue(k);_&&(_.liveStyle=!0),w[k]=C??null}),h.push({animation:w})}let x=!!h.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(x=!1),o=!1,x?r(h):Promise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(c,u)),n[c].isActive=u;const d=s(c);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=rZ(),o=!0}}}function JUe(e,r){return typeof r=="string"?r!==e:Array.isArray(r)?!eZ(r,e):!1}function dh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rZ(){return{animate:dh(!0),whileInView:dh(),whileHover:dh(),whileTap:dh(),whileDrag:dh(),whileFocus:dh(),exit:dh()}}class ku{constructor(r){this.isMounted=!1,this.node=r}update(){}}class eVe extends ku{constructor(r){super(r),r.animationState||(r.animationState=QUe(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();pk(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:n}=this.node.prevProps||{};r!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let tVe=0;class rVe extends ku{constructor(){super(...arguments),this.id=tVe++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===o)return;const a=this.node.animationState.setActive("exit",!r);n&&!r&&a.then(()=>{n(this.id)})}mount(){const{register:r,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const nVe={animation:{Feature:eVe},exit:{Feature:rVe}};function dy(e,r,n,o={passive:!0}){return e.addEventListener(r,n,o),()=>e.removeEventListener(r,n)}function hy(e){return{point:{x:e.pageX,y:e.pageY}}}const oVe=e=>r=>V8(r)&&e(r,hy(r));function fy(e,r,n,o){return dy(e,r,oVe(n),o)}const nZ=1e-4,aVe=1-nZ,iVe=1+nZ,oZ=.01,sVe=0-oZ,lVe=0+oZ;function Vo(e){return e.max-e.min}function cVe(e,r,n){return Math.abs(e-r)<=n}function aZ(e,r,n,o=.5){e.origin=o,e.originPoint=Lr(r.min,r.max,e.origin),e.scale=Vo(n)/Vo(r),e.translate=Lr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=aVe&&e.scale<=iVe||isNaN(e.scale))&&(e.scale=1),(e.translate>=sVe&&e.translate<=lVe||isNaN(e.translate))&&(e.translate=0)}function py(e,r,n,o){aZ(e.x,r.x,n.x,o?o.originX:void 0),aZ(e.y,r.y,n.y,o?o.originY:void 0)}function iZ(e,r,n){e.min=n.min+r.min,e.max=e.min+Vo(r)}function uVe(e,r,n){iZ(e.x,r.x,n.x),iZ(e.y,r.y,n.y)}function sZ(e,r,n){e.min=r.min-n.min,e.max=e.min+Vo(r)}function my(e,r,n){sZ(e.x,r.x,n.x),sZ(e.y,r.y,n.y)}function fi(e){return[e("x"),e("y")]}const lZ=({current:e})=>e?e.ownerDocument.defaultView:null;class cZ{constructor(r,n,{transformPagePoint:o,contextWindow:a=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=y9(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=lUe(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:x}=p,{timestamp:w}=mo;this.history.push({...x,timestamp:w});const{onStart:k,onMove:C}=this.handlers;g||(k&&k(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,p)},this.handlePointerMove=(p,g)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=g9(g,this.transformPagePoint),Mr.update(this.updatePoint,!0)},this.handlePointerUp=(p,g)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=y9(p.type==="pointercancel"?this.lastMoveEventInfo:g9(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,k),x&&x(p,k)},!V8(r))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=s,this.contextWindow=a||window;const l=hy(r),c=g9(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=mo;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(r,y9(c,this.history)),this.removeListeners=Q1(fy(this.contextWindow,"pointermove",this.handlePointerMove),fy(this.contextWindow,"pointerup",this.handlePointerUp),fy(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),vu(this.updatePoint)}}function g9(e,r){return r?{point:r(e.point)}:e}function uZ(e,r){return{x:e.x-r.x,y:e.y-r.y}}function y9({point:e},r){return{point:e,delta:uZ(e,dZ(r)),offset:uZ(e,dVe(r)),velocity:hVe(r,.1)}}function dVe(e){return e[0]}function dZ(e){return e[e.length-1]}function hVe(e,r){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const a=dZ(e);for(;n>=0&&(o=e[n],!(a.timestamp-o.timestamp>ss(r)));)n--;if(!o)return{x:0,y:0};const i=hi(a.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const s={x:(a.x-o.x)/i,y:(a.y-o.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function fVe(e,{min:r,max:n},o){return r!==void 0&&en&&(e=o?Lr(n,e,o.max):Math.min(e,n)),e}function hZ(e,r,n){return{min:r!==void 0?e.min+r:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function pVe(e,{top:r,left:n,bottom:o,right:a}){return{x:hZ(e.x,n,a),y:hZ(e.y,r,o)}}function fZ(e,r){let n=r.min-e.min,o=r.max-e.max;return r.max-r.mino?n=em(r.min,r.max-o,e.min):o>a&&(n=em(e.min,e.max-a,r.min)),rc(0,1,n)}function yVe(e,r){const n={};return r.min!==void 0&&(n.min=r.min-e.min),r.max!==void 0&&(n.max=r.max-e.min),n}const b9=.35;function bVe(e=b9){return e===!1?e=0:e===!0&&(e=b9),{x:pZ(e,"left","right"),y:pZ(e,"top","bottom")}}function pZ(e,r,n){return{min:mZ(e,r),max:mZ(e,n)}}function mZ(e,r){return typeof e=="number"?e:e[r]||0}const vVe=new WeakMap;class xVe{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Zr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(hy(h).point)},s=(h,p)=>{const{drag:g,dragPropagation:y,onDragStart:x}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aHe(g),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fi(k=>{let C=this.getAxisMotionValue(k).get()||0;if(sl.test(C)){const{projection:_}=this.visualElement;if(_&&_.layout){const T=_.layout.layoutBox[k];T&&(C=Vo(T)*(parseFloat(C)/100))}}this.originPoint[k]=C}),x&&Mr.postRender(()=>x(h,p)),K8(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},l=(h,p)=>{this.latestPointerEvent=h,this.latestPanInfo=p;const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:x,onDrag:w}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:k}=p;if(y&&this.currentDirection===null){this.currentDirection=wVe(k),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",p.point,k),this.updateAxis("y",p.point,k),this.visualElement.render(),w&&w(h,p)},c=(h,p)=>{this.latestPointerEvent=h,this.latestPanInfo=p,this.stop(h,p),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>fi(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new cZ(r,{onSessionStart:i,onStart:s,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:lZ(this.visualElement)})}stop(r,n){const o=r||this.latestPointerEvent,a=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!a||!o)return;const{velocity:s}=a;this.startAnimation(s);const{onDragEnd:l}=this.getProps();l&&Mr.postRender(()=>l(o,a))}cancel(){this.isDragging=!1;const{projection:r,animationState:n}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(r,n,o){const{drag:a}=this.getProps();if(!o||!kk(r,a,this.currentDirection))return;const i=this.getAxisMotionValue(r);let s=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(s=fVe(s,this.constraints[r],this.elastic[r])),i.set(s)}resolveConstraints(){const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;r&&hm(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=pVe(o.layoutBox,r):this.constraints=!1,this.elastic=bVe(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&fi(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=yVe(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:n}=this.getProps();if(!r||!hm(r))return!1;const o=r.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=FHe(o,a.root,this.visualElement.getTransformPagePoint());let s=mVe(a.layout.layoutBox,i);if(n){const l=n(zHe(s));this.hasMutatedConstraints=!!l,l&&(s=fK(l))}return s}startAnimation(r){const{drag:n,dragMomentum:o,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=fi(d=>{if(!kk(d,n,this.currentDirection))return;let h=c&&c[d]||{};s&&(h={min:0,max:0});const p=a?200:1e6,g=a?40:1e7,y={type:"inertia",velocity:o?r[d]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,y)});return Promise.all(u).then(l)}startAxisValueAnimation(r,n){const o=this.getAxisMotionValue(r);return K8(this.visualElement,r),o.start(Q8(r,o,0,n,this.visualElement,!1))}stopAnimation(){fi(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){fi(r=>this.getAxisMotionValue(r).animation?.pause())}getAnimationState(r){return this.getAxisMotionValue(r).animation?.state}getAxisMotionValue(r){const n=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps();return o[n]||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){fi(n=>{const{drag:o}=this.getProps();if(!kk(n,o,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:l}=a.layout.layoutBox[n];i.set(r[n]-Lr(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!hm(n)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};fi(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const c=l.get();a[s]=gVe({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),fi(s=>{if(!kk(s,r,null))return;const l=this.getAxisMotionValue(s),{min:c,max:u}=this.constraints[s];l.set(Lr(c,u,a[s]))})}addListeners(){if(!this.visualElement.current)return;vVe.set(this.visualElement,this);const r=this.visualElement.current,n=fy(r,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();hm(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",o);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Mr.read(o);const s=dy(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(fi(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),l&&l()}}getProps(){const r=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:s=b9,dragMomentum:l=!0}=r;return{...r,drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:l}}}function kk(e,r,n){return(r===!0||r===e)&&(n===null||n===e)}function wVe(e,r=10){let n=null;return Math.abs(e.y)>r?n="y":Math.abs(e.x)>r&&(n="x"),n}class kVe extends ku{constructor(r){super(r),this.removeGroupControls=di,this.removeListeners=di,this.controls=new xVe(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||di}unmount(){this.removeGroupControls(),this.removeListeners()}}const gZ=e=>(r,n)=>{e&&Mr.postRender(()=>e(r,n))};class _Ve extends ku{constructor(){super(...arguments),this.removePointerDownListener=di}onPointerDown(r){this.session=new cZ(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lZ(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:n,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:gZ(r),onStart:gZ(n),onMove:o,onEnd:(i,s)=>{delete this.session,a&&Mr.postRender(()=>a(i,s))}}}mount(){this.removePointerDownListener=fy(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const _k={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function yZ(e,r){return r.max===r.min?0:e/(r.max-r.min)*100}const gy={correct:(e,r)=>{if(!r.target)return e;if(typeof e=="string")if(vt.test(e))e=parseFloat(e);else return e;const n=yZ(e,r.target.x),o=yZ(e,r.target.y);return`${n}% ${o}%`}},EVe={correct:(e,{treeScale:r,projectionDelta:n})=>{const o=e,a=wu.parse(e);if(a.length>5)return o;const i=wu.createTransformer(e),s=typeof a[0]!="number"?1:0,l=n.x.scale*r.x,c=n.y.scale*r.y;a[0+s]/=l,a[1+s]/=c;const u=Lr(l,c,.5);return typeof a[2+s]=="number"&&(a[2+s]/=u),typeof a[3+s]=="number"&&(a[3+s]/=u),i(a)}};let v9=!1;class SVe extends E.Component{componentDidMount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o,layoutId:a}=this.props,{projection:i}=r;YHe(CVe),i&&(n.group&&n.group.add(i),o&&o.register&&a&&o.register(i),v9&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),_k.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:n,visualElement:o,drag:a,isPresent:i}=this.props,{projection:s}=o;return s&&(s.isPresent=i,v9=!0,a||r.layoutDependency!==n||n===void 0||r.isPresent!==i?s.willUpdate():this.safeToRemove(),r.isPresent!==i&&(i?s.promote():s.relegate()||Mr.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),U8.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:a}=r;v9=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),o&&o.deregister&&o.deregister(a))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function bZ(e){const[r,n]=HK(),o=E.useContext(uy);return b.jsx(SVe,{...e,layoutGroup:o,switchLayoutGroup:E.useContext(ZK),isPresent:r,safeToRemove:n})}const CVe={borderRadius:{...gy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gy,borderTopRightRadius:gy,borderBottomLeftRadius:gy,borderBottomRightRadius:gy,boxShadow:EVe},TVe=(e,r)=>e.depth-r.depth;class AVe{constructor(){this.children=[],this.isDirty=!1}add(r){i8(this.children,r),this.isDirty=!0}remove(r){ak(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(TVe),this.isDirty=!1,this.children.forEach(r)}}const vZ=["TopLeft","TopRight","BottomLeft","BottomRight"],NVe=vZ.length,xZ=e=>typeof e=="string"?parseFloat(e):e,wZ=e=>typeof e=="number"||vt.test(e);function RVe(e,r,n,o,a,i){a?(e.opacity=Lr(0,n.opacity??1,$Ve(o)),e.opacityExit=Lr(r.opacity??1,0,PVe(o))):i&&(e.opacity=Lr(r.opacity??1,n.opacity??1,o));for(let s=0;sor?1:n(em(e,r,o))}function EZ(e,r){e.min=r.min,e.max=r.max}function pi(e,r){EZ(e.x,r.x),EZ(e.y,r.y)}function SZ(e,r){e.translate=r.translate,e.scale=r.scale,e.originPoint=r.originPoint,e.origin=r.origin}function CZ(e,r,n,o,a){return e-=r,e=hk(e,1/n,o),a!==void 0&&(e=hk(e,1/a,o)),e}function MVe(e,r=0,n=1,o=.5,a,i=e,s=e){if(sl.test(r)&&(r=parseFloat(r),r=Lr(s.min,s.max,r/100)-s.min),typeof r!="number")return;let l=Lr(i.min,i.max,o);e===i&&(l-=r),e.min=CZ(e.min,r,n,l,a),e.max=CZ(e.max,r,n,l,a)}function TZ(e,r,[n,o,a],i,s){MVe(e,r[n],r[o],r[a],r.scale,i,s)}const OVe=["x","scaleX","originX"],DVe=["y","scaleY","originY"];function AZ(e,r,n,o){TZ(e.x,r,OVe,n?n.x:void 0,o?o.x:void 0),TZ(e.y,r,DVe,n?n.y:void 0,o?o.y:void 0)}function NZ(e){return e.translate===0&&e.scale===1}function RZ(e){return NZ(e.x)&&NZ(e.y)}function $Z(e,r){return e.min===r.min&&e.max===r.max}function LVe(e,r){return $Z(e.x,r.x)&&$Z(e.y,r.y)}function PZ(e,r){return Math.round(e.min)===Math.round(r.min)&&Math.round(e.max)===Math.round(r.max)}function MZ(e,r){return PZ(e.x,r.x)&&PZ(e.y,r.y)}function OZ(e){return Vo(e.x)/Vo(e.y)}function DZ(e,r){return e.translate===r.translate&&e.scale===r.scale&&e.originPoint===r.originPoint}class IVe{constructor(){this.members=[]}add(r){i8(this.members,r),r.scheduleRender()}remove(r){if(ak(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(r){const n=this.members.findIndex(a=>r===a);if(n===0)return!1;let o;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(r,n){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,n&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:a}=r.options;a===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:n,resumingFrom:o}=r;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function zVe(e,r,n){let o="";const a=e.x.translate/r.x,i=e.y.translate/r.y,s=n?.z||0;if((a||i||s)&&(o=`translate3d(${a}px, ${i}px, ${s}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:p,skewX:g,skewY:y}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),h&&(o+=`rotateX(${h}deg) `),p&&(o+=`rotateY(${p}deg) `),g&&(o+=`skewX(${g}deg) `),y&&(o+=`skewY(${y}deg) `)}const l=e.x.scale*r.x,c=e.y.scale*r.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const x9=["","X","Y","Z"],jVe=1e3;let BVe=0;function w9(e,r,n,o){const{latestValues:a}=r;a[e]&&(n[e]=a[e],r.setStaticValue(e,0),o&&(o[e]=0))}function LZ(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:r}=e.options;if(!r)return;const n=hK(r);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Mr,!(a||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&LZ(o)}function IZ({attachResizeListener:e,defaultParent:r,measureScroll:n,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(i={},s=r?.()){this.id=BVe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(UVe),this.nodes.forEach(WVe),this.nodes.forEach(XVe),this.nodes.forEach(VVe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;Mr.read(()=>{d=window.innerWidth}),e(i,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=sUe(h,250),_k.hasAnimatedSinceResize&&(_k.hasAnimatedSinceResize=!1,this.nodes.forEach(BZ)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||JVe,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=c.getProps(),w=!this.targetLayout||!MZ(this.targetLayout,p),k=!d&&h;if(this.options.layoutRoot||this.resumeFrom||k||d&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...B8(g,"layout"),onPlay:y,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(u,k)}else d||BZ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(GVe),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&LZ(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vo(this.snapshot.measuredBox.x)&&!Vo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const T=_/1e3;FZ(d.x,i.x,T),FZ(d.y,i.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(my(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ZVe(this.relativeTarget,this.relativeTargetOrigin,h,T),C&&LVe(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Zr()),pi(C,this.relativeTarget)),y&&(this.animationValues=u,RVe(u,c,this.latestValues,T,k,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(vu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mr.update(()=>{_k.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=lh(0)),this.currentAnimation=zK(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jVe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=i;if(!(!s||!l||!c)){if(this!==i&&this.layout&&c&&YZ(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Zr();const d=Vo(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+d;const h=Vo(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}pi(s,l),sm(s,u),py(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new IVe),this.sharedNodes.get(i).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let s=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&w9("z",i,c,this.animationValues);for(let u=0;ui.currentAnimation?.stop()),this.root.nodes.forEach(zZ),this.root.sharedNodes.clear()}}}function FVe(e){e.updateLayout()}function HVe(e){const r=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:a}=e.options,i=r.source!==e.layout.source;a==="size"?fi(d=>{const h=i?r.measuredBox[d]:r.layoutBox[d],p=Vo(h);h.min=n[d].min,h.max=h.min+p}):YZ(a,r.layoutBox,n)&&fi(d=>{const h=i?r.measuredBox[d]:r.layoutBox[d],p=Vo(n[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=cm();py(s,n,r.layoutBox);const l=cm();i?py(l,e.applyTransform(o,!0),r.measuredBox):py(l,n,r.layoutBox);const c=!RZ(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const g=Zr();my(g,r.layoutBox,h.layoutBox);const y=Zr();my(y,n,p.layoutBox),MZ(g,y)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function UVe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function VVe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qVe(e){e.clearSnapshot()}function zZ(e){e.clearMeasurements()}function jZ(e){e.isLayoutDirty=!1}function YVe(e){const{visualElement:r}=e.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),e.resetTransform()}function BZ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function WVe(e){e.resolveTargetDelta()}function XVe(e){e.calcProjection()}function GVe(e){e.resetSkewAndRotation()}function KVe(e){e.removeLeadSnapshot()}function FZ(e,r,n){e.translate=Lr(r.translate,0,n),e.scale=Lr(r.scale,1,n),e.origin=r.origin,e.originPoint=r.originPoint}function HZ(e,r,n,o){e.min=Lr(r.min,n.min,o),e.max=Lr(r.max,n.max,o)}function ZVe(e,r,n,o){HZ(e.x,r.x,n.x,o),HZ(e.y,r.y,n.y,o)}function QVe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const JVe={duration:.45,ease:[.4,0,.1,1]},UZ=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),VZ=UZ("applewebkit/")&&!UZ("chrome/")?Math.round:di;function qZ(e){e.min=VZ(e.min),e.max=VZ(e.max)}function eqe(e){qZ(e.x),qZ(e.y)}function YZ(e,r,n){return e==="position"||e==="preserve-aspect"&&!cVe(OZ(r),OZ(n),.2)}function tqe(e){return e!==e.root&&e.scroll?.wasRoot}const rqe=IZ({attachResizeListener:(e,r)=>dy(e,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),k9={current:void 0},WZ=IZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!k9.current){const e=new rqe({});e.mount(window),e.setOptions({layoutScroll:!0}),k9.current=e}return k9.current},resetTransform:(e,r)=>{e.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nqe={pan:{Feature:_Ve},drag:{Feature:kVe,ProjectionNode:WZ,MeasureLayout:bZ}};function XZ(e,r,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=o[a];i&&Mr.postRender(()=>i(r,hy(r)))}class oqe extends ku{mount(){const{current:r}=this.node;r&&(this.unmount=iHe(r,(n,o)=>(XZ(this.node,o,"Start"),a=>XZ(this.node,a,"End"))))}unmount(){}}class aqe extends ku{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Q1(dy(this.node.current,"focus",()=>this.onFocus()),dy(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function GZ(e,r,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=o[a];i&&Mr.postRender(()=>i(r,hy(r)))}class iqe extends ku{mount(){const{current:r}=this.node;r&&(this.unmount=uHe(r,(n,o)=>(GZ(this.node,o,"Start"),(a,{success:i})=>GZ(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _9=new WeakMap,E9=new WeakMap,sqe=e=>{const r=_9.get(e.target);r&&r(e)},lqe=e=>{e.forEach(sqe)};function cqe({root:e,...r}){const n=e||document;E9.has(n)||E9.set(n,{});const o=E9.get(n),a=JSON.stringify(r);return o[a]||(o[a]=new IntersectionObserver(lqe,{root:e,...r})),o[a]}function uqe(e,r,n){const o=cqe(r);return _9.set(e,n),o.observe(e),()=>{_9.delete(e),o.unobserve(e)}}const dqe={some:0,all:1};class hqe extends ku{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:n,margin:o,amount:a="some",once:i}=r,s={root:n?n.current:void 0,rootMargin:o,threshold:typeof a=="number"?a:dqe[a]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=u?d:h;p&&p(c)};return uqe(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:n}=this.node;["amount","margin","root"].some(fqe(r,n))&&this.startObserver()}unmount(){}}function fqe({viewport:e={}},{viewport:r={}}={}){return n=>e[n]!==r[n]}const pqe={inView:{Feature:hqe},tap:{Feature:iqe},focus:{Feature:aqe},hover:{Feature:oqe}},mqe={layout:{ProjectionNode:WZ,MeasureLayout:bZ}},gqe={renderer:qUe,...nVe,...pqe},yqe={...gqe,...nqe,...mqe};function KZ(e){const r=um(()=>lh(e)),{isStatic:n}=E.useContext(uh);if(n){const[,o]=E.useState(e);E.useEffect(()=>r.on("change",o),[])}return r}function bqe(){!o9.current&&SK();const[e]=E.useState(fk.current);return e}function ZZ(){const e=bqe(),{reducedMotion:r}=E.useContext(uh);return r==="never"?!1:r==="always"?!0:e}class vqe{constructor(){this.componentControls=new Set}subscribe(r){return this.componentControls.add(r),()=>this.componentControls.delete(r)}start(r,n){this.componentControls.forEach(o=>{o.start(r.nativeEvent||r,n)})}cancel(){this.componentControls.forEach(r=>{r.cancel()})}stop(){this.componentControls.forEach(r=>{r.stop()})}}const xqe=()=>new vqe;function wqe(){return um(xqe)}const S9=E.createContext(null);S9.displayName="ElementDetailsActorContext";const kqe=()=>{const e=E.useContext(S9);if(e===null)throw new Error("ElementDetailsActorRef is not provided");return e},us=(e,r,n)=>{const o=a=>({[e]:"__ignore__",...r,...Pd(a)});return{recipeFn:(a,i=!0)=>{const s=TB({conditions:{shift:PB,finalize:$B,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{toHash:(c,u)=>u(c.join(":")),transform:(c,u)=>(KSe(e,n,a,c),u==="__ignore__"?{className:e}:(u=VS(u),{className:`${e}--${c}_${u}`}))}}),l=o(a);if(i){const c=KS(n,l);return Je(s(l),ye(c))}return s(l)},getVariantProps:o,__getCompoundVariantCss__:a=>KS(n,o(a))}},oc=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;const n=(...i)=>Je(e(...i),r(...i)),o=XS(e.variantKeys,r.variantKeys),a=o.reduce((i,s)=>(i[s]=XS(e.variantMap[s],r.variantMap[s]),i),{});return Object.assign(n,{__recipe__:!0,__name__:`${e.__name__} ${r.__name__}`,raw:i=>i,variantKeys:o,variantMap:a,splitVariantProps(i){return Yn(i,o)}})},C9=us("action-btn",{size:"md",radius:"md",variant:"filled"},[]),QZ={variant:["transparent","filled"],size:["sm","md"],radius:["sm","md"]},JZ=Object.keys(QZ),Ek=Object.assign(co(C9.recipeFn),{__recipe__:!0,__name__:"actionBtn",__getCompoundVariantCss__:C9.__getCompoundVariantCss__,raw:e=>e,variantKeys:JZ,variantMap:QZ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,JZ)},getVariantProps:C9.getVariantProps}),T9=us("likec4-compound-node",{},[]),eQ={isTransparent:["false","true"],inverseColor:["true","false"],borderStyle:["solid","dashed","dotted","none"]},tQ=Object.keys(eQ),_qe=Object.assign(co(T9.recipeFn),{__recipe__:!0,__name__:"compoundNode",__getCompoundVariantCss__:T9.__getCompoundVariantCss__,raw:e=>e,variantKeys:tQ,variantMap:eQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,tQ)},getVariantProps:T9.getVariantProps}),A9=us("likec4-edge-action-btn",{},[]),rQ={},nQ=Object.keys(rQ),Eqe=Object.assign(co(A9.recipeFn),{__recipe__:!0,__name__:"edgeActionBtn",__getCompoundVariantCss__:A9.__getCompoundVariantCss__,raw:e=>e,variantKeys:nQ,variantMap:rQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,nQ)},getVariantProps:A9.getVariantProps}),N9=us("likec4-element-node-data",{},[]),oQ={},aQ=Object.keys(oQ),Sqe=Object.assign(co(N9.recipeFn),{__recipe__:!0,__name__:"elementNodeData",__getCompoundVariantCss__:N9.__getCompoundVariantCss__,raw:e=>e,variantKeys:aQ,variantMap:oQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,aQ)},getVariantProps:N9.getVariantProps}),R9=us("likec4-element-shape",{},[]),iQ={shapetype:["html","svg"]},sQ=Object.keys(iQ),lQ=Object.assign(co(R9.recipeFn),{__recipe__:!0,__name__:"elementShapeRecipe",__getCompoundVariantCss__:R9.__getCompoundVariantCss__,raw:e=>e,variantKeys:sQ,variantMap:iQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,sQ)},getVariantProps:R9.getVariantProps}),$9=us("likec4-tag",{autoTextColor:!1},[]),cQ={autoTextColor:["false","true"]},uQ=Object.keys(cQ),Cqe=Object.assign(co($9.recipeFn),{__recipe__:!0,__name__:"likec4tag",__getCompoundVariantCss__:$9.__getCompoundVariantCss__,raw:e=>e,variantKeys:uQ,variantMap:cQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,uQ)},getVariantProps:$9.getVariantProps}),P9=us("likec4-markdown-block",{uselikec4palette:!1,value:"markdown"},[]),dQ={uselikec4palette:["true","false"],value:["markdown","plaintext"]},hQ=Object.keys(dQ),Tqe=Object.assign(co(P9.recipeFn),{__recipe__:!0,__name__:"markdownBlock",__getCompoundVariantCss__:P9.__getCompoundVariantCss__,raw:e=>e,variantKeys:hQ,variantMap:dQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,hQ)},getVariantProps:P9.getVariantProps}),M9=us("likec4-navigation-panel-icon",{variant:"default"},[]),fQ={variant:["default","filled"]},pQ=Object.keys(fQ),Aqe=Object.assign(co(M9.recipeFn),{__recipe__:!0,__name__:"navigationPanelActionIcon",__getCompoundVariantCss__:M9.__getCompoundVariantCss__,raw:e=>e,variantKeys:pQ,variantMap:fQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,pQ)},getVariantProps:M9.getVariantProps}),O9=us("likec4-overlay",{fullscreen:!1,withBackdrop:!0},[]),mQ={fullscreen:["false","true"],withBackdrop:["false","true"]},gQ=Object.keys(mQ),Nqe=Object.assign(co(O9.recipeFn),{__recipe__:!0,__name__:"overlay",__getCompoundVariantCss__:O9.__getCompoundVariantCss__,raw:e=>e,variantKeys:gQ,variantMap:mQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,gQ)},getVariantProps:O9.getVariantProps}),yQ={isStepEdge:!1,cursor:"default"},Rqe=[],$qe=[["root","likec4-edge-label__root"],["stepNumber","likec4-edge-label__stepNumber"],["labelContents","likec4-edge-label__labelContents"],["labelText","likec4-edge-label__labelText"],["labelTechnology","likec4-edge-label__labelTechnology"]],Pqe=$qe.map(([e,r])=>[e,us(r,yQ,WS(Rqe,e))]),Mqe=co((e={})=>Object.fromEntries(Pqe.map(([r,n])=>[r,n.recipeFn(e)]))),bQ=["cursor","isStepEdge"],Oqe=e=>({...yQ,...Pd(e)}),Dqe=Object.assign(Mqe,{__recipe__:!1,__name__:"edgeLabel",raw:e=>e,classNameMap:{},variantKeys:bQ,variantMap:{cursor:["pointer","default"],isStepEdge:["false","true"]},splitVariantProps(e){return Yn(e,bQ)},getVariantProps:Oqe}),vQ={truncateLabel:!1},Lqe=[],Iqe=[["root","likec4-navlink__root"],["body","likec4-navlink__body"],["section","likec4-navlink__section"],["label","likec4-navlink__label"],["description","likec4-navlink__description"]],zqe=Iqe.map(([e,r])=>[e,us(r,vQ,WS(Lqe,e))]),jqe=co((e={})=>Object.fromEntries(zqe.map(([r,n])=>[r,n.recipeFn(e)]))),xQ=["truncateLabel"],Bqe=e=>({...vQ,...Pd(e)}),Fqe=Object.assign(jqe,{__recipe__:!1,__name__:"navigationLink",raw:e=>e,classNameMap:{},variantKeys:xQ,variantMap:{truncateLabel:["true","false"]},splitVariantProps(e){return Yn(e,xQ)},getVariantProps:Bqe});function Hqe(){return up()}function D9(e,r){return At(it(e),Xn)}function L9(){return pr()}function wQ(e){return X7e(e)}const Uqe=e=>Math.round(e.transform[2]*100)/100;function Vqe(){return At(Uqe)}const qqe=e=>e.transform[2]<.2;function Yqe(){return At(qqe)}const{abs:yy,cos:ac,sin:fm,acos:Wqe,atan2:by,sqrt:_u,pow:mi}=Math;function vy(e){return e<0?-mi(-e,.3333333333333333):mi(e,.3333333333333333)}const kQ=Math.PI,Sk=2*kQ,Eu=kQ/2,Xqe=1e-6,I9=Number.MAX_SAFE_INTEGER||9007199254740991,z9=Number.MIN_SAFE_INTEGER||-9007199254740991,Gqe={x:0,y:0,z:0},Ye={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,r){const n=r(e);let o=n.x*n.x+n.y*n.y;return typeof n.z<"u"&&(o+=n.z*n.z),_u(o)},compute:function(e,r,n){if(e===0)return r[0].t=0,r[0];const o=r.length-1;if(e===1)return r[o].t=1,r[o];const a=1-e;let i=r;if(o===0)return r[0].t=e,r[0];if(o===1){const l={x:a*i[0].x+e*i[1].x,y:a*i[0].y+e*i[1].y,t:e};return n&&(l.z=a*i[0].z+e*i[1].z),l}if(o<4){let l=a*a,c=e*e,u,d,h,p=0;o===2?(i=[i[0],i[1],i[2],Gqe],u=l,d=a*e*2,h=c):o===3&&(u=l*a,d=l*e*3,h=a*c*3,p=e*c);const g={x:u*i[0].x+d*i[1].x+h*i[2].x+p*i[3].x,y:u*i[0].y+d*i[1].y+h*i[2].y+p*i[3].y,t:e};return n&&(g.z=u*i[0].z+d*i[1].z+h*i[2].z+p*i[3].z),g}const s=JSON.parse(JSON.stringify(r));for(;s.length>1;){for(let l=0;l1;a--,i--){const s=[];for(let l=0,c;l"u")e=.5;else if(e===0||e===1)return e;const n=mi(e,r)+mi(1-e,r),o=n-1;return yy(o/n)},projectionratio:function(e,r){if(r!==2&&r!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const n=mi(1-e,r),o=mi(e,r)+n;return n/o},lli8:function(e,r,n,o,a,i,s,l){const c=(e*o-r*n)*(a-s)-(e-n)*(a*l-i*s),u=(e*o-r*n)*(i-l)-(r-o)*(a*l-i*s),d=(e-n)*(i-l)-(r-o)*(a-s);return d==0?!1:{x:c/d,y:u/d}},lli4:function(e,r,n,o){const a=e.x,i=e.y,s=r.x,l=r.y,c=n.x,u=n.y,d=o.x,h=o.y;return Ye.lli8(a,i,s,l,c,u,d,h)},lli:function(e,r){return Ye.lli4(e,e.c,r,r.c)},makeline:function(e,r){return new Ir(e.x,e.y,(e.x+r.x)/2,(e.y+r.y)/2,r.x,r.y)},findbbox:function(e){let r=I9,n=I9,o=z9,a=z9;return e.forEach(function(i){const s=i.bbox();r>s.x.min&&(r=s.x.min),n>s.y.min&&(n=s.y.min),o0&&(d.c1=c,d.c2=u,d.s1=e,d.s2=n,i.push(d))})}),i},makeshape:function(e,r,n){const o=r.points.length,a=e.points.length,i=Ye.makeline(r.points[o-1],e.points[0]),s=Ye.makeline(e.points[a-1],r.points[0]),l={startcap:i,forward:e,back:r,endcap:s,bbox:Ye.findbbox([i,e,r,s])};return l.intersections=function(c){return Ye.shapeintersections(l,l.bbox,c,c.bbox,n)},l},getminmax:function(e,r,n){if(!n)return{min:0,max:0};let o=I9,a=z9,i,s;n.indexOf(0)===-1&&(n=[0].concat(n)),n.indexOf(1)===-1&&n.push(1);for(let l=0,c=n.length;la&&(a=s[r]);return{min:o,mid:(o+a)/2,max:a,size:a-o}},align:function(e,r){const n=r.p1.x,o=r.p1.y,a=-by(r.p2.y-o,r.p2.x-n),i=function(s){return{x:(s.x-n)*ac(a)-(s.y-o)*fm(a),y:(s.x-n)*fm(a)+(s.y-o)*ac(a)}};return e.map(i)},roots:function(e,r){r=r||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,o=Ye.align(e,r),a=function($){return 0<=$&&$<=1};if(n===2){const $=o[0].y,R=o[1].y,M=o[2].y,O=$-2*R+M;if(O!==0){const B=-_u(R*R-$*M),I=-$+R,Y=-(B+I)/O,D=-(-B+I)/O;return[Y,D].filter(a)}else if(R!==M&&O===0)return[(2*R-M)/(2*R-2*M)].filter(a);return[]}const i=o[0].y,s=o[1].y,l=o[2].y,c=o[3].y;let u=-i+3*s-3*l+c,d=3*i-6*s+3*l,h=-3*i+3*s,p=i;if(Ye.approximately(u,0)){if(Ye.approximately(d,0))return Ye.approximately(h,0)?[]:[-p/h].filter(a);const $=_u(h*h-4*d*p),R=2*d;return[($-h)/R,(-h-$)/R].filter(a)}d/=u,h/=u,p/=u;const g=(3*h-d*d)/3,y=g/3,x=(2*d*d*d-9*d*h+27*p)/27,w=x/2,k=w*w+y*y*y;let C,_,T,A,N;if(k<0){const $=-g/3,R=$*$*$,M=_u(R),O=-x/(2*M),B=O<-1?-1:O>1?1:O,I=Wqe(B),Y=vy(M),D=2*Y;return T=D*ac(I/3)-d/3,A=D*ac((I+Sk)/3)-d/3,N=D*ac((I+2*Sk)/3)-d/3,[T,A,N].filter(a)}else{if(k===0)return C=w<0?vy(-w):-vy(w),T=2*C-d/3,A=-C-d/3,[T,A].filter(a);{const $=_u(k);return C=vy(-w+$),_=vy(w+$),[C-_-d/3].filter(a)}}},droots:function(e){if(e.length===3){const r=e[0],n=e[1],o=e[2],a=r-2*n+o;if(a!==0){const i=-_u(n*n-r*o),s=-r+n,l=-(i+s)/a,c=-(-i+s)/a;return[l,c]}else if(n!==o&&a===0)return[(2*n-o)/(2*(n-o))];return[]}if(e.length===2){const r=e[0],n=e[1];return r!==n?[r/(r-n)]:[]}return[]},curvature:function(e,r,n,o,a){let i,s,l,c,u=0,d=0;const h=Ye.compute(e,r),p=Ye.compute(e,n),g=h.x*h.x+h.y*h.y;if(o?(i=_u(mi(h.y*p.z-p.y*h.z,2)+mi(h.z*p.x-p.z*h.x,2)+mi(h.x*p.y-p.x*h.y,2)),s=mi(g+h.z*h.z,3/2)):(i=h.x*p.y-h.y*p.x,s=mi(g,3/2)),i===0||s===0)return{k:0,r:0};if(u=i/s,d=s/i,!a){const y=Ye.curvature(e-.001,r,n,o,!0).k,x=Ye.curvature(e+.001,r,n,o,!0).k;c=(x-u+(u-y))/2,l=(yy(x-u)+yy(u-y))/2}return{k:u,r:d,dk:c,adk:l}},inflections:function(e){if(e.length<4)return[];const r=Ye.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=r[2].x*r[1].y,o=r[3].x*r[1].y,a=r[1].x*r[2].y,i=r[3].x*r[2].y,s=18*(-3*n+2*o+3*a-i),l=18*(3*n-o-3*a),c=18*(a-n);if(Ye.approximately(s,0)){if(!Ye.approximately(l,0)){let p=-c/l;if(0<=p&&p<=1)return[p]}return[]}const u=2*s;if(Ye.approximately(u,0))return[];const d=l*l-4*s*c;if(d<0)return[];const h=Math.sqrt(d);return[(h-l)/u,-(l+h)/u].filter(function(p){return 0<=p&&p<=1})},bboxoverlap:function(e,r){const n=["x","y"],o=n.length;for(let a=0,i,s,l,c;a=c)return!1;return!0},expandbox:function(e,r){r.x.mine.x.max&&(e.x.max=r.x.max),r.y.max>e.y.max&&(e.y.max=r.y.max),r.z&&r.z.max>e.z.max&&(e.z.max=r.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,r,n){const o=e.bbox(),a=r.bbox(),i=1e5,s=n||.5;if(o.x.size+o.y.sizeN||N>$)&&(A+=Sk),A>$&&(R=$,$=A,A=R)):$4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");a=!0}}else if(i!==6&&i!==8&&i!==9&&i!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const s=this._3d=!a&&(i===9||i===12)||r&&r[0]&&typeof r[0].z<"u",l=this.points=[];for(let g=0,y=s?3:2;gg+wy(y.y),0)

"u"&&(a=.5),a===0)return new Ir(n,n,o);if(a===1)return new Ir(r,n,n);const i=Ir.getABC(2,r,n,o,a);return new Ir(r,i.A,o)}static cubicFromPoints(r,n,o,a,i){typeof a>"u"&&(a=.5);const s=Ir.getABC(3,r,n,o,a);typeof i>"u"&&(i=Ye.dist(n,s.C));const l=i*(1-a)/a,c=Ye.dist(r,o),u=(o.x-r.x)/c,d=(o.y-r.y)/c,h=i*u,p=i*d,g=l*u,y=l*d,x={x:n.x-h,y:n.y-p},w={x:n.x+g,y:n.y+y},k=s.A,C={x:k.x+(x.x-k.x)/(1-a),y:k.y+(x.y-k.y)/(1-a)},_={x:k.x+(w.x-k.x)/a,y:k.y+(w.y-k.y)/a},T={x:r.x+(C.x-r.x)/a,y:r.y+(C.y-r.y)/a},A={x:o.x+(_.x-o.x)/(1-a),y:o.y+(_.y-o.y)/(1-a)};return new Ir(r,T,A,o)}static getUtils(){return Ye}getUtils(){return Ir.getUtils()}static get PolyBezier(){return xy}valueOf(){return this.toString()}toString(){return Ye.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const r=this.points,n=r[0].x,o=r[0].y,a=["M",n,o,this.order===2?"Q":"C"];for(let i=1,s=r.length;i0}length(){return Ye.length(this.derivative.bind(this))}static getABC(r=2,n,o,a,i=.5){const s=Ye.projectionratio(i,r),l=1-s,c={x:s*n.x+l*a.x,y:s*n.y+l*a.y},u=Ye.abcratio(i,r);return{A:{x:o.x+(o.x-c.x)/u,y:o.y+(o.y-c.y)/u},B:o,C:c,S:n,E:a}}getABC(r,n){n=n||this.get(r);let o=this.points[0],a=this.points[this.order];return Ir.getABC(this.order,o,n,a,r)}getLUT(r){if(this.verify(),r=r||100,this._lut.length===r+1)return this._lut;this._lut=[],r++,this._lut=[];for(let n=0,o,a;n1?1:h,p=this.compute(h),p.t=h,p.d=u,p}get(r){return this.compute(r)}point(r){return this.points[r]}compute(r){return this.ratios?Ye.computeWithRatios(r,this.points,this.ratios,this._3d):Ye.compute(r,this.points,this._3d,this.ratios)}raise(){const r=this.points,n=[r[0]],o=r.length;for(let a=1,i,s;a1;){o=[];for(let s=0,l,c=n.length-1;s=0&&s<=1}),n=n.concat(r[o].sort(Ye.numberSort))}).bind(this)),r.values=n.sort(Ye.numberSort).filter(function(o,a){return n.indexOf(o)===a}),r}bbox(){const r=this.extrema(),n={};return this.dims.forEach((function(o){n[o]=Ye.getminmax(this,o,r[o])}).bind(this)),n}overlaps(r){const n=this.bbox(),o=r.bbox();return Ye.bboxoverlap(n,o)}offset(r,n){if(typeof n<"u"){const o=this.get(r),a=this.normal(r),i={c:o,n:a,x:o.x+a.x*n,y:o.y+a.y*n};return this._3d&&(i.z=o.z+a.z*n),i}if(this._linear){const o=this.normal(0),a=this.points.map(function(i){const s={x:i.x+r*o.x,y:i.y+r*o.y};return i.z&&o.z&&(s.z=i.z+r*o.z),s});return[new Ir(a)]}return this.reduce().map(function(o){return o._linear?o.offset(r)[0]:o.scale(r)})}simple(){if(this.order===3){const a=Ye.angle(this.points[0],this.points[3],this.points[1]),i=Ye.angle(this.points[0],this.points[3],this.points[2]);if(a>0&&i<0||a<0&&i>0)return!1}const r=this.normal(0),n=this.normal(1);let o=r.x*n.x+r.y*n.y;return this._3d&&(o+=r.z*n.z),wy(Qqe(o))(1-l/a)*n+l/a*o);return new Ir(this.points.map((s,l)=>({x:s.x+r.x*i[l],y:s.y+r.y*i[l]})))}scale(r){const n=this.order;let o=!1;if(typeof r=="function"&&(o=r),o&&n===2)return this.raise().scale(o);const a=this.clockwise,i=this.points;if(this._linear)return this.translate(this.normal(0),o?o(0):r,o?o(1):r);const s=o?o(0):r,l=o?o(1):r,c=[this.offset(0,10),this.offset(1,10)],u=[],d=Ye.lli4(c[0],c[0].c,c[1],c[1].c);if(!d)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(h){const p=u[h*n]=Ye.copy(i[h*n]);p.x+=(h?l:s)*c[h].n.x,p.y+=(h?l:s)*c[h].n.y}),o?([0,1].forEach(function(h){if(!(n===2&&h)){var p=i[h+1],g={x:p.x-d.x,y:p.y-d.y},y=o?o((h+1)/n):r;o&&!a&&(y=-y);var x=ky(g.x*g.x+g.y*g.y);g.x/=x,g.y/=x,u[h+1]={x:p.x+y*g.x,y:p.y+y*g.y}}}),new Ir(u)):([0,1].forEach(h=>{if(n===2&&h)return;const p=u[h*n],g=this.derivative(h),y={x:p.x+g.x,y:p.y+g.y};u[h+1]=Ye.lli4(p,y,d,i[h+1])}),new Ir(u))}outline(r,n,o,a){if(n=n===void 0?r:n,this._linear){const A=this.normal(0),N=this.points[0],$=this.points[this.points.length-1];let R,M,O;o===void 0&&(o=r,a=n),R={x:N.x+A.x*r,y:N.y+A.y*r},O={x:$.x+A.x*o,y:$.y+A.y*o},M={x:(R.x+O.x)/2,y:(R.y+O.y)/2};const B=[R,M,O];R={x:N.x-A.x*n,y:N.y-A.y*n},O={x:$.x-A.x*a,y:$.y-A.y*a},M={x:(R.x+O.x)/2,y:(R.y+O.y)/2};const I=[O,M,R],Y=Ye.makeline(I[2],B[0]),D=Ye.makeline(B[2],I[0]),V=[Y,new Ir(B),D,new Ir(I)];return new xy(V)}const i=this.reduce(),s=i.length,l=[];let c=[],u,d=0,h=this.length();const p=typeof o<"u"&&typeof a<"u";function g(A,N,$,R,M){return function(O){const B=R/$,I=(R+M)/$,Y=N-A;return Ye.map(O,0,1,A+B*Y,A+I*Y)}}i.forEach(function(A){const N=A.length();p?(l.push(A.scale(g(r,o,h,d,N))),c.push(A.scale(g(-n,-a,h,d,N)))):(l.push(A.scale(r)),c.push(A.scale(-n))),d+=N}),c=c.map(function(A){return u=A.points,u[3]?A.points=[u[3],u[2],u[1],u[0]]:A.points=[u[2],u[1],u[0]],A}).reverse();const y=l[0].points[0],x=l[s-1].points[l[s-1].points.length-1],w=c[s-1].points[c[s-1].points.length-1],k=c[0].points[0],C=Ye.makeline(w,y),_=Ye.makeline(x,k),T=[C].concat(l).concat([_]).concat(c);return new xy(T)}outlineshapes(r,n,o){n=n||r;const a=this.outline(r,n).curves,i=[];for(let s=1,l=a.length;s1,c.endcap.virtual=s{var l=this.get(s);return Ye.between(l.x,n,a)&&Ye.between(l.y,o,i)})}selfintersects(r){const n=this.reduce(),o=n.length-2,a=[];for(let i=0,s,l,c;i0&&(i=i.concat(l))}),i}arcs(r){return r=r||.5,this._iterate(r,[])}_error(r,n,o,a){const i=(a-o)/4,s=this.get(o+i),l=this.get(a-i),c=Ye.dist(r,n),u=Ye.dist(r,s),d=Ye.dist(r,l);return wy(u-c)+wy(d-c)}_iterate(r,n){let o=0,a=1,i;do{i=0,a=1;let s=this.get(o),l,c,u,d,h=!1,p=!1,g,y=a,x=1;do if(p=h,d=u,y=(o+a)/2,l=this.get(y),c=this.get(a),u=Ye.getccenter(s,l,c),u.interval={start:o,end:a},h=this._error(u,s,o,a)<=r,g=p&&!h,g||(x=a),h){if(a>=1){if(u.interval.end=x=1,d=u,a>1){let w={x:u.x+u.r*Kqe(u.e),y:u.y+u.r*Zqe(u.e)};u.e+=Ye.angle({x:u.x,y:u.y},w,this.get(1))}break}a=a+(a-o)/2}else a=y;while(!g&&i++<100);if(i>=100)break;d=d||u,n.push(d),o=x}while(a<1);return n}}function SQ(e){let[r,...n]=e.points;nt(r,"start should be defined");const o=[];for(;To(n,3);){const[a,i,s,...l]=n,c=new Ir(r[0],r[1],a[0],a[1],i[0],i[1],s[0],s[1]),u=c.inflections();u.length===0&&u.push(.5),u.forEach(d=>{const{x:h,y:p}=c.get(d);o.push({x:Math.round(h),y:Math.round(p)})}),n=l,r=s}return nt(n.length===0,"all points should be consumed"),o}const CQ=(e,r)=>Math.abs(e-r)<3.1;function _y(e,r){const[n,o]=F6(e)?e:[e.x,e.y],[a,i]=F6(r)?r:[r.x,r.y];return CQ(n,a)&&CQ(o,i)}function cn(e){return e.stopPropagation()}function eYe(e){const{width:r,height:n}=Wn(e);return{x:e.internals.positionAbsolute.x+r/2,y:e.internals.positionAbsolute.y+n/2}}function tYe(e){let[r,...n]=e;nt(r,"start should be defined");let o=`M ${r[0]},${r[1]}`;for(;To(n,3);){const[a,i,s,...l]=n;o=o+` C ${a[0]},${a[1]} ${i[0]},${i[1]} ${s[0]},${s[1]}`,n=l}return nt(n.length===0,"all points should be consumed"),o}const Ck=E.forwardRef(({tag:e,cursor:r,className:n,style:o,...a},i)=>{const s=Dze(e);return b.jsxs(Vr,{ref:i,"data-likec4-tag":e,className:Je(Cqe({autoTextColor:nB(s)}),n),...a,style:{cursor:r,...o},children:[b.jsx("span",{children:"#"}),b.jsx("span",{children:e})]})}),rYe=(e,r)=>e.data.width===r.data.width&&ut(e.data.tags,r.data.tags)&&(e.data.hovered??!1)===(r.data.hovered??!1),Ey=E.memo(({id:e,data:{tags:r,width:n,hovered:o=!1}})=>{const{hovered:a,ref:i}=aC(),{hovered:s,ref:l}=aC(),[c,u]=aPe(!1,o?120:300);E.useEffect(()=>{u(w=>w?o||a||s:o&&(a||s))},[a,s,o]);const d=Vqe(),h=d>1.2,p=Wt(),g=w=>{p.send({type:"tag.highlight",tag:w})},y=E.useCallback(()=>{p.send({type:"tag.unhighlight"})},[]);if(!r||r.length===0)return null;const x=Math.max(Math.round(n*d)-10,200);return b.jsxs(b.Fragment,{children:[b.jsx("div",{ref:i,className:Je("likec4-element-tags",Uo({pointerEvents:"all",gap:"1",alignItems:"flex-end",justifyItems:"stretch",position:"absolute",width:"100%",bottom:"0",left:"0",padding:"1",_shapeCylinder:{bottom:"[5px]"},_shapeStorage:{bottom:"[5px]"},_shapeQueue:{bottom:"0",paddingLeft:"[14px]"}})),onClick:cn,children:r.map(w=>b.jsx(Vr,{"data-likec4-tag":w,className:ye({layerStyle:"likec4.tag",flex:"1",display:"flex",alignItems:"center",justifyContent:"center",maxWidth:50,height:5,_whenHovered:{height:12,borderRadius:4,transitionDelay:".08s"},transition:"fast"})},e+"#"+w))}),b.jsx(jU,{isVisible:c,align:"start",position:tt.Bottom,children:b.jsx(xn,{ref:l,css:{gap:"0.5",alignItems:"baseline",flexWrap:"wrap",pb:"sm",translate:"auto",x:"[-8px]",maxWidth:x},children:r.map(w=>b.jsx(Ck,{tag:w,cursor:"pointer",className:ye({userSelect:"none",...h&&{fontSize:"lg",borderRadius:"[4px]",px:"1.5"}}),onClick:k=>{k.stopPropagation(),p.openSearch(`#${w}`)},onMouseEnter:()=>g(w),onMouseLeave:y},w))})})]})},rYe);Ey.displayName="ElementTags";const nYe=E.forwardRef((e,r)=>b.jsx("svg",{height:"24",width:"24",fill:"currentColor",...e,viewBox:"0 0 24 24",ref:r,children:b.jsx("path",{d:"M12 1C5.923 1 1 5.923 1 12c0 4.867 3.149 8.979 7.521 10.436.55.096.756-.233.756-.522 0-.262-.013-1.128-.013-2.049-2.764.509-3.479-.674-3.699-1.292-.124-.317-.66-1.293-1.127-1.554-.385-.207-.936-.715-.014-.729.866-.014 1.485.797 1.691 1.128.99 1.663 2.571 1.196 3.204.907.096-.715.385-1.196.701-1.471-2.448-.275-5.005-1.224-5.005-5.432 0-1.196.426-2.186 1.128-2.956-.111-.275-.496-1.402.11-2.915 0 0 .921-.288 3.024 1.128a10.193 10.193 0 0 1 2.75-.371c.936 0 1.871.123 2.75.371 2.104-1.43 3.025-1.128 3.025-1.128.605 1.513.221 2.64.111 2.915.701.77 1.127 1.747 1.127 2.956 0 4.222-2.571 5.157-5.019 5.432.399.344.743 1.004.743 2.035 0 1.471-.014 2.654-.014 3.025 0 .289.206.632.756.522C19.851 20.979 23 16.854 23 12c0-6.077-4.922-11-11-11Z"})}));/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const oYe=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],TQ=yt("outline","check","Check",oYe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const aYe=[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],iYe=yt("outline","copy","Copy",aYe),AQ="https://github.com/",j9=E.forwardRef(({value:e,className:r,...n},o)=>{const a=e.url.includes("://")?e.url:new window.URL(e.url,window.location.href).toString();let i=a.startsWith(AQ);return b.jsx(Gl,{ref:o,variant:"default",radius:"sm",size:"sm",tt:"none",leftSection:e.title?b.jsx(b.Fragment,{children:e.title}):null,rightSection:b.jsx(cW,{value:a,timeout:1500,children:({copy:s,copied:l})=>b.jsx(or,{className:ye({opacity:l?1:.45,transition:"fast",_hover:{opacity:1}}),tabIndex:-1,size:"20",variant:l?"light":"transparent",color:l?"teal":"gray","data-active":l,onClick:c=>{c.stopPropagation(),c.preventDefault(),s()},children:l?b.jsx(TQ,{}):b.jsx(iYe,{stroke:2.5})})}),...n,className:Je(r,"group"),classNames:{root:ye({flexWrap:"nowrap",minHeight:24,maxWidth:500,userSelect:"all",pr:"0",backgroundColor:{base:"transparent",_hover:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]"}}}),section:ye({'&:is([data-position="left"])':{color:"mantine.colors.dimmed",userSelect:"none",pointerEvents:"none",_groupHover:{color:"[var(--badge-color)]",opacity:.7}}})},children:b.jsxs(Ql.a,{href:a,target:"_blank",style:{color:"var(--badge-color)",cursor:"pointer"},css:{transition:"fast",opacity:{base:.7,_hover:1},textDecoration:{base:"none",_hover:"underline"}},children:[i&&b.jsx(nYe,{height:"12",width:"12",style:{verticalAlign:"middle",marginRight:"4px"}}),i?a.replace(AQ,""):a]})})});function NQ(){const e=E.useContext(OT);if(!e)throw new Error("No LikeC4ViewModel in context found");return e}const Tk="--_blur",Ak="--_opacity",sYe=ye({boxSizing:"border-box",margin:"0",padding:"0",position:"fixed",inset:"0",width:"100vw",height:"100vh",maxWidth:"100vw",maxHeight:"100vh",background:"transparent",border:"transparent",_backdrop:{backdropFilter:"auto",backdropBlur:`var(${Tk})`,backgroundColor:`[rgb(36 36 36 / var(${Ak}, 5%))]`}}),lYe=ye({position:"absolute",pointerEvents:"all",display:"flex",flexDirection:"column",padding:"4",gap:"lg",justifyContent:"stretch",color:"mantine.colors.text",backgroundColor:{base:"mantine.colors.body",_dark:"mantine.colors.dark[6]"},boxShadow:"md",overflow:"hidden",border:"none",backgroundImage:` + linear-gradient(180deg, + color-mix(in srgb, var(--likec4-palette-fill) 60%, transparent), + color-mix(in srgb, var(--likec4-palette-fill) 20%, transparent) 8px, + color-mix(in srgb, var(--likec4-palette-fill) 14%, transparent) 20px, + transparent 80px + ), + linear-gradient(180deg, var(--likec4-palette-fill), var(--likec4-palette-fill) 4px, transparent 4px) + `,"& .react-flow__attribution":{display:"none"}}),cYe=ye({flex:0,cursor:"move"}),uYe=ye({display:"block",fontFamily:"likec4.element",fontOpticalSizing:"auto",fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"xs"}),B9="40px",dYe=ye({flex:`0 0 ${B9}`,height:B9,width:B9,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",cursor:"move",_dark:{mixBlendMode:"hard-light"},"& :where(svg, img)":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none",filter:` + drop-shadow(0 0 3px rgb(0 0 0 / 10%)) + drop-shadow(0 1px 8px rgb(0 0 0 / 5%)) + drop-shadow(1px 1px 16px rgb(0 0 0 / 2%)) + `},"& img":{objectFit:"contain"}}),Nk="--view-title-color",Rk="--icon-color",hYe=ye({width:"100%",background:"mantine.colors.body",borderRadius:"sm",padding:"[10px 8px]",transition:"fast",border:"1px dashed",borderColor:"mantine.colors.defaultBorder",[Nk]:"{colors.mantine.colors.dark[1]}",_hover:{background:"mantine.colors.defaultHover",[Rk]:"{colors.mantine.colors.dark[1]}",[Nk]:"{colors.mantine.colors.defaultColor}"},_dark:{background:"mantine.colors.dark[6]"},_light:{[Rk]:"{colors.mantine.colors.gray[6]}",[Nk]:"{colors.mantine.colors.gray[7]}",_hover:{[Rk]:"{colors.mantine.colors.gray[7]}"}},"& .mantine-ThemeIcon-root":{transition:"fast",color:`[var(${Rk}, {colors.mantine.colors.dark[2]})]`,"--ti-size":"22px",_hover:{color:"mantine.colors.defaultColor"}},"& > *":{transition:"all 130ms {easings.inOut}"},"&:hover > *":{transitionTimingFunction:"out",transform:"translateX(1.6px)"}}),fYe=ye({transition:"fast",color:`[var(${Nk}, {colors.mantine.colors.gray[7]})]`,fontSize:"15px",fontWeight:500,lineHeight:"1.4"}),pYe=ye({flex:1,display:"flex",flexDirection:"column",justifyContent:"stretch",overflow:"hidden",gap:"sm"}),mYe=ye({background:"mantine.colors.gray[1]",borderRadius:"sm",flexWrap:"nowrap",gap:"1.5",padding:"1",_dark:{background:"mantine.colors.dark[7]"}}),gYe=ye({fontSize:"xs",fontWeight:500,flexGrow:1,padding:"[6px 8px]",transition:"fast",borderRadius:"sm",color:"mantine.colors.gray[7]",_hover:{transitionTimingFunction:"out",color:"mantine.colors.defaultColor",background:"mantine.colors.gray[3]"},"&[data-active]":{transition:"none",background:"mantine.colors.white",shadow:"xs",color:"mantine.colors.defaultColor"},_dark:{color:"mantine.colors.dark[1]",_hover:{color:"mantine.colors.white",background:"mantine.colors.dark[6]"},"&:is([data-active])":{color:"mantine.colors.white",background:"mantine.colors.dark[5]"}}}),yYe=ye({flex:1,overflow:"hidden",position:"relative","&:not(:has(.mantine-ScrollArea-root))":{paddingLeft:"1",paddingRight:"1"},"& .mantine-ScrollArea-root":{width:"100%",height:"100%","& > div":{paddingLeft:"1",paddingRight:"1"}}}),bYe=ye({flex:1,display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[24px 20px]",alignItems:"baseline",justifyItems:"stretch"}),vYe=ye({justifySelf:"end",textAlign:"right",userSelect:"none"}),xYe=ye({position:"absolute",width:"14px",height:"14px",border:"3.5px solid",borderColor:"mantine.colors.dark[3]",borderTop:"none",borderLeft:"none",borderRadius:"2px",bottom:"0.5",right:"0.5",transition:"fast",cursor:"se-resize",_hover:{borderWidth:"4px",borderColor:"mantine.colors.dark[1]"}}),wYe=ye({"&[data-level='1']":{marginBottom:"sm"}}),kYe=ye({cursor:"default",marginTop:"0",marginBottom:"0"}),RQ=ye({transition:"fast",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.dark[1]"},"& > *":{transition:"fast"},_hover:{transitionTimingFunction:"out","& > :not([data-no-transform])":{transitionTimingFunction:"out",transform:"translateX(1px)"}}}),_Ye=Je(RQ),EYe=Je(RQ,ye({cursor:"pointer",width:"100%",justifyContent:"stretch",flexWrap:"nowrap",height:"36px",paddingInlineStart:"[16px]",paddingInlineEnd:"2.5",borderRadius:"sm",alignItems:"center",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.gray.lightColor"},_hover:{background:"mantine.colors.gray.lightHover"},"& .tabler-icon":{transition:"fast",width:"90%",opacity:.65}}));/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const SYe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],F9=yt("outline","info-circle","InfoCircle",SYe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const CYe=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",key:"svg-1"}],["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],TYe=yt("outline","target","Target",CYe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const AYe=[["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-0"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-2"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-3"}],["path",{d:"M8 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-4"}],["path",{d:"M16 16l-2.5 -2.5",key:"svg-5"}]],gi=yt("outline","zoom-scan","ZoomScan",AYe),NYe=({node:e})=>b.jsxs(Ur,{className:_Ye,gap:6,align:"baseline",wrap:"nowrap",children:[b.jsxs(wt,{component:"div",fz:11,c:"dimmed",children:[e.kind,":"]}),b.jsx(wt,{component:"div",fz:"sm",fw:"500",children:e.title})]}),RYe=({instance:e})=>{const r=Wt(),n=r.currentView.id,o=[...e.views()];return b.jsxs(Ur,{className:EYe,gap:4,children:[b.jsx(ci,{color:"gray",variant:"transparent",size:"xs",flex:0,children:b.jsx(TYe,{stroke:1.2})}),b.jsx(wt,{component:"div",fz:"sm",fw:"500",flex:"1 1 100%",children:e.title}),b.jsxs(Se,{onClick:cn,pos:"relative","data-no-transform":!0,flex:0,children:[o.length===0&&b.jsx(Zn,{size:"compact-xs",variant:"transparent",color:"gray",disabled:!0,children:"no views"}),o.length>0&&b.jsxs(fo,{shadow:"md",withinPortal:!1,position:"bottom-start",offset:0,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,trapFocus:!0,children:[b.jsx(fo.Target,{children:b.jsxs(Zn,{size:"compact-xs",variant:"subtle",color:"gray",children:[o.length," view",o.length>1?"s":""]})}),b.jsx(fo.Dropdown,{children:o.map(a=>b.jsx(fo.Item,{px:"xs",py:4,disabled:a.id===n,leftSection:b.jsx(ci,{size:"sm",variant:"transparent",color:"gray",children:b.jsx(gi,{stroke:1.8,opacity:.65})}),styles:{itemSection:{marginInlineEnd:Ne(8)}},onClick:i=>{i.stopPropagation(),r.navigateTo(a.id)},children:a.title},a.id))})]})]})]})},$Ye=()=>{},PYe=E.memo(({elementFqn:e})=>{const r=Ho().element(e),n=[...r.deployments()],o=Y1({multiple:!1});o.setHoveredNode=$Ye;const a=E.useMemo(()=>{let i=[],s=new Map;for(const l of r.deployments()){let c={label:b.jsx(RYe,{instance:l}),value:l.id,type:"instance",children:[]};s.set(l.id,c);let u=l.parent;for(;u;){let d=s.get(u.id);if(d){d.children.push(c);break}d={label:b.jsx(NYe,{node:u}),value:u.id,type:"node",children:[c]},s.set(u.id,d),c=d,u=u.parent}!u&&!i.includes(c)&&i.push(c)}return i},[r]);return E.useEffect(()=>{o.expandAllNodes()},[a]),n.length===0?b.jsx(M3,{variant:"light",color:"gray",icon:b.jsx(F9,{}),children:"This element does not have any deployments"}):b.jsx(Bp,{levelOffset:"sm",allowRangeSelection:!1,classNames:{node:wYe,label:kYe},styles:{root:{position:"relative",width:"min-content",minWidth:300}},data:a,tree:o,renderNode:({node:i,selected:s,elementProps:l,hasChildren:c})=>b.jsx(Se,{...l,style:{...!c&&{marginBottom:Ne(4)}},children:c?b.jsx(Zn,{fullWidth:!0,color:"gray",variant:s?"transparent":"subtle",size:"xs",justify:"flex-start",styles:{root:{position:"unset",paddingInlineStart:Ne(16)}},children:i.label}):i.label})})}),MYe=()=>{},$Q=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(o!==r[n]&&!Xn(o,r[n]))return!1;return!0};function $k(e,r,n,o){const a=FB();BB(a?MYe:e,r,$Q,o)}function OYe(){const e=typeof window<"u"&&typeof window.devicePixelRatio=="number"?window.devicePixelRatio:1;return Ki(Math.floor(e),{min:1,max:4})}let Pk;function yi(e){return Pk??=OYe(),Pk<2?Math.round(e):Math.round(e*Pk)/Pk}function DYe(e){switch(e){case"dots":return Gi.Dots;case"lines":return Gi.Lines;case"cross":return Gi.Cross;default:Ga(e)}}function LYe({background:e}){return typeof e=="string"?b.jsx(LU,{variant:DYe(e),size:2,gap:20}):b.jsx(LU,{...e})}const ds={Compound:1,Edge:20,Element:20,Max:30},hs=.05,H9=3,Mk={default:"16px",withControls:{top:"50px",left:"16px",right:"16px",bottom:"16px"}},PQ=(e,r)=>(e.data.dimmed??!1)===r?e:{...e,data:{...e.data,dimmed:r}};function IYe(e,r){return r!==void 0?PQ(e,r):n=>PQ(n,e)}const MQ=(e,r)=>(e.data.hovered??!1)===r?e:{...e,data:{...e.data,hovered:r}};function zYe(e,r){return r!==void 0?MQ(e,r):n=>MQ(n,e)}function OQ(e,r){return DRe(e.data,r)?e:{...e,data:{...e.data,...r}}}function jYe(e,r){return r!==void 0?OQ(e,r):n=>OQ(n,e)}const Jt={setDimmed:IYe,setHovered:zYe,setData:jYe};function U9({nodes:e,edges:r,onEdgesChange:n,onNodesChange:o,className:a,pannable:i=!0,zoomable:s=!0,nodesSelectable:l=!0,nodesDraggable:c=!1,background:u="dots",children:d,colorMode:h,fitViewPadding:p=0,fitView:g=!0,zoomOnDoubleClick:y=!1,onViewportResize:x,onMoveEnd:w,onNodeMouseEnter:k,onNodeMouseLeave:C,onEdgeMouseEnter:_,onEdgeMouseLeave:T,...A}){const N=u!=="transparent"&&u!=="solid",$=Yqe(),R=L9(),{colorScheme:M}=SMe();return h||(h=M==="auto"?"system":M),b.jsxs(Y7e,{colorMode:h,nodes:e,edges:r,className:Je(u==="transparent"&&"bg-transparent",a),...$&&{"data-likec4-zoom-small":!0},zoomOnPinch:s,zoomOnScroll:!i&&s,...!s&&{zoomActivationKeyCode:null},zoomOnDoubleClick:y,maxZoom:s?H9:1,minZoom:s?hs:1,fitView:g,fitViewOptions:{minZoom:hs,maxZoom:1,padding:p,includeHiddenNodes:!1},preventScrolling:s||i,defaultMarkerColor:"var(--xy-edge-stroke)",noDragClassName:"nodrag",noPanClassName:"nopan",noWheelClassName:"nowheel",panOnScroll:i,panOnDrag:i,...!i&&{panActivationKeyCode:null,selectionKeyCode:null},elementsSelectable:l,nodesFocusable:c||l,edgesFocusable:!1,nodesDraggable:c,nodeDragThreshold:4,nodeClickDistance:3,paneClickDistance:3,elevateNodesOnSelect:!1,selectNodesOnDrag:!1,onNodesChange:o,onEdgesChange:n,onMoveEnd:it((O,{x:B,y:I,zoom:Y})=>{const D=yi(B),V=yi(I);(B!==D||I!==V)&&R.setState({transform:[D,V,Y]}),w?.(O,{x:D,y:V,zoom:Y})}),onNodeMouseEnter:it((O,B)=>{if(k){k(O,B);return}B.data.hovered||o([{id:B.id,type:"replace",item:Jt.setHovered(B,!0)}])}),onNodeMouseLeave:it((O,B)=>{if(C){C(O,B);return}B.data.hovered&&o([{id:B.id,type:"replace",item:Jt.setHovered(B,!1)}])}),onEdgeMouseEnter:it((O,B)=>{if(_){_(O,B);return}B.data.hovered||n([{id:B.id,type:"replace",item:Jt.setHovered(B,!0)}])}),onEdgeMouseLeave:it((O,B)=>{if(T){T(O,B);return}B.data.hovered&&n([{id:B.id,type:"replace",item:Jt.setHovered(B,!1)}])}),onNodeDoubleClick:cn,onEdgeDoubleClick:cn,...A,children:[N&&b.jsx(LYe,{background:u}),x&&b.jsx(FYe,{onViewportResize:x}),d]})}const BYe=({width:e,height:r})=>(e||1)*(r||1),FYe=({onViewportResize:e})=>{const r=At(BYe);return $k(e,[r]),null},DQ=E.createContext(null);function LQ(){return mt(E.useContext(DQ),"No RelationshipsBrowserActorContext")}function Ok(e,r=Xn){const n=LQ();return wn(n,it(e),r)}function Sy(){const e=LQ();return E.useMemo(()=>({actor:e,get rootElementId(){return`relationships-browser-${e.sessionId.replaceAll(":","_")}`},getState:()=>e.getSnapshot().context,send:e.send,updateView:r=>{e.send({type:"update.view",layouted:r})},changeScope:r=>{e.send({type:"change.scope",scope:r})},navigateTo:(r,n)=>{e.send({type:"navigate.to",subject:r,fromNode:n})},fitDiagram:()=>{e.send({type:"fitDiagram"})},close:()=>{e._parent?e._parent?.send({type:"close",actorId:e.id}):e.send({type:"close"})}}),[e])}var V9,IQ;function q9(){if(IQ)return V9;IQ=1;var e="\0",r="\0",n="";class o{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(d){d&&(this._isDirected=Object.hasOwn(d,"directed")?d.directed:!0,this._isMultigraph=Object.hasOwn(d,"multigraph")?d.multigraph:!1,this._isCompound=Object.hasOwn(d,"compound")?d.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[r]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(d){return this._label=d,this}graph(){return this._label}setDefaultNodeLabel(d){return this._defaultNodeLabelFn=d,typeof d!="function"&&(this._defaultNodeLabelFn=()=>d),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var d=this;return this.nodes().filter(h=>Object.keys(d._in[h]).length===0)}sinks(){var d=this;return this.nodes().filter(h=>Object.keys(d._out[h]).length===0)}setNodes(d,h){var p=arguments,g=this;return d.forEach(function(y){p.length>1?g.setNode(y,h):g.setNode(y)}),this}setNode(d,h){return Object.hasOwn(this._nodes,d)?(arguments.length>1&&(this._nodes[d]=h),this):(this._nodes[d]=arguments.length>1?h:this._defaultNodeLabelFn(d),this._isCompound&&(this._parent[d]=r,this._children[d]={},this._children[r][d]=!0),this._in[d]={},this._preds[d]={},this._out[d]={},this._sucs[d]={},++this._nodeCount,this)}node(d){return this._nodes[d]}hasNode(d){return Object.hasOwn(this._nodes,d)}removeNode(d){var h=this;if(Object.hasOwn(this._nodes,d)){var p=g=>h.removeEdge(h._edgeObjs[g]);delete this._nodes[d],this._isCompound&&(this._removeFromParentsChildList(d),delete this._parent[d],this.children(d).forEach(function(g){h.setParent(g)}),delete this._children[d]),Object.keys(this._in[d]).forEach(p),delete this._in[d],delete this._preds[d],Object.keys(this._out[d]).forEach(p),delete this._out[d],delete this._sucs[d],--this._nodeCount}return this}setParent(d,h){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(h===void 0)h=r;else{h+="";for(var p=h;p!==void 0;p=this.parent(p))if(p===d)throw new Error("Setting "+h+" as parent of "+d+" would create a cycle");this.setNode(h)}return this.setNode(d),this._removeFromParentsChildList(d),this._parent[d]=h,this._children[h][d]=!0,this}_removeFromParentsChildList(d){delete this._children[this._parent[d]][d]}parent(d){if(this._isCompound){var h=this._parent[d];if(h!==r)return h}}children(d=r){if(this._isCompound){var h=this._children[d];if(h)return Object.keys(h)}else{if(d===r)return this.nodes();if(this.hasNode(d))return[]}}predecessors(d){var h=this._preds[d];if(h)return Object.keys(h)}successors(d){var h=this._sucs[d];if(h)return Object.keys(h)}neighbors(d){var h=this.predecessors(d);if(h){const g=new Set(h);for(var p of this.successors(d))g.add(p);return Array.from(g.values())}}isLeaf(d){var h;return this.isDirected()?h=this.successors(d):h=this.neighbors(d),h.length===0}filterNodes(d){var h=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});h.setGraph(this.graph());var p=this;Object.entries(this._nodes).forEach(function([x,w]){d(x)&&h.setNode(x,w)}),Object.values(this._edgeObjs).forEach(function(x){h.hasNode(x.v)&&h.hasNode(x.w)&&h.setEdge(x,p.edge(x))});var g={};function y(x){var w=p.parent(x);return w===void 0||h.hasNode(w)?(g[x]=w,w):w in g?g[w]:y(w)}return this._isCompound&&h.nodes().forEach(x=>h.setParent(x,y(x))),h}setDefaultEdgeLabel(d){return this._defaultEdgeLabelFn=d,typeof d!="function"&&(this._defaultEdgeLabelFn=()=>d),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(d,h){var p=this,g=arguments;return d.reduce(function(y,x){return g.length>1?p.setEdge(y,x,h):p.setEdge(y,x),x}),this}setEdge(){var d,h,p,g,y=!1,x=arguments[0];typeof x=="object"&&x!==null&&"v"in x?(d=x.v,h=x.w,p=x.name,arguments.length===2&&(g=arguments[1],y=!0)):(d=x,h=arguments[1],p=arguments[3],arguments.length>2&&(g=arguments[2],y=!0)),d=""+d,h=""+h,p!==void 0&&(p=""+p);var w=s(this._isDirected,d,h,p);if(Object.hasOwn(this._edgeLabels,w))return y&&(this._edgeLabels[w]=g),this;if(p!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(d),this.setNode(h),this._edgeLabels[w]=y?g:this._defaultEdgeLabelFn(d,h,p);var k=l(this._isDirected,d,h,p);return d=k.v,h=k.w,Object.freeze(k),this._edgeObjs[w]=k,a(this._preds[h],d),a(this._sucs[d],h),this._in[h][w]=k,this._out[d][w]=k,this._edgeCount++,this}edge(d,h,p){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,d,h,p);return this._edgeLabels[g]}edgeAsObj(){const d=this.edge(...arguments);return typeof d!="object"?{label:d}:d}hasEdge(d,h,p){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,d,h,p);return Object.hasOwn(this._edgeLabels,g)}removeEdge(d,h,p){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,d,h,p),y=this._edgeObjs[g];return y&&(d=y.v,h=y.w,delete this._edgeLabels[g],delete this._edgeObjs[g],i(this._preds[h],d),i(this._sucs[d],h),delete this._in[h][g],delete this._out[d][g],this._edgeCount--),this}inEdges(d,h){var p=this._in[d];if(p){var g=Object.values(p);return h?g.filter(y=>y.v===h):g}}outEdges(d,h){var p=this._out[d];if(p){var g=Object.values(p);return h?g.filter(y=>y.w===h):g}}nodeEdges(d,h){var p=this.inEdges(d,h);if(p)return p.concat(this.outEdges(d,h))}}function a(u,d){u[d]?u[d]++:u[d]=1}function i(u,d){--u[d]||delete u[d]}function s(u,d,h,p){var g=""+d,y=""+h;if(!u&&g>y){var x=g;g=y,y=x}return g+n+y+n+(p===void 0?e:p)}function l(u,d,h,p){var g=""+d,y=""+h;if(!u&&g>y){var x=g;g=y,y=x}var w={v:g,w:y};return p&&(w.name=p),w}function c(u,d){return s(u,d.v,d.w,d.name)}return V9=o,V9}var zQ,jQ;function HYe(){return jQ||(jQ=1,zQ="2.2.4"),zQ}var BQ,FQ;function UYe(){return FQ||(FQ=1,BQ={Graph:q9(),version:HYe()}),BQ}var Y9,HQ;function VYe(){if(HQ)return Y9;HQ=1;var e=q9();Y9={write:r,read:a};function r(i){var s={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:n(i),edges:o(i)};return i.graph()!==void 0&&(s.value=structuredClone(i.graph())),s}function n(i){return i.nodes().map(function(s){var l=i.node(s),c=i.parent(s),u={v:s};return l!==void 0&&(u.value=l),c!==void 0&&(u.parent=c),u})}function o(i){return i.edges().map(function(s){var l=i.edge(s),c={v:s.v,w:s.w};return s.name!==void 0&&(c.name=s.name),l!==void 0&&(c.value=l),c})}function a(i){var s=new e(i.options).setGraph(i.value);return i.nodes.forEach(function(l){s.setNode(l.v,l.value),l.parent&&s.setParent(l.v,l.parent)}),i.edges.forEach(function(l){s.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),s}return Y9}var W9,UQ;function qYe(){if(UQ)return W9;UQ=1,W9=e;function e(r){var n={},o=[],a;function i(s){Object.hasOwn(n,s)||(n[s]=!0,a.push(s),r.successors(s).forEach(i),r.predecessors(s).forEach(i))}return r.nodes().forEach(function(s){a=[],i(s),a.length&&o.push(a)}),o}return W9}var X9,VQ;function qQ(){if(VQ)return X9;VQ=1;class e{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(n){return n.key})}has(n){return Object.hasOwn(this._keyIndices,n)}priority(n){var o=this._keyIndices[n];if(o!==void 0)return this._arr[o].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(n,o){var a=this._keyIndices;if(n=String(n),!Object.hasOwn(a,n)){var i=this._arr,s=i.length;return a[n]=s,i.push({key:n,priority:o}),this._decrease(s),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key}decrease(n,o){var a=this._keyIndices[n];if(o>this._arr[a].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[a].priority+" New: "+o);this._arr[a].priority=o,this._decrease(a)}_heapify(n){var o=this._arr,a=2*n,i=a+1,s=n;a>1,!(o[i].priority1;function n(a,i,s,l){return o(a,String(i),s||r,l||function(c){return a.outEdges(c)})}function o(a,i,s,l){var c={},u=new e,d,h,p=function(g){var y=g.v!==d?g.v:g.w,x=c[y],w=s(g),k=h.distance+w;if(w<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+w);k0&&(d=u.removeMin(),h=c[d],h.distance!==Number.POSITIVE_INFINITY);)l(d).forEach(p);return c}return G9}var K9,XQ;function YYe(){if(XQ)return K9;XQ=1;var e=WQ();K9=r;function r(n,o,a){return n.nodes().reduce(function(i,s){return i[s]=e(n,s,o,a),i},{})}return K9}var Z9,GQ;function KQ(){if(GQ)return Z9;GQ=1,Z9=e;function e(r){var n=0,o=[],a={},i=[];function s(l){var c=a[l]={onStack:!0,lowlink:n,index:n++};if(o.push(l),r.successors(l).forEach(function(h){Object.hasOwn(a,h)?a[h].onStack&&(c.lowlink=Math.min(c.lowlink,a[h].index)):(s(h),c.lowlink=Math.min(c.lowlink,a[h].lowlink))}),c.lowlink===c.index){var u=[],d;do d=o.pop(),a[d].onStack=!1,u.push(d);while(l!==d);i.push(u)}}return r.nodes().forEach(function(l){Object.hasOwn(a,l)||s(l)}),i}return Z9}var Q9,ZQ;function WYe(){if(ZQ)return Q9;ZQ=1;var e=KQ();Q9=r;function r(n){return e(n).filter(function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return Q9}var J9,QQ;function XYe(){if(QQ)return J9;QQ=1,J9=r;var e=()=>1;function r(o,a,i){return n(o,a||e,i||function(s){return o.outEdges(s)})}function n(o,a,i){var s={},l=o.nodes();return l.forEach(function(c){s[c]={},s[c][c]={distance:0},l.forEach(function(u){c!==u&&(s[c][u]={distance:Number.POSITIVE_INFINITY})}),i(c).forEach(function(u){var d=u.v===c?u.w:u.v,h=a(u);s[c][d]={distance:h,predecessor:c}})}),l.forEach(function(c){var u=s[c];l.forEach(function(d){var h=s[d];l.forEach(function(p){var g=h[c],y=u[p],x=h[p],w=g.distance+y.distance;wa.successors(h):h=>a.neighbors(h),c=s==="post"?r:n,u=[],d={};return i.forEach(h=>{if(!a.hasNode(h))throw new Error("Graph does not have node: "+h);c(h,l,d,u)}),u}function r(a,i,s,l){for(var c=[[a,!1]];c.length>0;){var u=c.pop();u[1]?l.push(u[0]):Object.hasOwn(s,u[0])||(s[u[0]]=!0,c.push([u[0],!0]),o(i(u[0]),d=>c.push([d,!1])))}}function n(a,i,s,l){for(var c=[a];c.length>0;){var u=c.pop();Object.hasOwn(s,u)||(s[u]=!0,l.push(u),o(i(u),d=>c.push(d)))}}function o(a,i){for(var s=a.length;s--;)i(a[s],s,a);return a}return rA}var nA,oJ;function KYe(){if(oJ)return nA;oJ=1;var e=nJ();nA=r;function r(n,o){return e(n,o,"post")}return nA}var oA,aJ;function ZYe(){if(aJ)return oA;aJ=1;var e=nJ();oA=r;function r(n,o){return e(n,o,"pre")}return oA}var aA,iJ;function QYe(){if(iJ)return aA;iJ=1;var e=q9(),r=qQ();aA=n;function n(o,a){var i=new e,s={},l=new r,c;function u(h){var p=h.v===c?h.w:h.v,g=l.priority(p);if(g!==void 0){var y=a(h);y0;){if(c=l.removeMin(),Object.hasOwn(s,c))i.setEdge(c,s[c]);else{if(d)throw new Error("Input graph is not connected: "+o);d=!0}o.nodeEdges(c).forEach(u)}return i}return aA}var sJ,lJ;function JYe(){return lJ||(lJ=1,sJ={components:qYe(),dijkstra:WQ(),dijkstraAll:YYe(),findCycles:WYe(),floydWarshall:XYe(),isAcyclic:GYe(),postorder:KYe(),preorder:ZYe(),prim:QYe(),tarjan:KQ(),topsort:eJ()}),sJ}var iA,cJ;function fs(){if(cJ)return iA;cJ=1;var e=UYe();return iA={Graph:e.Graph,json:VYe(),alg:JYe(),version:e.version},iA}var sA,uJ;function eWe(){if(uJ)return sA;uJ=1;class e{constructor(){let a={};a._next=a._prev=a,this._sentinel=a}dequeue(){let a=this._sentinel,i=a._prev;if(i!==a)return r(i),i}enqueue(a){let i=this._sentinel;a._prev&&a._next&&r(a),a._next=i._next,i._next._prev=a,i._next=a,a._prev=i}toString(){let a=[],i=this._sentinel,s=i._prev;for(;s!==i;)a.push(JSON.stringify(s,n)),s=s._prev;return"["+a.join(", ")+"]"}}function r(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function n(o,a){if(o!=="_next"&&o!=="_prev")return a}return sA=e,sA}var lA,dJ;function tWe(){if(dJ)return lA;dJ=1;let e=fs().Graph,r=eWe();lA=o;let n=()=>1;function o(u,d){if(u.nodeCount()<=1)return[];let h=s(u,d||n);return a(h.graph,h.buckets,h.zeroIdx).flatMap(p=>u.outEdges(p.v,p.w))}function a(u,d,h){let p=[],g=d[d.length-1],y=d[0],x;for(;u.nodeCount();){for(;x=y.dequeue();)i(u,d,h,x);for(;x=g.dequeue();)i(u,d,h,x);if(u.nodeCount()){for(let w=d.length-2;w>0;--w)if(x=d[w].dequeue(),x){p=p.concat(i(u,d,h,x,!0));break}}}return p}function i(u,d,h,p,g){let y=g?[]:void 0;return u.inEdges(p.v).forEach(x=>{let w=u.edge(x),k=u.node(x.v);g&&y.push({v:x.v,w:x.w}),k.out-=w,l(d,h,k)}),u.outEdges(p.v).forEach(x=>{let w=u.edge(x),k=x.w,C=u.node(k);C.in-=w,l(d,h,C)}),u.removeNode(p.v),y}function s(u,d){let h=new e,p=0,g=0;u.nodes().forEach(w=>{h.setNode(w,{v:w,in:0,out:0})}),u.edges().forEach(w=>{let k=h.edge(w.v,w.w)||0,C=d(w),_=k+C;h.setEdge(w.v,w.w,_),g=Math.max(g,h.node(w.v).out+=C),p=Math.max(p,h.node(w.w).in+=C)});let y=c(g+p+3).map(()=>new r),x=p+1;return h.nodes().forEach(w=>{l(y,x,h.node(w))}),{graph:h,buckets:y,zeroIdx:x}}function l(u,d,h){h.out?h.in?u[h.out-h.in+d].enqueue(h):u[u.length-1].enqueue(h):u[0].enqueue(h)}function c(u){const d=[];for(let h=0;hM.setNode(O,R.node(O))),R.edges().forEach(O=>{let B=M.edge(O.v,O.w)||{weight:0,minlen:1},I=R.edge(O);M.setEdge(O.v,O.w,{weight:B.weight+I.weight,minlen:Math.max(B.minlen,I.minlen)})}),M}function o(R){let M=new e({multigraph:R.isMultigraph()}).setGraph(R.graph());return R.nodes().forEach(O=>{R.children(O).length||M.setNode(O,R.node(O))}),R.edges().forEach(O=>{M.setEdge(O,R.edge(O))}),M}function a(R){let M=R.nodes().map(O=>{let B={};return R.outEdges(O).forEach(I=>{B[I.w]=(B[I.w]||0)+R.edge(I).weight}),B});return $(R.nodes(),M)}function i(R){let M=R.nodes().map(O=>{let B={};return R.inEdges(O).forEach(I=>{B[I.v]=(B[I.v]||0)+R.edge(I).weight}),B});return $(R.nodes(),M)}function s(R,M){let O=R.x,B=R.y,I=M.x-O,Y=M.y-B,D=R.width/2,V=R.height/2;if(!I&&!Y)throw new Error("Not possible to find intersection inside of the rectangle");let L,U;return Math.abs(Y)*D>Math.abs(I)*V?(Y<0&&(V=-V),L=V*I/Y,U=V):(I<0&&(D=-D),L=D,U=D*Y/I),{x:O+L,y:B+U}}function l(R){let M=T(y(R)+1).map(()=>[]);return R.nodes().forEach(O=>{let B=R.node(O),I=B.rank;I!==void 0&&(M[I][B.order]=O)}),M}function c(R){let M=R.nodes().map(B=>{let I=R.node(B).rank;return I===void 0?Number.MAX_VALUE:I}),O=g(Math.min,M);R.nodes().forEach(B=>{let I=R.node(B);Object.hasOwn(I,"rank")&&(I.rank-=O)})}function u(R){let M=R.nodes().map(D=>R.node(D).rank),O=g(Math.min,M),B=[];R.nodes().forEach(D=>{let V=R.node(D).rank-O;B[V]||(B[V]=[]),B[V].push(D)});let I=0,Y=R.graph().nodeRankFactor;Array.from(B).forEach((D,V)=>{D===void 0&&V%Y!==0?--I:D!==void 0&&I&&D.forEach(L=>R.node(L).rank+=I)})}function d(R,M,O,B){let I={width:0,height:0};return arguments.length>=4&&(I.rank=O,I.order=B),r(R,"border",I,M)}function h(R,M=p){const O=[];for(let B=0;Bp){const O=h(M);return R.apply(null,O.map(B=>R.apply(null,B)))}else return R.apply(null,M)}function y(R){const M=R.nodes().map(O=>{let B=R.node(O).rank;return B===void 0?Number.MIN_VALUE:B});return g(Math.max,M)}function x(R,M){let O={lhs:[],rhs:[]};return R.forEach(B=>{M(B)?O.lhs.push(B):O.rhs.push(B)}),O}function w(R,M){let O=Date.now();try{return M()}finally{console.log(R+" time: "+(Date.now()-O)+"ms")}}function k(R,M){return M()}let C=0;function _(R){var M=++C;return R+(""+M)}function T(R,M,O=1){M==null&&(M=R,R=0);let B=Y=>YMB[M]),Object.entries(R).reduce((B,[I,Y])=>(B[I]=O(Y,I),B),{})}function $(R,M){return R.reduce((O,B,I)=>(O[B]=M[I],O),{})}return cA}var uA,fJ;function rWe(){if(fJ)return uA;fJ=1;let e=tWe(),r=_n().uniqueId;uA={run:n,undo:a};function n(i){(i.graph().acyclicer==="greedy"?e(i,s(i)):o(i)).forEach(l=>{let c=i.edge(l);i.removeEdge(l),c.forwardName=l.name,c.reversed=!0,i.setEdge(l.w,l.v,c,r("rev"))});function s(l){return c=>l.edge(c).weight}}function o(i){let s=[],l={},c={};function u(d){Object.hasOwn(c,d)||(c[d]=!0,l[d]=!0,i.outEdges(d).forEach(h=>{Object.hasOwn(l,h.w)?s.push(h):u(h.w)}),delete l[d])}return i.nodes().forEach(u),s}function a(i){i.edges().forEach(s=>{let l=i.edge(s);if(l.reversed){i.removeEdge(s);let c=l.forwardName;delete l.reversed,delete l.forwardName,i.setEdge(s.w,s.v,l,c)}})}return uA}var dA,pJ;function nWe(){if(pJ)return dA;pJ=1;let e=_n();dA={run:r,undo:o};function r(a){a.graph().dummyChains=[],a.edges().forEach(i=>n(a,i))}function n(a,i){let s=i.v,l=a.node(s).rank,c=i.w,u=a.node(c).rank,d=i.name,h=a.edge(i),p=h.labelRank;if(u===l+1)return;a.removeEdge(i);let g,y,x;for(x=0,++l;l{let s=a.node(i),l=s.edgeLabel,c;for(a.setEdge(s.edgeObj,l);s.dummy;)c=a.successors(i)[0],a.removeNode(i),l.points.push({x:s.x,y:s.y}),s.dummy==="edge-label"&&(l.x=s.x,l.y=s.y,l.width=s.width,l.height=s.height),i=c,s=a.node(i)})}return dA}var hA,mJ;function Dk(){if(mJ)return hA;mJ=1;const{applyWithChunking:e}=_n();hA={longestPath:r,slack:n};function r(o){var a={};function i(s){var l=o.node(s);if(Object.hasOwn(a,s))return l.rank;a[s]=!0;let c=o.outEdges(s).map(d=>d==null?Number.POSITIVE_INFINITY:i(d.w)-o.edge(d).minlen);var u=e(Math.min,c);return u===Number.POSITIVE_INFINITY&&(u=0),l.rank=u}o.sources().forEach(i)}function n(o,a){return o.node(a.w).rank-o.node(a.v).rank-o.edge(a).minlen}return hA}var fA,gJ;function yJ(){if(gJ)return fA;gJ=1;var e=fs().Graph,r=Dk().slack;fA=n;function n(s){var l=new e({directed:!1}),c=s.nodes()[0],u=s.nodeCount();l.setNode(c,{});for(var d,h;o(l,s){var h=d.v,p=u===h?d.w:h;!s.hasNode(p)&&!r(l,d)&&(s.setNode(p,{}),s.setEdge(u,p,{}),c(p))})}return s.nodes().forEach(c),s.nodeCount()}function a(s,l){return l.edges().reduce((c,u)=>{let d=Number.POSITIVE_INFINITY;return s.hasNode(u.v)!==s.hasNode(u.w)&&(d=r(l,u)),dl.node(u).rank+=c)}return fA}var pA,bJ;function oWe(){if(bJ)return pA;bJ=1;var e=yJ(),r=Dk().slack,n=Dk().longestPath,o=fs().alg.preorder,a=fs().alg.postorder,i=_n().simplify;pA=s,s.initLowLimValues=d,s.initCutValues=l,s.calcCutValue=u,s.leaveEdge=p,s.enterEdge=g,s.exchangeEdges=y;function s(C){C=i(C),n(C);var _=e(C);d(_),l(_,C);for(var T,A;T=p(_);)A=g(_,C,T),y(_,C,T,A)}function l(C,_){var T=a(C,C.nodes());T=T.slice(0,T.length-1),T.forEach(A=>c(C,_,A))}function c(C,_,T){var A=C.node(T),N=A.parent;C.edge(T,N).cutvalue=u(C,_,T)}function u(C,_,T){var A=C.node(T),N=A.parent,$=!0,R=_.edge(T,N),M=0;return R||($=!1,R=_.edge(N,T)),M=R.weight,_.nodeEdges(T).forEach(O=>{var B=O.v===T,I=B?O.w:O.v;if(I!==N){var Y=B===$,D=_.edge(O).weight;if(M+=Y?D:-D,w(C,T,I)){var V=C.edge(T,I).cutvalue;M+=Y?-V:V}}}),M}function d(C,_){arguments.length<2&&(_=C.nodes()[0]),h(C,{},1,_)}function h(C,_,T,A,N){var $=T,R=C.node(A);return _[A]=!0,C.neighbors(A).forEach(M=>{Object.hasOwn(_,M)||(T=h(C,_,T,M,A))}),R.low=$,R.lim=T++,N?R.parent=N:delete R.parent,T}function p(C){return C.edges().find(_=>C.edge(_).cutvalue<0)}function g(C,_,T){var A=T.v,N=T.w;_.hasEdge(A,N)||(A=T.w,N=T.v);var $=C.node(A),R=C.node(N),M=$,O=!1;$.lim>R.lim&&(M=R,O=!0);var B=_.edges().filter(I=>O===k(C,C.node(I.v),M)&&O!==k(C,C.node(I.w),M));return B.reduce((I,Y)=>r(_,Y)!_.node(N).parent),A=o(C,T);A=A.slice(1),A.forEach(N=>{var $=C.node(N).parent,R=_.edge(N,$),M=!1;R||(R=_.edge($,N),M=!0),_.node(N).rank=_.node($).rank+(M?R.minlen:-R.minlen)})}function w(C,_,T){return C.hasEdge(_,T)}function k(C,_,T){return T.low<=_.lim&&_.lim<=T.lim}return pA}var mA,vJ;function aWe(){if(vJ)return mA;vJ=1;var e=Dk(),r=e.longestPath,n=yJ(),o=oWe();mA=a;function a(c){var u=c.graph().ranker;if(u instanceof Function)return u(c);switch(c.graph().ranker){case"network-simplex":l(c);break;case"tight-tree":s(c);break;case"longest-path":i(c);break;case"none":break;default:l(c)}}var i=r;function s(c){r(c),n(c)}function l(c){o(c)}return mA}var gA,xJ;function iWe(){if(xJ)return gA;xJ=1,gA=e;function e(o){let a=n(o);o.graph().dummyChains.forEach(i=>{let s=o.node(i),l=s.edgeObj,c=r(o,a,l.v,l.w),u=c.path,d=c.lca,h=0,p=u[h],g=!0;for(;i!==l.w;){if(s=o.node(i),g){for(;(p=u[h])!==d&&o.node(p).maxRanku||d>a[h].lim));for(p=h,h=s;(h=o.parent(h))!==p;)c.push(h);return{path:l.concat(c.reverse()),lca:p}}function n(o){let a={},i=0;function s(l){let c=i;o.children(l).forEach(s),a[l]={low:c,lim:i++}}return o.children().forEach(s),a}return gA}var yA,wJ;function sWe(){if(wJ)return yA;wJ=1;let e=_n();yA={run:r,cleanup:i};function r(s){let l=e.addDummyNode(s,"root",{},"_root"),c=o(s),u=Object.values(c),d=e.applyWithChunking(Math.max,u)-1,h=2*d+1;s.graph().nestingRoot=l,s.edges().forEach(g=>s.edge(g).minlen*=h);let p=a(s)+1;s.children().forEach(g=>n(s,l,h,p,d,c,g)),s.graph().nodeRankFactor=h}function n(s,l,c,u,d,h,p){let g=s.children(p);if(!g.length){p!==l&&s.setEdge(l,p,{weight:0,minlen:c});return}let y=e.addBorderNode(s,"_bt"),x=e.addBorderNode(s,"_bb"),w=s.node(p);s.setParent(y,p),w.borderTop=y,s.setParent(x,p),w.borderBottom=x,g.forEach(k=>{n(s,l,c,u,d,h,k);let C=s.node(k),_=C.borderTop?C.borderTop:k,T=C.borderBottom?C.borderBottom:k,A=C.borderTop?u:2*u,N=_!==T?1:d-h[p]+1;s.setEdge(y,_,{weight:A,minlen:N,nestingEdge:!0}),s.setEdge(T,x,{weight:A,minlen:N,nestingEdge:!0})}),s.parent(p)||s.setEdge(l,y,{weight:0,minlen:d+h[p]})}function o(s){var l={};function c(u,d){var h=s.children(u);h&&h.length&&h.forEach(p=>c(p,d+1)),l[u]=d}return s.children().forEach(u=>c(u,1)),l}function a(s){return s.edges().reduce((l,c)=>l+s.edge(c).weight,0)}function i(s){var l=s.graph();s.removeNode(l.nestingRoot),delete l.nestingRoot,s.edges().forEach(c=>{var u=s.edge(c);u.nestingEdge&&s.removeEdge(c)})}return yA}var bA,kJ;function lWe(){if(kJ)return bA;kJ=1;let e=_n();bA=r;function r(o){function a(i){let s=o.children(i),l=o.node(i);if(s.length&&s.forEach(a),Object.hasOwn(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(let c=l.minRank,u=l.maxRank+1;co(c.node(u))),c.edges().forEach(u=>o(c.edge(u)))}function o(c){let u=c.width;c.width=c.height,c.height=u}function a(c){c.nodes().forEach(u=>i(c.node(u))),c.edges().forEach(u=>{let d=c.edge(u);d.points.forEach(i),Object.hasOwn(d,"y")&&i(d)})}function i(c){c.y=-c.y}function s(c){c.nodes().forEach(u=>l(c.node(u))),c.edges().forEach(u=>{let d=c.edge(u);d.points.forEach(l),Object.hasOwn(d,"x")&&l(d)})}function l(c){let u=c.x;c.x=c.y,c.y=u}return vA}var xA,EJ;function uWe(){if(EJ)return xA;EJ=1;let e=_n();xA=r;function r(n){let o={},a=n.nodes().filter(u=>!n.children(u).length),i=a.map(u=>n.node(u).rank),s=e.applyWithChunking(Math.max,i),l=e.range(s+1).map(()=>[]);function c(u){if(o[u])return;o[u]=!0;let d=n.node(u);l[d.rank].push(u),n.successors(u).forEach(c)}return a.sort((u,d)=>n.node(u).rank-n.node(d).rank).forEach(c),l}return xA}var wA,SJ;function dWe(){if(SJ)return wA;SJ=1;let e=_n().zipObject;wA=r;function r(o,a){let i=0;for(let s=1;sg)),l=a.flatMap(p=>o.outEdges(p).map(g=>({pos:s[g.w],weight:o.edge(g).weight})).sort((g,y)=>g.pos-y.pos)),c=1;for(;c{let g=p.pos+c;d[g]+=p.weight;let y=0;for(;g>0;)g%2&&(y+=d[g+1]),g=g-1>>1,d[g]+=p.weight;h+=p.weight*y}),h}return wA}var kA,CJ;function hWe(){if(CJ)return kA;CJ=1,kA=e;function e(r,n=[]){return n.map(o=>{let a=r.inEdges(o);if(a.length){let i=a.reduce((s,l)=>{let c=r.edge(l),u=r.node(l.v);return{sum:s.sum+c.weight*u.order,weight:s.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:o}})}return kA}var _A,TJ;function fWe(){if(TJ)return _A;TJ=1;let e=_n();_A=r;function r(a,i){let s={};a.forEach((c,u)=>{let d=s[c.v]={indegree:0,in:[],out:[],vs:[c.v],i:u};c.barycenter!==void 0&&(d.barycenter=c.barycenter,d.weight=c.weight)}),i.edges().forEach(c=>{let u=s[c.v],d=s[c.w];u!==void 0&&d!==void 0&&(d.indegree++,u.out.push(s[c.w]))});let l=Object.values(s).filter(c=>!c.indegree);return n(l)}function n(a){let i=[];function s(c){return u=>{u.merged||(u.barycenter===void 0||c.barycenter===void 0||u.barycenter>=c.barycenter)&&o(c,u)}}function l(c){return u=>{u.in.push(c),--u.indegree===0&&a.push(u)}}for(;a.length;){let c=a.pop();i.push(c),c.in.reverse().forEach(s(c)),c.out.forEach(l(c))}return i.filter(c=>!c.merged).map(c=>e.pick(c,["vs","i","barycenter","weight"]))}function o(a,i){let s=0,l=0;a.weight&&(s+=a.barycenter*a.weight,l+=a.weight),i.weight&&(s+=i.barycenter*i.weight,l+=i.weight),a.vs=i.vs.concat(a.vs),a.barycenter=s/l,a.weight=l,a.i=Math.min(i.i,a.i),i.merged=!0}return _A}var EA,AJ;function pWe(){if(AJ)return EA;AJ=1;let e=_n();EA=r;function r(a,i){let s=e.partition(a,y=>Object.hasOwn(y,"barycenter")),l=s.lhs,c=s.rhs.sort((y,x)=>x.i-y.i),u=[],d=0,h=0,p=0;l.sort(o(!!i)),p=n(u,c,p),l.forEach(y=>{p+=y.vs.length,u.push(y.vs),d+=y.barycenter*y.weight,h+=y.weight,p=n(u,c,p)});let g={vs:u.flat(!0)};return h&&(g.barycenter=d/h,g.weight=h),g}function n(a,i,s){let l;for(;i.length&&(l=i[i.length-1]).i<=s;)i.pop(),a.push(l.vs),s++;return s}function o(a){return(i,s)=>i.barycenters.barycenter?1:a?s.i-i.i:i.i-s.i}return EA}var SA,NJ;function mWe(){if(NJ)return SA;NJ=1;let e=hWe(),r=fWe(),n=pWe();SA=o;function o(s,l,c,u){let d=s.children(l),h=s.node(l),p=h?h.borderLeft:void 0,g=h?h.borderRight:void 0,y={};p&&(d=d.filter(C=>C!==p&&C!==g));let x=e(s,d);x.forEach(C=>{if(s.children(C.v).length){let _=o(s,C.v,c,u);y[C.v]=_,Object.hasOwn(_,"barycenter")&&i(C,_)}});let w=r(x,c);a(w,y);let k=n(w,u);if(p&&(k.vs=[p,k.vs,g].flat(!0),s.predecessors(p).length)){let C=s.node(s.predecessors(p)[0]),_=s.node(s.predecessors(g)[0]);Object.hasOwn(k,"barycenter")||(k.barycenter=0,k.weight=0),k.barycenter=(k.barycenter*k.weight+C.order+_.order)/(k.weight+2),k.weight+=2}return k}function a(s,l){s.forEach(c=>{c.vs=c.vs.flatMap(u=>l[u]?l[u].vs:u)})}function i(s,l){s.barycenter!==void 0?(s.barycenter=(s.barycenter*s.weight+l.barycenter*l.weight)/(s.weight+l.weight),s.weight+=l.weight):(s.barycenter=l.barycenter,s.weight=l.weight)}return SA}var CA,RJ;function gWe(){if(RJ)return CA;RJ=1;let e=fs().Graph,r=_n();CA=n;function n(a,i,s){let l=o(a),c=new e({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(u=>a.node(u));return a.nodes().forEach(u=>{let d=a.node(u),h=a.parent(u);(d.rank===i||d.minRank<=i&&i<=d.maxRank)&&(c.setNode(u),c.setParent(u,h||l),a[s](u).forEach(p=>{let g=p.v===u?p.w:p.v,y=c.edge(g,u),x=y!==void 0?y.weight:0;c.setEdge(g,u,{weight:a.edge(p).weight+x})}),Object.hasOwn(d,"minRank")&&c.setNode(u,{borderLeft:d.borderLeft[i],borderRight:d.borderRight[i]}))}),c}function o(a){for(var i;a.hasNode(i=r.uniqueId("_root")););return i}return CA}var TA,$J;function yWe(){if($J)return TA;$J=1,TA=e;function e(r,n,o){let a={},i;o.forEach(s=>{let l=r.parent(s),c,u;for(;l;){if(c=r.parent(l),c?(u=a[c],a[c]=l):(u=i,i=l),u&&u!==l){n.setEdge(u,l);return}l=c}})}return TA}var AA,PJ;function bWe(){if(PJ)return AA;PJ=1;let e=uWe(),r=dWe(),n=mWe(),o=gWe(),a=yWe(),i=fs().Graph,s=_n();AA=l;function l(h,p){if(p&&typeof p.customOrder=="function"){p.customOrder(h,l);return}let g=s.maxRank(h),y=c(h,s.range(1,g+1),"inEdges"),x=c(h,s.range(g-1,-1,-1),"outEdges"),w=e(h);if(d(h,w),p&&p.disableOptimalOrderHeuristic)return;let k=Number.POSITIVE_INFINITY,C;for(let _=0,T=0;T<4;++_,++T){u(_%2?y:x,_%4>=2),w=s.buildLayerMatrix(h);let A=r(h,w);Ay.node(k).order=C),a(y,g,w.vs)})}function d(h,p){Object.values(p).forEach(g=>g.forEach((y,x)=>h.node(y).order=x))}return AA}var NA,MJ;function vWe(){if(MJ)return NA;MJ=1;let e=fs().Graph,r=_n();NA={positionX:g,findType1Conflicts:n,findType2Conflicts:o,addConflict:i,hasConflict:s,verticalAlignment:l,horizontalCompaction:c,alignCoordinates:h,findSmallestWidthAlignment:d,balance:p};function n(w,k){let C={};function _(T,A){let N=0,$=0,R=T.length,M=A[A.length-1];return A.forEach((O,B)=>{let I=a(w,O),Y=I?w.node(I).order:R;(I||O===M)&&(A.slice($,B+1).forEach(D=>{w.predecessors(D).forEach(V=>{let L=w.node(V),U=L.order;(U{O=A[B],w.node(O).dummy&&w.predecessors(O).forEach(I=>{let Y=w.node(I);Y.dummy&&(Y.orderM)&&i(C,I,O)})})}function T(A,N){let $=-1,R,M=0;return N.forEach((O,B)=>{if(w.node(O).dummy==="border"){let I=w.predecessors(O);I.length&&(R=w.node(I[0]).order,_(N,M,B,$,R),M=B,$=R)}_(N,M,N.length,R,A.length)}),N}return k.length&&k.reduce(T),C}function a(w,k){if(w.node(k).dummy)return w.predecessors(k).find(C=>w.node(C).dummy)}function i(w,k,C){if(k>C){let T=k;k=C,C=T}let _=w[k];_||(w[k]=_={}),_[C]=!0}function s(w,k,C){if(k>C){let _=k;k=C,C=_}return!!w[k]&&Object.hasOwn(w[k],C)}function l(w,k,C,_){let T={},A={},N={};return k.forEach($=>{$.forEach((R,M)=>{T[R]=R,A[R]=R,N[R]=M})}),k.forEach($=>{let R=-1;$.forEach(M=>{let O=_(M);if(O.length){O=O.sort((I,Y)=>N[I]-N[Y]);let B=(O.length-1)/2;for(let I=Math.floor(B),Y=Math.ceil(B);I<=Y;++I){let D=O[I];A[M]===M&&RMath.max(I,A[Y.v]+N.edge(Y)),0)}function O(B){let I=N.outEdges(B).reduce((D,V)=>Math.min(D,A[V.w]-N.edge(V)),Number.POSITIVE_INFINITY),Y=w.node(B);I!==Number.POSITIVE_INFINITY&&Y.borderType!==$&&(A[B]=Math.max(A[B],I))}return R(M,N.predecessors.bind(N)),R(O,N.successors.bind(N)),Object.keys(_).forEach(B=>A[B]=A[C[B]]),A}function u(w,k,C,_){let T=new e,A=w.graph(),N=y(A.nodesep,A.edgesep,_);return k.forEach($=>{let R;$.forEach(M=>{let O=C[M];if(T.setNode(O),R){var B=C[R],I=T.edge(B,O);T.setEdge(B,O,Math.max(N(w,M,R),I||0))}R=M})}),T}function d(w,k){return Object.values(k).reduce((C,_)=>{let T=Number.NEGATIVE_INFINITY,A=Number.POSITIVE_INFINITY;Object.entries(_).forEach(([$,R])=>{let M=x(w,$)/2;T=Math.max(R+M,T),A=Math.min(R-M,A)});const N=T-A;return N{["l","r"].forEach(N=>{let $=A+N,R=w[$];if(R===k)return;let M=Object.values(R),O=_-r.applyWithChunking(Math.min,M);N!=="l"&&(O=T-r.applyWithChunking(Math.max,M)),O&&(w[$]=r.mapValues(R,B=>B+O))})})}function p(w,k){return r.mapValues(w.ul,(C,_)=>{if(k)return w[k.toLowerCase()][_];{let T=Object.values(w).map(A=>A[_]).sort((A,N)=>A-N);return(T[1]+T[2])/2}})}function g(w){let k=r.buildLayerMatrix(w),C=Object.assign(n(w,k),o(w,k)),_={},T;["u","d"].forEach(N=>{T=N==="u"?k:Object.values(k).reverse(),["l","r"].forEach($=>{$==="r"&&(T=T.map(B=>Object.values(B).reverse()));let R=(N==="u"?w.predecessors:w.successors).bind(w),M=l(w,T,C,R),O=c(w,T,M.root,M.align,$==="r");$==="r"&&(O=r.mapValues(O,B=>-B)),_[N+$]=O})});let A=d(w,_);return h(_,A),p(_,w.graph().align)}function y(w,k,C){return(_,T,A)=>{let N=_.node(T),$=_.node(A),R=0,M;if(R+=N.width/2,Object.hasOwn(N,"labelpos"))switch(N.labelpos.toLowerCase()){case"l":M=-N.width/2;break;case"r":M=N.width/2;break}if(M&&(R+=C?M:-M),M=0,R+=(N.dummy?k:w)/2,R+=($.dummy?k:w)/2,R+=$.width/2,Object.hasOwn($,"labelpos"))switch($.labelpos.toLowerCase()){case"l":M=$.width/2;break;case"r":M=-$.width/2;break}return M&&(R+=C?M:-M),M=0,R}}function x(w,k){return w.node(k).width}return NA}var RA,OJ;function xWe(){if(OJ)return RA;OJ=1;let e=_n(),r=vWe().positionX;RA=n;function n(a){a=e.asNonCompoundGraph(a),o(a),Object.entries(r(a)).forEach(([i,s])=>a.node(i).x=s)}function o(a){let i=e.buildLayerMatrix(a),s=a.graph().ranksep,l=0;i.forEach(c=>{const u=c.reduce((d,h)=>{const p=a.node(h).height;return d>p?d:p},0);c.forEach(d=>a.node(d).y=l+u/2),l+=u+s})}return RA}var $A,DJ;function wWe(){if(DJ)return $A;DJ=1;let e=rWe(),r=nWe(),n=aWe(),o=_n().normalizeRanks,a=iWe(),i=_n().removeEmptyRanks,s=sWe(),l=lWe(),c=cWe(),u=bWe(),d=xWe(),h=_n(),p=fs().Graph;$A=g;function g(z,W){let G=W&&W.debugTiming?h.time:h.notime;G("layout",()=>{let Z=G(" buildLayoutGraph",()=>R(z));G(" runLayout",()=>y(Z,G,W)),G(" updateInputGraph",()=>x(z,Z))})}function y(z,W,G){W(" makeSpaceForEdgeLabels",()=>M(z)),W(" removeSelfEdges",()=>q(z)),W(" acyclic",()=>e.run(z)),W(" nestingGraph.run",()=>s.run(z)),W(" rank",()=>n(h.asNonCompoundGraph(z))),W(" injectEdgeLabelProxies",()=>O(z)),W(" removeEmptyRanks",()=>i(z)),W(" nestingGraph.cleanup",()=>s.cleanup(z)),W(" normalizeRanks",()=>o(z)),W(" assignRankMinMax",()=>B(z)),W(" removeEdgeLabelProxies",()=>I(z)),W(" normalize.run",()=>r.run(z)),W(" parentDummyChains",()=>a(z)),W(" addBorderSegments",()=>l(z)),W(" order",()=>u(z,G)),W(" insertSelfEdges",()=>X(z)),W(" adjustCoordinateSystem",()=>c.adjust(z)),W(" position",()=>d(z)),W(" positionSelfEdges",()=>F(z)),W(" removeBorderNodes",()=>U(z)),W(" normalize.undo",()=>r.undo(z)),W(" fixupEdgeLabelCoords",()=>V(z)),W(" undoCoordinateSystem",()=>c.undo(z)),W(" translateGraph",()=>Y(z)),W(" assignNodeIntersects",()=>D(z)),W(" reversePoints",()=>L(z)),W(" acyclic.undo",()=>e.undo(z))}function x(z,W){z.nodes().forEach(G=>{let Z=z.node(G),oe=W.node(G);Z&&(Z.x=oe.x,Z.y=oe.y,Z.rank=oe.rank,W.children(G).length&&(Z.width=oe.width,Z.height=oe.height))}),z.edges().forEach(G=>{let Z=z.edge(G),oe=W.edge(G);Z.points=oe.points,Object.hasOwn(oe,"x")&&(Z.x=oe.x,Z.y=oe.y)}),z.graph().width=W.graph().width,z.graph().height=W.graph().height}let w=["nodesep","edgesep","ranksep","marginx","marginy"],k={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},C=["acyclicer","ranker","rankdir","align"],_=["width","height","rank"],T={width:0,height:0},A=["minlen","weight","width","height","labeloffset"],N={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},$=["labelpos"];function R(z){let W=new p({multigraph:!0,compound:!0}),G=Q(z.graph());return W.setGraph(Object.assign({},k,J(G,w),h.pick(G,C))),z.nodes().forEach(Z=>{let oe=Q(z.node(Z));const ee=J(oe,_);Object.keys(T).forEach(re=>{ee[re]===void 0&&(ee[re]=T[re])}),W.setNode(Z,ee),W.setParent(Z,z.parent(Z))}),z.edges().forEach(Z=>{let oe=Q(z.edge(Z));W.setEdge(Z,Object.assign({},N,J(oe,A),h.pick(oe,$)))}),W}function M(z){let W=z.graph();W.ranksep/=2,z.edges().forEach(G=>{let Z=z.edge(G);Z.minlen*=2,Z.labelpos.toLowerCase()!=="c"&&(W.rankdir==="TB"||W.rankdir==="BT"?Z.width+=Z.labeloffset:Z.height+=Z.labeloffset)})}function O(z){z.edges().forEach(W=>{let G=z.edge(W);if(G.width&&G.height){let Z=z.node(W.v),oe={rank:(z.node(W.w).rank-Z.rank)/2+Z.rank,e:W};h.addDummyNode(z,"edge-proxy",oe,"_ep")}})}function B(z){let W=0;z.nodes().forEach(G=>{let Z=z.node(G);Z.borderTop&&(Z.minRank=z.node(Z.borderTop).rank,Z.maxRank=z.node(Z.borderBottom).rank,W=Math.max(W,Z.maxRank))}),z.graph().maxRank=W}function I(z){z.nodes().forEach(W=>{let G=z.node(W);G.dummy==="edge-proxy"&&(z.edge(G.e).labelRank=G.rank,z.removeNode(W))})}function Y(z){let W=Number.POSITIVE_INFINITY,G=0,Z=Number.POSITIVE_INFINITY,oe=0,ee=z.graph(),re=ee.marginx||0,he=ee.marginy||0;function Ce(ce){let de=ce.x,be=ce.y,De=ce.width,Ge=ce.height;W=Math.min(W,de-De/2),G=Math.max(G,de+De/2),Z=Math.min(Z,be-Ge/2),oe=Math.max(oe,be+Ge/2)}z.nodes().forEach(ce=>Ce(z.node(ce))),z.edges().forEach(ce=>{let de=z.edge(ce);Object.hasOwn(de,"x")&&Ce(de)}),W-=re,Z-=he,z.nodes().forEach(ce=>{let de=z.node(ce);de.x-=W,de.y-=Z}),z.edges().forEach(ce=>{let de=z.edge(ce);de.points.forEach(be=>{be.x-=W,be.y-=Z}),Object.hasOwn(de,"x")&&(de.x-=W),Object.hasOwn(de,"y")&&(de.y-=Z)}),ee.width=G-W+re,ee.height=oe-Z+he}function D(z){z.edges().forEach(W=>{let G=z.edge(W),Z=z.node(W.v),oe=z.node(W.w),ee,re;G.points?(ee=G.points[0],re=G.points[G.points.length-1]):(G.points=[],ee=oe,re=Z),G.points.unshift(h.intersectRect(Z,ee)),G.points.push(h.intersectRect(oe,re))})}function V(z){z.edges().forEach(W=>{let G=z.edge(W);if(Object.hasOwn(G,"x"))switch((G.labelpos==="l"||G.labelpos==="r")&&(G.width-=G.labeloffset),G.labelpos){case"l":G.x-=G.width/2+G.labeloffset;break;case"r":G.x+=G.width/2+G.labeloffset;break}})}function L(z){z.edges().forEach(W=>{let G=z.edge(W);G.reversed&&G.points.reverse()})}function U(z){z.nodes().forEach(W=>{if(z.children(W).length){let G=z.node(W),Z=z.node(G.borderTop),oe=z.node(G.borderBottom),ee=z.node(G.borderLeft[G.borderLeft.length-1]),re=z.node(G.borderRight[G.borderRight.length-1]);G.width=Math.abs(re.x-ee.x),G.height=Math.abs(oe.y-Z.y),G.x=ee.x+G.width/2,G.y=Z.y+G.height/2}}),z.nodes().forEach(W=>{z.node(W).dummy==="border"&&z.removeNode(W)})}function q(z){z.edges().forEach(W=>{if(W.v===W.w){var G=z.node(W.v);G.selfEdges||(G.selfEdges=[]),G.selfEdges.push({e:W,label:z.edge(W)}),z.removeEdge(W)}})}function X(z){var W=h.buildLayerMatrix(z);W.forEach(G=>{var Z=0;G.forEach((oe,ee)=>{var re=z.node(oe);re.order=ee+Z,(re.selfEdges||[]).forEach(he=>{h.addDummyNode(z,"selfedge",{width:he.label.width,height:he.label.height,rank:re.rank,order:ee+ ++Z,e:he.e,label:he.label},"_se")}),delete re.selfEdges})})}function F(z){z.nodes().forEach(W=>{var G=z.node(W);if(G.dummy==="selfedge"){var Z=z.node(G.e.v),oe=Z.x+Z.width/2,ee=Z.y,re=G.x-oe,he=Z.height/2;z.setEdge(G.e,G.label),z.removeNode(W),G.label.points=[{x:oe+2*re/3,y:ee-he},{x:oe+5*re/6,y:ee-he},{x:oe+re,y:ee},{x:oe+5*re/6,y:ee+he},{x:oe+2*re/3,y:ee+he}],G.label.x=G.x,G.label.y=G.y}})}function J(z,W){return h.mapValues(h.pick(z,W),Number)}function Q(z){var W={};return z&&Object.entries(z).forEach(([G,Z])=>{typeof G=="string"&&(G=G.toLowerCase()),W[G]=Z}),W}return $A}var PA,LJ;function kWe(){if(LJ)return PA;LJ=1;let e=_n(),r=fs().Graph;PA={debugOrdering:n};function n(o){let a=e.buildLayerMatrix(o),i=new r({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(s=>{i.setNode(s,{label:s}),i.setParent(s,"layer"+o.node(s).rank)}),o.edges().forEach(s=>i.setEdge(s.v,s.w,{},s.name)),a.forEach((s,l)=>{let c="layer"+l;i.setNode(c,{rank:"same"}),s.reduce((u,d)=>(i.setEdge(u,d,{style:"invis"}),d))}),i}return PA}var IJ,zJ;function _We(){return zJ||(zJ=1,IJ="1.1.5"),IJ}var jJ,BJ;function EWe(){return BJ||(BJ=1,jJ={graphlib:fs(),layout:wWe(),debug:kWe(),util:{time:_n().time,notime:_n().notime},version:_We()}),jJ}var SWe=EWe();const Lk=$6(SWe),go={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:140,height:10,minlen:1,weight:1},emptyNodeOffset:120,nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function CWe(){const e=new Lk.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...go.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...go.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const MA="-port";function OA(e,r,n){const o=new lo(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=zx(r);for(const i of a.sorted){const s=a.children(i).length>0,l=i.id,c=`${e}-${l}`,u=s?`${c}${MA}`:c;o.set(l,{id:c,portId:u}),n.setNode(c,{column:e,element:i,isCompound:s,portId:u,inPorts:[],outPorts:[],width:go.nodeWidth,height:go.nodeHeight}),s&&(n.setNode(u,{element:i,portId:u,isCompound:s,inPorts:[],outPorts:[],width:go.nodeWidth-go.dagre.ranksep,height:go.compound.labelHeight}),n.setParent(u,c));const d=a.parent(i);d&&n.setParent(c,`${e}-${d.id}`)}return{...a,byId:i=>{const s=a.byId(i),l=o.get(s.id);return{element:s,graph:l}},graphNodes:o}}function TWe(e){return Lk.layout(e,{}),r=>{const n=e.node(r),{x:o,y:a,width:i,height:s}=n;return{position:{x:o-Math.round(i/2),y:a-Math.round(s/2)},width:i,height:s}}}var Ik;(e=>{e.Empty="@empty"})(Ik||(Ik={}));function AWe(e,r){const n=CWe(),o=OA("incomers",e.incomers,n),a=OA("subjects",e.subjects,n),i=OA("outgoers",e.outgoers,n),s=[];yn(cRe(yn(K0(e.incoming),Ao(T=>({id:T.source.id,sourceFqn:T.source.id,targetFqn:T.target.id,source:o.byId(T.source.id).graph,target:a.byId(T.target.id).graph,relation:T}))),yn(K0(e.outgoing),Ao(T=>({id:T.target.id,sourceFqn:T.source.id,targetFqn:T.target.id,source:a.byId(T.source.id).graph,target:i.byId(T.target.id).graph,relation:T})))),Ao(T=>({...T,expr:`${T.source.id}->${T.target.id}`})),NRe(Ca("expr")),TRe(T=>{const A=T[0].source,N=T[0].target,$=T[0].expr;n.node(A.id).outPorts.push(N.id),n.node(N.id).inPorts.push(A.id),n.setEdge(A.portId,N.portId,{...go.edgeLabel},$),s.push({name:$,sourceFqn:T[0].sourceFqn,targetFqn:T[0].targetFqn,source:A.id,sourceHandle:A.id+"_out"+(n.node(A.id).outPorts.length-1),target:N.id,targetHandle:N.id+"_in"+(n.node(N.id).inPorts.length-1),relations:Ao(T,Ca("relation"))})}));for(const T of a.graphNodes.values()){const A=T.id,N=n.node(A);if(N.isCompound)continue;const $=Math.max(n.inEdges(A)?.length??0,n.outEdges(A)?.length??0);$>2&&(N.height=N.height+($-3)*14)}const l=[...o.graphNodes.values(),...a.graphNodes.values(),...i.graphNodes.values()];if(o.graphNodes.size==0){const T="incomers-empty";n.setNode(T,{column:"incomers",element:null,isCompound:!1,portId:T,inPorts:[],outPorts:[],width:go.nodeWidth,height:go.nodeHeight});for(const A of a.graphNodes.values())n.setEdge(T,A.portId);l.push({id:T,portId:T})}if(i.graphNodes.size==0){const T="outgoers-empty";n.setNode(T,{column:"outgoers",element:null,isCompound:!1,portId:T,inPorts:[],outPorts:[],width:go.nodeWidth,height:go.nodeHeight});for(const A of a.graphNodes.values())n.setEdge(A.portId,T);l.push({id:T,portId:T})}const c=n.edgeCount();if(c>10)for(const T of n.edges())n.setEdge(T,{...go.edgeLabel,width:c>25?800:400});const u=TWe(n),d=yn(l,dp(T=>T.id===T.portId),E1(T=>[T.id,u(T.id)]));function h(T){return d[T]??=yn(n.children(T)??[],dp(A=>!A.endsWith(MA)),Ao(A=>h(A)),uV(A=>{nt(A.length>0,`Node ${T} has no nested nodes`)}),fp((A,N)=>({minY:Math.min(A.minY,N.position.y),maxY:Math.max(A.maxY,N.position.y+N.height)}),{minY:1/0,maxY:-1/0}),({minY:A,maxY:N})=>{const{position:{x:$},width:R}=u(T);return A=A-go.compound.paddingTop,N=N+go.compound.paddingBottom,{position:{x:$,y:A},width:R,height:N-A}})}function p(T){const A=n.parent(T);return A?p(A)+1:0}function g(T){const A=n.children(T)??[];return A.length===0?0:1+Math.max(...A.map(g))}const y=(T,A,N)=>yn(N,Ao(($,R)=>({port:T+"_"+A+R,topY:h($).position.y})),jw(Ca("topY")),Ao(Ca("port")));let x=0,w=0;const[k]=[...a.root];nt(k,"Subjects should not be empty");let C=h(a.graphNodes.get(k.id).id);const _=l.map(({id:T})=>{const{element:A,inPorts:N,outPorts:$,column:R}=n.node(T);let{position:M,width:O,height:B}=h(T);if(!A){if(B=Math.min(C.height,300),M.y=C.position.y+C.height/2-B/2,R==="incomers")O=C.position.x-go.emptyNodeOffset-M.x;else{const q=M.x+O;M.x=C.position.x+C.width+go.emptyNodeOffset,O=q-M.x}return{id:T,parent:null,x:M.x,y:M.y,title:"empty node",description:Kt.EMPTY,technology:null,tags:[],links:[],color:"muted",shape:"rectangle",style:{border:"dashed",opacity:50},kind:Ik.Empty,level:0,labelBBox:{x:M.x,y:M.y,width:O,height:B},children:[],width:O,height:B,column:R,ports:{in:[],out:[]},existsInCurrentView:!1}}const I=n.parent(T),Y=(n.children(T)??[]).filter(q=>!q.endsWith(MA));x=Math.min(x,M.x),w=Math.min(w,M.y);const D=r?G0(A.scopedViews(),q=>q.id!==r.id)?.id??null:null,V=r?.findNodeWithElement(A.id),L=r&&!V?G0(A.ancestors(),q=>!!r.findNodeWithElement(q.id))?.id:null,U=V??(L&&r?.findNodeWithElement(L));return{id:T,parent:I??null,x:M.x,y:M.y,title:A.title,description:A.summary,technology:A.technology,tags:[...A.tags],links:null,color:U?.color??A.color,shape:V?.shape??A.shape,icon:V?.icon??A.icon??"none",modelRef:A.id,kind:A.kind,level:p(T),labelBBox:{x:M.x,y:M.y,width:O,height:B},style:Vd({...(V??U)?.style,...A.$element.style},["color","shape","icon"]),navigateTo:D,...Y.length>0&&{depth:g(T)},children:Y,width:O,height:B,column:R,ports:{in:y(T,"in",N),out:y(T,"out",$)},existsInCurrentView:!!V}});return{subjectExistsInScope:!r||r.includesElement(k.id),bounds:{x:Math.min(x,0),y:Math.min(w,0),width:n.graph().width??100,height:n.graph().height??100},nodes:_,edges:n.edges().reduce((T,A)=>{const N=n.edge(A),$=A.name;if(!$)return T;const{name:R,source:M,sourceFqn:O,target:B,targetFqn:I,relations:Y,sourceHandle:D,targetHandle:V}=mt(Iw(s,F=>F.name===$)),L=zw(Y),U=L?.title??"untitled",q=Y.length>1,X=zw(Y6(Y.flatMap(F=>F.navigateTo?.id?F.navigateTo.id:[])));return T.push(V0({id:R,sourceFqn:O,source:M,sourceHandle:D,targetFqn:I,target:B,targetHandle:V,label:q?`${Y.length} relationships`:U,navigateTo:X,color:L?.color??"gray",existsInCurrentView:!r||Y.every(F=>r.includesRelation(F.id)),points:N.points.map(F=>[F.x,F.y]),line:L?.line??"dashed",head:L?.head,tail:L?.tail,relations:Y.map(F=>F.id),parent:null})),T},[])}}function NWe(e,r,n){const o=Ho();return E.useMemo(()=>{const a=r?o.findView(r):null,i=AWe(dB(e,o,r,n),n==="view"?a:null);return a&&(n==="global"||!i.subjectExistsInScope)&&(i.edges=i.edges.map(s=>(s.existsInCurrentView=s.relations.every(l=>a.includesRelation(l)),s))),Object.assign(i,{subject:e})},[o,e,r,n,dB])}const Cy=(e,r)=>rx(e.label,r.label);function DA(e){return{label:e.title,value:e.id,children:[...e.children()].map(DA).sort(Cy)}}function RWe(e){const r=Ho();return E.useMemo(()=>e?[...r.view(e).roots()].map(DA).sort(Cy):[...r.roots()].map(DA).sort(Cy),[r,e??null])}const $We=ye({margin:"0"}),PWe=ye({_hover:{backgroundColor:"mantine.colors.gray[0]",_dark:{backgroundColor:"mantine.colors.defaultHover",color:"mantine.colors.white"}}}),FJ=ye({maxHeight:["70vh","calc(100cqh - 70px)"]}),MWe=Object.freeze(Object.defineProperty({__proto__:null,label:PWe,node:$We,scrollArea:FJ},Symbol.toStringTag,{value:"Module"}));/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const OWe=[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]],LA=yt("outline","selector","Selector",OWe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const DWe=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],hh=yt("outline","chevron-right","ChevronRight",DWe),LWe=e=>{const r=e.context.layouted?.subjectExistsInScope??!1;return{subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,subjectExistsInScope:r,enableSelectSubject:e.context.enableSelectSubject,enableChangeScope:e.context.enableChangeScope}},IWe=()=>{},zWe=E.memo(()=>{const e=Sy(),{subjectId:r,viewId:n,scope:o,subjectExistsInScope:a,enableSelectSubject:i,enableChangeScope:s}=Ok(LWe),l=E.useRef(null),c=E.useRef(null),u=Ho().findElement(r),d=RWe(o==="view"&&n?n:void 0),h=Y1({multiple:!1});return h.setHoveredNode=IWe,E.useEffect(()=>{bd(r).reverse().forEach(p=>{h.expand(p)}),h.select(r)},[r]),b.jsxs(Ur,{ref:l,gap:"xs",pos:"relative",children:[i&&b.jsxs(Ur,{gap:4,wrap:"nowrap",children:[b.jsx(Se,{fz:"xs",fw:"500",style:{whiteSpace:"nowrap",userSelect:"none"},children:"Relationships of"}),b.jsx(Se,{pos:"relative",children:b.jsxs(mr,{position:"bottom-start",shadow:"md",keepMounted:!1,withinPortal:!1,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],offset:4,onOpen:()=>{setTimeout(()=>{c.current?.querySelector(`[data-value="${r}"]`)?.scrollIntoView({behavior:"instant",block:"nearest"})},100)},children:[b.jsx(pu,{children:b.jsx(Zn,{size:"xs",variant:"default",maw:250,rightSection:b.jsx(LA,{size:16}),children:b.jsx(wt,{fz:"xs",fw:"500",truncate:!0,children:u?.title??"???"})})}),b.jsx(Xl,{p:0,miw:250,maw:400,children:b.jsx(ta,{scrollbars:"y",type:"never",viewportRef:c,className:FJ,children:b.jsx(Bp,{allowRangeSelection:!1,selectOnClick:!1,tree:h,data:d,classNames:MWe,levelOffset:8,styles:{root:{maxWidth:400,overflow:"hidden"},label:{paddingTop:5,paddingBottom:6}},renderNode:({node:p,selected:g,expanded:y,elementProps:x,hasChildren:w})=>b.jsxs(Ur,{gap:2,wrap:"nowrap",...x,py:"3",children:[b.jsx(or,{variant:"subtle",size:18,c:"dimmed",style:{visibility:w?"visible":"hidden"},children:b.jsx(hh,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${y?"90deg":"0"})`,width:"80%"}})}),b.jsx(Se,{flex:"1 1 100%",w:"100%",onClick:k=>{k.stopPropagation(),h.select(p.value),h.expand(p.value),e.navigateTo(p.value)},children:b.jsx(wt,{fz:"sm",fw:g?"600":"400",truncate:"end",children:p.label})})]})})})})]})})]}),s&&b.jsxs(Ur,{gap:4,wrap:"nowrap",children:[i&&b.jsx(Se,{fz:"xs",fw:"500",...!a&&{c:"dimmed"},style:{whiteSpace:"nowrap",userSelect:"none"},children:"Scope"}),b.jsx("div",{children:b.jsx(po,{color:"orange",label:b.jsxs(b.Fragment,{children:["This element does not exist in the current view",o==="view"&&b.jsxs(b.Fragment,{children:[b.jsx("br",{}),"Scope is set to global"]})]}),position:"bottom-start",disabled:a,portalProps:{target:l.current},children:b.jsx(U1,{flex:"1 0 auto",size:"xs",withItemsBorders:!1,value:o,styles:{label:{paddingLeft:8,paddingRight:8}},onChange:p=>{e.changeScope(p)},data:[{label:"Global",value:"global"},{label:b.jsx("span",{children:"Current view"}),value:"view",disabled:!a}]})})})]})]})}),zk=(e,r)=>Math.abs(e-r)<2.5,jWe=(e,r)=>e.id===r.id&&ut(e.selected??!1,r.selected??!1)&&ut(e.animated??!1,r.animated??!1)&&ut(e.source,r.source)&&ut(e.sourceHandleId??null,r.sourceHandleId??null)&&ut(e.sourcePosition,r.sourcePosition)&&ut(e.target,r.target)&&ut(e.targetHandleId??null,r.targetHandleId??null)&&ut(e.targetPosition,r.targetPosition)&&zk(e.sourceX,r.sourceX)&&zk(e.sourceY,r.sourceY)&&zk(e.targetX,r.targetX)&&zk(e.targetY,r.targetY)&&ut(e.data,r.data);function IA(e){return E.memo(e,jWe)}const BWe=["Controls","ReadOnly","FocusMode","NavigateTo","ElementDetails","RelationshipDetails","RelationshipBrowser","Search","NavigationButtons","Notations","DynamicViewWalkthrough","EdgeEditing","FitView","Vscode","ElementTags"],HJ=E1(BWe,e=>[`enable${e}`,!1]),zA=E.createContext(HJ),FWe=e=>{let{enableReadOnly:r,enableEdgeEditing:n,...o}=e;return r&&(n=!1),{enableReadOnly:r,enableEdgeEditing:n,...o}};function fh({children:e,features:r,overrides:n}){const o=E.useContext(zA),[a,i]=E.useState(o);return E.useEffect(()=>{i(s=>{const l=FWe({...o,...r,...n});return Xn(s,l)?s:l})},[o,r,n]),b.jsx(zA.Provider,{value:a,children:e})}fh.Overlays=({children:e})=>b.jsx(fh,{overrides:{enableControls:!1,enableReadOnly:!0,enableEdgeEditing:!1},children:e});function wr(){return E.useContext(zA)}function HWe({feature:e,children:r,and:n=!0}){return wr()[`enable${e}`]===!0&&n?b.jsx(b.Fragment,{children:r}):null}function jA(e,r){return wk(e,r)}const ps=jA("button"),Qr=jA("div"),UWe=jA("span"),Ty=E.forwardRef(({edgeProps:{id:e,data:{label:r,technology:n,hovered:o=!1},selected:a=!1,selectable:i=!1},className:s,style:l,children:c,...u},d)=>{const h=v0(e)?BL(e):null,p=Dqe({isStepEdge:h!==null,cursor:i||h!==null?"pointer":"default"}),g=Sa(r)||Sa(n);return b.jsxs(Qr,{ref:d,className:Je(p.root,"likec4-edge-label",s),"data-edge-id":e,animate:{scale:o&&!a?1.06:1},...u,children:[h!==null&&b.jsx(Vr,{className:p.stepNumber,children:h}),g&&b.jsxs(Vr,{className:p.labelContents,children:[Sa(r)&&b.jsx(Vr,{className:Je(p.labelText,ye({lineClamp:5})),children:r}),Sa(n)&&b.jsx(Vr,{className:p.labelTechnology,children:"[ "+n+" ]"}),c]})]})});Ty.displayName="EdgeLabel";function jk({icon:e,onClick:r}){return b.jsx(or,{className:Je("nodrag nopan",Eqe()),onPointerDownCapture:cn,onClick:r,role:"button",onDoubleClick:cn,children:e??b.jsx(gi,{})})}const VWe=".react-flow__edge.selected",qWe=ye({_reduceGraphics:{transition:"none"}}),YWe=ye({pointerEvents:"none",fill:"none",strokeWidth:"calc(var(--xy-edge-stroke-width) + 2)",strokeOpacity:.08,_noReduceGraphics:{transitionProperty:"stroke-width, stroke-opacity",transitionDuration:"fast",transitionTimingFunction:"inOut"},_whenHovered:{transitionTimingFunction:"out",strokeWidth:"calc(var(--xy-edge-stroke-width) + 4)",strokeOpacity:.2},_whenSelected:{strokeWidth:"calc(var(--xy-edge-stroke-width) + 6)",strokeOpacity:.25,_whenHovered:{strokeOpacity:.4}}}),WWe=ye({fill:"[var(--xy-edge-stroke)]",stroke:"[var(--xy-edge-stroke)]"}),XWe=ye({fill:"none",strokeDashoffset:0,_noReduceGraphics:{animationStyle:"xyedgeAnimated",animationPlayState:"paused",transition:"stroke 130ms ease-out,stroke-width 130ms ease-out"},":where([data-edge-dir='back']) &":{animationDirection:"reverse"},_whenHovered:{_noReduceGraphics:{animationPlayState:"running",animationDelay:"450ms"}},[`:where(${VWe}, [data-edge-active='true'], [data-edge-animated='true']) &`]:{_noReduceGraphics:{animationPlayState:"running",animationDelay:"0ms"}},_whenDimmed:{animationPlayState:"paused"},_smallZoom:{animationName:"none"},_whenPanning:{strokeDasharray:"none !important",animationPlayState:"paused"}});function Ay({className:e,component:r="g",data:{color:n="gray",hovered:o=!1,active:a=!1,dimmed:i=!1,...s},children:l,style:c}){const u={className:Je(e,qWe,"likec4-edge-container"),"data-likec4-color":n,"data-edge-dir":s.dir??"forward","data-edge-active":a,"data-edge-animated":a,"data-likec4-hovered":o,...i!==!1&&{"data-likec4-dimmed":i}};return r==="svg"?b.jsx("svg",{style:c,...u,children:l}):(nt(r==="g",'EdgeContainer: component must be "g" or "svg"'),b.jsx("g",{style:c,...u,children:l}))}const GWe=e=>b.jsx("marker",{viewBox:"-4 -4 14 16",refX:5,refY:4,markerWidth:"7",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M0,0 L7,4 L0,8 L4,4 Z",stroke:"context-stroke",fill:"context-stroke",strokeDasharray:0,strokeWidth:1,strokeLinecap:"round"})}),KWe=e=>b.jsx("marker",{viewBox:"-1 -1 12 10",refX:4,refY:3,markerWidth:"8",markerHeight:"6",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M 0 0 L 8 3 L 0 6 L 1 3 z",fill:"context-stroke",strokeWidth:0})}),ZWe=e=>b.jsx("marker",{viewBox:"-1 -1 12 12",refX:8,refY:4,markerWidth:"8",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M 8 0 L 0 4 L 8 8 M 8 4 L 0 4",fill:"none",strokeWidth:1})}),QWe=e=>b.jsx("marker",{viewBox:"-1 -1 12 10",refX:4,refY:3,markerWidth:"8",markerHeight:"6",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M 0 0 L 8 3 L 0 6 L 1 3 z",stroke:"context-stroke",fill:"context-stroke",strokeWidth:1.25,strokeLinejoin:"miter",strokeLinecap:"square"})}),JWe=e=>b.jsx("marker",{viewBox:"-4 -4 16 14",refX:5,refY:4,markerWidth:"10",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M5,0 L10,4 L5,8 L0,4 Z",fill:"context-stroke",strokeWidth:0,strokeLinecap:"round"})}),eXe=e=>b.jsx("marker",{viewBox:"-4 -4 16 14",refX:6,refY:4,markerWidth:"10",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:b.jsx("path",{d:"M5,0 L10,4 L5,8 L0,4 Z",stroke:"context-stroke",fill:"context-stroke",strokeWidth:1.25,strokeLinecap:"round"})}),tXe=e=>b.jsx("marker",{viewBox:"0 0 10 10",refX:4,refY:4,markerWidth:"6",markerHeight:"6",...e,children:b.jsx("circle",{strokeWidth:0,fill:"context-stroke",cx:4,cy:4,r:3})}),rXe=e=>b.jsx("marker",{viewBox:"0 0 10 10",refX:4,refY:4,markerWidth:"6",markerHeight:"6",...e,children:b.jsx("circle",{strokeWidth:1.25,stroke:"context-stroke",fill:"context-stroke",cx:4,cy:4,r:3})}),UJ={Arrow:KWe,Crow:ZWe,OArrow:QWe,Open:GWe,Diamond:JWe,ODiamond:eXe,Dot:tXe,ODot:rXe};function VJ(e){if(!(!e||e==="none"))switch(e){case"normal":return"Arrow";case"crow":return"Crow";case"onormal":return"OArrow";case"diamond":return"Diamond";case"odiamond":return"ODiamond";case"open":case"vee":return"Open";case"dot":return"Dot";case"odot":return"ODot";default:Ga(e)}}const Ny=E.forwardRef(({edgeProps:{id:e,data:{line:r,dir:n,tail:o,head:a},selectable:i=!0,style:s,interactionWidth:l},onEdgePointerDown:c,strokeWidth:u,svgPath:d},h)=>{let p=VJ(o),g=VJ(a??"normal");n==="back"&&([p,g]=[g,p]);const y=p?UJ[p]:null,x=g?UJ[g]:null,w=r==="dotted",k=w||r==="dashed";let C;return w?C="1,8":k&&(C="8,10"),b.jsxs(b.Fragment,{children:[i&&b.jsx("path",{className:Je("react-flow__edge-interaction","hide-on-reduced-graphics",ye({fill:"none"})),d,style:{strokeWidth:l??10,stroke:"currentcolor",strokeOpacity:0}}),b.jsxs("g",{className:WWe,onPointerDown:c,children:[b.jsxs("defs",{children:[y&&b.jsx(y,{id:"start"+e}),x&&b.jsx(x,{id:"end"+e})]}),b.jsx("path",{className:Je("react-flow__edge-path","hide-on-reduced-graphics",YWe),d,style:s,strokeLinecap:"round"}),b.jsx("path",{ref:h,className:Je("react-flow__edge-path",i&&"react-flow__edge-interaction",XWe),d,style:s,strokeWidth:u,strokeLinecap:"round",strokeDasharray:C,markerStart:y?`url(#start${e})`:void 0,markerEnd:x?`url(#end${e})`:void 0})]})]})});Ny.displayName="EdgePath";const qJ=e=>{if(e!==void 0)return nV(e)?`${Math.round(e)}px`:e};function Bk({edgeProps:{id:e,data:{hovered:r=!1,active:n=!1,dimmed:o=!1,labelBBox:a,color:i="gray"}},labelPosition:s,className:l,style:c,children:u,...d}){let h=D9(E.useCallback(x=>x.edgeLookup.get(e)?.zIndex??ds.Edge,[e]));(r||n)&&(h+=100);let p=s?.x??a?.x,g=s?.y??a?.y;if(p===void 0||g===void 0)return null;const y=s?.translate;return b.jsx(OU,{children:b.jsx("div",{...d,className:Je("nodrag nopan","likec4-edge-label-container",l),"data-likec4-hovered":r,"data-likec4-color":i,"data-edge-active":n,"data-edge-animated":n,...o!==!1&&{"data-likec4-dimmed":o},style:{...a&&{maxWidth:a.width+18},zIndex:h,...c,transform:`translate(${qJ(p)}, ${qJ(g)}) ${y||""}`},children:u},e)})}const nXe=IA(e=>{const r=Sy(),{enableNavigateTo:n}=wr(),{data:{navigateTo:o,relations:a,existsInCurrentView:i}}=e,[s,l,c]=kw(e),u=Wt(),d=a.length>1||!i,h=d?{...e,data:{...e.data,line:"solid",color:"amber"}}:e;let p=b.jsx(Ty,{edgeProps:h,className:ye({transition:"fast"}),children:n&&o&&b.jsx(jk,{...e,onClick:g=>{g.stopPropagation(),u.navigateTo(o)}})});return i||(p=b.jsx(po,{color:"orange",c:"black",label:"This relationship is not included in the current view",portalProps:{target:`#${r.rootElementId}`},openDelay:800,children:p})),b.jsxs(Ay,{...h,children:[b.jsx(Ny,{edgeProps:h,svgPath:s,...d&&{strokeWidth:5}}),b.jsx(Bk,{edgeProps:h,labelPosition:{x:l,y:c,translate:"translate(-50%, 0)"},style:{maxWidth:Math.min(Math.abs(e.targetX-e.sourceX-70),250)},children:p})]})}),oXe=ye({width:"100%",height:"100%",border:"3px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"md",display:"flex",justifyContent:"center",alignItems:"center"});function aXe({data:{column:e}}){return b.jsx(Se,{className:oXe,children:b.jsxs(wt,{c:"dimmed",fz:"lg",fw:500,children:["No ",e==="incomers"?"incoming":"outgoing"]})})}const iXe=e=>e.context.view.id;function Fk(){const e=Jp();return wn(e,iXe)}/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const sXe=[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]],lXe=yt("outline","bolt","Bolt",sXe),cXe=Uo({position:"absolute",zIndex:1,justifyContent:"center",alignItems:"center",_smallZoom:{display:"none"}}),uXe=Uo({gap:"1.5",justifyContent:"center",alignItems:"center"});function Hk({selected:e=!1,data:{hovered:r=!1},buttons:n}){const o=Ta();return n.length?b.jsx(Vr,{className:cXe,style:{top:"calc(100% - 30px)",transform:"translateX(-50%)",left:"50%",width:"auto",minHeight:30},children:b.jsx(Qr,{layoutRoot:!0,initial:!1,style:{originY:0},animate:{opacity:r||e?1:.75,scale:r?1.1:e?.9:.8,y:r||e?6:0},"data-likec4-hovered":r,className:Je("nodrag nopan",uXe),children:n.map((a,i)=>b.jsx(or,{component:ps,className:Ek({}),initial:!1,whileTap:{scale:1},whileHover:{scale:1.3},onClick:a.onClick,onDoubleClick:cn,children:a.icon||b.jsx(lXe,{})},`${o}-${a.key??i}`))},`${o}-action-buttons`)}):null}/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const dXe=[["path",{d:"M3 6a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3",key:"svg-1"}],["path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3",key:"svg-2"}],["path",{d:"M15 18a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-3"}]],Ry=yt("outline","transform","Transform",dXe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const hXe=[["path",{d:"M4 21v-4a3 3 0 0 1 3 -3h5",key:"svg-0"}],["path",{d:"M9 17l3 -3l-3 -3",key:"svg-1"}],["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-2"}],["path",{d:"M5 11v-6a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-9.5",key:"svg-3"}]],pm=yt("outline","file-symlink","FileSymlink",hXe),fXe=e=>{const{enableNavigateTo:r,enableVscode:n}=wr(),o=Wt(),a=Fk(),i=Sy(),s=Ok(d=>d.context.subject),l=[],{navigateTo:c,fqn:u}=e.data;return c&&r&&a!==c&&l.push({key:"navigate",icon:b.jsx(gi,{}),onClick:d=>{d.stopPropagation(),o.navigateTo(c)}}),u!==s&&l.push({key:"relationships",icon:b.jsx(Ry,{}),onClick:d=>{d.stopPropagation(),i.navigateTo(u,e.id)}}),n&&l.push({key:"goToSource",icon:b.jsx(pm,{}),onClick:d=>{d.stopPropagation(),o.openSource({element:u})}}),b.jsx(Hk,{buttons:l,...e})};function $y({nodeProps:{data:{hovered:e=!1,dimmed:r=!1,...n}},className:o,children:a,style:i,...s}){let l=Ki(n.style.opacity??100,{min:0,max:100});const c=l<99,u=65,d=u+Ki((100-u)*(l/100),{min:0,max:100-u}),h=_qe({isTransparent:c,inverseColor:l<60,borderStyle:n.style.border??(c?"dashed":"none")}),p=Ki(n.depth??1,{min:1,max:5});return b.jsx(Qr,{className:Je(h,o),initial:!1,"data-likec4-hovered":e,"data-likec4-color":n.color,"data-compound-depth":p,...r!==!1&&{"data-likec4-dimmed":r},style:{...i,"--_border-transparency":`${d}%`,"--_compound-transparency":`${l}%`},...s,children:a})}function Py({data:e}){const r=Vx({element:e,className:"likec4-compound-icon"});return b.jsxs("div",{className:"likec4-compound-title-container",children:[r,b.jsx(wt,{component:"h3",className:"likec4-compound-title",truncate:"end",children:e.title})]})}const YJ=J0({base:{transitionDuration:"normal"},variants:{delay:{true:{transitionDelay:{base:"0.2s",_hover:"0s"}}}}});/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const pXe=[["path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v10a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-0"}],["path",{d:"M9 10m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M15 8l2 0",key:"svg-2"}],["path",{d:"M15 12l2 0",key:"svg-3"}],["path",{d:"M7 16l10 0",key:"svg-4"}]],BA=yt("outline","id","Id",pXe);function WJ({data:{hovered:e=!1},icon:r,onClick:n}){const o=tC(e,e?130:0)[0]&&e;return b.jsx(Qr,{initial:!1,animate:{scale:o?1.2:1},whileHover:{scale:1.4},whileTap:{scale:1},className:"likec4-compound-details details-button",children:b.jsx(or,{className:Je("nodrag nopan",YJ({delay:e&&!o}),Ek({variant:"transparent"})),onClick:n,onDoubleClick:cn,children:r??b.jsx(BA,{stroke:1.8,style:{width:"75%"}})})})}const mXe=ye({position:"relative",width:"100%",height:"100%",padding:"0",margin:"0",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",_before:{content:'" "',position:"absolute",top:"[calc(100% - 4px)]",left:"0",width:"100%",height:"24px",background:"[transparent]",pointerEvents:"all"},_focusVisible:{outline:"none"},_reduceGraphicsOnPan:{_before:{display:"none"}},":where(.react-flow__node.selectable:not(.dragging)) &":{cursor:"pointer"}}),mm=E.forwardRef(({nodeProps:{selected:e=!1,selectable:r=!1,data:{hovered:n=!1,dimmed:o=!1,...a}},className:i,style:s,children:l,...c},u)=>{let d=1;switch(!0){case n:d=1.05;break;case e:d=1.02;break}const{size:h,padding:p,textSize:g}=ex(a.style??{});return b.jsx(Qr,{ref:u,className:Je(mXe,"group","likec4-element-node",i),initial:!1,...r&&{animate:{scale:d},whileTap:{scale:.98}},"data-likec4-hovered":n,"data-likec4-color":a.color,"data-likec4-shape":a.shape,"data-likec4-shape-size":h,"data-likec4-spacing":p,"data-likec4-text-size":g,...o!==!1&&{"data-likec4-dimmed":o},style:{...s},...c,children:l})});mm.displayName="ElementNodeContainer";function XJ(e,r,n=.065){const o=Math.round(e/2),a=o,i=yi(n*o),s=r-2*i;return{path:` M ${e},${i} + a ${a},${i} 0,0,0 ${-e} 0 + l 0,${s} + a ${a},${i} 0,0,0 ${e} 0 + l 0,${-s} + z + `.replace(/\s+/g," ").trim(),ry:i,rx:a}}function GJ(e,r,n=.185){const o=r,a=Math.round(o/2),i=yi(o/2*n),s=e-2*i;return{path:` + M ${i},0 + a ${i},${a} 0,0,0 0 ${o} + l ${s},0 + a ${i},${a} 0,0,0 0 ${-o} + z`.replace(/\s+/g," ").trim(),ry:a,rx:i}}const ph={width:115,height:120,path:"M57.9197 0C10.9124 0 33.5766 54.75 33.5766 54.75C38.6131 62.25 45.3285 60.75 45.3285 66C45.3285 70.5 39.4526 72 33.5766 72.75C24.3431 72.75 15.9489 71.25 7.55474 84.75C2.51825 93 0 120 0 120H115C115 120 112.482 93 108.285 84.75C99.8905 70.5 91.4963 72.75 82.2628 72C76.3869 71.25 70.5109 69.75 70.5109 65.25C70.5109 60.75 77.2263 62.25 82.2628 54C82.2628 54.75 104.927 0 57.9197 0V0Z"};function KJ({shape:e,w:r,h:n}){switch(e){case"mobile":return b.jsxs(b.Fragment,{children:[b.jsx("rect",{width:r,height:n,rx:6,"data-likec4-fill":"mix-stroke",strokeWidth:0}),b.jsxs("g",{"data-likec4-fill":"fill",strokeWidth:0,children:[b.jsx("circle",{cx:17,cy:n/2,r:12}),b.jsx("rect",{x:33,y:12,width:r-44,height:n-24,rx:5})]})]});case"browser":return b.jsxs(b.Fragment,{children:[b.jsx("rect",{width:r,height:n,rx:6,"data-likec4-fill":"mix-stroke",strokeWidth:0}),b.jsxs("g",{"data-likec4-fill":"fill",strokeWidth:0,children:[b.jsx("circle",{cx:16,cy:17,r:7}),b.jsx("circle",{cx:36,cy:17,r:7}),b.jsx("circle",{cx:56,cy:17,r:7}),b.jsx("rect",{x:70,y:8,width:r-80,height:17,rx:4}),b.jsx("rect",{x:10,y:32,width:r-20,height:n-42,rx:4})]})]});case"person":return b.jsxs(b.Fragment,{children:[b.jsx("rect",{width:r,height:n,rx:6,strokeWidth:0}),b.jsx("svg",{x:r-ph.width-6,y:n-ph.height,width:ph.width,height:ph.height,viewBox:`0 0 ${ph.width} ${ph.height}`,"data-likec4-fill":"mix-stroke",children:b.jsx("path",{strokeWidth:0,d:ph.path})})]});case"queue":{const{path:o,rx:a,ry:i}=GJ(r,n);return b.jsxs(b.Fragment,{children:[b.jsx("path",{d:o,strokeWidth:2}),b.jsx("ellipse",{cx:a,cy:i,ry:i-.75,rx:a,"data-likec4-fill":"mix-stroke",strokeWidth:2})]})}case"storage":case"cylinder":{const{path:o,rx:a,ry:i}=XJ(r,n);return b.jsxs(b.Fragment,{children:[b.jsx("path",{d:o,strokeWidth:2}),b.jsx("ellipse",{cx:a,cy:i,ry:i,rx:a-.75,"data-likec4-fill":"mix-stroke",strokeWidth:2})]})}default:return Ga(e)}}function gXe({shape:e,w:r,h:n}){let o;switch(e){case"queue":o=b.jsx("path",{d:GJ(r,n).path});break;case"storage":case"cylinder":{o=b.jsx("path",{d:XJ(r,n).path});break}default:{o=b.jsx("rect",{x:-1,y:-1,width:r+2,height:n+2,rx:6});break}}return b.jsx("g",{className:"likec4-shape-outline",children:o})}function yXe({multiple:e,withOutLine:r}){return b.jsxs("div",{className:lQ({shapetype:"html"}),children:[e&&b.jsx("div",{className:"likec4-shape-multiple"}),r&&b.jsx("div",{className:"likec4-shape-outline"})]})}function gm({data:e,width:r,height:n,showSeletionOutline:o=!0}){let a=r&&r>10?r:e.width,i=n&&n>10?n:e.height;const s=e.style?.multiple??!1;if(e.shape==="rectangle")return b.jsx(yXe,{multiple:s,withOutLine:o});const l=lQ({shapetype:"svg"});return b.jsxs(b.Fragment,{children:[s&&b.jsx("svg",{className:l,"data-likec4-shape-multiple":"true",viewBox:`0 0 ${a} ${i}`,children:b.jsx(KJ,{shape:e.shape,w:a,h:i})}),b.jsxs("svg",{className:l,viewBox:`0 0 ${a} ${i}`,children:[o&&b.jsx(gXe,{shape:e.shape,w:a,h:i}),b.jsx(KJ,{shape:e.shape,w:a,h:i})]})]})}const mh=E.forwardRef(({value:e,textScale:r=1,uselikec4palette:n=!1,hideIfEmpty:o=!1,emptyText:a="no content",className:i,style:s,fontSize:l,...c},u)=>{if(e.isEmpty&&o)return null;const d=e.nonEmpty?e.isMarkdown?{dangerouslySetInnerHTML:{__html:e.html}}:{children:b.jsx("p",{children:e.text})}:{children:b.jsx(wt,{component:"span",fz:"xs",c:"dimmed",style:{userSelect:"none"},children:a})};return b.jsx(Vr,{ref:u,...c,className:Je(Tqe({uselikec4palette:n,value:e.isMarkdown?"markdown":"plaintext"}),i),style:{...s,...l&&{"--text-fz":`var(--font-sizes-${l}, var(--font-sizes-md))`},"--mantine-scale":r},...d})});mh.displayName="Markdown";const ZJ=E.forwardRef(({className:e,...r},n)=>b.jsx("div",{...r,ref:n,className:Je(e,Sqe(),"likec4-element")})),QJ=({data:e,...r})=>b.jsx(Vx,{element:e,...r}),JJ=E.forwardRef(({className:e,...r},n)=>b.jsx("div",{...r,className:Je(e,"likec4-element-node-content"),ref:n})),eee=E.forwardRef(({data:{title:e,style:r},className:n,...o},a)=>{const{size:i}=ex(r),s=i==="sm"||i==="xs";return b.jsx(wt,{component:"div",...o,className:Je(n,"likec4-element-title"),"data-likec4-node-title":"",lineClamp:s?2:3,ref:a,children:e})}),tee=E.forwardRef(({data:e,children:r,className:n,...o},a)=>{const i=e?.technology??r;return Sa(i)?b.jsx(wt,{component:"div",...o,className:Je(n,"likec4-element-technology"),"data-likec4-node-technology":"",ref:a,children:i}):null}),ree=E.forwardRef(({data:{description:e,style:r},className:n,...o},a)=>{if(!e?.nonEmpty)return null;const{size:i}=ex(r),s=i==="sm"||i==="xs";return b.jsx(mh,{...o,className:Je(n,"likec4-element-description"),"data-likec4-node-description":"",value:e,uselikec4palette:!0,hideIfEmpty:!0,maxHeight:e.isMarkdown?"8rem ":void 0,lineClamp:s?3:5,ref:a})});function ms({iconSize:e,data:r}){return b.jsxs(ZJ,{style:nV(e)?{"--likec4-icon-size":`${e}px`}:void 0,children:[b.jsx(QJ,{data:r}),b.jsxs(JJ,{children:[b.jsx(eee,{data:r}),b.jsx(tee,{data:r}),b.jsx(ree,{data:r})]})]})}ms.Root=ZJ,ms.Icon=QJ,ms.Content=JJ,ms.Title=eee,ms.Technology=tee,ms.Description=ree;const bXe=ye({position:"absolute",top:"0.5",right:"0.5",_shapeBrowser:{right:"[5px]"},_shapeCylinder:{top:"[14px]"},_shapeStorage:{top:"[14px]"},_shapeQueue:{top:"[1px]",right:"3"},_smallZoom:{display:"none"}});function FA({selected:e=!1,data:{hovered:r=!1},icon:n,onClick:o}){const a=Ta();return b.jsx(Vr,{className:Je(bXe,"details-button"),children:b.jsx(or,{className:Je("nodrag nopan",Ek({variant:"transparent"})),component:ps,initial:!1,style:{originX:.45,originY:.55},animate:r||e?{scale:1.2,opacity:.8}:{scale:1,opacity:.5},whileHover:{scale:1.4,opacity:1},whileTap:{scale:1.15},onClick:o,onDoubleClick:cn,children:n??b.jsx(BA,{stroke:1.8,style:{width:"75%"}})},a)})}const vXe=e=>{const r=Wt();return b.jsx(FA,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})};function xXe(e){const{enableElementTags:r}=wr();return b.jsxs(mm,{layoutId:e.id,nodeProps:e,children:[b.jsx(gm,{...e}),b.jsx(ms,{...e}),r&&b.jsx(Ey,{...e}),b.jsx(vXe,{...e}),b.jsx(fXe,{...e}),b.jsx(kXe,{...e})]},e.id)}function wXe(e){const r=Wt();return b.jsxs($y,{layoutId:e.id,nodeProps:e,children:[b.jsx(Py,{...e}),b.jsx(WJ,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}}),b.jsx(_Xe,{...e})]},e.id)}const kXe=({data:{ports:e,height:r}})=>b.jsxs(b.Fragment,{children:[e.in.map((n,o)=>b.jsx(uo,{id:n,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.in.length+1))}px`}},n)),e.out.map((n,o)=>b.jsx(uo,{id:n,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),_Xe=({data:e})=>b.jsxs(b.Fragment,{children:[e.ports.in.map((r,n)=>b.jsx(uo,{id:r,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>b.jsx(uo,{id:r,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]});/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const EXe=[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]],nee=yt("outline","chevron-left","ChevronLeft",EXe),SXe={element:xXe,compound:wXe,empty:aXe},CXe={relationship:nXe};function oee({actorRef:e}){const r=E.useRef(null);return r.current==null&&(r.current={initialNodes:[],initialEdges:[]}),b.jsx(DQ.Provider,{value:e,children:b.jsx(Mw,{...r.current,children:b.jsx(dm,{id:e.sessionId,inherit:!1,children:b.jsx(Pa,{children:b.jsx(NXe,{})})})})})}const TXe=e=>({isActive:e.hasTag("active"),nodes:e.context.xynodes,edges:e.context.xyedges}),AXe=(e,r)=>e.isActive===r.isActive&&Xn(e.nodes,r.nodes)&&Xn(e.edges,r.edges),NXe=E.memo(()=>{const e=Sy(),{isActive:r,nodes:n,edges:o}=Ok(TXe,AXe);return b.jsx(U9,{id:e.rootElementId,nodes:n,edges:o,className:Je(r?"initialized":"not-initialized","relationships-browser"),nodeTypes:SXe,edgeTypes:CXe,fitView:!1,onNodeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:it(a=>{a.stopPropagation(),e.send({type:"xyflow.paneClick"})}),onDoubleClick:it(a=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:it(()=>{e.send({type:"xyflow.resized"})}),onNodesChange:it(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:it(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),onEdgeMouseEnter:it((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:it((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:it(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,pannable:!0,zoomable:!0,children:b.jsx($Xe,{})})}),RXe=e=>({subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,closeable:e.context.closeable}),$Xe=E.memo(()=>{const e=Sy(),{subjectId:r,viewId:n,scope:o,closeable:a}=Ok(RXe),i=pr(),s=up();E.useEffect(()=>{s.viewportInitialized&&e.send({type:"xyflow.init",instance:s,store:i})},[i,s.viewportInitialized,e]);const l=NWe(r,n,o),[c,u,{history:d,current:h}]=YV(r);E.useEffect(()=>{c!==r&&u.set(r)},[r]),E.useEffect(()=>{c!==r&&e.navigateTo(c)},[c,e]),HB(()=>{e.updateView(l)},[l,e]);const p=h>0,g=h+1u.back(),onStepForward:()=>u.forward()}),a&&b.jsx(ou,{position:"top-right",children:b.jsx(or,{variant:"default",color:"gray",onClick:y=>{y.stopPropagation(),e.close()},children:b.jsx(Hp,{})})})]})}),PXe=({hasStepBack:e,hasStepForward:r,onStepBack:n,onStepForward:o})=>b.jsx(ou,{position:"top-left",children:b.jsxs(Ur,{gap:4,wrap:"nowrap",children:[b.jsxs(Pa,{mode:"popLayout",children:[e&&b.jsx(cs.div,{layout:!0,initial:{opacity:.05,transform:"translateX(-5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:.05,transform:"translateX(-10px)"},children:b.jsx(or,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),n()},children:b.jsx(nee,{})})},"back"),r&&b.jsx(cs.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:b.jsx(or,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),o()},children:b.jsx(hh,{})})},"forward")]}),b.jsx(zWe,{})]})}),MXe=ye({display:"inline-block",fontSize:"sm",fontWeight:500,whiteSpace:"nowrap",padding:"[3px 6px]",borderRadius:3,background:"var(--likec4-palette-fill)/75",lineHeight:1.2,color:"var(--likec4-palette-hiContrast)"}),OXe=ye({_light:{background:"mantine.colors.gray[1]","&[data-missing":{}},"&[data-missing]":{color:"mantine.colors.orange[4]",background:"mantine.colors.orange[8]/15",borderColor:"mantine.colors.orange[5]/20",_light:{color:"mantine.colors.orange[8]"}}}),DXe=ye({flex:"1 1 100%",position:"relative",width:"100%",height:"100%",background:"mantine.colors.body",border:"1px solid {colors.mantine.colors.defaultBorder}",borderRadius:"sm",_light:{borderColor:"mantine.colors.gray[3]",background:"mantine.colors.gray[1]"}});ye({_before:{content:'"scope:"',position:"absolute",top:"0",left:"2",fontSize:"xxs",fontWeight:500,lineHeight:"1",color:"mantine.colors.dimmed",opacity:.85,transform:"translateY(-100%) translateY(-2px)"},_light:{"& .mantine-SegmentedControl-root":{background:"mantine.colors.gray[3]"}}}),ye({display:"inline-block",fontSize:"xl",fontWeight:600,padding:"[1px 5px]",minWidth:24,textAlign:"center",borderRadius:"sm",background:"mantine.colors.dark[7]",color:"mantine.colors.defaultColor","&[data-zero]":{color:"mantine.colors.dimmed"},"&[data-missing]":{color:"mantine.colors.orange[4]",background:"mantine.colors.orange[8]/20"}});/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const LXe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]],ym=yt("outline","arrow-right","ArrowRight",LXe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const IXe=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],aee=yt("outline","external-link","ExternalLink",IXe),zXe=po.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1});function jXe({node:e,element:r}){const n=VX(),o=kqe(),a=wn(o,d=>d.children[`${o.id}-relationships`]),i=[...r.incoming()].map(d=>d.id),s=[...r.outgoing()].map(d=>d.id),l=e?Y6([...e.incoming()].flatMap(d=>d.$edge.relations)):[],c=e?Y6([...e.outgoing()].flatMap(d=>d.$edge.relations)):[],u=[...i,...s].filter(d=>!l.includes(d)&&!c.includes(d)).length;return b.jsxs(ra,{gap:"xs",pos:"relative",w:"100%",h:"100%",children:[i.length+s.length>0&&b.jsxs(Ur,{gap:"xs",wrap:"nowrap",align:"center",children:[b.jsx(Se,{children:b.jsxs(Ur,{gap:8,mb:4,wrap:"nowrap",children:[b.jsx(iee,{title:"incoming",total:i.length,included:l.length}),b.jsx(ci,{size:"sm",variant:"transparent",c:"dimmed",children:b.jsx(ym,{style:{width:16}})}),b.jsx(wt,{className:MXe,children:g0(r.id)}),b.jsx(ci,{size:"sm",variant:"transparent",c:"dimmed",children:b.jsx(ym,{style:{width:16}})}),b.jsx(iee,{title:"outgoing",total:s.length,included:c.length})]})}),u>0&&b.jsx(zXe,{label:"Current view does not include some relationships",children:b.jsxs(Ur,{mt:"xs",gap:6,c:"orange",style:{cursor:"pointer"},children:[b.jsx(F9,{style:{width:14}}),b.jsxs(wt,{fz:"sm",children:[u," relationship",u>1?"s are":" is"," hidden"]})]})})]}),b.jsx(Se,{className:DXe,children:a&&b.jsxs(b.Fragment,{children:[b.jsx(oee,{actorRef:a}),b.jsx(Se,{pos:"absolute",top:12,right:12,children:b.jsx(or,{size:"md",variant:"default",radius:"sm",onClick:d=>{d.stopPropagation();const{subject:h,scope:p,viewId:g}=a.getSnapshot().context;n.send({type:"open.relationshipsBrowser",subject:h,scope:p,viewId:g})},children:b.jsx(aee,{stroke:1.6,style:{width:"70%"}})})})]})})]})}function iee({title:e,total:r,included:n}){return b.jsx(Rp,{withBorder:!0,shadow:"none",className:OXe,px:"md",py:"xs",radius:"md",mod:{zero:r===0,missing:r!==n},children:b.jsxs(ra,{gap:4,align:"flex-end",children:[b.jsx(wt,{component:"div",c:r!==n?"orange":"dimmed",tt:"uppercase",fw:600,fz:10,lh:1,children:e}),b.jsx(wt,{fw:600,fz:"xl",component:"div",lh:1,children:r!==n?b.jsxs(b.Fragment,{children:[n," / ",r]}):b.jsx(b.Fragment,{children:r})})]})})}const BXe=ye({marginTop:"sm",marginBottom:"sm"}),FXe=ye({display:"inline-flex",transition:"fast",border:"1px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"sm",px:"md",py:"xs",alignItems:"center",cursor:"pointer",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.dark[1]"},"& > *":{transition:"fast"},_hover:{transitionTimingFunction:"out",borderStyle:"solid",color:"mantine.colors.defaultColor",background:"mantine.colors.defaultHover","& > *":{transitionTimingFunction:"out",transform:"translateX(1px)"}}}),HA=({element:e})=>b.jsx(Se,{className:FXe,children:b.jsx(wt,{component:"div",fz:"sm",fw:"500",children:e.title})}),HXe=()=>{};function UXe({element:e}){const r=Y1({multiple:!1});r.setHoveredNode=HXe;const n=E.useMemo(()=>{let o=1;const a=s=>({label:s,value:`msg${o++}`,type:"message",children:[]}),i={label:b.jsx(HA,{type:"current",element:e}),value:e.id,element:e,type:"current",children:[...e.children()].map(s=>({label:b.jsx(HA,{type:"descedant",element:s}),value:s.id,element:s,type:"descedant",children:[]}))};return i.children.length===0&&i.children.push(a(b.jsx(U3,{radius:"sm",children:"no nested"}))),[[...e.ancestors()].reduce((s,l)=>({label:b.jsx(HA,{type:"ancestor",element:l}),value:l.id,element:l,type:"ancestor",children:[s]}),i)]},[e]);return E.useEffect(()=>{r.expandAllNodes()},[n]),b.jsxs(b.Fragment,{children:[b.jsxs(M3,{variant:"light",color:"orange",title:"In development",icon:b.jsx(F9,{}),children:["We need your feedback. Share your thoughts and ideas -"," ",b.jsx(rT,{fz:"sm",fw:500,underline:"hover",c:"orange",href:"https://github.com/likec4/likec4/discussions/",target:"_blank",children:"GitHub discussions"})]}),b.jsx(Bp,{levelOffset:"xl",allowRangeSelection:!1,expandOnClick:!1,expandOnSpace:!1,classNames:{label:BXe},data:n,tree:r})]})}/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const VXe=[["path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4",key:"svg-0"}],["path",{d:"M4 12l8 4l8 -4",key:"svg-1"}],["path",{d:"M4 16l8 4l8 -4",key:"svg-2"}]],UA=yt("outline","stack-2","Stack2",VXe),see=Lp.withProps({mb:8,labelPosition:"left",variant:"dashed"}),lee=po.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4}),cee=wt.withProps({component:"div",fz:11,fw:500,c:"dimmed",lh:1}),My=wt.withProps({component:"div",fz:"xs",c:"dimmed",className:vYe}),bm=24,qXe=["Properties","Relationships","Views","Structure","Deployments"];function YXe({viewId:e,fromNode:r,rectFromNode:n,fqn:o,onClose:a}){const[i,s]=E.useState(!1),l=_Pe(),c=l.width||window.innerWidth||1200,u=l.height||window.innerHeight||800,[d,h]=bPe({key:"likec4:element-details:active-tab",defaultValue:"Properties"}),p=Wt(),g=NQ(),y=r?g.findNode(r):g.findNodeWithElement(o),x=g.$model.element(o),[w,k]=yn([...x.views()],Ao(Q=>Q.$view),sV(Q=>Q._type==="element"&&Q.viewOf===o));let C=y?.navigateTo?.$view??x.defaultView?.$view??null;C?.id===e&&(C=null);const _=zw(x.links),T=wqe(),A=(y?.$node.children?.length??0)>0,N=Math.min(700,c-bm*2),$=Math.min(650,u-bm*2),R=n?{x:n.x+(A?n.width-N/2:n.width/2),y:n.y+(A?0:n.height/2)}:{x:c/2,y:u/2},M=n?Math.min(n.width/N,n.height/$,.9):1,O=Math.round(Ki(R.x-N/2,{min:bm,max:c-N-bm})),B=Math.round(Ki(R.y-(A?0:60),{min:bm,max:u-$-bm})),I=Ki((R.x-O)/N,{min:.1,max:.9}),Y=Ki((R.y-B)/$,{min:.1,max:.9}),D=KZ(N),V=KZ($);$k(()=>{D.set(N),V.set($)},[N,$]);const L=E.useCallback((Q,z)=>{D.set(Math.max(D.get()+z.delta.x,320)),V.set(Math.max(V.get()+z.delta.y,300))},[]),U=E.useRef(null),q=Kf(a),X=qx(()=>{q.current()},[],50),F=y?.$node.notation??null,J=Vx({element:{id:o,title:x.title,icon:y?.icon??x.icon},className:dYe});return Wx(()=>{U.current?.open||U.current?.showModal()},20),Wx(()=>{s(!0)},220),b.jsx(cs.dialog,{ref:U,className:Je(sYe,S1.classNames.fullWidth),layout:!0,initial:{[Tk]:"0px",[Ak]:"5%"},animate:{[Tk]:"3px",[Ak]:"60%"},exit:{[Tk]:"0px",[Ak]:"0%",transition:{duration:.1}},onClick:Q=>{Q.stopPropagation(),Q.target?.nodeName?.toUpperCase()==="DIALOG"&&U.current?.close()},onDoubleClick:cn,onPointerDown:cn,onClose:Q=>{Q.stopPropagation(),X()},children:b.jsx(S1,{forwardProps:!0,removeScrollBar:!1,children:b.jsxs(cs.div,{layout:!0,layoutRoot:!0,drag:!0,dragControls:T,dragElastic:0,dragMomentum:!1,dragListener:!1,"data-likec4-color":y?.color??x.color,className:lYe,initial:{top:B,left:O,width:N,height:$,opacity:0,originX:I,originY:Y,scale:Math.max(M,.65)},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9,translateY:-10,transition:{duration:.1}},style:{width:D,height:V},children:[b.jsxs("div",{className:cYe,onPointerDown:Q=>T.start(Q),children:[b.jsxs(xn,{alignItems:"start",justify:"space-between",gap:"sm",mb:"sm",flexWrap:"nowrap",children:[b.jsxs(xn,{alignItems:"start",gap:"sm",style:{cursor:"default"},flexWrap:"nowrap",children:[J,b.jsxs("div",{children:[b.jsx(wt,{component:"div",className:uYe,children:x.title}),F&&b.jsx(wt,{component:"div",c:"dimmed",fz:"sm",fw:500,lh:1.3,lineClamp:1,children:F})]})]}),b.jsx(Kd,{size:"lg",onClick:Q=>{Q.stopPropagation(),X()}})]}),b.jsxs(xn,{alignItems:"baseline",gap:"sm",flexWrap:"nowrap",children:[b.jsxs("div",{children:[b.jsx(cee,{children:"kind"}),b.jsx(Gl,{radius:"sm",size:"sm",fw:600,color:"gray",style:{cursor:"pointer"},onClick:Q=>{Q.stopPropagation(),p.openSearch(`kind:${x.kind}`)},children:x.kind})]}),b.jsxs("div",{style:{flex:1},children:[b.jsx(cee,{children:"tags"}),b.jsxs(Op,{gap:4,flex:1,mt:6,wrap:"wrap",children:[x.tags.map(Q=>b.jsx(Ck,{tag:Q,cursor:"pointer",onClick:z=>{z.stopPropagation(),p.openSearch(`#${Q}`)}},Q)),x.tags.length===0&&b.jsx(Gl,{radius:"sm",size:"sm",fw:600,color:"gray",children:"—"})]})]}),b.jsxs(T3,{style:{alignSelf:"flex-start"},children:[_&&b.jsx(or,{component:"a",href:_.url,target:"_blank",size:"lg",variant:"default",radius:"sm",children:b.jsx(aee,{stroke:1.6,style:{width:"65%"}})}),b.jsx(HWe,{feature:"Vscode",children:b.jsx(lee,{label:"Open source",children:b.jsx(or,{size:"lg",variant:"default",radius:"sm",onClick:Q=>{Q.stopPropagation(),p.openSource({element:x.id})},children:b.jsx(pm,{stroke:1.8,style:{width:"62%"}})})})}),C&&b.jsx(lee,{label:"Open default view",children:b.jsx(or,{size:"lg",variant:"default",radius:"sm",onClick:Q=>{Q.stopPropagation(),p.navigateTo(C.id,r??void 0)},children:b.jsx(gi,{style:{width:"70%"}})})})]})]})]}),b.jsxs(Jd,{value:d,onChange:Q=>h(Q),variant:"none",classNames:{root:pYe,list:mYe,tab:gYe,panel:yYe},children:[b.jsx(q1,{children:qXe.map(Q=>b.jsx(jp,{value:Q,children:Q},Q))}),b.jsx(Zl,{value:"Properties",children:b.jsx(os,{scrollbars:"y",type:"scroll",offsetScrollbars:!0,children:b.jsxs(Se,{className:bYe,pt:"xs",children:[x.hasSummary&&b.jsxs(b.Fragment,{children:[b.jsx(My,{children:"summary"}),b.jsx(mh,{value:x.summary})]}),b.jsxs(b.Fragment,{children:[b.jsx(My,{children:"description"}),b.jsx(mh,{value:x.description,emptyText:"no description"})]}),x.technology&&b.jsx(WXe,{title:"technology",children:x.technology}),x.links.length>0&&b.jsxs(b.Fragment,{children:[b.jsx(My,{children:"links"}),b.jsx(xn,{gap:"xs",flexWrap:"wrap",children:x.links.map((Q,z)=>b.jsx(j9,{value:Q},z))})]}),x.$element.metadata&&b.jsx(XXe,{value:x.$element.metadata})]})})}),b.jsx(Zl,{value:"Relationships",children:b.jsx(fh,{overrides:{enableRelationshipBrowser:!1,enableNavigateTo:!1},children:i&&d==="Relationships"&&b.jsx(jXe,{element:x,node:y??null})})}),b.jsx(Zl,{value:"Views",children:b.jsx(os,{scrollbars:"y",type:"auto",children:b.jsxs(ra,{gap:"lg",children:[w.length>0&&b.jsxs(Se,{children:[b.jsx(see,{label:"views of the element (scoped)"}),b.jsx(ra,{gap:"sm",children:w.map(Q=>b.jsx(uee,{view:Q,onNavigateTo:z=>p.navigateTo(z,r??void 0)},Q.id))})]}),k.length>0&&b.jsxs(Se,{children:[b.jsx(see,{label:"views including this element"}),b.jsx(ra,{gap:"sm",children:k.map(Q=>b.jsx(uee,{view:Q,onNavigateTo:z=>p.navigateTo(z,r??void 0)},Q.id))})]})]})})}),b.jsx(Zl,{value:"Structure",children:b.jsx(os,{scrollbars:"y",type:"auto",children:b.jsx(UXe,{element:x})})}),b.jsx(Zl,{value:"Deployments",children:b.jsx(os,{scrollbars:"y",type:"auto",children:b.jsx(PYe,{elementFqn:x.id})})})]}),b.jsx(cs.div,{className:xYe,drag:!0,dragElastic:0,dragMomentum:!1,onDrag:L,dragConstraints:{top:0,left:0,right:0,bottom:0}})]})})})}const uee=({view:e,onNavigateTo:r})=>b.jsx(Pr,{className:hYe,onClick:n=>r(e.id,n),children:b.jsxs(Ur,{gap:6,align:"start",wrap:"nowrap",children:[b.jsx(ci,{size:"sm",variant:"transparent",children:e._type==="deployment"?b.jsx(UA,{stroke:1.8}):b.jsx(gi,{stroke:1.8})}),b.jsx(Se,{children:b.jsx(wt,{component:"div",className:fYe,lineClamp:1,children:e.title||"untitled"})})]})});function WXe({title:e,emptyValue:r="undefined",children:n,style:o,...a}){return b.jsxs(b.Fragment,{children:[b.jsx(My,{children:e}),b.jsx(wt,{component:"div",...rV(n)&&{c:"dimmed"},fz:"md",style:{whiteSpace:"preserve-breaks",userSelect:"all",...o},...a,children:n||r})]})}function XXe({value:e}){return b.jsxs(b.Fragment,{children:[b.jsx(My,{children:"metadata"}),b.jsx(Se,{className:ye({flex:1,display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[4px 4px]",alignItems:"baseline",justifyItems:"stretch",paddingRight:"xxs"}),children:B6(e).map(([r,n])=>b.jsxs("div",{style:{display:"contents"},className:"group",children:[b.jsxs("div",{className:ye({fontSize:"sm",fontWeight:500,justifySelf:"end",whiteSpace:"nowrap"}),children:[r,":"]}),b.jsx("div",{className:ye({}),children:b.jsx(os.Autosize,{type:"auto",mah:200,classNames:{root:ye({transitionProperty:"all",transitionDuration:"fast",transitionTimingFunction:"inOut",rounded:"sm",color:"mantine.colors.gray[8]",_dark:{color:"mantine.colors.dark[1]"},_groupHover:{transitionTimingFunction:"out",color:"mantine.colors.defaultColor",background:"mantine.colors.defaultHover"}}),viewport:ye({overscrollBehavior:"none"})},children:b.jsx("div",{className:ye({fontSize:"sm",padding:"xxs",whiteSpace:"pre",fontFamily:"mono",userSelect:"all"}),children:n})})})]},r))})]})}function GXe({actorRef:e,onClose:r}){const n=wn(e,it(o=>({viewId:o.context.currentView.id,fromNode:o.context.initiatedFrom.node,rectFromNode:o.context.initiatedFrom.clientRect,fqn:o.context.subject})),Xn);return b.jsx(S9.Provider,{value:e,children:b.jsx(YXe,{onClose:r,...n})})}const Uk="--_blur",Vk="--_opacity",KXe="--_level",Oy=E.forwardRef(({onClose:e,className:r,classes:n,overlayLevel:o=0,children:a,fullscreen:i=!1,withBackdrop:s=!0,backdrop:l,openDelay:c=130,...u},d)=>{const[h,p]=E.useState(c===0),g=IV(h),y=E.useRef(null),x=E.useRef(!1),w=ZZ()!==!0,k=E.useRef(e);k.current=e;const C=qx(()=>{x.current||(x.current=!0,k.current())},[],50);E.useLayoutEffect(()=>{y.current?.open||y.current?.showModal()},[]),Wx(()=>{p(!0)},c>0?c:void 0);const _=Nqe({fullscreen:i,withBackdrop:s});let T=o>0?"50%":"60%";return l?.opacity!==void 0&&(T=`${l.opacity*100}%`),b.jsx(cs.dialog,{ref:Rr(y,g,d),className:Je(n?.dialog,r,_,i&&S1.classNames.fullWidth),layout:!0,style:{[KXe]:o},...w?{initial:{[Uk]:"0px",[Vk]:"0%",scale:.95,originY:0,translateY:-20,opacity:0},animate:{[Uk]:o>0?"4px":"8px",[Vk]:T,scale:1,opacity:1,translateY:0,transition:{delay:.075}},exit:{opacity:0,scale:.98,translateY:-20,transition:{duration:.1},[Uk]:"0px",[Vk]:"0%"}}:{initial:{[Uk]:"8px",[Vk]:T}},onClick:A=>{if(A.stopPropagation(),A.target?.nodeName?.toUpperCase()==="DIALOG"){y.current?.close();return}},onCancel:A=>{A.preventDefault(),A.stopPropagation(),C()},onDoubleClick:cn,onPointerDown:cn,onClose:A=>{A.stopPropagation(),C()},...u,children:b.jsx(S1,{forwardProps:!0,children:b.jsx("div",{className:Je(n?.body,"likec4-overlay-body"),children:h&&b.jsx(b.Fragment,{children:a})})})})});Oy.displayName="Overlay";const qk=(e,r)=>e.size>2&&r.size!==e.size?new Set(qc([...zx(e).flatten(),...r])):e.size>1?new Set(qc([...e])):e;function ZXe(e,r){const n=new Set,o=new Set,a=new Set,i={sources:new Set,targets:new Set},s=(l,c)=>{c==="source"?(n.add(l),i.sources.add(l)):(a.add(l),i.targets.add(l))};for(const l of e){const c=r.findEdge(l),u=c?[...c.relationships("model")]:[];if(!c||!To(u,1)||!c.source.hasElement()||!c.target.hasElement())continue;const d=c.source.element,h=c.target.element;s(d,"source"),s(h,"target");for(const p of u){if(o.add(p),p.source!==d){s(p.source,"source");for(const g of p.source.ancestors()){if(g===d)break;n.add(g)}}if(p.target!==h){s(p.target,"target");for(const g of p.target.ancestors()){if(g===h)break;a.add(g)}}}}return{sources:qk(n,i.sources),targets:qk(a,i.targets),relationships:o}}function QXe({source:e,target:r}){const n=new Set,o=new Set,a=new Set,i={sources:new Set,targets:new Set},s=(c,u)=>{u==="source"?(n.add(c),i.sources.add(c)):(a.add(c),i.targets.add(c))};e&&s(e,"source"),r&&s(r,"target");const[l]=Z4e.findConnection(e,r,"directed");if(!l)return{sources:n,targets:a,relationships:o};for(const c of l.relations){const u=c.source,d=c.target;if(s(u,"source"),s(d,"target"),o.add(c),e!==u){nt(Un(e,u),`${e.id} is not an ancestor of ${u.id}`);for(const h of u.ancestors()){if(h===e)break;n.add(h)}}if(r!==d){nt(Un(r,d),`${r.id} is not an ancestor of ${d.id}`);for(const h of d.ancestors()){if(h===r)break;a.add(h)}}}return{sources:qk(n,i.sources),targets:qk(a,i.targets),relationships:o}}const dee=E.createContext(null);function VA(){return mt(E.useContext(dee),"No RelationshipDetailsActorContext")}function hee(e,r=Xn){const n=it(e),o=VA();return wn(o,n,r)}function qA(){const e=VA();return E.useMemo(()=>({actor:e,get rootElementId(){return`relationship-details-${e.sessionId.replaceAll(":","_")}`},getState:()=>e.getSnapshot().context,send:e.send,navigateTo:(...r)=>{r.length===1?e.send({type:"navigate.to",params:{edgeId:r[0]}}):e.send({type:"navigate.to",params:{source:r[0],target:r[1]}})},fitDiagram:()=>{e.send({type:"fitDiagram"})},close:()=>{e._parent?e._parent?.send({type:"close",actorId:e.id}):e.send({type:"close"})}}),[e])}const gs={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:220,height:14},nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function JXe(){const e=new Lk.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...gs.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...gs.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const YA="-port";function fee(e,r,n){const o=new lo(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=zx(r);for(const i of a.sorted){const s=a.children(i).length>0,l=i.id,c=`${e}-${l}`,u=s?`${c}${YA}`:c;o.set(l,{id:c,portId:u}),n.setNode(c,{column:e,element:i,isCompound:s,portId:u,inPorts:[],outPorts:[],width:gs.nodeWidth,height:gs.nodeHeight}),s&&(n.setNode(u,{element:i,portId:u,isCompound:s,inPorts:[],outPorts:[],width:gs.nodeWidth-gs.dagre.ranksep,height:gs.compound.labelHeight}),n.setParent(u,c));const d=a.parent(i);d&&n.setParent(c,`${e}-${d.id}`)}return{...a,byId:i=>{const s=a.byId(i),l=o.get(s.id);return{element:s,graph:l}},graphNodes:o}}function eGe(e){return Lk.layout(e,{}),r=>{const n=e.node(r),{x:o,y:a,width:i,height:s}=n;return{position:{x:o-Math.round(i/2),y:a-Math.round(s/2)},width:i,height:s}}}function tGe(e,r){const n=JXe(),o=fee("sources",e.sources,n),a=fee("targets",e.targets,n),i=Array.from(e.relationships).map(k=>{const C=o.byId(k.source.id).graph,_=a.byId(k.target.id).graph,T=k.id;return n.node(C.id).outPorts.push(_.id),n.node(_.id).inPorts.push(C.id),n.setEdge(C.portId,_.portId,{...gs.edgeLabel},T),{name:T,source:C.id,sourceHandle:C.id+"_out"+(n.node(C.id).outPorts.length-1),target:_.id,targetHandle:_.id+"_in"+(n.node(_.id).inPorts.length-1),relationship:k}}),s=[...o.graphNodes.values(),...a.graphNodes.values()];for(const{id:k}of s){const C=n.node(k);if(C.isCompound)continue;const _=Math.max(n.inEdges(k)?.length??0,n.outEdges(k)?.length??0);_>3&&(C.height=C.height+(_-4)*14)}const l=n.edgeCount();if(l>5)for(const k of n.edges())n.setEdge(k,{...gs.edgeLabel,width:l>10?800:400});const c=eGe(n),u=yn(s,dp(k=>k.id===k.portId),E1(k=>[k.id,c(k.id)]));function d(k){return u[k]??=yn(n.children(k)??[],dp(C=>!C.endsWith(YA)),Ao(C=>d(C)),uV(C=>{nt(C.length>0,`Node ${k} has no nested nodes`)}),fp((C,_)=>({minY:Math.min(C.minY,_.position.y),maxY:Math.max(C.maxY,_.position.y+_.height)}),{minY:1/0,maxY:-1/0}),({minY:C,maxY:_})=>{const{position:{x:T},width:A}=c(k);return C=C-gs.compound.paddingTop,_=_+gs.compound.paddingBottom,{position:{x:T,y:C},width:A,height:_-C}})}function h(k){const C=n.parent(k);return C?h(C)+1:0}function p(k){const C=n.children(k)??[];return C.length===0?0:1+Math.max(...C.map(p))}const g=(k,C,_)=>yn(_,Ao((T,A)=>({port:k+"_"+C+A,topY:d(T).position.y})),jw(Ca("topY")),Ao(Ca("port")));let y=0,x=0;const w=s.map(({id:k})=>{const{element:C,inPorts:_,outPorts:T,column:A}=n.node(k);let{position:N,width:$,height:R}=d(k);const M=n.parent(k),O=(n.children(k)??[]).filter(V=>!V.endsWith(YA));y=Math.min(y,N.x),x=Math.min(x,N.y);const B=r?G0(C.scopedViews(),V=>V.id!==r.id)?.id??null:null,I=r?.findNodeWithElement(C.id),Y=r&&!I?G0(C.ancestors(),V=>!!r.findNodeWithElement(V.id))?.id:null,D=I??(Y&&r?.findNodeWithElement(Y));return V0({id:k,parent:M??null,x:N.x,y:N.y,title:C.title,description:C.summary,technology:C.technology,tags:[...C.tags],links:null,color:D?.color??C.color,shape:I?.shape??C.shape,icon:I?.icon??C.icon??"none",modelRef:C.id,kind:C.kind,level:h(k),labelBBox:{x:N.x,y:N.y,width:$,height:R},style:Vd({...(I??D)?.style,...C.$element.style},["shape","color","icon"]),navigateTo:B,...O.length>0&&{depth:p(k)},children:O,width:$,height:R,column:A,ports:{in:g(k,"in",_),out:g(k,"out",T)}})});return{bounds:{x:Math.min(y,0),y:Math.min(x,0),width:n.graph().width??100,height:n.graph().height??100},nodes:w,edges:n.edges().reduce((k,C)=>{const _=n.edge(C),T=C.name;if(!T)return k;const{name:A,source:N,target:$,relationship:R,sourceHandle:M,targetHandle:O}=Iw(i,V=>V.name===T),B=R.title??"untitled",I=R.navigateTo?.id??null,Y=R.description??null,D=R.technology??null;return k.push({id:A,source:N,sourceHandle:M,target:$,targetHandle:O,label:B,color:R.color,...I&&{navigateTo:I},...Y&&{description:Y},...D&&{technology:D},points:_.points.map(V=>[V.x,V.y]),line:R.line,relationId:R.id,parent:null}),k},[])}}const WA=ye.raw({display:"inline-flex",alignItems:"center",padding:"[6px 2px 0 2px]","& .mantine-Text-root":{color:"mantine.colors.text/90",fontSize:"xs",fontWeight:500,lineHeight:"1.2"}}),pee=ye({paddingLeft:"1",gridColumn:1},WA),rGe=ye({gridColumn:2},WA),mee=ye({gridColumn:3,paddingRight:"1"},WA),gee="likec4-edge-label",nGe=Je(gee,ye({display:"grid",gridColumnStart:1,gridColumnEnd:4,borderBottom:"1px solid",borderBottomColor:"mantine.colors.defaultBorder",marginBottom:"0",padding:"[0 4px 5px 4px]",width:"100%","& .mantine-Text-root":{fontSize:"xxs",fontWeight:400,lineHeight:"xs",color:"mantine.colors.dimmed"}})),oGe=ye({display:"contents",[`&:last-child .${gee}`]:{borderBottom:"none",marginBottom:"0"},"& > *":{transition:"all 0.15s ease-in"},"&:is(:hover, [data-selected=true]) > *":{transition:"all 0.15s ease-out",cursor:"pointer",backgroundColor:"mantine.colors.defaultHover"}}),aGe=ye({display:"grid",gridTemplateColumns:"1fr 30px 1fr",gridAutoRows:"min-content max-content",gap:"0",alignItems:"stretch"});ye({display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[10px 12px]",alignItems:"baseline",justifyItems:"start"});const iGe=ye({maxHeight:["70vh","calc(100cqh - 70px)"]}),sGe=({edge:e,view:r})=>{const n=qA(),o=E.useRef(null),a=r.nodes.find(l=>l.id===e.source),i=r.nodes.find(l=>l.id===e.target),s=r.edges.flatMap(l=>{const c=r.nodes.find(d=>d.id===l.source),u=r.nodes.find(d=>d.id===l.target);return c&&u?{id:l.id,source:c,target:u,label:l.label}:[]});return!a||!i||s.length===0?null:b.jsxs(mr,{position:"bottom-start",shadow:"md",keepMounted:!0,withinPortal:!1,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],onOpen:()=>{setTimeout(()=>{o.current?.querySelector(`[data-edge-id="${e.id}"]`)?.scrollIntoView({behavior:"instant",block:"nearest"})},100)},children:[b.jsx(pu,{children:b.jsxs(Zn,{size:"xs",variant:"default",fw:"500",style:{padding:"0.25rem 0.75rem"},rightSection:b.jsx(LA,{size:16}),children:[b.jsx(Se,{className:pee,maw:160,p:0,mod:{"likec4-color":a.color},children:b.jsx(wt,{component:"span",truncate:!0,children:a.title})}),b.jsx(ci,{color:"dark",variant:"transparent",size:"xs",children:b.jsx(ym,{style:{width:"80%"}})}),b.jsx(Se,{className:mee,maw:160,p:0,mod:{"likec4-color":i.color},children:b.jsx(wt,{component:"span",truncate:!0,children:i.title})})]})}),b.jsx(Xl,{p:0,miw:250,maw:400,children:b.jsx(ta,{className:iGe,scrollbars:"y",type:"never",viewportRef:o,children:b.jsx(Se,{className:aGe,p:"xs",maw:400,children:s.map(l=>b.jsxs("div",{className:oGe,"data-selected":l.id===e.id,onClick:c=>{c.stopPropagation(),n.navigateTo(l.id)},children:[b.jsx(Se,{className:pee,mod:{"edge-id":l.id,"likec4-color":l.source.color},children:b.jsx(wt,{component:"span",truncate:!0,children:l.source.title})}),b.jsx(Se,{className:rGe,children:b.jsx(ci,{color:"dark",variant:"transparent",size:"xs",children:b.jsx(ym,{style:{width:"80%"}})})}),b.jsx(Se,{className:mee,mod:{"likec4-color":l.target.color},children:b.jsx(wt,{component:"span",truncate:!0,children:l.target.title})}),b.jsx(Se,{className:nGe,children:b.jsx(wt,{component:"span",truncate:!0,children:l.label||"untitled"})})]},l.id))})})})]})},lGe=IA(e=>{const{enableNavigateTo:r}=wr(),{data:{navigateTo:n}}=e,[o,a,i]=kw(e),s=Wt();return b.jsxs(Ay,{...e,children:[b.jsx(Ny,{edgeProps:e,svgPath:o}),b.jsx(Bk,{edgeProps:e,labelPosition:{x:a,y:i,translate:"translate(-50%, 0)"},style:{maxWidth:Math.abs(e.targetX-e.sourceX-100)},children:b.jsx(Ty,{edgeProps:e,children:r&&n&&b.jsx(jk,{...e,onClick:l=>{l.stopPropagation(),s.navigateTo(n)}})})})]})}),cGe=e=>{const{enableNavigateTo:r,enableVscode:n}=wr(),o=Wt(),a=Fk(),i=[],{navigateTo:s,fqn:l}=e.data;return s&&r&&a!==s&&i.push({key:"navigate",icon:b.jsx(gi,{}),onClick:c=>{c.stopPropagation(),o.navigateTo(s)}}),l&&i.push({key:"relationships",icon:b.jsx(Ry,{}),onClick:c=>{c.stopPropagation(),o.openRelationshipsBrowser(l)}}),l&&n&&i.push({key:"goToSource",icon:b.jsx(pm,{}),onClick:c=>{c.stopPropagation(),o.openSource({element:l})}}),b.jsx(Hk,{buttons:i,...e})};function uGe(e,r){return e.id===r.id&&ut(e.selected??!1,r.selected??!1)&&ut(e.dragging??!1,r.dragging??!1)&&ut(e.width??0,r.width??0)&&ut(e.height??0,r.height??0)&&ut(e.zIndex??0,r.zIndex??0)&&ut(e.data,r.data)}const yee=Symbol.for("isMemoized");function ic(e){if(e.hasOwnProperty(yee))return e;const r=E.memo(e,uGe);return r.displayName="Node",Object.defineProperty(r,yee,{enumerable:!1,writable:!1,value:!0}),r}const bee=e=>{const r=Wt();return b.jsx(FA,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})},dGe=ic(e=>{const{enableElementTags:r}=wr();return b.jsxs(mm,{nodeProps:e,children:[b.jsx(gm,{...e}),b.jsx(ms,{...e}),r&&b.jsx(Ey,{...e}),b.jsx(bee,{...e}),b.jsx(cGe,{...e}),b.jsx(fGe,{...e})]})}),hGe=ic(e=>b.jsxs($y,{nodeProps:e,children:[b.jsx(bee,{...e}),b.jsx(Py,{...e}),b.jsx(pGe,{...e})]})),fGe=({data:{ports:e,height:r}})=>b.jsxs(b.Fragment,{children:[e.in.map((n,o)=>b.jsx(uo,{id:n,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.in.length+1))}px`}},n)),e.out.map((n,o)=>b.jsx(uo,{id:n,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),pGe=({data:e})=>b.jsxs(b.Fragment,{children:[e.ports.in.map((r,n)=>b.jsx(uo,{id:r,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>b.jsx(uo,{id:r,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]}),mGe={element:dGe,compound:hGe},gGe={relationship:lGe};function yGe({actorRef:e}){const r=E.useRef(null);return r.current==null&&(r.current={defaultNodes:[],defaultEdges:[]}),b.jsx(dee.Provider,{value:e,children:b.jsx(Mw,{...r.current,children:b.jsx(dm,{id:e.sessionId,inherit:!1,children:b.jsxs(Pa,{children:[b.jsx(wGe,{},"xyflow"),b.jsx(vGe,{},"sync")]})})})})}const bGe=e=>({...e.context.subject,viewId:e.context.viewId}),vGe=E.memo(()=>{const e=VA(),r=wn(e,bGe,ut),n=Ho(),o=n.findView(r.viewId)??null,a=E.useMemo(()=>{let l;if("edgeId"in r&&Sa(r.edgeId)){nt(o,`view ${r.viewId} not found`);const c=mt(o.findEdge(r.edgeId),`edge ${r.edgeId} not found in ${r.viewId}`);l=ZXe([c.id],o)}else if(r.source&&r.target)l=QXe({source:n.element(r.source),target:n.element(r.target)});else return null;return tGe(l,o)},[r,o,n]),i=pr(),s=up();return E.useEffect(()=>{s.viewportInitialized&&e.send({type:"xyflow.init",instance:s,store:i})},[i,s.viewportInitialized,e]),E.useEffect(()=>{a!==null&&e.send({type:"update.layoutData",data:a})},[a,e]),null}),xGe=({context:e})=>({initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges}),wGe=E.memo(()=>{const e=qA(),{initialized:r,nodes:n,edges:o}=hee(xGe,ut);return b.jsxs(U9,{id:e.rootElementId,nodes:n,edges:o,className:Je(r?"initialized":"not-initialized","likec4-relationship-details"),nodeTypes:mGe,edgeTypes:gGe,onNodesChange:it(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:it(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),fitViewPadding:.05,onNodeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:it(()=>{e.send({type:"xyflow.paneClick"})}),onDoubleClick:it(()=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:it(()=>{e.send({type:"xyflow.resized"})}),onEdgeMouseEnter:it((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:it((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:it(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,fitView:!1,pannable:!0,zoomable:!0,children:[b.jsx(_Ge,{}),b.jsx(ou,{position:"top-right",children:b.jsx(or,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),e.close()},children:b.jsx(Hp,{})})})]})}),kGe=({context:e})=>({subject:e.subject,viewId:e.viewId}),_Ge=E.memo(()=>{const{subject:e,viewId:r}=hee(kGe,ut),n=Ho().findView(r);if(!n||!n.isDiagram())return null;const o=[...n.edges()];let a="edgeId"in e&&Sa(e.edgeId)?o.find(i=>i.id===e.edgeId):Iw(o,i=>i.source.element?.id===e.source&&i.target.element?.id===e.target)||Iw(o,i=>(i.source.element?.id===e.source||Un(i.source.element?.id??"__",e.source??"__"))&&(i.target.element?.id===e.target||Un(i.target.element?.id??"__",e.target??"__")));return a?b.jsx(EGe,{edge:a.$edge,view:n.$view}):null}),EGe=({edge:e,view:r})=>{const n=qA(),o=e.id,[a,i,{history:s,current:l}]=YV(e.id);E.useEffect(()=>{a!==o&&i.set(o)},[o]),E.useEffect(()=>{a!==o&&n.navigateTo(a)},[a]);const c=l>0,u=l+1{d.stopPropagation(),i.back()},children:b.jsx(nee,{})})},"back"),u&&b.jsx(cs.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:b.jsx(or,{variant:"default",color:"gray",onClick:d=>{d.stopPropagation(),i.forward()},children:b.jsx(hh,{})})},"forward"),b.jsx(Ur,{gap:"xs",wrap:"nowrap",ml:"sm",children:b.jsx(sGe,{edge:e,view:r})})]})})})},SGe=e=>e.context.overlays.map(r=>{switch(r.type){case"relationshipsBrowser":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;case"relationshipDetails":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;case"elementDetails":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;default:Ga(r)}}).filter(tV),CGe=(e,r)=>e.length===r.length&&e.every((n,o)=>n.actorRef===r[o].actorRef);function TGe({overlaysActorRef:e}){const r=D9(c=>c.domNode),n=E.useMemo(()=>r?.querySelector(".react-flow__renderer")??null,[r]),o=wn(e,SGe,CGe),a=ZZ()??!1,i=o.some(c=>c.type==="elementDetails");E.useEffect(()=>{!n||a||iUe(n,{opacity:i?.7:1,filter:i?"grayscale(1)":"grayscale(0)",transform:i?"perspective(400px) translateZ(-12px) translateY(3px)":"translateY(0)"},{duration:i?.35:.17})},[i,n]);const s=c=>{e.send({type:"close",actorId:c.id})},l=o.map((c,u)=>{switch(c.type){case"relationshipsBrowser":return b.jsx(Oy,{overlayLevel:u,onClose:()=>s(c.actorRef),children:b.jsx(oee,{actorRef:c.actorRef})},c.actorRef.sessionId);case"relationshipDetails":return b.jsx(Oy,{overlayLevel:u,onClose:()=>s(c.actorRef),children:b.jsx(yGe,{actorRef:c.actorRef})},c.actorRef.sessionId);case"elementDetails":return b.jsx(GXe,{actorRef:c.actorRef,onClose:()=>s(c.actorRef)},c.actorRef.sessionId);default:Ga(c)}});return b.jsx(fh.Overlays,{children:b.jsx(jT,{FallbackComponent:BT,onReset:()=>e.send({type:"close.all"}),children:b.jsx(dm,{children:b.jsx(Pa,{children:l})})})})}const[AGe,Su]=ri("SearchActorContext"),NGe=e=>e.context.searchValue;function RGe(){const e=Su(),r=wn(e,NGe),n=E.useCallback(o=>{e.send({type:"change.search",search:o})},[e]);return[r,n]}const $Ge=e=>{const r=e.context.searchValue.trim().toLowerCase();return r.length>1?r:""};function XA(){const e=Su();return E.useDeferredValue(wn(e,$Ge))}function PGe(){const e=Su();return E.useCallback(r=>{e.send({type:"change.search",search:r})},[e])}const MGe=e=>e.context.pickViewFor;function OGe(){const e=Su();return wn(e,MGe)}const GA=ye.raw({outline:"none",background:"mantine.colors.primary[8]",borderColor:"mantine.colors.primary[9]"}),Yk=".mantine-Tree-node:focus > .mantine-Tree-label &",DGe=ye.raw({display:"flex",width:"100%",background:"mantine.colors.body",rounded:"sm",padding:"[12px 8px 12px 14px]",minHeight:"60px",gap:"2",border:"1px solid",borderColor:"mantine.colors.defaultBorder",_hover:{...GA,borderColor:"mantine.colors.primary[9]",background:"mantine.colors.primary[8]/60"},_focus:GA,[Yk]:GA,_dark:{borderColor:"transparent",background:"mantine.colors.dark[6]/80"},_light:{background:"mantine.colors.white/80",_hover:{borderColor:"mantine.colors.primary[6]",backgroundColor:"mantine.colors.primary[5]"}}}),Wk="likec4-focusable",Xk={ref:"var(--likec4-icon-size, 24px)"},LGe=ye.raw({color:{base:"mantine.colors.dimmed",_light:"mantine.colors.gray[5]",_groupHover:"mantine.colors.primary[0]",_groupFocus:"mantine.colors.primary[0]"},[Yk]:{color:"mantine.colors.primary[0]"},flex:`0 0 ${Xk.ref}`,height:Xk.ref,width:Xk.ref,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start","--ti-size":Xk.ref,"& svg, & img":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none"},"& img":{objectFit:"contain"},"&.likec4-shape-icon svg":{strokeWidth:1.5}}),IGe=ye.raw({fontSize:"16px",fontWeight:500,lineHeight:"1.1",":where([data-disabled]) &":{opacity:.4},color:{base:"mantine.colors.dark[1]",_light:"mantine.colors.gray[7]",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"},_groupFocus:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}},[Yk]:{color:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}}}),vee=ye.raw({color:{base:"mantine.colors.dimmed",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.primary[0]"},_groupFocus:"mantine.colors.primary[0]"},[Yk]:{color:"mantine.colors.primary[0]"}}),zGe=ye.raw(vee,{marginTop:"1",fontSize:"12px",lineHeight:"1.4",":where([data-disabled]) &":{opacity:.85}}),jGe=ye({width:"100%",height:"100%",border:"2px dashed",borderColor:"mantine.colors.defaultBorder",rounded:"md",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"md",color:"mantine.colors.dimmed",padding:"md",paddingBlock:"xl"}),xee=ZSe({slots:["root","icon","title","description","descriptionColor"],className:"search-button",base:{root:DGe,icon:LGe,title:IGe,description:zGe,descriptionColor:vee}}),KA="@container likec4-tree (max-width: 450px)",BGe=ye({outline:"none",marginBottom:"2"}),FGe=ye(oX.raw({containerName:"likec4-tree"}),{containerType:"inline-size",height:"100%"}),HGe=ye({display:"flex",alignItems:"baseline",outline:"none !important",gap:"1"}),UGe=ye({marginTop:"2"}),VGe=ye({color:"mantine.colors.dimmed"}),qGe=ye({[KA]:{flexDirection:"column-reverse",alignItems:"flex-start",gap:"0.5"}}),YGe=ye({fontSize:"10px",lineHeight:"1.3",display:"block",fontWeight:500,whiteSpace:"nowrap",padding:"[1px 5px]",borderRadius:"4px",background:"mantine.colors.dark[9]/30",_light:{background:"mantine.colors.gray[3]/20"}}),WGe=ye({"--likec4-icon-size":"24px",[KA]:{"--likec4-icon-size":"18px"}}),XGe=ye({flex:0,fontSize:"10px",fontWeight:500,whiteSpace:"nowrap",lineHeight:"1.1",[KA]:{display:"none"}});function bi(e){e.stopPropagation(),e.preventDefault()}function wee(e){const r=e.getBoundingClientRect();return r.y+Math.floor(r.height/2)}function Dy(e){if(!e){console.error("moveFocusToSearchInput: from is null or undefined");return}const r=e.getRootNode();if(!_1(r.querySelector)){console.error("moveFocusToSearchInput: root.querySelector is not a function");return}let n=r.querySelector("[data-likec4-search-input]");if(n){const o=n.value.length;n.focus(),n.setSelectionRange(o,o)}}function Gk(e){if(!e){console.error("focusToFirstFoundElement: from is null or undefined");return}const r=e.getRootNode();if(!_1(r.querySelector)){console.error("focusToFirstFoundElement: root.querySelector is not a function");return}r.querySelector(`[data-likec4-search] .${Wk}`)?.focus()}function kee(e,r,n=`.${Wk}`){if(!e)return console.error("queryAllFocusable: from is null or undefined"),[];const o=e.getRootNode();return _1(o.querySelectorAll)?[...o.querySelectorAll(`[data-likec4-search-${r}] ${n}`)]:(console.error("queryAllFocusable: root.querySelectorAll is not a function"),[])}const GGe="likec4-view-btn",KGe=Je(ye({flexWrap:"nowrap",display:"flex","&[data-disabled] .mantine-ThemeIcon-root":{opacity:.45}}),GGe);ye({marginTop:"1",fontSize:"13px",lineHeight:"1.4",":where(.likec4-view-btn[data-disabled]) &":{opacity:.85}});const _ee=()=>b.jsx(Vr,{className:jGe,children:"Nothing found"}),ZGe=E.memo(()=>{const e=E.useRef(null);let r=[...Ho().views()],n=XA();return n&&(n.startsWith("kind:")?r=[]:r=r.filter(o=>n.startsWith("#")?o.tags.some(a=>a.toLocaleLowerCase().includes(n.slice(1))):`${o.id} ${o.title} ${o.description.text}`.toLocaleLowerCase().includes(n))),b.jsxs(ra,{ref:e,renderRoot:o=>b.jsx(Qr,{layout:!0,...o}),gap:8,"data-likec4-search-views":!0,onKeyDown:o=>{if(o.key==="ArrowLeft"||o.key==="ArrowRight"){const a=o.target.getBoundingClientRect().y,i=kee(e.current,"elements",".likec4-element-button");let s=i.length>1?i.find((l,c,u)=>wee(l)>a||c===u.length-1):null;s??=hp(i),s&&(o.stopPropagation(),s.focus());return}},children:[r.length===0&&b.jsx(_ee,{}),r.length>0&&b.jsx(_3,{children:b.jsx(Pr,{"data-likec4-view":!0,tabIndex:-1,onFocus:o=>{o.stopPropagation(),Dy(e.current)}})}),r.map((o,a)=>b.jsx(Qr,{layoutId:`@view${o.id}`,children:b.jsx(ZA,{view:o,search:n,tabIndex:a===0?0:-1})},o.id))]})}),Kk=xee();function ZA({className:e,view:r,loop:n=!1,search:o,...a}){const i=Su(),s=Wt(),l=Fk(),c=r.id===l,u=()=>{i.send({type:"close"}),setTimeout(()=>{s.navigateTo(r.id)},100)};return b.jsxs(Pr,{...a,className:Je(Kk.root,"group",Wk,KGe,e),"data-likec4-view":r.id,...c&&{"data-disabled":!0},onClick:d=>{d.stopPropagation(),u()},onKeyDown:T1({siblingSelector:"[data-likec4-view]",parentSelector:"[data-likec4-search-views]",activateOnFocus:!1,loop:n,orientation:"vertical",onKeyDown:d=>{d.nativeEvent.code==="Space"&&(d.stopPropagation(),u())}}),children:[b.jsx(ci,{variant:"transparent",className:Kk.icon,children:r.isDeploymentView()?b.jsx(UA,{stroke:1.8}):b.jsx(gi,{stroke:1.8})}),b.jsxs(Vr,{style:{flexGrow:1},children:[b.jsxs(Ur,{gap:"xs",wrap:"nowrap",align:"center",children:[b.jsx(Kl,{component:"div",highlight:o,className:Kk.title,children:r.title||"untitled"}),c&&b.jsx(Gl,{size:"xs",fz:9,radius:"sm",children:"current"})]}),b.jsx(Kl,{highlight:r.description.nonEmpty?o:"",component:"div",className:Kk.description,lineClamp:1,children:r.description.text||"No description"})]})]})}const vm=xee(),QGe=E.memo(()=>{const e=Ho(),r=XA(),n=E.useMemo(()=>{const a=r.split(".");let i;iu(a)||a[0]==="kind:"?i=e.elements():i=Rd(e.elements(),u=>r.startsWith("kind:")?u.kind.toLocaleLowerCase().startsWith(r.slice(5)):r.startsWith("#")?u.tags.some(d=>d.toLocaleLowerCase().includes(r.slice(1))):(u.title+" "+u.id+" "+u.summary.text).toLocaleLowerCase().includes(r));const s={},{all:l,roots:c}=yn([...i],qc,fp((u,d)=>{const h={label:d.title,value:d.id,element:d,searchTerms:a,children:[]};s[h.value]=h;const p=u.all.findLast(g=>Un(g.value,h.value));return p?(p.children.push(h),p.children.length>1&&p.children.sort(Cy)):u.roots.push(h),u.all.push(h),u},{all:[],roots:[]}));return{all:l,byid:s,roots:c.sort(Cy)}},[e,r]),o=Eee();return n.all.length===0?b.jsx(_ee,{}):b.jsx(eKe,{data:n,handleClick:o})}),JGe=()=>{};function eKe({data:{all:e,byid:r,roots:n},handleClick:o}){const a=Y1({multiple:!1});a.setHoveredNode=JGe,E.useEffect(()=>{a.collapseAllNodes();for(const s of e)s.children.length>0&&a.expand(s.value)},[e]);const i=it(s=>{const l=s.target,c=l.getAttribute("data-value"),u=!!c&&r[c];if(u){if(s.key==="ArrowUp"){c===n[0]?.value&&(bi(s),Dy(l));return}if(s.key==="ArrowRight"){if(u.children.length>0&&a.expandedState[c]===!1)return;const d=(s.target.querySelector(".mantine-Tree-label")??l).getBoundingClientRect().y,h=kee(l,"views");let p=h.length>1?h.find((g,y,x)=>wee(g)>d||y===x.length-1):null;p??=hp(h),p&&(bi(s),p.focus());return}if(s.key===" "||s.key==="Enter"){bi(s),o(u.element);return}}});return b.jsx(Bp,{"data-likec4-search-elements":!0,allowRangeSelection:!1,clearSelectionOnOutsideClick:!0,selectOnClick:!1,tree:a,data:n,levelOffset:"lg",classNames:{root:FGe,node:Je(Wk,BGe),label:HGe,subtree:UGe},onKeyDownCapture:i,renderNode:tKe})}function tKe({node:e,elementProps:r,hasChildren:n,expanded:o}){const{element:a,searchTerms:i}=e,s=h6e({element:{id:a.id,title:a.title,shape:a.shape,icon:a.icon},className:Je(vm.icon,WGe)}),l=[...a.views()],c=Eee(),u=`@tree.${e.value}`;return b.jsxs(Qr,{layoutId:u,...r,children:[b.jsx(or,{variant:"transparent",size:16,tabIndex:-1,className:Je(VGe),style:{visibility:n?"visible":"hidden"},children:b.jsx(hh,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${o?"90deg":"0"})`,width:"100%"}})}),b.jsxs(Pr,{component:ps,layout:!0,tabIndex:-1,"data-value":a.id,className:Je(vm.root,"group","likec4-element-button"),...l.length>0&&{onClick:d=>{(!n||o)&&(d.stopPropagation(),c(a))}},children:[s,b.jsxs(Se,{style:{flexGrow:1},children:[b.jsxs(Ur,{gap:"xs",wrap:"nowrap",align:"center",className:qGe,children:[b.jsx(Kl,{component:"div",highlight:i,className:vm.title,children:e.label}),b.jsx(po,{label:a.id,withinPortal:!1,fz:"xs",disabled:!a.id.includes("."),children:b.jsx(Kl,{component:"div",highlight:i,className:Je(YGe,vm.descriptionColor),children:g0(a.id)})})]}),b.jsx(Kl,{component:"div",highlight:i,className:vm.description,lineClamp:1,children:a.summary.text||"No description"})]}),b.jsx(wt,{component:"div",className:Je(XGe,vm.descriptionColor),fz:"xs",children:l.length===0?"No views":b.jsxs(b.Fragment,{children:[l.length," view",l.length>1?"s":""]})})]})]})}function Eee(){const e=Wt(),r=Su();return it(n=>{const o=[...n.views()];if(o.length===0)return;const a=zw(o);if(a){r.send({type:"close"}),a.id!==e.currentView.id&&setTimeout(()=>{e.navigateTo(a.id)},100);return}r.send({type:"pickview.open",elementFqn:n.id})})}const rKe=ye({border:"transparent",background:{base:"transparent",_focusWithin:{base:"mantine.colors.gray[4]/55 !important",_dark:"mantine.colors.dark[5]/55 !important"},_groupHover:{base:"mantine.colors.gray[3]/35",_dark:"mantine.colors.dark[5]/35"}}}),nKe=ye({position:"absolute",inset:"0",width:"100%",height:"100%",backgroundColor:"[rgb(34 34 34 / 0.7)]",zIndex:902,backdropFilter:"auto",backdropBlur:"10px",_light:{backgroundColor:"[rgb(255 255 255 / 0.6)]"}}),oKe=ye({position:"absolute",top:"[2rem]",left:"[50%]",width:"100%",maxWidth:"600px",minWidth:"200px",transform:"translateX(-50%)",zIndex:903}),See=ye({marginTop:"2","& + &":{marginTop:"[32px]"}});ye({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}});function aKe({elementFqn:e}){const r=Su(),n=Ho().element(e),o=[],a=[];for(const s of n.views())s.viewOf===n?o.push(s):a.push(s);const i=()=>{r.send({type:"pickview.close"})};return xp("keydown",s=>{try{s.key==="Escape"&&(s.stopPropagation(),s.preventDefault(),i())}catch(l){console.warn(l)}},{capture:!0}),b.jsxs(b.Fragment,{children:[b.jsx(Qr,{className:nKe,onClick:s=>{s.stopPropagation(),i()}},"pickview-backdrop"),b.jsx(C3,{children:b.jsxs(Qr,{initial:{opacity:0,scale:.95,originY:0,translateX:"-50%",translateY:-20},animate:{opacity:1,scale:1,translateY:0},exit:{opacity:0,scale:.98,translateY:-20,transition:{duration:.1}},className:oKe,"data-likec4-search-views":!0,children:[b.jsxs(Ur,{px:"sm",py:"md",justify:"space-between",children:[b.jsx(eh,{order:2,lh:1,children:"Select view"}),b.jsx(or,{size:"md",variant:"default",onClick:s=>{s.stopPropagation(),i()},children:b.jsx(Hp,{})})]}),b.jsxs(ta,{mah:"calc(100vh - 110px)",type:"never",children:[o.length>0&&b.jsxs(ra,{gap:"sm",px:"sm",className:See,children:[b.jsx(eh,{order:6,c:"dimmed",children:"scoped views of the element"}),o.map((s,l)=>b.jsx(ZA,{view:s,search:"",loop:!0,mod:{autofocus:l===0}},s.id))]}),a.length>0&&b.jsxs(ra,{gap:"sm",px:"sm",className:See,children:[b.jsx(eh,{order:6,c:"dimmed",children:"views including this element"}),a.map((s,l)=>b.jsx(ZA,{view:s,search:"",loop:!0,mod:{autofocus:l===0&&o.length===0}},s.id))]})]})]},"pickview")})]})}function iKe(){const e=E.useRef(null);let r=Ho().tagsSortedByUsage,n=PGe(),o=XA(),a=r.length;if(o.startsWith("#")){const s=o.slice(1);r=r.filter(({tag:l})=>l.toLocaleLowerCase().includes(s))}if(r.length===0)return null;const i=r.length!==a;return b.jsxs(xn,{ref:e,css:{gap:"md",paddingLeft:"[48px]",flexWrap:"nowrap"},children:[b.jsx(xn,{css:{gap:"1.5",flexWrap:"wrap",opacity:i?1:.3,grayscale:i?0:.9,filter:"auto",transition:"fast",_groupHover:{opacity:1,grayscale:0},_groupFocusWithin:{opacity:1,grayscale:0}},children:r.map(({tag:s})=>b.jsx(Ck,{tag:s,className:ye({userSelect:"none",cursor:"pointer"}),onClick:l=>{l.stopPropagation(),n(`#${s}`),setTimeout(()=>{Gk(e.current)},350)}},s))}),i&&b.jsx(Zn,{size:"compact-xs",variant:"light",onClick:s=>{s.stopPropagation(),n(""),Dy(e.current)},rightSection:b.jsx(Hp,{size:14}),children:"Clear"})]})}/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const sKe=[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],QA=yt("outline","search","Search",sKe);function Cee(e){return e.match(/^(k|ki|kin|kind|kind:)$/)!=null}const lKe=["#","kind:"],cKe=E.memo(()=>{const e=Su(),r=Ho(),n=E.useRef(null),{ref:o,focused:a}=$Pe(),[i,s]=RGe(),l=tW({scrollBehavior:"smooth",loop:!1});xp("keydown",d=>{try{!a&&(d.key==="Backspace"||d.key.startsWith("Arrow")||d.key.match(new RegExp("^\\p{L}$","u")))&&Dy(n.current)}catch(h){console.warn(h)}});let c=[],u=!1;switch(!0){case i.startsWith("#"):{const d=i.toLocaleLowerCase().slice(1),h=r.tags.filter(p=>p.toLocaleLowerCase().includes(d));h.length===0?(u=!1,c=[b.jsx(I1,{children:"No tags found"},"empty-tags")]):(u=r.tags.some(p=>p.toLocaleLowerCase()===d),c=h.map(p=>b.jsxs(z1,{value:`#${p}`,children:[b.jsx(wt,{component:"span",opacity:.5,mr:1,fz:"sm",children:"#"}),p]},p)));break}case i.startsWith("kind:"):case Cee(i):{const d=i.length>5?i.slice(5).toLocaleLowerCase():"";let h=q6(r.specification.elements);d&&(h=h.filter(p=>p.toLocaleLowerCase().includes(d))),h.length===0?(u=!1,c=[b.jsx(I1,{children:"No kinds found"},"empty-kinds")]):(u=h.some(p=>p.toLocaleLowerCase()===d),c=h.map(p=>b.jsxs(z1,{value:`kind:${p}`,children:[b.jsx(wt,{component:"span",opacity:.5,mr:1,fz:"sm",children:"kind:"}),p]},p)));break}}return b.jsxs(Kn,{onOptionSubmit:d=>{s(d),l.resetSelectedOption(),lKe.includes(d)||(l.closeDropdown(),setTimeout(()=>{Gk(n.current)},350))},width:"max-content",position:"bottom-start",shadow:"md",offset:{mainAxis:4,crossAxis:50},store:l,withinPortal:!1,children:[b.jsx(cT,{children:b.jsx(Ra,{ref:Rr(n,o),placeholder:"Search by title, description or start with # or kind:",autoFocus:!0,"data-autofocus":!0,"data-likec4-search-input":!0,tabIndex:0,classNames:{input:rKe},size:"lg",value:i,leftSection:b.jsx(QA,{style:{width:Ne(20)},stroke:2}),rightSection:b.jsx(Ra.ClearButton,{onClick:d=>{d.stopPropagation();const h=e.getSnapshot().context.openedWithSearch;i===""||i===h?e.send({type:"close"}):s("")}}),rightSectionPointerEvents:"auto",onChange:d=>{s(d.currentTarget.value),l.openDropdown(),l.updateSelectedOptionIndex()},onClick:()=>l.openDropdown(),onFocus:()=>l.openDropdown(),onBlur:()=>l.closeDropdown(),onKeyDownCapture:d=>{if(d.key==="Tab"){switch(!0){case l.getSelectedOptionIndex()>=0:return l.clickSelectedOption(),bi(d);case c.length===1:return l.selectFirstOption()&&l.clickSelectedOption(),bi(d);case Cee(i):return s("kind:"),bi(d)}return}if(d.key==="Backspace"&&l.dropdownOpened){if(i==="kind:")return s(""),l.resetSelectedOption(),bi(d);if(i.startsWith("kind:")&&u)return s("kind:"),l.resetSelectedOption(),bi(d);if(i.startsWith("#")&&u)return s("#"),l.resetSelectedOption(),bi(d)}if(d.key==="Escape"&&l.dropdownOpened&&c.length>0){bi(d),l.closeDropdown();return}if(d.key==="ArrowUp"&&l.dropdownOpened&&i===""&&l.getSelectedOptionIndex()===0){l.closeDropdown(),bi(d);return}if(d.key==="ArrowDown"&&(!l.dropdownOpened||c.length===0||u||i===""&&l.getSelectedOptionIndex()===c.length-1)){l.closeDropdown(),bi(d),Gk(n.current);return}}})}),b.jsx(O3,{hidden:c.length===0,style:{minWidth:300},children:b.jsx(D3,{children:b.jsx(ta,{mah:"min(322px, calc(100cqh - 50px))",type:"scroll",children:c})})})]})}),uKe=ye({backgroundColor:"[rgb(34 34 34 / var(--_opacity, 95%))]",_light:{backgroundColor:"[rgb(250 250 250 / var(--_opacity, 95%))]"},backdropFilter:"auto",backdropBlur:"var(--_blur, 10px)"}),dKe=ye({width:"100%",height:"100%",maxHeight:"100vh",overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:"stretch",gap:"sm",paddingTop:"[20px]",paddingLeft:"md",paddingRight:"md",paddingBottom:"sm",background:"[transparent]"}),hKe=e=>!e.matches("inactive");function fKe({searchActorRef:e}){const r=wn(e,hKe),n=()=>{e.send({type:"open"})},o=it(()=>{e.send({type:"close"})});return APe([["mod+k",n,{preventDefault:!0}],["mod+f",n,{preventDefault:!0}]]),b.jsx(AGe,{value:e,children:b.jsx(fh.Overlays,{children:b.jsx(jT,{FallbackComponent:BT,onReset:o,children:b.jsx(Pa,{children:r&&b.jsx(Oy,{fullscreen:!0,withBackdrop:!1,backdrop:{opacity:.9},classes:{dialog:uKe,body:dKe},openDelay:0,onClose:o,"data-likec4-search":"true",children:b.jsx(pKe,{searchActorRef:e})})})})})})}const Tee=ye({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}}),pKe=({searchActorRef:e})=>{const r=E.useRef(null),n=OGe();return Wx(()=>{Sa(e.getSnapshot().context.openedWithSearch)&&Gk(r.current)},150),b.jsxs(Vr,{ref:r,display:"contents",children:[b.jsx(Ur,{className:"group",wrap:"nowrap",onClick:o=>{o.stopPropagation(),Dy(r.current)},children:b.jsxs(Fp,{flex:1,px:"sm",children:[b.jsx(cKe,{}),b.jsx(iKe,{})]})}),b.jsxs(B1,{children:[b.jsx(Zd,{span:6,children:b.jsx(eh,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Elements"})}),b.jsx(Zd,{span:6,children:b.jsx(eh,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Views"})})]}),b.jsxs(B1,{className:ye({containerName:"likec4-search-elements",containerType:"size",overflow:"hidden",flexGrow:1}),children:[b.jsx(Zd,{span:6,children:b.jsx(os,{type:"scroll",className:Tee,pr:"xs",scrollbars:"y",children:b.jsx(Pa,{children:b.jsx(dm,{id:"likec4-search-elements",children:b.jsx(QGe,{})})})})}),b.jsx(Zd,{span:6,children:b.jsx(os,{type:"scroll",className:Tee,pr:"xs",scrollbars:"y",children:b.jsx(Pa,{children:b.jsx(dm,{id:"likec4-search-views",children:b.jsx(ZGe,{})})})})})]}),n&&b.jsx(aKe,{elementFqn:n})]})};function mKe({children:e}){const r=E.useContext(MT);if(!r)throw new Error("PortalToContainer must be used within RootContainer");return b.jsx(D1,{target:r.ref.current??`#${r.id}`,children:e})}const Aee={onChange:null,onNavigateTo:null,onNodeClick:null,onNodeContextMenu:null,onCanvasContextMenu:null,onEdgeClick:null,onEdgeContextMenu:null,onCanvasClick:null,onCanvasDblClick:null,onBurgerMenuClick:null,onOpenSource:null,onInitialized:null},JA=q6(Aee),Nee=E.createContext({...E1(JA,e=>[e,null]),handlersRef:{current:Aee}});function gKe({handlers:e,children:r}){const n=Kf(e),o=JA.map(i=>_1(e[i])),a=E.useMemo(()=>({...E1(JA,i=>n.current[i]?[i,(...s)=>n.current[i]?.(...s)]:[i,null]),handlersRef:n}),[n,...o]);return b.jsx(Nee.Provider,{value:a,children:r})}function sc(){return E.useContext(Nee)}const yKe=ec({delays:{"open timeout":({context:e})=>e.openTimeout,"close timeout":600,"long idle":1500},actions:{"update edgeId":et(({context:e,event:r})=>(Ut(r,["xyedge.select","xyedge.mouseEnter"]),{edgeId:r.edgeId,edgeSelected:e.edgeSelected||r.type==="xyedge.select"})),"increase open timeout":et(()=>({openTimeout:800})),"decrease open timeout":et(()=>({openTimeout:300})),"reset edgeId":et({edgeId:null,edgeSelected:!1})},guards:{"edge was selected":({context:e})=>e.edgeSelected,"edge was hovered":({context:e})=>!e.edgeSelected}}).createMachine({id:"breadcrumbs",context:()=>({edgeId:null,edgeSelected:!1,openTimeout:800}),initial:"idle",on:{close:{target:"#idle",actions:["reset edgeId","increase open timeout"]}},states:{idle:{id:"idle",on:{"xyedge.mouseEnter":{target:"opening",actions:"update edgeId"},"xyedge.select":{target:"active",actions:"update edgeId"}},after:{"long idle":{actions:"increase open timeout"}}},opening:{on:{"xyedge.mouseLeave":{target:"idle"},"xyedge.select":{target:"active",actions:"update edgeId"}},after:{"open timeout":{actions:"decrease open timeout",target:"active"}}},active:{tags:["opened"],initial:"opened",exit:"reset edgeId",on:{"xyedge.unselect":{target:"idle",actions:"increase open timeout"},"xyedge.select":{actions:"update edgeId"}},states:{opened:{on:{"dropdown.mouseEnter":{target:"hovered"},"xyedge.mouseLeave":{guard:"edge was hovered",target:"closing"}}},hovered:{on:{"dropdown.mouseLeave":[{guard:"edge was selected",target:"opened"},{target:"closing"}]}},closing:{on:{"xyedge.mouseEnter":{guard:"edge was hovered",target:"opened",actions:"update edgeId"},"xyedge.select":{target:"opened",actions:"update edgeId"},"dropdown.mouseEnter":{target:"hovered"}},after:{"close timeout":{target:"#idle"}}}}}}}),bKe=yKe,Ree=ye({display:"block",fontSize:"xxs",fontWeight:500,whiteSpace:"nowrap",paddingX:"1",paddingY:"0.5",borderRadius:"[2px]",background:{_light:"var(--likec4-palette-fill)/90",_dark:"var(--likec4-palette-fill)/60"},lineHeight:"1",color:{_light:"var(--likec4-palette-hiContrast)",_dark:"var(--likec4-palette-loContrast)"}}),vKe=ye({whiteSpaceCollapse:"preserve-breaks",fontSize:"sm",lineHeight:"sm",userSelect:"all"});function xKe(e){let r=null;for(const n of e.xyedges)if(n.selected){if(r){r=null;break}r=n.data.id}return{viewId:e.view.id,selected:r}}const wKe=E.memo(()=>{const e=Ho(),r=n8(bKe),n=Wt(),{viewId:o,selected:a}=$a(xKe),i=wn(r,g=>g.hasTag("opened")?g.context.edgeId:null);is("navigateTo",()=>{r.send({type:"close"})}),is("edgeMouseEnter",({edge:g})=>{r.send({type:"xyedge.mouseEnter",edgeId:g.data.id})}),is("edgeMouseLeave",()=>{r.send({type:"xyedge.mouseLeave"})}),is("edgeEditingStarted",()=>{r.send({type:"close"})}),is("walkthroughStarted",()=>{r.send({type:"close"})}),E.useEffect(()=>{a?r.send({type:"xyedge.select",edgeId:a}):r.send({type:"xyedge.unselect"})},[a]);const s=E.useCallback(g=>{if(!i)return;r.send({type:"dropdown.mouseEnter"});const y=n.findEdge(i);y&&!y.data.hovered&&n.send({type:"xyflow.edgeMouseEnter",edge:y,event:g})},[r,n,i]),l=E.useCallback(g=>{if(!i)return;r.send({type:"dropdown.mouseLeave"});const y=n.findEdge(i);y?.data.hovered&&n.send({type:"xyflow.edgeMouseLeave",edge:y,event:g})},[r,n,i]),{diagramEdge:c,sourceNode:u,targetNode:d}=$a(g=>{const y=i?o8(g,i):null,x=y?Qp(g,y.source):null,w=y?Qp(g,y.target):null;return{diagramEdge:y,sourceNode:x,targetNode:w}},Xn,[i]);if(!c||!u||!d||iu(c.relations))return null;const[h,p]=yn(c.relations,Ao(g=>{try{return e.relationship(g)}catch(y){return console.error(`View is cached and likec4model missing relationship ${g} from ${u.id} -> ${d.id}`,y),null}}),dp(Sa),sV(g=>g.source.id===u.id&&g.target.id===d.id));return h.length===0&&p.length===0?(console.warn("No relationships found diagram edge",{diagramEdge:c,sourceNode:u,targetNode:d}),null):b.jsx(mKe,{children:b.jsx(_Ke,{viewId:o,direct:h,nested:p,diagramEdge:c,sourceNode:u,targetNode:d,onMouseEnter:s,onMouseLeave:l})})}),kKe=(e,r)=>r?.querySelector(`.likec4-edge-label[data-edge-id="${e}"]`)??null,e7=8,_Ke=({viewId:e,diagramEdge:r,direct:n,nested:o,sourceNode:a,targetNode:i,onMouseEnter:s,onMouseLeave:l})=>{const c=E.useRef(null),{enableNavigateTo:u,enableVscode:d}=wr(),{onOpenSource:h}=sc(),p=wze(),[g,y]=E.useState(null);E.useLayoutEffect(()=>{y(kKe(r.id,p.current))},[r]),E.useEffect(()=>{const k=g,C=c.current;if(!k||!C)return;let _=!1;const T=m3(k,C,()=>{Vq(k,C,{placement:"bottom-start",middleware:[Bq(4),sDe({crossAxis:!0,padding:e7,allowedPlacements:["bottom-start","top-start","right-start","right-end","left-end"]}),Fq({padding:e7,apply({availableHeight:A,availableWidth:N,elements:$}){_||Object.assign($.floating.style,{maxWidth:`${Ki(yi(N),{min:200,max:400})}px`,maxHeight:`${Ki(yi(A),{min:0,max:500})}px`})}}),Hq({padding:e7*2})]}).then(({x:A,y:N,middlewareData:$})=>{_||(C.style.transform=`translate(${yi(A)}px, ${yi(N)}px)`,C.style.visibility=$.hide?.referenceHidden?"hidden":"visible")})},{ancestorResize:!1,animationFrame:!0});return()=>{_=!0,T()}},[g]);const x=Wt(),w=E.useCallback((k,C)=>b.jsxs(E.Fragment,{children:[C>0&&b.jsx(Lp,{}),b.jsx(EKe,{viewId:e,relationship:k,sourceNode:a,targetNode:i,onNavigateTo:u?_=>{x.navigateTo(_)}:void 0,...h&&d&&{onOpenSource:()=>h({relation:k.id})}})]},k.id),[e,a,i,x,u,h,d]);return b.jsx(ta,{ref:c,onMouseEnter:s,onMouseLeave:l,type:"auto",scrollbars:"y",scrollbarSize:6,styles:{viewport:{overscrollBehavior:"contain",minWidth:180}},className:Je(ye({layerStyle:"likec4.dropdown",p:"0",pointerEvents:{base:"all",_whenPanning:"none"},position:"absolute",top:"0",left:"0",width:"max-content",cursor:"default"})),children:b.jsxs(Fp,{css:{gap:"3",padding:"4",paddingTop:"2"},children:[b.jsx(Zn,{variant:"default",color:"gray",size:"compact-xs",style:{alignSelf:"flex-start",fontWeight:500,"--button-fz":"var(--font-sizes-xxs)"},onClick:k=>{k.stopPropagation(),x.openRelationshipDetails(r.id)},children:"browse relationships"}),n.length>0&&b.jsxs(b.Fragment,{children:[b.jsx(xm,{children:"DIRECT RELATIONSHIPS"}),n.map(w)]}),o.length>0&&b.jsxs(b.Fragment,{children:[b.jsx(xm,{css:{mt:n.length>0?"2":"0"},children:"RESOLVED FROM NESTED"}),o.map(w)]})]})})},EKe=E.forwardRef(({viewId:e,relationship:r,sourceNode:n,targetNode:o,onNavigateTo:a,onOpenSource:i},s)=>{const l=$ee(r,"source",n),c=$ee(r,"target",o),u=a&&r.navigateTo?.id!==e?r.navigateTo?.id:void 0,d=r.links;return b.jsxs(Fp,{ref:s,className:sX({block:"2",inline:"2",paddingY:"2.5",paddingX:"2",gap:"1",rounded:"sm",backgroundColor:{_hover:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]/70"}}}),children:[b.jsx(xn,{gap:"0.5",children:b.jsxs(Qd,{openDelay:200,children:[b.jsx(Zk,{label:l.full,offset:2,position:"top-start",children:b.jsx(wt,{component:"div","data-likec4-color":n.color,className:Ree,children:l.short})}),b.jsx(ym,{stroke:2.5,size:"11px",opacity:.65}),b.jsx(Zk,{label:c.full,offset:2,position:"top-start",children:b.jsx(wt,{component:"div","data-likec4-color":o.color,className:Ree,children:c.short})}),u&&b.jsx(Zk,{label:"Open dynamic view",children:b.jsx(or,{size:"sm",radius:"sm",variant:"default",onClick:h=>{h.stopPropagation(),a?.(u)},style:{alignSelf:"flex-end"},role:"button",children:b.jsx(gi,{size:"80%",stroke:2})})}),i&&b.jsx(Zk,{label:"Open source",children:b.jsx(or,{size:"sm",radius:"sm",variant:"default",onClick:h=>{h.stopPropagation(),i()},role:"button",children:b.jsx(pm,{size:"80%",stroke:2})})})]})}),b.jsx(Vr,{className:vKe,children:r.title||"untitled"}),r.kind&&b.jsxs(xn,{gap:"2",children:[b.jsx(xm,{children:"kind"}),b.jsx(wt,{size:"xs",className:ye({userSelect:"all"}),children:r.kind})]}),r.technology&&b.jsxs(xn,{gap:"2",children:[b.jsx(xm,{children:"technology"}),b.jsx(wt,{size:"xs",className:ye({userSelect:"all"}),children:r.technology})]}),r.description.nonEmpty&&b.jsxs(b.Fragment,{children:[b.jsx(xm,{children:"description"}),b.jsx(Vr,{css:{paddingLeft:"2.5",py:"1.5",borderLeft:"2px dotted",borderLeftColor:{base:"mantine.colors.gray[3]",_dark:"mantine.colors.dark[4]"}},children:b.jsx(mh,{value:r.description,fontSize:"sm"})})]}),d.length>0&&b.jsxs(b.Fragment,{children:[b.jsx(xm,{children:"links"}),b.jsx(xn,{gap:"1",flexWrap:"wrap",children:d.map(h=>b.jsx(j9,{size:"sm",value:h},h.url))})]})]})}),xm=Ql("div",{base:{display:"block",fontSize:"xxs",fontWeight:500,userSelect:"none",lineHeight:"sm",color:"mantine.colors.dimmed"}}),Zk=po.withProps({color:"dark",fz:"xs",label:"",children:null,offset:8,withinPortal:!1});function $ee(e,r,n){const o=e.isDeploymentRelation()?n.id:n.modelRef||"",a=e[r].id,i=g0(o)+a.slice(o.length);return{full:a,short:i}}function wm(){const e=kze();return E.useMemo(()=>e?{portalProps:{target:e},withinPortal:!0}:{withinPortal:!1},[e])}const SKe=ec({delays:{"open timeout":500,"close timeout":350},actions:{"update activatedBy":et({activatedBy:({context:e,event:r})=>{switch(!0){case r.type.includes("click"):return"click";case r.type.includes("mouseEnter"):return"hover";default:return e.activatedBy}}}),"keep dropdown open":et({activatedBy:"click"}),"update selected folder":et(({event:e})=>e.type==="breadcrumbs.click.root"?{selectedFolder:""}:(Ut(e,["breadcrumbs.click.folder","select.folder"]),{selectedFolder:e.folderPath})),"reset selected folder":et({selectedFolder:({context:e})=>e.viewModel.folder.path}),"update inputs":et(({context:e,event:r})=>{Ut(r,"update.inputs");const n=r.inputs.viewModel.id!==e.viewModel.id;let o=e.selectedFolder;return r.inputs.viewModel.folder.path.startsWith(o)||(o=r.inputs.viewModel.folder.path),{viewModel:r.inputs.viewModel,selectedFolder:o,activatedBy:n?"hover":e.activatedBy}}),"reset search query":et({searchQuery:""}),"update search query":et(({event:e})=>(Ut(e,"searchQuery.change"),{searchQuery:e.value??""})),"emit navigateTo":ui(({event:e})=>(Ut(e,"select.view"),{type:"navigateTo",viewId:e.viewId}))},guards:{"was opened on hover":({context:e})=>e.activatedBy==="hover","has search query":({context:e})=>!iu(e.searchQuery),"search query is empty":({context:e})=>iu(e.searchQuery)}}).createMachine({id:"breadcrumbs",context:({input:e})=>({...e,breadcrumbs:[],activatedBy:"hover",selectedFolder:"",searchQuery:"",folderColumns:[]}),initial:"idle",entry:["update activatedBy","reset selected folder"],on:{"update.inputs":{actions:"update inputs"},"searchQuery.change":{actions:["update search query",sn({type:"searchQuery.changed"})]}},states:{idle:{id:"idle",on:{"breadcrumbs.mouseEnter.*":{target:"pending",actions:"update activatedBy"},"breadcrumbs.click.*":{target:"active",actions:"update activatedBy"}}},pending:{on:{"breadcrumbs.mouseEnter.*":{actions:"update activatedBy"},"breadcrumbs.mouseLeave.*":{target:"idle"},"breadcrumbs.click.*":{target:"active",actions:"update activatedBy"}},after:{"open timeout":{target:"active"}}},active:{tags:["active"],initial:"decide",on:{"dropdown.dismiss":{target:"#idle"},"breadcrumbs.mouseLeave":{guard:"was opened on hover",target:".closing"},"dropdown.mouseLeave":{guard:"was opened on hover",target:".closing"},"searchQuery.changed":{target:".decide"}},states:{decide:{always:[{guard:"has search query",target:"search"},{target:"opened"}]},opened:{on:{"searchQuery.changed":{guard:"has search query",actions:"keep dropdown open",target:"search"},"breadcrumbs.click.viewtitle":{actions:"reset selected folder"},"breadcrumbs.click.*":{actions:"update selected folder"},"select.folder":{actions:["keep dropdown open","update selected folder"]},"select.view":{actions:["emit navigateTo"]}}},search:{on:{"breadcrumbs.click.viewtitle":{actions:["reset search query","reset selected folder"],target:"opened"},"breadcrumbs.click.*":{actions:["reset search query","update selected folder"],target:"opened"},"select.view":{actions:["emit navigateTo"]}}},closing:{on:{"breadcrumbs.mouseEnter.*":{target:"decide"},"dropdown.mouseEnter":{target:"decide"}},after:{"close timeout":{target:"#idle"}}}}}}}),CKe=SKe,t7=E.createContext(null);t7.displayName="NavigationPanelActorSafeContext";const TKe=t7.Provider,r7=()=>{const e=E.useContext(t7);if(e===null)throw new Error("NavigationPanelActorRef is not found in the context");return e};function Pee(e,r=Xn){const n=r7();return wn(n,e,r)}function AKe(e,r=Xn){return Pee(n=>e(n.context),r)}function Ly(){const e=r7();return E.useMemo(()=>({actorRef:e,send:r=>e.send(r),selectFolder:r=>e.send({type:"select.folder",folderPath:r}),selectView:r=>e.send({type:"select.view",viewId:r}),isOpened:()=>e.getSnapshot().hasTag("active"),clearSearch:()=>e.send({type:"searchQuery.change",value:""}),closeDropdown:()=>e.send({type:"dropdown.dismiss"})}),[e])}const Mee=po.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1}),Oee=()=>b.jsx(ci,{variant:"transparent",size:16,className:ye({display:{base:"none","@/md":"flex"},color:{base:"mantine.colors.gray[5]",_dark:"mantine.colors.dark[3]"}}),children:b.jsx(hh,{})});L3.withProps({separator:b.jsx(Oee,{}),separatorMargin:4});const gh=E.forwardRef(({variant:e="default",className:r,disabled:n=!1,...o},a)=>b.jsx(or,{size:"md",variant:"transparent",radius:"sm",component:ps,...!n&&{whileHover:{scale:1.085},whileTap:{scale:1,translateY:1}},disabled:n,...o,className:Je(r,Aqe({variant:e})),ref:a})),Qk=J0({base:{fontSize:"sm",fontWeight:"500",transition:"fast",color:{base:"mantine.colors.text/90",_hover:"[var(--mantine-color-bright)]"}},variants:{truncate:{true:{truncate:!0}},dimmed:{true:{color:{base:"mantine.colors.dimmed",_hover:"mantine.colors.text"}}}}}),NKe=E.forwardRef((e,r)=>b.jsxs("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 222 56",...e,children:[b.jsx("path",{fill:"#5E98AF",d:"M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"}),b.jsx("path",{className:ye({fill:"[#FCFBF7]",_light:{fill:"[#222221]"}}),d:"M71.61 12.08c-.06 3.61.3 29.95.23 31.87 0 1.8 0 3.6.06 5.41 0 .3.18.58.47.58 4.1.18 8.13-.17 12.22-.11 1.34.05 2.69 0 3.97 0 1.29-.06 1.4-.59 1.35-1.63-.06-1.63-.06-3.08-.06-4.65-.06-.82-.53-1.11-1.23-1.11-2.4.06-4.8-.06-7.19.06-.4.06-.82.06-1.23.06-.7-.06-.87-.24-.93-1v-.86c-.18-4.83.17-9.83.17-14.66-.06-4.07 0-7.73-.06-11.34 0-1.57 0-3.14-.05-4.65-.06-.93 0-1.92-.24-2.85-.11-.35-.29-.81-.7-.81h-5.5c-.93 0-1.22.64-1.28 1.57v4.12ZM103.81 35c-.17-6.63-.1-13.67-.05-20.24 0-2.04-.12-4.25-.12-6.28 0-2.21-.87-2.1-2.04-2.15-1.7-.06-2.46-.06-4.15-.06-1.11-.06-1.58.23-1.58 1.34 0 5.7-.18 21.8-.12 24.13.06 2.33.3 12.91.18 15.24-.06.81 0 1.62.06 2.44.05.29.23.58.7.58 1.93-.12 3.74-.12 5.67-.17.7-.06 1.28-.24 1.58-1 .05-.4-.12-11.04-.12-13.83Zm13.92 4.47c0-2.03-.3-7.56-.23-8.72 0-.17.11-.4.17-.4.12 0 .35.11.41.17 1.87 2.44 10.64 19.36 11.7 19.42.28.06.58.06.87.06 1.99-.12 3.74 0 5.73 0 2.04 0 .7-1.98.35-2.5-.53-.76-7.48-13.14-7.9-13.9-1.16-1.98-2.16-4.13-3.32-6.05-.12-.23-.24-.58-.18-.81.12-.7.3-1.34.59-1.98a93.18 93.18 0 0 1 4.55-8.14c1.88-2.97 2.93-4.83 4.45-7.5.35-.64.58-1.34.82-2.1.05-.29-.18-.58-.53-.58-1.11-.05-5.15 0-6.43 0-.59 0-1.17.12-1.46.64-.76 1.46-8.6 15.7-9.35 16.98-.06.12-.24.18-.41.18 0 0-.12-.18-.12-.3-.06-3.25.53-13.9.4-16.04-.05-1.28-.28-1.4-1.57-1.46-1.4-.05-3.33-.05-4.73-.05-1.3 0-1.4.7-1.58 1.62-.06.18-.06 5.64-.06 8.09 0 3.54-.3 25.76.11 32.8 0 .7.18 1.1.77 1.1 1.57-.12 3.91 0 5.49 0 1.11 0 1.29-.12 1.29-1.98 0-2.5.23-4.77.23-7.85 0-.23-.06-.46-.06-.7Zm25.66-1.4h-.06c0 1.46-.05 2.97 0 4.49.06 1.86.18 3.72.3 5.58 0 .64.17.81.76.93 1.22.29 2.4.35 3.62.35 3.16-.12 6.31.11 9.47 0 1.29-.06 1.87.06 3.16-.18 1.17-.23 1.58-.87 1.58-2.61-.12-1.1-.06-1.57-.06-2.91 0-1.92-1.35-2.56-2.52-2.5-.81.06-4.73-.06-6.31-.06-2.63.06-2.22.4-2.22-2.33 0-2.2.06-5.05.06-7.32 0-1.22.11-1.63 1.28-1.63h7.31c1.17.17 1.99-.64 1.99-1.86 0-1.22.12-1.28.12-2.5l-.18-1.75c-.12-.99-.47-1.33-1.46-1.33-.64 0-1.29.05-1.93.11-2.52.18-3.68-.17-6.14 0-.82 0-.93-.11-1-.87-.23-2.27 0-4.77.24-7.04.06-.93.3-1.1 1.17-1.16l8.24-.06c1.11-.11 1.46-.06 1.4-1.16-.11-1.69.06-3.43-.11-5.12-.12-.93-.41-1.1-1.46-1.1-1.76.05-2.17.05-3.92.17-1.75.06-8.77.06-10.46.06-2.46 0-2.63-.18-2.7 2.8-.1 2.32-.05 4.7-.05 7.09 0 4.07-.23 18.66-.12 21.92Zm47.76-24.82c.06-1.92 0-3.5 0-5.35 0-2.15-3.92-1.92-5.32-1.86a18.95 18.95 0 0 0-15.08 9.77c-.82 1.57-1.4 3.2-1.81 4.88a34 34 0 0 0-.59 12.15c.41 3.78 1.4 7.56 3.74 10.59 4.04 5.3 11.46 7.15 17.83 6.16.3-.06.59-.11.82-.29.18-.11.35-.35.35-.58l.18-3.31c.06-1.05 0-1 0-2.04 0-1.4-2.93-.35-4.74-.35-1.75 0-3.62-.06-5.2-.87-2.8-1.57-4.38-4.71-5.26-7.68-1-3.2-1.23-6.63-.64-9.88.7-4.25 2.74-9.13 7.25-10.59 2.57-.87 5.31-.58 7.89-.29.35.06.58-.17.58-.46Zm26.77 15.3c.06-2.5 0-14.84 0-18.38.06-.82 0-1.63-.11-2.45-.06-.99-.24-1.28-1.29-1.33h-4.44c-.82 0-1.35.4-1.82 1.27-1.34 3.2-10.75 24.02-12.15 26.58-.53.99-1 1.63-1 2.68v4.24c0 .76-.06 1.28 1.23 1.28l11.1-.06c1.47 0 1.47.3 1.47 1.1 0 .88-.12 4.9-.12 5.3 0 .58.12 1.16 1.23 1.16h5.08c1.23 0 1.23-.7 1.23-2.03.06-1.17-.06-3.5-.06-4.66 0-.93.18-.98 1.76-.98 1.22 0 1.75-.12 1.75-.88.06-1.57 0-2.67 0-4.42 0-1.04-.93-.98-2.92-.98-.65 0-.7-.18-.7-1.05-.12-1.8-.24-4.6-.24-6.4Zm-7.25-5.94c-.05.7-.11 10.82-.11 12.27-.06.81-.24 1.05-1 1.1-1.93.06-3.85.06-5.78.06-.47 0-.65-.4-.41-.87.23-.4 4.85-11.57 6.13-14.48.18-.17.24-.35.41-.52.18-.12.41-.18.59-.23.06 0 .23.29.23.46 0 .76-.06 1.51-.06 2.21Z"})]})),RKe=E.forwardRef((e,r)=>b.jsx("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 56 56",...e,children:b.jsx("path",{fill:"#5E98AF",d:"M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"})})),$Ke=()=>{const e=Ly(),{onBurgerMenuClick:r}=sc();return b.jsx(Qr,{layout:"position",children:b.jsxs(Pr,{onMouseEnter:()=>{e.send({type:"breadcrumbs.mouseEnter.root"})},onMouseLeave:()=>{e.send({type:"breadcrumbs.mouseLeave.root"})},onClick:n=>{n.stopPropagation(),r&&e.isOpened()&&setTimeout(()=>{r()},100),e.send({type:"breadcrumbs.click.root"})},className:Je("mantine-active",Uo({padding:"0.5",width:{base:"[20px]","@/md":"[64px]"}})),children:[b.jsx(NKe,{className:ye({display:{base:"none","@/md":"block"}})}),b.jsx(RKe,{className:ye({display:{base:"block","@/md":"none"}})})]})})};/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const PKe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],MKe=yt("outline","arrow-left","ArrowLeft",PKe),OKe=()=>{const e=Wt(),{hasStepBack:r,hasStepForward:n}=$a(o=>({hasStepBack:o.navigationHistory.currentIndex>0,hasStepForward:o.navigationHistory.currentIndex{o.stopPropagation(),e.navigate("back")},children:b.jsx(MKe,{size:14})}),b.jsx(gh,{disabled:!n,onClick:o=>{o.stopPropagation(),e.navigate("forward")},children:b.jsx(ym,{size:14})})]})};/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const DKe=[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]],LKe=yt("outline","link","Link",DKe),IKe=({context:e})=>{const r=e.viewModel;return{id:r.id,title:r.titleOrUntitled,description:r.description,tags:r.tags,links:r.links}},zKe=e=>{const[r,n]=E.useState(!1),o=Pee(IKe),a=wm();return b.jsxs(mr,{position:"bottom-end",shadow:"xl",clickOutsideEvents:["pointerdown","mousedown","click"],offset:{mainAxis:4},opened:r,onChange:n,...a,...e,children:[b.jsx(jKe,{linksCount:o.links.length,onOpen:()=>n(!0)}),r&&b.jsx(BKe,{data:o,onClose:()=>n(!1)})]})},jKe=({linksCount:e,onOpen:r})=>b.jsx(mr.Target,{children:b.jsxs(Pr,{component:ps,layout:"position",whileTap:{scale:.95,translateY:1},onClick:n=>{n.stopPropagation(),r()},className:Je("group",Uo({gap:"2",paddingInline:"2",paddingBlock:"1",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action-icon.text",_hover:"likec4.panel.action-icon.text.hover"},backgroundColor:{_hover:"likec4.panel.action-icon.bg.hover"},display:{base:"none","@/xs":"flex"}}),""),children:[b.jsx(BA,{size:16,stroke:1.8}),e>0&&b.jsxs(xn,{gap:"[1px]",children:[b.jsx(LKe,{size:14,stroke:2}),b.jsx(Vr,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8},children:e})]})]})}),Dee=Ql("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}}),BKe=({data:{id:e,title:r,description:n,tags:o,links:a},onClose:i})=>{const s=Wt();return is("paneClick",i),is("nodeClick",i),b.jsxs(mr.Dropdown,{className:Je("nowheel nopan nodrag",X1({margin:"xs",layerStyle:"likec4.dropdown",gap:"md",padding:"md",paddingBottom:"lg",pointerEvents:"all",maxWidth:"calc(100cqw - 52px)",minWidth:"200px",maxHeight:"calc(100cqh - 100px)",width:"max-content",cursor:"default",overflow:"auto",overscrollBehavior:"contain","@/sm":{minWidth:400,maxWidth:550},"@/lg":{maxWidth:700}})),children:[b.jsxs("section",{children:[b.jsx(wt,{component:"div",fw:500,size:"xl",lh:"sm",children:r}),b.jsxs(xn,{alignItems:"flex-start",mt:"1",children:[b.jsx(FKe,{label:"id",value:e}),b.jsx(xn,{gap:"xs",flexWrap:"wrap",children:o.map(l=>b.jsx(Ck,{tag:l,cursor:"pointer",onClick:c=>{c.stopPropagation(),s.openSearch(`#${l}`)}},l))})]})]}),a.length>0&&b.jsxs("section",{className:Uo({alignItems:"baseline"}),children:[b.jsx(Dee,{children:"Links"}),b.jsx(xn,{gap:"xs",flexWrap:"wrap",children:a.map((l,c)=>b.jsx(j9,{value:l},`${c}-${l.url}`))})]}),n.isEmpty&&b.jsx(wt,{component:"div",fw:500,size:"xs",c:"dimmed",style:{userSelect:"none"},children:"No description"}),n.nonEmpty&&b.jsxs("section",{children:[b.jsx(Dee,{children:"Description"}),b.jsx(mh,{value:n,fontSize:"sm",emptyText:"No description",className:ye({userSelect:"all"})})]})]})},FKe=({label:e,value:r})=>b.jsxs(xn,{gap:"0.5",children:[b.jsx(HKe,{children:e}),b.jsx(Gl,{size:"sm",radius:"sm",variant:"light",color:"gray",tt:"none",fw:500,classNames:{root:ye({width:"max-content",overflow:"visible",px:"1",color:{_dark:"mantine.colors.gray[4]",_light:"mantine.colors.gray[8]"}}),label:ye({overflow:"visible"}),section:ye({opacity:.5,userSelect:"none",marginInlineEnd:"0.5"})},children:r})]}),HKe=Ql("div",{base:{color:"mantine.colors.dimmed",fontWeight:500,fontSize:"xxs",userSelect:"none"}}),UKe=()=>{const e=Fk(),{enableVscode:r}=wr(),{onOpenSource:n}=sc();return r?b.jsx(Mee,{label:"Open View Source",children:b.jsx(gh,{onClick:o=>{o.stopPropagation(),n?.({view:e})},children:b.jsx(pm,{style:{width:"60%",height:"60%"}})})}):null};/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const VKe=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],qKe=yt("outline","lock","Lock",VKe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const YKe=[["path",{d:"M3 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M13 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],WKe=yt("outline","lock-open-2","LockOpen2",YKe),XKe=e=>({visible:e.features.enableReadOnly!==!0,isReadOnly:e.toggledFeatures.enableReadOnly??e.features.enableReadOnly}),GKe=()=>{const{visible:e,isReadOnly:r}=$a(XKe),n=Wt();return e?b.jsxs(Pr,{component:ps,layout:"position",onClick:o=>{o.stopPropagation(),n.toggleFeature("ReadOnly")},whileTap:{translateY:1},className:Je("group",Uo({gap:"0.5",paddingInline:"xxs",paddingBlock:"xxs",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action-icon.text",_hover:"likec4.panel.action-icon.text.hover"},backgroundColor:{_hover:"likec4.panel.action-icon.bg.hover"}})),children:[r?b.jsx(qKe,{size:14,stroke:2}):b.jsx(WKe,{size:14,stroke:2}),r&&b.jsx(Qr,{className:ye({fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8}),children:"Unlock"})]}):null};/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const KKe=[["path",{d:"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z",key:"svg-0"}]],ZKe=yt("filled","player-play-filled","PlayerPlayFilled",KKe),Lee=E.forwardRef((e,r)=>b.jsx(Zn,{variant:"filled",size:"xs",fw:"500",...e,ref:r,component:ps,layoutId:"trigger-dynamic-walkthrough",className:ye({flexShrink:0})}));function QKe(){const e=Wt(),r=Ly();return b.jsx(Mee,{label:"Start Dynamic View Walkthrough",children:b.jsx(Lee,{onClick:n=>{n.stopPropagation(),r.closeDropdown(),e.startWalkthrough()},size:"compact-xs",h:26,classNames:{label:ye({display:{base:"none","@/md":"[inherit]"}}),section:ye({marginInlineStart:{base:"0","@/md":"2"}})},rightSection:b.jsx(ZKe,{size:10}),children:"Start"})})}function JKe({value:e,onChange:r}){return b.jsx(Qr,{layout:"position",children:b.jsx(U1,{size:"xs",value:e,component:Qr,onChange:n=>{nt(n==="diagram"||n==="sequence","Invalid dynamic view variant"),r(n)},classNames:{label:ye({fontSize:"xxs"})},data:[{value:"diagram",label:"Diagram"},{value:"sequence",label:"Sequence"}]})})}function eZe(){const e=$a(n=>n.dynamicViewVariant),r=Wt();return b.jsxs(b.Fragment,{children:[b.jsx(JKe,{value:e,onChange:n=>{r.switchDynamicViewVariant(n)}},"dynamic-view-mode-switcher"),b.jsx(QKe,{},"trigger-dynamic-walkthrough")]})}function tZe(){const e=Wt(),r=ap();return b.jsxs(Pr,{component:ps,layout:"position",onClick:n=>{n.stopPropagation(),e.openSearch()},whileTap:{scale:.95,translateY:1},className:Je("group",Uo({gap:"xxs",paddingInline:"sm",paddingBlock:"xxs",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action-icon.text",_hover:"likec4.panel.action-icon.text.hover"},backgroundColor:{base:"likec4.panel.action-icon.bg",_hover:"likec4.panel.action-icon.bg.hover"},display:{base:"none","@/md":"flex"}})),children:[b.jsx(QA,{size:14,stroke:2.5}),b.jsx(Vr,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8,whiteSpace:"nowrap"},children:r?"⌘ + K":"Ctrl + K"})]})}const rZe=({context:e})=>{const r=e.viewModel.folder;return{folders:r.isRoot?[]:r.breadcrumbs.map(n=>({folderPath:n.path,title:n.title})),viewId:e.viewModel.id,viewTitle:e.viewModel.titleOrUntitled,isDynamicView:e.viewModel.isDynamicView()}},nZe=()=>{const e=Ly(),{enableSearch:r,enableNavigationButtons:n,enableDynamicViewWalkthrough:o}=wr(),{folders:a,viewTitle:i,isDynamicView:s}=wn(e.actorRef,rZe,ut),l=a.flatMap(({folderPath:u,title:d},h)=>[b.jsx(Pr,{component:ps,className:Je(Qk({dimmed:!0,truncate:!0}),"mantine-active",ye({userSelect:"none",maxWidth:"200px",display:{base:"none","@/md":"block"}})),title:d,onMouseEnter:()=>e.send({type:"breadcrumbs.mouseEnter.folder",folderPath:u}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave.folder",folderPath:u}),onClick:p=>{p.stopPropagation(),e.send({type:"breadcrumbs.click.folder",folderPath:u})},children:d},u),b.jsx(Oee,{},`separator-${h}`)]),c=b.jsx(Pr,{component:ps,className:Je("mantine-active",Qk({truncate:!0}),ye({userSelect:"none"})),title:i,onMouseEnter:()=>e.send({type:"breadcrumbs.mouseEnter.viewtitle"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave.viewtitle"}),onClick:u=>{u.stopPropagation(),e.send({type:"breadcrumbs.click.viewtitle"})},children:i},"view-title");return b.jsxs(Pa,{propagate:!0,children:[b.jsx($Ke,{},"burger-button"),n&&b.jsx(OKe,{},"nav-buttons"),b.jsxs(Qr,{layout:"position",className:Uo({gap:"1",flexShrink:1,flexGrow:1,overflow:"hidden"}),children:[l,c]},"breadcrumbs"),b.jsxs(Qr,{layout:"position",className:Uo({gap:"0.5",flexGrow:0,_empty:{display:"none"}}),children:[b.jsx(zKe,{onOpen:()=>e.closeDropdown()}),b.jsx(UKe,{}),b.jsx(GKe,{})]},"actions"),o&&s&&b.jsx(eZe,{},"dynamic-view-controls"),r&&b.jsx(tZe,{},"search-control")]})},n7=E.forwardRef(({className:e,truncateLabel:r=!0,...n},o)=>b.jsx(ST,{...n,component:"button",classNames:Fqe({truncateLabel:r}),className:Je("group","mantine-active",e),ref:o}));n7.displayName="NavigationLink";const oZe=E.createContext(null),aZe=[],iZe=()=>{},sZe={projects:aZe,onProjectChange:iZe};function lZe(){return E.useContext(oZe)??sZe}function cZe(){const e=E.useContext(W1);if(!e)throw new Error("No LikeC4ModelContext found");return e.projectId}/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const uZe=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],dZe=yt("outline","chevron-down","ChevronDown",uZe);function hZe(e){const{projects:r,onProjectChange:n}=lZe(),o=cZe();return r.length<=1?null:b.jsxs(xn,{gap:"0.5",alignItems:"baseline",children:[b.jsx(Vr,{css:{fontWeight:"400",fontSize:"xxs",color:"mantine.colors.dimmed",userSelect:"none"},children:"Project"}),b.jsxs(fo,{withinPortal:!1,shadow:"md",position:"bottom-start",offset:{mainAxis:2},children:[b.jsx(F3,{children:b.jsx(Zn,{tabIndex:-1,autoFocus:!1,variant:"subtle",size:"compact-xs",color:"gray",classNames:{root:ye({fontWeight:"400",fontSize:"xxs",height:"auto",lineHeight:1.1,color:{_light:"mantine.colors.gray[9]"}}),section:ye({'&:is([data-position="right"])':{marginInlineStart:"1"}})},rightSection:b.jsx(dZe,{opacity:.5,size:12,stroke:1.5}),...e,children:o})}),b.jsx(F1,{children:r.map(({id:a,title:i})=>b.jsx(H1,{onClick:s=>{if(o===a){s.stopPropagation();return}n(a)},children:i??a},a))})]})]})}/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const fZe=[["path",{d:"M10.52 2.614a2.095 2.095 0 0 1 2.835 -.117l.126 .117l7.905 7.905c.777 .777 .816 2.013 .117 2.836l-.117 .126l-7.905 7.905a2.094 2.094 0 0 1 -2.836 .117l-.126 -.117l-7.907 -7.906a2.096 2.096 0 0 1 -.115 -2.835l.117 -.126l7.905 -7.905zm5.969 9.535l.01 -.116l-.003 -.12l-.016 -.114l-.03 -.11l-.044 -.112l-.052 -.098l-.076 -.105l-.07 -.081l-3.5 -3.5l-.095 -.083a1 1 0 0 0 -1.226 0l-.094 .083l-.083 .094a1 1 0 0 0 0 1.226l.083 .094l1.792 1.793h-5.085l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h5.085l-1.792 1.793l-.083 .094a1 1 0 0 0 1.403 1.403l.094 -.083l3.5 -3.5l.097 -.112l.05 -.074l.037 -.067l.05 -.112l.023 -.076l.025 -.117z",key:"svg-0"}]],pZe=yt("filled","direction-sign-filled","DirectionSignFilled",fZe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const mZe=[["path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",key:"svg-0"}]],gZe=yt("filled","star-filled","StarFilled",mZe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const yZe=[["path",{d:"M9 3a1 1 0 0 1 .608 .206l.1 .087l2.706 2.707h6.586a3 3 0 0 1 2.995 2.824l.005 .176v8a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-11a3 3 0 0 1 2.824 -2.995l.176 -.005h4z",key:"svg-0"}]],bZe=yt("filled","folder-filled","FolderFilled",yZe),Iee=T1({siblingSelector:"[data-likec4-focusable]",parentSelector:"[data-likec4-breadcrumbs-dropdown]",activateOnFocus:!1,loop:!0,orientation:"vertical"});function vZe(){const e=Ly(),r=wn(e.actorRef,a=>a.context.searchQuery);is("paneClick",()=>{e.closeDropdown()}),is("nodeClick",()=>{e.closeDropdown()});const n=OPe(a=>{e.send({type:"searchQuery.change",value:a})},250),o=r.trim().length>=2;return b.jsxs(Xl,{className:Je("nowheel",X1({layerStyle:"likec4.dropdown",gap:"xs",pointerEvents:"all"})),"data-likec4-breadcrumbs-dropdown":!0,onMouseLeave:()=>e.send({type:"dropdown.mouseLeave"}),onMouseEnter:()=>e.send({type:"dropdown.mouseEnter"}),children:[b.jsx(hZe,{}),b.jsx(xn,{gap:"xs",children:b.jsx(RZe,{value:r,onChange:n,"data-likec4-focusable":!0,onKeyDown:Iee})}),b.jsx(ta,{scrollbars:"x",type:"auto",offsetScrollbars:"present",classNames:{root:ye({maxWidth:["calc(100vw - 50px)","calc(100cqw - 50px)"]})},styles:{viewport:{overscrollBehavior:"none"}},children:o?b.jsx(wZe,{searchQuery:Fx(r).toLowerCase()}):b.jsx(TZe,{})})]})}const xZe=RL(ka);function wZe({searchQuery:e}){const r=Ho(),n=Ly(),o=e.includes(ka),a=yn(r.views(),Rd(s=>o&&s.$view.title?Fx(s.$view.title).toLowerCase().includes(e):s.id.toLowerCase().includes(e)||!!s.title?.toLowerCase().includes(e)),z4e(20),K0(),r$e((s,l)=>xZe(s.folder.path,l.folder.path)));if(a.length===0)return b.jsx("div",{children:"no results"});const i=o?e.split(ka):e;return b.jsx(ta,{scrollbars:"xy",offsetScrollbars:!1,className:ye({width:"100%",maxWidth:["calc(100vw - 250px)","calc(100cqw - 250px)"],maxHeight:["calc(100vh - 200px)","calc(100cqh - 200px)"]}),children:b.jsx(Fp,{gap:"0.5",children:a.map(s=>b.jsx(_Ze,{view:s,highlight:i,onClick:l=>{l.stopPropagation(),n.selectView(s.id)},"data-likec4-focusable":!0,onKeyDown:Iee},s.id))})})}const kZe=Uo({gap:"xxs",rounded:"sm",px:"xs",py:"xxs",_hover:{backgroundColor:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]"}},_focus:{outline:"none",color:"mantine.colors.primary.lightColor!",backgroundColor:"mantine.colors.primary.lightHover!"}}),zee=ye({_groupFocus:{color:"[inherit!]",transition:"none"}});function _Ze({view:e,highlight:r,...n}){const o=e.folder,a=Bee[e.id==="index"?"index":e._type],i=b.jsx(Kl,{component:"div",className:Je(zee,Qk({truncate:!0}),ye({"& > mark":{backgroundColor:{base:"mantine.colors.yellow[2]/90",_dark:"mantine.colors.yellow[5]/80",_groupFocus:"[transparent]"},color:{_groupFocus:"[inherit!]"}}})),maw:350,highlight:r,children:e.title??e.id},e.id),s=Je(n.className,"group",kZe);if(o.isRoot)return b.jsxs(Pr,{...n,className:s,children:[a,i]});const l=o.breadcrumbs.map(c=>b.jsx(Kl,{component:"div",className:Je(ye({_groupHover:{color:"mantine.colors.dimmed"}}),zee,Qk({dimmed:!0,truncate:!0})),maw:170,highlight:F6(r)?r:[],children:c.title},c.path));return l.push(b.jsxs(xn,{gap:"[4px]",children:[a,i]})),b.jsxs(Pr,{...n,className:s,children:[jee,b.jsx(L3,{separator:b.jsx(hh,{size:12,stroke:1.5}),separatorMargin:3,children:l})]})}const EZe=b.jsx(hh,{size:12,stroke:1.5,className:"mantine-rotate-rtl"}),jee=b.jsx(bZe,{size:16,className:ye({opacity:{base:.3,_groupHover:.5,_groupActive:.5,_groupFocus:.5}})}),Jk=ye({opacity:{base:.3,_dark:.5,_groupHover:.8,_groupActive:.8,_groupFocus:.8}}),Bee={index:b.jsx(gZe,{size:16,className:Jk}),element:b.jsx(gi,{size:18,stroke:2,className:Jk}),deployment:b.jsx(UA,{size:16,stroke:1.5,className:Jk}),dynamic:b.jsx(pZe,{size:18,className:Jk})},SZe=ta.withProps({scrollbars:"y",className:ye({maxHeight:["calc(100vh - 160px)","calc(100cqh - 160px)"]})});function Fee(e,r){return{folderPath:e.path,items:[...e.folders.map(n=>({type:"folder",folderPath:n.path,title:n.title,selected:r.selectedFolder.startsWith(n.path)})),...e.views.map(n=>({type:"view",viewType:n.id==="index"?"index":n._type,viewId:n.id,title:n.title??n.id,description:n.description.nonEmpty&&n.description.text||null,selected:n.id===r.viewModel.id}))]}}const CZe=e=>{const r=e.viewModel.$model,n=[Fee(r.rootViewFolder,e)],o=r.viewFolder(e.selectedFolder);if(!o.isRoot)for(const a of o.breadcrumbs)n.push(Fee(a,e));return n};function TZe(){const e=AKe(CZe,ut);return b.jsx(xn,{gap:"xs",alignItems:"stretch",children:e.flatMap((r,n)=>[n>0&&b.jsx(Lp,{orientation:"vertical"},"divider"+n),b.jsx(AZe,{data:r,isLast:n==e.length-1},r.folderPath)])})}function AZe({data:e,isLast:r}){const n=E.useRef(null),o=r7(),a=i=>s=>{s.stopPropagation(),i.type==="folder"?o.send({type:"select.folder",folderPath:i.folderPath}):o.send({type:"select.view",viewId:i.viewId})};return y6e(()=>{r&&n.current&&n.current.scrollIntoView({inline:"nearest",behavior:"smooth"})}),b.jsx(Vr,{mb:"1",ref:n,children:b.jsx(SZe,{children:b.jsx(Fp,{gap:"0.5",children:e.items.map((i,s)=>b.jsx(NZe,{columnItem:i,onClick:a(i)},`${e.folderPath}/${i.type}/${s}`))})})})}function NZe({columnItem:e,...r}){switch(e.type){case"folder":return b.jsx(n7,{variant:"light",active:e.selected,label:e.title,leftSection:jee,rightSection:EZe,maw:"300px",miw:"200px",...r},e.folderPath);case"view":return b.jsx(n7,{variant:"filled",active:e.selected,label:e.title,description:e.description,leftSection:Bee[e.viewType],maw:"300px",miw:"200px",...r},e.viewId);default:Ga(e)}}function RZe({onKeyDown:e,...r}){const[n,o]=Vl({...r,finalValue:""});return b.jsx(Ra,{size:"xs",placeholder:"Search by title or id",variant:"unstyled",height:Ne(26),value:n,onKeyDown:e,onChange:a=>o(a.currentTarget.value),classNames:{wrapper:ye({flexGrow:1,backgroundColor:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]/80",_hover:{base:"mantine.colors.gray[2]",_dark:"mantine.colors.dark[4]"},_focus:{base:"mantine.colors.gray[2]",_dark:"mantine.colors.dark[4]"}},rounded:"sm"}),input:ye({_placeholder:{color:"mantine.colors.dimmed"},_focus:{outline:"none"}})},style:{"--input-fz":"var(--mantine-font-size-sm)"},leftSection:b.jsx(QA,{size:14}),rightSectionPointerEvents:"all",rightSectionWidth:"min-content",rightSection:!r.value||iu(r.value)?null:b.jsx(Zn,{variant:"subtle",h:"100%",size:"compact-xs",color:"gray",onClick:a=>{a.stopPropagation(),o("")},children:"clear"})})}const $Ze=Ql("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}});function PZe(e){const r=IRe(e.activeWalkthrough),n=r?e.xyedges.findIndex(o=>o.id===e.activeWalkthrough?.stepId):-1;return{isActive:r,isParallel:r&&Sa(e.activeWalkthrough?.parallelPrefix),hasNext:r&&n0,notes:r?e.xyedges[n]?.data?.notes??Kt.EMPTY:null}}const MZe=()=>{const{notes:e}=$a(PZe);return!e||e.isEmpty?null:b.jsx(Ql.div,{position:"relative",children:b.jsxs(ta,{className:Je("nowheel nopan nodrag",X1({position:"absolute",layerStyle:"likec4.dropdown",gap:"sm",padding:"md",paddingTop:"xxs",pointerEvents:"all",maxWidth:"calc(100cqw - 32px)",minWidth:"calc(100cqw - 50px)",maxHeight:"calc(100cqh - 100px)",width:"max-content",cursor:"default",overflow:"auto",overscrollBehavior:"contain","@/sm":{minWidth:400,maxWidth:550},"@/lg":{maxWidth:700}})),type:"scroll",children:[b.jsx($Ze,{children:"Notes"}),b.jsx(mh,{value:e,fontSize:"sm",emptyText:"No description",className:ye({userSelect:"all"})})]})})},e_=po.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,position:"right"});/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const OZe=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-1"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-2"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-3"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-4"}]],DZe=yt("outline","focus-centered","FocusCentered",OZe),LZe=()=>{const e=Wt();return b.jsx(e_,{label:"Center camera",children:b.jsx(gh,{onClick:()=>e.fitDiagram(),children:b.jsx(DZe,{})})})};ye({gap:"xxs",_empty:{display:"none"}}),ye({top:"md",left:"md",margin:"0",pointerEvents:"none","& :where(button, .action-icon, [role='dialog'])":{pointerEvents:"all"},"& .action-icon":{"--ai-size":"2rem"},"& .tabler-icon":{width:"65%",height:"65%"},_reduceGraphics:{"& .action-icon":{"--ai-radius":"0px"}}}),ye({shadow:{base:"md",_whenPanning:"none"}}),ye({"& .tabler-icon":{width:"65%",height:"65%"}});const t_=ye({flex:"1 1 40%",textAlign:"center",fontWeight:500,padding:"[4px 6px]",fontSize:"11px",zIndex:1}),IZe=ye({background:"mantine.colors.gray[2]",borderRadius:"sm",border:"1px solid",borderColor:"mantine.colors.gray[4]",_dark:{background:"mantine.colors.dark[5]",borderColor:"mantine.colors.dark[4]"}}),zZe=ye({position:"relative",borderRadius:"sm",background:"mantine.colors.gray[3]",boxShadow:"inset 1px 1px 3px 0px #00000024",_dark:{background:"mantine.colors.dark[7]"}}),jZe=ye({position:"absolute",width:8,height:8,border:"2px solid",borderColor:"mantine.colors.gray[5]",borderRadius:3,transform:"translate(-50%, -50%)"});/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const BZe=[["path",{d:"M5 4h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-0"}],["path",{d:"M5 16h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-1"}],["path",{d:"M15 12h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-2"}],["path",{d:"M15 4h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-3"}]],FZe=yt("outline","layout-dashboard","LayoutDashboard",BZe),HZe=e=>({viewId:e.view.id,autoLayout:e.view.autoLayout}),UZe=()=>{const{onChange:e}=sc(),r=Wt(),[n,o]=E.useState(null),[a,i]=E.useState({}),{autoLayout:s,viewId:l}=$a(HZe),{ref:c,hovered:u}=aC(),d=g=>y=>{a[g]=y,i(a)},h=g=>y=>{y.stopPropagation(),e?.({change:{op:"change-autolayout",layout:{...s,direction:g}}})},p=(g,y)=>{r.fitDiagram(),e?.({change:{op:"change-autolayout",layout:{...s,nodeSep:g,rankSep:y}}})};return b.jsxs(mr,{position:"right-start",clickOutsideEvents:["pointerdown"],radius:"xs",shadow:"lg",offset:{mainAxis:10},children:[b.jsx(pu,{children:b.jsx(e_,{label:"Change Auto Layout",children:b.jsx(gh,{children:b.jsx(FZe,{})})})}),b.jsx(Xl,{className:"likec4-top-left-panel",p:8,pt:6,opacity:u?.6:1,children:b.jsxs(Se,{pos:"relative",ref:o,children:[b.jsx(P3,{target:a[s.direction],parent:n,className:IZe}),b.jsx(Se,{mb:10,children:b.jsx(wt,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Auto layout:"})}),b.jsxs(Op,{gap:2,wrap:"wrap",justify:"stretch",maw:160,children:[b.jsx(Pr,{className:t_,ref:d("TB"),onClick:h("TB"),children:"Top-Bottom"}),b.jsx(Pr,{className:t_,ref:d("BT"),onClick:h("BT"),children:"Bottom-Top"}),b.jsx(Pr,{className:t_,ref:d("LR"),onClick:h("LR"),children:"Left-Right"}),b.jsx(Pr,{className:t_,ref:d("RL"),onClick:h("RL"),children:"Right-Left"})]}),b.jsx(Se,{my:10,children:b.jsx(wt,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Spacing:"})}),b.jsx(VZe,{ref:c,isVertical:s.direction==="TB"||s.direction==="BT",nodeSep:s.nodeSep,rankSep:s.rankSep,onChange:p},l)]})})]})},km=400,VZe=E.forwardRef(({isVertical:e,nodeSep:r,rankSep:n,onChange:o},a)=>{e||([r,n]=[n,r]);const i=qx(({x:p,y:g})=>{e||([p,g]=[g,p]),o(Math.round(p*km),Math.round(g*km))},[o,e],250,2e3),[s,l]=Vl({defaultValue:vPe({x:(r??100)/km,y:(n??120)/km}),onChange:i}),{ref:c}=BV(l);let u=Math.round(s.x*km),d=Math.round(s.y*km);e||([u,d]=[d,u]);const h=Rr(c,a);return b.jsxs(Se,{ref:h,className:zZe,pt:"100%",children:[b.jsx(Se,{className:jZe,style:{left:`${s.x*100}%`,top:`${s.y*100}%`}}),b.jsx(Se,{pos:"absolute",left:2,bottom:2,children:b.jsxs(wt,{component:"div",fz:8,c:"dimmed",fw:500,children:[d,", ",u]})})]})});/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const qZe=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],Hee=yt("outline","alert-triangle","AlertTriangle",qZe),YZe=()=>{const e=wm();return $a(r=>r.view.hasLayoutDrift??!1)?b.jsxs(Ip,{position:"right-start",openDelay:200,closeDelay:100,...e,children:[b.jsx(vT,{children:b.jsx(or,{color:"orange",c:"orange",className:ye({bg:"mantine.colors.orange.light"}),children:b.jsx(Hee,{})})}),b.jsx(yT,{p:"0",children:b.jsxs(V3,{color:"orange",withBorder:!1,withCloseButton:!1,title:"Manual layout issues",children:[b.jsxs(wt,{mt:2,size:"sm",lh:"xs",children:["View contains new elements or their sizes have changed,",b.jsx("br",{}),"last manual layout can not be applied."]}),b.jsxs(wt,{mt:"xs",size:"sm",lh:"xs",children:["Update view predicates or remove ",b.jsx(j3,{children:"@likec4-generated"})]})]})})]}):null};/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const WZe=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M10 4l4 16",key:"svg-1"}],["path",{d:"M12 12l-8 2",key:"svg-2"}]],XZe=yt("outline","layout-collage","LayoutCollage",WZe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const GZe=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 12h8",key:"svg-1"}],["path",{d:"M12 15h8",key:"svg-2"}],["path",{d:"M12 9h8",key:"svg-3"}],["path",{d:"M12 4v16",key:"svg-4"}]],Uee=yt("outline","layout-board-split","LayoutBoardSplit",GZe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const KZe=[["path",{d:"M4 4l0 16",key:"svg-0"}],["path",{d:"M8 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]],ZZe=yt("outline","layout-align-left","LayoutAlignLeft",KZe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const QZe=[["path",{d:"M12 4l0 5",key:"svg-0"}],["path",{d:"M12 15l0 5",key:"svg-1"}],["path",{d:"M6 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-2"}]],JZe=yt("outline","layout-align-center","LayoutAlignCenter",QZe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const eQe=[["path",{d:"M20 4l0 16",key:"svg-0"}],["path",{d:"M4 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]],tQe=yt("outline","layout-align-right","LayoutAlignRight",eQe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const rQe=[["path",{d:"M4 4l16 0",key:"svg-0"}],["path",{d:"M9 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],nQe=yt("outline","layout-align-top","LayoutAlignTop",rQe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const oQe=[["path",{d:"M4 12l5 0",key:"svg-0"}],["path",{d:"M15 12l5 0",key:"svg-1"}],["path",{d:"M9 6m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}]],aQe=yt("outline","layout-align-middle","LayoutAlignMiddle",oQe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const iQe=[["path",{d:"M4 20l16 0",key:"svg-0"}],["path",{d:"M9 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],sQe=yt("outline","layout-align-bottom","LayoutAlignBottom",iQe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const lQe=[["path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M18 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M12 19h4.5c.71 0 1.372 -.212 1.924 -.576m1.545 -2.459a3.5 3.5 0 0 0 -3.469 -3.965h-.499m-4 0h-3.501a3.5 3.5 0 0 1 -2.477 -5.972m2.477 -1.028h3.5",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]],cQe=yt("outline","route-off","RouteOff",lQe),lc=({label:e,icon:r,onClick:n})=>b.jsx(e_,{label:e,withinPortal:!1,position:"top",children:b.jsx(gh,{classNames:{root:"action-icon",icon:ye({"& > svg":{width:"70%",height:"70%"}})},onClick:n,children:r})}),uQe=e=>{const r=Wt(),n=wm();return b.jsxs(mr,{position:"right",offset:{mainAxis:12},clickOutsideEvents:["pointerdown"],...n,...e,children:[b.jsx(pu,{children:b.jsx(e_,{label:"Manual layouting tools",children:b.jsx(gh,{children:b.jsx(XZe,{})})})}),b.jsx(Xl,{className:Uo({gap:"0.5",layerStyle:"likec4.panel",padding:"1",pointerEvents:"all"}),children:b.jsxs(Qd,{children:[b.jsx(lc,{label:"Align in columns",icon:b.jsx(Uee,{}),onClick:o=>{o.stopPropagation(),r.align("Column")}}),b.jsx(lc,{label:"Align left",icon:b.jsx(ZZe,{}),onClick:o=>{o.stopPropagation(),r.align("Left")}}),b.jsx(lc,{label:"Align center",icon:b.jsx(JZe,{}),onClick:o=>{o.stopPropagation(),r.align("Center")}}),b.jsx(lc,{label:"Align right",icon:b.jsx(tQe,{}),onClick:o=>{o.stopPropagation(),r.align("Right")}}),b.jsx(lc,{label:"Align in rows",icon:b.jsx(Uee,{style:{transform:"rotate(90deg)"}}),onClick:o=>{o.stopPropagation(),r.align("Row")}}),b.jsx(lc,{label:"Align top",icon:b.jsx(nQe,{}),onClick:o=>{o.stopPropagation(),r.align("Top")}}),b.jsx(lc,{label:"Align middle",icon:b.jsx(aQe,{}),onClick:o=>{o.stopPropagation(),r.align("Middle")}}),b.jsx(lc,{label:"Align bottom",icon:b.jsx(sQe,{}),onClick:o=>{o.stopPropagation(),r.align("Bottom")}}),b.jsx(lc,{label:"Reset all control points",icon:b.jsx(cQe,{}),onClick:o=>{o.stopPropagation(),r.resetEdgeControlPoints()}})]})})]})};function dQe(){const{enableReadOnly:e}=wr();return b.jsx(Pa,{children:!e&&b.jsx(Qr,{layout:"position",className:X1({gap:"xs",layerStyle:"likec4.panel",position:"relative",cursor:"pointer",padding:"xxs",pointerEvents:"all"}),initial:{opacity:0,translateX:-20},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-20},children:b.jsxs(Qd,{openDelay:600,closeDelay:120,children:[b.jsx(UZe,{}),b.jsx(uQe,{}),b.jsx(YZe,{}),b.jsx(LZe,{})]})})})}/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const hQe=[["path",{d:"M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z",key:"svg-0"}]],fQe=yt("filled","player-stop-filled","PlayerStopFilled",hQe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const pQe=[["path",{d:"M19.496 4.136l-12 7a1 1 0 0 0 0 1.728l12 7a1 1 0 0 0 1.504 -.864v-14a1 1 0 0 0 -1.504 -.864z",key:"svg-0"}],["path",{d:"M4 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z",key:"svg-1"}]],mQe=yt("filled","player-skip-back-filled","PlayerSkipBackFilled",pQe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const gQe=[["path",{d:"M3 5v14a1 1 0 0 0 1.504 .864l12 -7a1 1 0 0 0 0 -1.728l-12 -7a1 1 0 0 0 -1.504 .864z",key:"svg-0"}],["path",{d:"M20 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z",key:"svg-1"}]],yQe=yt("filled","player-skip-forward-filled","PlayerSkipForwardFilled",gQe),Vee=Zn.withProps({component:ps,variant:"light",size:"xs",fw:"500"}),bQe=()=>{const{portalProps:e}=wm();return b.jsx(D1,{...e,children:b.jsx(Vr,{css:{position:"absolute",margin:"0",padding:"0",top:"0",left:"0",width:"100%",height:"100%",border:"2px solid",borderColor:"mantine.colors.orange[6]",pointerEvents:"none",md:{borderWidth:4}}})})};function vQe(){const e=Wt(),{isParallel:r,hasNext:n,hasPrevious:o,currentStep:a,totalSteps:i}=$a(s=>{const l=s.xyedges.findIndex(c=>c.id===s.activeWalkthrough?.stepId);return{isParallel:Sa(s.activeWalkthrough?.parallelPrefix),hasNext:l0,currentStep:l+1,totalSteps:s.xyedges.length}});return b.jsxs(Pa,{propagate:!0,children:[b.jsx(Lee,{variant:"light",size:"xs",color:"orange",mr:"sm",onClick:s=>{s.stopPropagation(),e.stopWalkthrough()},rightSection:b.jsx(fQe,{size:10}),children:"Stop"},"stop-walkthrough"),b.jsx(Vee,{disabled:!o,onClick:()=>e.walkthroughStep("previous"),leftSection:b.jsx(mQe,{size:10}),children:"Previous"},"prev"),b.jsx(Gl,{component:Qr,size:"md",radius:"sm",variant:r?"gradient":"transparent",gradient:{from:"red",to:"orange",deg:90},rightSection:b.jsx(Qr,{className:ye({fontSize:"xxs",display:r?"block":"none"}),children:"parallel"}),className:ye({alignItems:"baseline"}),children:b.jsxs(UWe,{children:[a," / ",i]})},"step-badge"),b.jsx(Vee,{disabled:!n,onClick:()=>e.walkthroughStep("next"),rightSection:b.jsx(yQe,{size:10}),children:"Next"},"next"),r&&b.jsx(bQe,{},"parallel-frame")]})}const qee=E.memo(()=>{const e=Jp(),r=NQ(),n=n8(CKe,{input:{viewModel:r}});return E.useEffect(()=>{const o=n.on("navigateTo",a=>{e.getSnapshot().context.view.id!==a.viewId&&e.send({type:"navigate.to",viewId:a.viewId})});return()=>o.unsubscribe()},[n,e]),UB(()=>{n.send({type:"update.inputs",inputs:{viewModel:r}})},[r]),b.jsx(Fp,{css:{alignItems:"flex-start",pointerEvents:"none",position:"absolute",top:"0",left:"0",margin:"0",width:"100%",gap:"xxs",maxWidth:["calc(100vw)","calc(100cqw)"],"@/sm":{margin:"xs",gap:"xs",width:"max-content",maxWidth:["calc(100vw - 2 * {spacing.md})","calc(100cqw - 2 * {spacing.md})"]}},children:b.jsxs(TKe,{value:n,children:[b.jsx(xQe,{actor:n}),b.jsx(dQe,{}),b.jsx(MZe,{})]})})});qee.displayName="NavigationPanel";const xQe=({actor:e})=>{const r=wn(e,o=>o.hasTag("active")),n=wm();return b.jsxs(mr,{offset:{mainAxis:4},opened:r,position:"bottom-start",trapFocus:!0,...n,clickOutsideEvents:["pointerdown","mousedown","click"],onDismiss:()=>e.send({type:"dropdown.dismiss"}),children:[b.jsx(wQe,{actor:e}),r&&b.jsx(vZe,{})]})},wQe=({actor:e})=>{const r=$a(n=>n.activeWalkthrough!==null);return b.jsx(dm,{children:b.jsx(pu,{children:b.jsx(Qr,{layout:!0,className:Uo({layerStyle:"likec4.panel",position:"relative",gap:"xs",cursor:"pointer",paddingRight:"md",pointerEvents:"all",width:"100%"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave"}),children:b.jsx(Pa,{mode:"popLayout",children:r?b.jsx(vQe,{}):b.jsx(nZe,{})})})})})},o7=ye({position:"absolute",bottom:"0",right:"0",padding:"2",margin:"0",width:"min-content",height:"min-content"}),kQe=ye({"--ai-radius":"0px",_noReduceGraphics:{"--ai-radius":"{radii.md}"}}),_Qe=ye({cursor:"default",userSelect:"none",minWidth:200,maxWidth:"calc(100vw - 20px)",backgroundColor:"mantine.colors.body/80",sm:{minWidth:300,maxWidth:"65vw"},md:{maxWidth:"40vw"},_dark:{backgroundColor:"mantine.colors.dark[6]/80"}}),EQe=ye({padding:"xxs"}),SQe=ye({backgroundColor:"transparent",transition:"all 100ms ease-in",_hover:{transition:"all 120ms ease-out",backgroundColor:"mantine.colors.primary[2]/50"},_dark:{_hover:{backgroundColor:"mantine.colors.dark[3]/40"}}});ye({fill:"var(--likec4-palette-fill)",stroke:"var(--likec4-palette-stroke)",strokeWidth:1,overflow:"visible",width:"100%",height:"auto",filter:` + drop-shadow(0 2px 3px rgb(0 0 0 / 22%)) + drop-shadow(0 1px 8px rgb(0 0 0 / 10%)) + `});const CQe=ye({fontWeight:500,letterSpacing:"0.2px",paddingTop:"0",paddingBottom:"0",textTransform:"lowercase",transition:"all 150ms ease-in-out",cursor:"pointer","--badge-radius":"2px","--badge-fz":"9.5px","--badge-padding-x":"3px","--badge-height":"13.5px","--badge-lh":"1","--badge-bg":"var(--likec4-palette-fill)","--badge-color":"var(--likec4-palette-hiContrast)"});/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const TQe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]],AQe=yt("outline","help-circle","HelpCircle",TQe);/** + * @license @tabler/icons-react v3.35.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const NQe=[["path",{d:"M7 7l10 10",key:"svg-0"}],["path",{d:"M17 8l0 9l-9 0",key:"svg-1"}]],RQe=yt("outline","arrow-down-right","ArrowDownRight",NQe),$Qe=({value:e})=>{const{title:r,color:n="primary",shape:o="rectangle"}=e,[a,i]=E.useState(null),s=Wt(),l=300,c=200;return b.jsx(z3,{shadow:"none",px:"xs",py:"sm",className:Je(SQe),"data-likec4-color":n,onMouseEnter:()=>{i(null),s.highlightNotation(e)},onMouseLeave:()=>{i(null),s.unhighlightNotation()},children:b.jsxs(Ur,{gap:"sm",align:"stretch",wrap:"nowrap",children:[b.jsx(Se,{flex:"0 0 70px",style:{position:"relative",width:70,height:sRe(70*(c/l),0)},children:b.jsx(gm,{data:{shape:o,width:l,height:c}})}),b.jsxs(ra,{gap:4,flex:1,children:[b.jsx(Ur,{gap:4,flex:"0 0 auto",children:e.kinds.map(u=>b.jsx(Gl,{className:Je(CQe),onMouseEnter:()=>{i(u),s.highlightNotation(e,u)},onMouseLeave:()=>{i(null),s.highlightNotation(e)},opacity:tV(a)&&a!==u?.25:1,children:u},u))}),b.jsx(wt,{component:"div",fz:"sm",fw:500,lh:"1.25",style:{textWrap:"pretty"},children:r})]})]})})},PQe=e=>({id:e.view.id,notations:e.view.notation?.nodes??[],isVisible:!0}),MQe=E.memo(()=>{const e=D9(c=>c.height),{id:r,notations:n,isVisible:o}=$a(PQe),[a,i]=yPe({key:"notation-webview-collapsed",defaultValue:!0}),s=n.length>0,l=wm();return b.jsxs(Pa,{children:[!s&&o&&b.jsx(cs.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:o7,children:b.jsx(po,{label:"View has no notations",color:"orange",...l,children:b.jsx(ci,{size:"lg",variant:"light",color:"orange",radius:"md",children:b.jsx(Hee,{})})})},"empty"),s&&o&&a&&b.jsx(cs.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:o7,children:b.jsx(po,{label:"Show notation",color:"dark",fz:"xs",...l,children:b.jsx(or,{size:"lg",variant:"default",color:"gray",className:kQe,onClick:()=>i(!1),children:b.jsx(AQe,{stroke:1.5})})})},"collapsed"),s&&o&&!a&&b.jsx(cs.div,{initial:{opacity:.75,scale:.2},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.25},className:Je("react-flow__panel",o7),style:{transformOrigin:"bottom right"},children:b.jsx(Rp,{radius:"sm",withBorder:!0,shadow:"lg",className:_Qe,children:b.jsxs(Jd,{defaultValue:"first",radius:"xs",children:[b.jsxs(q1,{children:[b.jsx(or,{size:"md",variant:"subtle",color:"gray",ml:2,style:{alignSelf:"center"},onClick:()=>i(!0),children:b.jsx(RQe,{stroke:2})}),b.jsx(jp,{value:"first",fz:"xs",children:"Elements"}),b.jsx(jp,{value:"second",fz:"xs",disabled:!0,children:"Relationships"})]}),b.jsx(Zl,{value:"first",className:EQe,hidden:a,children:b.jsx(ta,{viewportProps:{style:{maxHeight:`min(40vh, ${Math.max(e-60,50)}px)`}},children:b.jsx(ra,{gap:0,children:n.map((c,u)=>b.jsx($Qe,{value:c},u))})})})]})})},r)]})}),Yee=E.memo(()=>{const{enableControls:e,enableNotations:r,enableSearch:n,enableRelationshipDetails:o}=wr(),a=v6e(),i=VX(),s=vBe();return b.jsxs(lX,{onReset:a,children:[e&&b.jsx(Tze,{children:b.jsx(qee,{})}),i&&b.jsx(TGe,{overlaysActorRef:i}),r&&b.jsx(MQe,{}),n&&s&&b.jsx(fKe,{searchActorRef:s}),o&&b.jsx(wKe,{})]})});Yee.displayName="DiagramUI";function _m(e){return function(){return e}}const Wee=1e-12,a7=Math.PI,i7=2*a7,yh=1e-6,OQe=i7-yh;function Xee(e){this._+=e[0];for(let r=1,n=e.length;r=0))throw new Error(`invalid digits: ${e}`);if(r>15)return Xee;const n=10**r;return function(o){this._+=o[0];for(let a=1,i=o.length;ayh)if(!(Math.abs(h*c-u*d)>yh)||!i)this._append`L${this._x1=r},${this._y1=n}`;else{let g=o-s,y=a-l,x=c*c+u*u,w=g*g+y*y,k=Math.sqrt(x),C=Math.sqrt(p),_=i*Math.tan((a7-Math.acos((x+p-w)/(2*k*C)))/2),T=_/C,A=_/k;Math.abs(T-1)>yh&&this._append`L${r+T*d},${n+T*h}`,this._append`A${i},${i},0,0,${+(h*g>d*y)},${this._x1=r+A*c},${this._y1=n+A*u}`}}arc(r,n,o,a,i,s){if(r=+r,n=+n,o=+o,s=!!s,o<0)throw new Error(`negative radius: ${o}`);let l=o*Math.cos(a),c=o*Math.sin(a),u=r+l,d=n+c,h=1^s,p=s?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>yh||Math.abs(this._y1-d)>yh)&&this._append`L${u},${d}`,o&&(p<0&&(p=p%i7+i7),p>OQe?this._append`A${o},${o},0,1,${h},${r-l},${n-c}A${o},${o},0,1,${h},${this._x1=u},${this._y1=d}`:p>yh&&this._append`A${o},${o},0,${+(p>=a7)},${h},${this._x1=r+o*Math.cos(i)},${this._y1=n+o*Math.sin(i)}`)}rect(r,n,o,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+n}h${o=+o}v${+a}h${-o}Z`}toString(){return this._}}function IQe(e){let r=3;return e.digits=function(n){if(!arguments.length)return r;if(n==null)r=null;else{const o=Math.floor(n);if(!(o>=0))throw new RangeError(`invalid digits: ${n}`);r=o}return e},()=>new LQe(r)}function zQe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Gee(e){this._context=e}Gee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function jQe(e){return new Gee(e)}function BQe(e){return e[0]}function FQe(e){return e[1]}function HQe(e,r){var n=_m(!0),o=null,a=jQe,i=null,s=IQe(l);e=typeof e=="function"?e:e===void 0?BQe:_m(e),r=typeof r=="function"?r:r===void 0?FQe:_m(r);function l(c){var u,d=(c=zQe(c)).length,h,p=!1,g;for(o==null&&(i=a(g=s())),u=0;u<=d;++u)!(uWee){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);o=(o*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Wee){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-r*e._l12_2a)/d,s=(s*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(o,a,i,s,e._x2,e._y2)}function Zee(e,r){this._context=e,this._alpha=r}Zee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3;default:Kee(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return r?new Zee(o,r):new l7(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);function Qee(e,r){this._context=e,this._alpha=r}Qee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kee(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};const UQe=(function e(r){function n(o){return r?new Qee(o,r):new c7(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);class ia{constructor(r,n){this.x=r,this.y=n}static create(r){return new ia(r.x,r.y)}static add(r,n){return{x:r.x+n.x,y:r.y+n.y}}static sub(r,n){return{x:r.x-n.x,y:r.y-n.y}}static mul(r,n){return{x:r.x*n,y:r.y*n}}static dot(r,n){return r.x*n.x+r.y*n.y}static cross(r,n){return new ia(r.y*n.x-r.x*n.y,r.x*n.y-r.y*n.x)}static setLength(r,n){return bh(r).setLength(n)}add(r){return new ia(this.x+r.x,this.y+r.y)}sub(r){return new ia(this.x-r.x,this.y-r.y)}mul(r){return new ia(this.x*r,this.y*r)}dot(r){return this.x*r.x+this.y*r.y}cross(r){return new ia(this.y*r.x-this.x*r.y,this.x*r.y-this.y*r.x)}abs(){return Math.sqrt(this.x*this.x+this.y*this.y)}setLength(r){return this.mul(r/this.abs())}}function bh(e){return ia.create(e)}const VQe=".react-flow__edge.selected",qQe=ye({overflow:"visible",position:"absolute",pointerEvents:"none",top:"0",left:"0",mixBlendMode:"normal"}),YQe=ye({fill:"var(--likec4-palette-relation-stroke)",stroke:"var(--likec4-palette-relation-stroke)",fillOpacity:.75,strokeWidth:1,cursor:"grab",pointerEvents:"auto",visibility:"hidden",_hover:{fillOpacity:1,stroke:"mantine.colors.primary.filledHover",strokeWidth:10,transition:"stroke 100ms ease-out, stroke-width 100ms ease-out"},[`:where(${VQe}, [data-likec4-hovered='true']) &`]:{visibility:"visible",transition:"fill-opacity 150ms ease-out, stroke 150ms ease-out, stroke-width 150ms ease-out",transitionDelay:"50ms",fillOpacity:1,strokeWidth:5}}),WQe=ye({cursor:"grabbing","& *":{cursor:"grabbing !important"},"& .react-flow__edge-interaction":{cursor:"grabbing !important"}});function XQe(e){const{width:r,height:n}=Wn(e),{x:o,y:a}=e.internals.positionAbsolute;return{x:o+r/2,y:a+n/2}}function r_(e,r,n=0){const o=XQe(e),{width:a,height:i}=Wn(e),s=new ia(r.x,r.y).sub(o),l=(n+(a||0)/2)/s.x,c=(n+(i||0)/2)/s.y,u=Math.min(Math.abs(l),Math.abs(c));return bh(s).mul(u).add(o)}const GQe=HQe().curve(UQe).x(e=>e.x).y(e=>e.y),KQe=IA(e=>{const[r,n]=E.useState(!1),o=L9(),a=Hqe(),i=Wt(),{enableNavigateTo:s,enableEdgeEditing:l}=wr(),{id:c,source:u,sourceX:d,sourceY:h,target:p,targetX:g,targetY:y,selected:x=!1,data:{id:w,points:k,hovered:C=!1,active:_=!1,labelBBox:T,labelXY:A,...N},style:$={}}=e,R=s?N.navigateTo:void 0,M=mt(wQ(u),`source node ${u} not found`),O=mt(wQ(p),`target node ${p} not found`),B=Sa(N.controlPoints)||!_y(M.internals.positionAbsolute,M.data)||!_y(O.internals.positionAbsolute,O.data);let I=N.controlPoints??SQ(e.data),Y;if(B){const W={x:d,y:h},G={x:g,y},Z=6,oe=N.dir==="back"?[G,r_(O,hp(I)??W,Z),...I,r_(M,Ud(I)??G,Z),W]:[W,r_(M,hp(I)??G,Z),...I,r_(O,Ud(I)??W,Z),G];Y=mt(GQe(oe))}else Y=tYe(k);let D=T?.x??0,V=T?.y??0;const[L,U]=E.useState({x:A?.x??D,y:A?.y??V}),q=E.useRef(null);E.useEffect(()=>{const W=q.current;if(!W)return;const G=W.getPointAtLength(W.getTotalLength()*.5),Z={x:yi(G.x),y:yi(G.y)};U(oe=>_y(oe,Z)?oe:Z)},[Y]),g6e(()=>{!T||T.x===L.x&&T.y===L.y||i.updateEdgeData(c,{labelXY:{x:L.x,y:L.y}})},[L],50,300),(B||r)&&(D=L.x,V=L.y);const X=(W,G,Z)=>{const{addSelectedEdges:oe}=o.getState();oe([c]);const ee=i.cancelSaveManualLayout();G.stopPropagation();let re=!1,he={x:G.clientX,y:G.clientY};const Ce=be=>{const De={x:be.clientX,y:be.clientY};if(!_y(he,De)){n(!0),re||(i.send({type:"xyflow.edgeEditingStarted",edge:e.data}),re=!0),he=De;const{x:Ge,y:Xe}=a.screenToFlowPosition(he,{snapToGrid:!1}),_t=I.slice();_t[W]={x:yi(Ge),y:yi(Xe)},i.updateEdgeData(c,{controlPoints:_t})}be.stopPropagation()},ce=be=>{Z.removeEventListener("pointermove",Ce,{capture:!0}),re&&be.stopPropagation(),(re||ee)&&i.scheduleSaveManualLayout(),n(!1)},de=be=>{be.stopPropagation(),be.preventDefault()};Z.addEventListener("pointermove",Ce,{capture:!0}),Z.addEventListener("pointerup",ce,{once:!0,capture:!0}),Z.addEventListener("click",de,{capture:!0,once:!0})},F=(W,G,Z)=>{if(I.length<=1)return;const oe=ee=>{const re=I.slice();re.splice(W,1),ee.stopPropagation(),setTimeout(()=>{i.updateEdgeData(c,{controlPoints:re}),i.scheduleSaveManualLayout()},10)};Z.addEventListener("pointerup",oe,{once:!0,capture:!0}),G.stopPropagation()},J=(W,G)=>{const{domNode:Z}=o.getState();if(!(!Z||G.pointerType!=="mouse"))switch(G.button){case 0:X(W,G,Z);break;case 2:F(W,G,Z);break}},Q=W=>{const{domNode:G}=o.getState();if(!G||W.pointerType!=="mouse"||W.button!==2)return;const Z=[new ia(d,h),...I.map(bh)||[],new ia(g,y)];let oe={x:W.clientX,y:W.clientY};const ee=bh(a.screenToFlowPosition(oe,{snapToGrid:!1}));let re=0,he=1/0;for(let ce=0;ce{W.stopPropagation(),i.navigateTo(R)}})})})]}),l&&I.length>0&&(x||C||r)&&b.jsx(OU,{children:b.jsx(Ay,{component:"svg",className:qQe,...e,style:{...$,zIndex:z},children:b.jsx("g",{onContextMenu:W=>{W.preventDefault(),W.stopPropagation()},children:I.map((W,G)=>b.jsx("circle",{onPointerDown:Z=>J(G,Z),className:Je("nodrag nopan",YQe),cx:Math.round(W.x),cy:Math.round(W.y),r:3},"controlPoints"+w+"#"+G))})})})]})}),n_=16;function ZQe(e){const r=Wt(),{navigateTo:n}=e.data,o=e.source===e.target,a=e.sourceX>e.targetX,[i]=_w({sourceX:e.sourceX,sourceY:e.sourceY,sourcePosition:e.sourcePosition,targetX:e.targetX,targetY:e.targetY,targetPosition:e.targetPosition,...o&&{offset:30,borderRadius:16}});let s=e.sourceX;switch(!0){case o:s=e.sourceX+24+n_;break;case a:s=e.sourceX-n_;break;default:s=e.sourceX+n_;break}return b.jsxs(Ay,{...e,children:[b.jsx(Ny,{edgeProps:e,svgPath:i}),b.jsx(Bk,{edgeProps:e,labelPosition:{x:s,y:e.sourceY+(o?0:n_),translate:a?"translate(-100%, 0)":void 0},children:b.jsx(Ty,{edgeProps:e,children:n&&b.jsx(jk,{onClick:l=>{l.stopPropagation(),r.navigateTo(n)}})})})]})}const Jee=({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=wr(),a=Wt(),{navigateTo:i,modelFqn:s}=r.data;let l=E.useMemo(()=>{const c=[];return i&&n&&c.push({key:"navigate",icon:b.jsx(gi,{}),onClick:u=>{u.stopPropagation(),a.navigateTo(i,r.data.id)}}),o&&c.push({key:"relationships",icon:b.jsx(Ry,{}),onClick:u=>{u.stopPropagation(),a.openRelationshipsBrowser(s)}}),c},[n,o,a,s,i,r.data.id]);return e&&To(e,1)&&(l=[...l,...e]),b.jsx(Hk,{...r,buttons:l})},QQe=({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=wr(),a=Wt(),{id:i,navigateTo:s,modelFqn:l}=r.data;let c=E.useMemo(()=>{const u=[];return s&&n&&u.push({key:"navigate",icon:b.jsx(gi,{}),onClick:d=>{d.stopPropagation(),a.navigateTo(s,i)}}),o&&l&&u.push({key:"relationships",icon:b.jsx(Ry,{}),onClick:d=>{d.stopPropagation(),a.openRelationshipsBrowser(l)}}),u},[n,o,a,l,s,i]);return e&&To(e,1)&&(c=[...c,...e]),b.jsx(Hk,{...r,buttons:c})};function JQe({data:{hovered:e=!1},icon:r,onClick:n}){const o=tC(e,e?130:0)[0]&&e;return b.jsx(Qr,{initial:!1,animate:{scale:o?1.2:1,x:o?-1:0,y:o?-1:0},whileHover:{scale:1.4,x:-3,y:-1},className:"likec4-compound-navigation compound-action",whileTap:{scale:1},onClick:cn,children:b.jsx(or,{className:Je("nodrag nopan",YJ({delay:e&&!o}),Ek({variant:"transparent"})),onClick:n,onDoubleClick:cn,children:r??b.jsx(gi,{stroke:2})})})}const ete=e=>{const{enableNavigateTo:r}=wr(),n=Wt(),{navigateTo:o}=e.data;return o&&r?b.jsx(JQe,{onClick:a=>{a.stopPropagation(),n.navigateTo(o,e.id)},...e}):null},tte=["primary","secondary","muted"],rte=po.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4,withinPortal:!1});function o_(e,r){const{onChange:n}=sc(),o=Wt(),[a,i]=E.useState(null),s=it(c=>{if(c===null){nt(a,"originalColor is null"),i(null),o.updateNodeData(r.data.id,{color:a});return}i(u=>u??r.data.color),o.updateNodeData(r.data.id,{color:c})}),l=it(c=>{n?.({change:{op:"change-element-style",style:c,targets:[e]}});const{shape:u,color:d,...h}=c;o.updateNodeData(r.data.id,{...u&&{shape:u},...d&&{color:d},style:h})});return{elementColor:a??r.data.color,onColorPreview:s,onChange:l}}function a_({fqn:e}){const r=Wt();return b.jsx(rte,{label:"Browse relationships",children:b.jsx(or,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),r.openRelationshipsBrowser(e)},children:b.jsx(Ry,{stroke:2,style:{width:"72%",height:"72%"}})})})}function i_(e){const{onOpenSource:r}=sc();return r?b.jsx(rte,{label:"Open source",children:b.jsx(or,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),e.elementId?r?.({element:e.elementId}):e.deploymentId&&r?.({deployment:e.deploymentId})},children:b.jsx(pm,{stroke:1.8,style:{width:"70%"}})})}):null}function nte(){const e=E.useContext(W1);e||console.error("No LikeC4ModelContext found");const r=e?.$styles??TL.DEFAULT,[n,o]=E.useState(r);return E.useEffect(()=>{o(a=>a.equals(r)?a:r)},[r]),n}function s_({elementColor:e,elementOpacity:r,onColorPreview:n,isOpacityEditable:o=!1,onChange:a,...i}){const{theme:s}=nte();return b.jsxs(mr,{clickOutsideEvents:["pointerdown","mousedown","click"],position:"right-end",offset:2,withinPortal:!1,...i,children:[b.jsx(pu,{children:b.jsx(Zn,{variant:"subtle",color:"gray",size:"compact-xs",px:3,children:b.jsx(j1,{color:s.colors[e].elements.fill,size:14,withShadow:!0,style:{color:"#fff",cursor:"pointer"}})})}),b.jsxs(Xl,{p:"xs",children:[b.jsx(eJe,{theme:s,elementColor:e,onColorPreview:n,onChange:l=>a({color:l})}),o&&b.jsxs(b.Fragment,{children:[b.jsx(RT,{h:"xs"}),b.jsx(Lp,{label:"opacity",labelPosition:"left"}),b.jsx(RT,{h:"xs"}),b.jsx(tJe,{elementOpacity:r,onOpacityChange:l=>{a({opacity:l})}})]})]})]})}function eJe({theme:e,elementColor:r,onColorPreview:n,onChange:o}){const a=s=>l=>{l.stopPropagation(),n(null),r!==s&&o(s)},i=q6(e.colors).filter(s=>!tte.includes(s));return b.jsx(ra,{gap:2,onMouseLeave:()=>n(null),children:b.jsxs(Qd,{openDelay:1e3,closeDelay:300,children:[b.jsx(Op,{maw:120,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:tte.map(s=>b.jsx(po,{label:s,fz:"xs",color:"dark",offset:2,withinPortal:!1,transitionProps:{duration:140,transition:"slide-up"},children:b.jsx(j1,{color:e.colors[s].elements.fill,size:18,withShadow:!0,onMouseEnter:()=>n(s),onClick:a(s),style:{color:"#fff",cursor:"pointer"},children:r===s&&b.jsx(rW,{style:{width:Ne(10),height:Ne(10)}})})},s))}),b.jsx(Op,{mt:"sm",maw:110,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:i.map(s=>b.jsx(po,{label:s,fz:"xs",color:"dark",offset:2,transitionProps:{duration:140,transition:"slide-up"},children:b.jsx(j1,{color:e.colors[s].elements.fill,size:18,onMouseEnter:()=>n(s),onClick:a(s),style:{color:"#fff",cursor:"pointer"},children:r===s&&b.jsx(rW,{style:{width:Ne(10),height:Ne(10)}})})},s))})]})})}function tJe({elementOpacity:e=100,onOpacityChange:r}){const[n,o]=E.useState(e);return UB(()=>{o(e)},[e]),b.jsx(NT,{size:"sm",color:"dark",value:n,onChange:o,onChangeEnd:r})}const rJe=ye({color:"mantine.colors.dimmed",fontSize:"10px",fontWeight:600,maxWidth:"220px",cursor:"default",userSelect:"all",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),nJe=()=>$a(e=>e.xynodes.filter(r=>r.selected).length);function l_({title:e,children:r,nodeProps:n,...o}){const a=nJe(),{selected:i=!1,dragging:s=!1,data:{hovered:l=!1}}=n,c=l&&a===0||i&&a===1;let u=150;c?i?u=100:u=1e3:a>0&&(u=50);const[d]=tC(c,u);return d?b.jsx(jU,{isVisible:!s,offset:4,...o,children:b.jsx(Rp,{className:Je("nodrag","nopan"),px:5,pb:8,pt:4,radius:"sm",shadow:"xl",onDoubleClickCapture:cn,onPointerDown:cn,onClick:cn,onDoubleClick:cn,withBorder:!0,children:b.jsxs(ra,{gap:"6px",children:[b.jsx(Se,{px:"4px",children:b.jsx(wt,{className:rJe,children:e})}),b.jsx(Ur,{gap:4,children:r})]})})}):null}function oJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{style:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:s,onChange:l}=o_(a,e),c=o?.opacity??100;return b.jsxs(l_,{nodeProps:e,title:a,align:"start",children:[b.jsx(s_,{elementColor:i,onColorPreview:s,isOpacityEditable:!0,elementOpacity:c,onChange:l,position:"left-start"}),b.jsx(ote,{elementBorderStyle:o?.border??(c<99?"dashed":"none"),onChange:l}),r&&b.jsx(i_,{elementId:a}),n&&b.jsx(a_,{fqn:a})]})}function aJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{deploymentFqn:o,style:a,modelFqn:i}}=e,{elementColor:s,onColorPreview:l,onChange:c}=o_(o,e);return b.jsxs(l_,{nodeProps:e,title:o,align:"start",children:[b.jsx(s_,{elementColor:s,onColorPreview:l,isOpacityEditable:!0,elementOpacity:a?.opacity,onChange:c,position:"left-start"}),b.jsx(ote,{elementBorderStyle:a?.border,onChange:c}),r&&b.jsx(i_,{deploymentId:o}),n&&i&&b.jsx(a_,{fqn:i})]})}function ote({elementBorderStyle:e="dashed",onChange:r}){const[n,o]=E.useState(e);return E.useEffect(()=>{o(e)},[e]),b.jsx(Se,{children:b.jsx(U1,{size:"xs",fullWidth:!0,withItemsBorders:!1,value:n,onChange:a=>{const i=a;o(i),r({border:i})},styles:{label:{paddingTop:"0.5",paddingBottom:"0.5"}},data:[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"None",value:"none"}]})})}function iJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{shape:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:s,onChange:l}=o_(a,e);return b.jsxs(l_,{nodeProps:e,title:a,align:"start",children:[b.jsx(ate,{elementShape:o,onChange:l}),b.jsx(s_,{elementColor:i,onColorPreview:s,onChange:l,position:"right-end"}),r&&b.jsx(i_,{elementId:a}),n&&b.jsx(a_,{fqn:a})]})}function sJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{shape:o,deploymentFqn:a,modelFqn:i}}=e,{elementColor:s,onColorPreview:l,onChange:c}=o_(a,e);return b.jsxs(l_,{nodeProps:e,title:a,align:"start",children:[b.jsx(ate,{elementShape:o,onChange:c}),b.jsx(s_,{elementColor:s,onColorPreview:l,onChange:c,position:"right-end"}),r&&b.jsx(i_,{deploymentId:a}),n&&i&&b.jsx(a_,{fqn:i})]})}function ate({elementShape:e,onChange:r}){return b.jsxs(fo,{openDelay:300,closeDelay:450,floatingStrategy:"fixed",closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,closeOnItemClick:!1,position:"top-start",offset:2,styles:{item:{padding:"calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-xs)"}},withinPortal:!1,children:[b.jsx(F3,{children:b.jsx(Zn,{variant:"light",color:"gray",size:"compact-xs",rightSection:b.jsx(LA,{size:12}),children:e})}),b.jsx(F1,{onDoubleClick:cn,onClick:cn,children:Lye.map(n=>b.jsx(H1,{fz:12,fw:500,value:n,rightSection:e===n?b.jsx(TQ,{size:12}):void 0,onClick:o=>{o.stopPropagation(),r({shape:n})},children:n},n))})]})}const c_={top:"50%",left:"50%",right:"unset",bottom:"unset",visibility:"hidden",width:5,height:5,transform:"translate(-50%, -50%)"},Iy=()=>b.jsxs(b.Fragment,{children:[b.jsx(uo,{type:"target",position:tt.Top,style:c_}),b.jsx(uo,{type:"target",position:tt.Left,style:c_}),b.jsx(uo,{type:"source",position:tt.Right,style:c_}),b.jsx(uo,{type:"source",position:tt.Bottom,style:c_})]});function u7(e){const{enableElementDetails:r}=wr(),n=Wt(),o=e.data.modelFqn;return!r||!o?null:b.jsx(FA,{...e,onClick:a=>{a.stopPropagation(),n.openElementDetails(o,e.id)}})}function ite(e){const{enableElementDetails:r}=wr(),n=Wt(),o=e.data.modelFqn;return!r||!o?null:b.jsx(WJ,{...e,onClick:a=>{a.stopPropagation(),n.openElementDetails(o,e.id)}})}function lJe(e){const{enableElementTags:r,enableReadOnly:n}=wr();return b.jsxs(mm,{nodeProps:e,children:[b.jsx(gm,{...e}),b.jsx(ms,{...e}),r&&b.jsx(Ey,{...e}),b.jsx(Jee,{...e}),b.jsx(u7,{...e}),!n&&b.jsx(iJe,{...e}),b.jsx(Iy,{})]})}function cJe(e){const{enableElementTags:r,enableReadOnly:n}=wr();return b.jsxs(mm,{nodeProps:e,children:[b.jsx(gm,{...e}),b.jsx(ms,{...e}),r&&b.jsx(Ey,{...e}),b.jsx(QQe,{...e}),b.jsx(u7,{...e}),!n&&b.jsx(sJe,{...e}),b.jsx(Iy,{})]})}function uJe(e){const{enableElementDetails:r,enableReadOnly:n}=wr();return b.jsxs($y,{nodeProps:e,children:[b.jsx(Py,{...e}),b.jsx(ete,{...e}),r&&b.jsx(ite,{...e}),!n&&b.jsx(oJe,{...e}),b.jsx(Iy,{})]})}function dJe(e){const{enableElementDetails:r,enableReadOnly:n}=wr();return b.jsxs($y,{nodeProps:e,children:[b.jsx(Py,{...e}),b.jsx(ete,{...e}),r&&b.jsx(ite,{...e}),!n&&b.jsx(aJe,{...e}),b.jsx(Iy,{})]})}function hJe(e){return b.jsxs($y,{nodeProps:e,children:[b.jsx(Py,{...e}),b.jsx(Iy,{})]})}const fJe={left:tt.Left,right:tt.Right,top:tt.Top,bottom:tt.Bottom},pJe=({data:e,port:r})=>b.jsxs(b.Fragment,{children:[b.jsx(Vr,{"data-likec4-color":e.color,className:ye({position:"absolute",backgroundColor:"var(--likec4-palette-fill)",rounded:"xs",width:{base:"5px",_whenHovered:"7px",_whenSelected:"7px"},transition:"fast",translateX:"-1/2",translateY:"-1/2",translate:"auto"}),style:{top:r.cy,left:r.cx,height:r.height}}),b.jsx(uo,{id:r.id,type:r.type,position:fJe[r.position],style:{top:r.cy-3,left:r.cx-3,width:6,height:6,right:"unset",bottom:"unset",visibility:"hidden",transform:r.position==="left"?"translate(-150%, 0)":"translate(100%, 0)"}})]}),mJe=e=>Sa(e.modelFqn);function gJe(e){const r=e.data,{positionAbsoluteY:n,data:{viewHeight:o,hovered:a=!1,ports:i}}=e;return b.jsxs(b.Fragment,{children:[b.jsx(Vr,{"data-likec4-color":"gray",className:ye({position:"absolute",rounded:"xs",top:"1",pointerEvents:"none",transition:"fast",translateX:"-1/2",translate:"auto"}),style:{backgroundColor:"var(--likec4-palette-stroke)",opacity:a?.6:.4,left:"50%",width:a?3:2,height:o-n,zIndex:-1,pointerEvents:"none"}}),b.jsxs(mm,{nodeProps:e,children:[b.jsx(gm,{...e}),b.jsx(ms,{...e}),mJe(r)&&b.jsxs(b.Fragment,{children:[b.jsx(Jee,{...e,data:r}),b.jsx(u7,{...e,data:r})]})]}),i.map(s=>b.jsx(pJe,{port:s,data:e.data},s.id))]})}function yJe(e){return b.jsx(Vr,{"data-likec4-color":e.data.color,css:{width:"100%",height:"100%",border:"default",rounded:"sm",borderWidth:1,"--_color":{base:"var(--likec4-palette-stroke)",_dark:"[color-mix(in srgb, var(--likec4-palette-hiContrast) 40%, var(--likec4-palette-fill))]"},borderColor:"[var(--_color)/30]",backgroundColor:"var(--likec4-palette-fill)/15",pointerEvents:"none",paddingLeft:"2",paddingTop:"0.5",fontSize:"xs",fontWeight:"bold",letterSpacing:".75px",color:"[var(--_color)/75]"},children:"PARALLEL"})}const vh={ElementNode:lJe,DeploymentNode:cJe,CompoundElementNode:uJe,CompoundDeploymentNode:dJe,ViewGroupNode:hJe,SequenceActorNode:gJe,SequenceParallelArea:yJe},ste={RelationshipEdge:KQe,SequenceStepEdge:ZQe};class Em{static LeftPadding=40;static RightPadding=40;static TopPadding=55;static BottomPadding=40;id;minX=1/0;minY=1/0;maxX=-1/0;maxY=-1/0;get positionAbsolute(){return{x:this.minX,y:this.minY}}set positionAbsolute(r){const n=Math.round(r.x),o=Math.round(r.y);this.maxX+=n-this.minX,this.maxY+=o-this.minY,this.minX=n,this.minY=o}get dimensions(){return{width:this.maxX-this.minX,height:this.maxY-this.minY}}get position(){const r=this.positionAbsolute;if(!this.parent)return r;const n=this.parent.positionAbsolute;return{x:r.x-n.x,y:r.y-n.y}}constructor(r,n=null){this.id=r.id,this.positionAbsolute=n?{x:r.position.x+n.minX,y:r.position.y+n.minY}:r.position;const{width:o,height:a}=Wn(r);this.maxX=this.minX+Math.ceil(o),this.maxY=this.minY+Math.ceil(a),n&&n.children.push(this)}}class d7 extends Em{constructor(r,n=null){super(r,n),this.parent=n}children=[]}class bJe extends Em{constructor(r,n=null){super(r,n),this.parent=n}}function lte(e,r){const{parentLookup:n,nodeLookup:o}=e.getState(),a=new Map,i=g=>{const y=[];let x=o.get(g)?.parentId,w;for(;x&&(w=o.get(x));)y.push(w.id),x=w.parentId;return y},s=new Set(r.flatMap(i)),l=[...o.values()].flatMap(g=>g.parentId?[]:{xynode:g,parent:null});for(;l.length>0;){const{xynode:g,parent:y}=l.shift();if(!r.includes(g.id)&&g.type!=="element"&&g.type!=="deployment"&&s.has(g.id)){const x=new d7(g,y);a.set(g.id,x),n.get(g.id)?.forEach(w=>{l.push({xynode:w,parent:x})})}else a.set(g.id,new bJe(g,y))}const c=[...a.values()];u(c);function u(g){for(const y of g){if(!(y instanceof d7))continue;u(y.children);const x={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(const w of y.children)x.minX=Math.min(x.minX,w.minX),x.minY=Math.min(x.minY,w.minY),x.maxX=Math.max(x.maxX,w.maxX),x.maxY=Math.max(x.maxY,w.maxY);y.minX=x.minX-Em.LeftPadding,y.minY=x.minY-Em.TopPadding,y.maxX=x.maxX+Em.RightPadding,y.maxY=x.maxY+Em.BottomPadding}}function d(){u(c),e.getState().triggerNodeChanges(c.reduce((g,y)=>(g.push({id:y.id,type:"position",dragging:!1,position:y.position,positionAbsolute:y.positionAbsolute}),y instanceof d7&&g.push({id:y.id,type:"dimensions",setAttributes:!0,dimensions:y.dimensions}),g),[]))}let h=null;function p(){c.length!==0&&(h??=requestAnimationFrame(()=>{h=null;const{nodeLookup:g}=e.getState();for(const y of r){const x=mt(a.get(y)),w=mt(g.get(y));x.positionAbsolute=w.internals.positionAbsolute}d()}))}return{rects:a,updateXYFlowNodes:d,onMove:p}}function vJe(){const e=L9(),r=Wt(),n=E.useRef(void 0);return E.useMemo(()=>{let o=!1;const a={x:0,y:0};let i=!1;return{onNodeDragStart:(s,l)=>{o=r.cancelSaveManualLayout();const{nodeLookup:c}=e.getState(),u=yn(Array.from(c.values()),dp(d=>d.draggable!==!1&&(d.dragging===!0||d.id===l.id||d.selected===!0)));To(u,1)&&(n.current=lte(e,Ao(u,d=>d.id))),a.x=s.clientX,a.y=s.clientY,i=!1},onNodeDrag:s=>{i=Math.abs(s.clientX-a.x)>4||Math.abs(s.clientY-a.y)>4,n.current?.onMove()},onNodeDragStop:s=>{i=Math.abs(s.clientX-a.x)>4||Math.abs(s.clientY-a.y)>4,(o||i)&&r.scheduleSaveManualLayout(),n.current=void 0}}},[e,r])}const xJe={relationship:ste.RelationshipEdge,"seq-step":ste.SequenceStepEdge},Cu={element:ic(vh.ElementNode),deployment:ic(vh.DeploymentNode),"compound-element":ic(vh.CompoundElementNode),"compound-deployment":ic(vh.CompoundDeploymentNode),"view-group":ic(vh.ViewGroupNode),"seq-actor":ic(vh.SequenceActorNode),"seq-parallel":ic(vh.SequenceParallelArea)};function wJe(e){return!e||iu(e)?Cu:{element:e.element??Cu.element,deployment:e.deployment??Cu.deployment,"compound-element":e.compoundElement??Cu["compound-element"],"compound-deployment":e.compoundDeployment??Cu["compound-deployment"],"view-group":e.viewGroup??Cu["view-group"],"seq-actor":e.seqActor??Cu["seq-actor"],"seq-parallel":e.seqParallel??Cu["seq-parallel"]}}const kJe=e=>({initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges,pannable:e.pannable,zoomable:e.zoomable,fitViewPadding:e.fitViewPadding,enableFitView:e.features.enableFitView,enableReadOnly:e.features.enableReadOnly||e.toggledFeatures.enableReadOnly||e.dynamicViewVariant==="sequence"&&e.view._type==="dynamic",...!e.features.enableFitView&&{viewport:{x:-Math.min(e.view.bounds.x,0),y:-Math.min(e.view.bounds.y,0),zoom:1}}}),_Je=(e,r)=>e.initialized===r.initialized&&e.pannable===r.pannable&&e.zoomable===r.zoomable&&e.enableFitView===r.enableFitView&&e.enableReadOnly===r.enableReadOnly&&ut(e.fitViewPadding,r.fitViewPadding)&&Xn(e.nodes,r.nodes)&&Xn(e.edges,r.edges)&&Xn(e.viewport??null,r.viewport??null);function EJe({background:e="dots",nodesDraggable:r=!1,nodesSelectable:n=!1,reactFlowProps:o={},children:a,renderNodes:i}){const s=Wt(),{initialized:l,nodes:c,edges:u,enableReadOnly:d,enableFitView:h,...p}=$a(kJe,_Je),{onNodeContextMenu:g,onCanvasContextMenu:y,onEdgeContextMenu:x,onNodeClick:w,onEdgeClick:k,onCanvasClick:C,onCanvasDblClick:_}=sc(),T=!d,A=_ze(),N=vJe(),$=Sze(),R=VV(()=>{$.set(!0)},A?120:400),M=vp(()=>{R.clear(),$.get()&&$.set(!1)},A?350:200),O=it(D=>{D&&($.get()||R.start(),M())}),B=it((D,V)=>{R.clear(),s.send({type:"xyflow.viewportMoved",viewport:V,manually:!!D})}),I=it(()=>{s.send({type:"xyflow.resized"})}),Y=VB(()=>wJe(i),[i],$Q);return $k(()=>{console.warn("renderNodes changed - this might degrade performance")},[Y]),b.jsx(U9,{nodes:c,edges:u,className:Je(l?"initialized":"not-initialized"),nodeTypes:Y,edgeTypes:xJe,onNodesChange:it(D=>{s.send({type:"xyflow.applyNodeChanges",changes:D})}),onEdgesChange:it(D=>{s.send({type:"xyflow.applyEdgeChanges",changes:D})}),background:l?e:"transparent",fitView:!1,onNodeClick:it((D,V)=>{D.stopPropagation(),s.send({type:"xyflow.nodeClick",node:V}),w?.(s.findDiagramNode(V.id),D)}),onEdgeClick:it((D,V)=>{D.stopPropagation(),s.send({type:"xyflow.edgeClick",edge:V}),k?.(s.findDiagramEdge(V.id),D)}),onPaneClick:it(D=>{D.stopPropagation(),s.send({type:"xyflow.paneClick"}),C?.(D)}),onDoubleClick:it(D=>{D.stopPropagation(),D.preventDefault(),s.send({type:"xyflow.paneDblClick"}),_?.(D)}),onNodeMouseEnter:it((D,V)=>{D.stopPropagation(),V.data.hovered||s.send({type:"xyflow.nodeMouseEnter",node:V})}),onNodeMouseLeave:it((D,V)=>{D.stopPropagation(),V.data.hovered&&s.send({type:"xyflow.nodeMouseLeave",node:V})}),onEdgeMouseEnter:it((D,V)=>{D.stopPropagation(),V.data.hovered||s.send({type:"xyflow.edgeMouseEnter",edge:V,event:D})}),onEdgeMouseLeave:it((D,V)=>{D.stopPropagation(),V.data.hovered&&s.send({type:"xyflow.edgeMouseLeave",edge:V,event:D})}),onMove:O,onMoveEnd:B,onInit:it(D=>{s.send({type:"xyflow.init",instance:D})}),onNodeContextMenu:it((D,V)=>{const L=mt(s.findDiagramNode(V.id),`diagramNode ${V.id} not found`);g?.(L,D)}),onEdgeContextMenu:it((D,V)=>{const L=mt(s.findDiagramEdge(V.id),`diagramEdge ${V.id} not found`);x?.(L,D)}),onPaneContextMenu:it(D=>{y?.(D)}),...h&&{onViewportResize:I},nodesDraggable:T&&r,nodesSelectable:n,edgesFocusable:!1,...T&&r&&N,...p,...o,children:a})}function SJe(e){const{view:r,nodesSelectable:n}=e,o=[],a=[],i=new Map,s=E4.from(r.nodes.reduce((h,p)=>(i.set(p.id,p),p.parent||h.push({node:p,parent:null}),h),[]));let l=h=>!0;if(e.where)try{const h=Nd(e.where);l=p=>h({...lV(p,["tags","kind"]),..."source"in p?{source:u(p.source)}:p,..."target"in p?{target:u(p.target)}:p})}catch(h){console.error("Error in where filter:",h)}const c="",u=h=>mt(i.get(h),`Node not found: ${h}`);let d;for(;d=s.dequeue();){const{node:h,parent:p}=d,g=To(h.children,1)||h.kind==vd;if(g)for(const A of h.children)s.enqueue({node:u(A),parent:h});const y={x:h.x,y:h.y};p&&(y.x-=p.x,y.y-=p.y);const x={id:c+h.id,selectable:n&&h.kind!==vd,focusable:n&&h.kind!==vd,deletable:!1,position:y,zIndex:g?ds.Compound:ds.Element,style:{width:h.width,height:h.height},initialWidth:h.width,initialHeight:h.height,hidden:h.kind!==vd&&!l(h),...p&&{parentId:c+p.id}},w={viewId:r.id,id:h.id,title:h.title,color:h.color,shape:h.shape,style:h.style,depth:h.depth??0,icon:h.icon??"none",tags:h.tags??null,x:h.x,y:h.y},k={viewId:r.id,id:h.id,title:h.title,technology:h.technology??null,description:Kt.from(h.description),height:h.height,width:h.width,level:h.level,color:h.color,shape:h.shape,style:h.style,icon:h.icon??null,tags:h.tags,x:h.x,y:h.y,isMultiple:h.style?.multiple??!1};if(h.kind===vd){o.push({...x,type:"view-group",data:{isViewGroup:!0,...w},dragHandle:".likec4-compound-title"});continue}const C=h.modelRef??null,_=h.deploymentRef??null;if(!C&&!_)throw console.error("Invalid node",h),new Error("Element should have either modelRef or deploymentRef");const T={navigateTo:h.navigateTo??null};switch(!0){case(g&&!!_):{o.push({...x,type:"compound-deployment",data:{...w,...T,deploymentFqn:_,modelFqn:C},dragHandle:".likec4-compound-title"});break}case g:{nt(!!C,"ModelRef expected"),o.push({...x,type:"compound-element",data:{...w,...T,modelFqn:C},dragHandle:".likec4-compound-title"});break}case!!_:{o.push({...x,type:"deployment",data:{...k,...T,deploymentFqn:_,modelFqn:C}});break}default:nt(!!C,"ModelRef expected"),o.push({...x,type:"element",data:{...k,...T,modelFqn:C}})}}for(const h of r.edges){const p=h.source,g=h.target,y=c+h.id;if(!To(h.points,2)){console.error("edge should have at least 2 points",h);continue}a.push({id:y,type:"relationship",source:c+p,target:c+g,zIndex:ds.Edge,selectable:n,hidden:!l(h),deletable:!1,data:{id:h.id,label:h.label,technology:h.technology,notes:Kt.from(h.notes),navigateTo:h.navigateTo,controlPoints:h.controlPoints??null,labelBBox:h.labelBBox??null,labelXY:h.labelBBox?{x:h.labelBBox.x,y:h.labelBBox.y}:null,points:h.points,color:h.color??"gray",line:h.line??"dashed",dir:h.dir??"forward",head:h.head??"normal",tail:h.tail??"none",astPath:h.astPath},interactionWidth:20})}return{bounds:r.bounds,xynodes:o,xyedges:a}}const cte={parallel:1,actor:10},u_={default:"gray",active:"amber"};function CJe(e){const{actors:r,steps:n,compounds:o,parallelAreas:a,bounds:i}=e.sequenceLayout,s=[],l=[],c=u=>mt(e.nodes.find(d=>d.id===u));for(const u of o)s.push(TJe(u,c(u.origin),e));for(const u of a)s.push(AJe(u,e));for(const u of r)s.push(NJe(u,c(u.id),i,e));for(const u of n){const d=e.edges.find(h=>h.id===u.id);if(!d)throw new Error(`Edge ${u.id} not found`);l.push(RJe(u,d))}return{bounds:i,xynodes:s,xyedges:l}}function TJe({id:e,x:r,y:n,width:o,height:a,depth:i},s,l){return{id:e,type:"view-group",data:{id:s.id,title:s.title,color:s.color??"gray",shape:s.shape,style:s.style,tags:s.tags,x:r,y:n,viewId:l.id,depth:i,isViewGroup:!0},position:{x:r,y:n},draggable:!1,selectable:!1,focusable:!1,style:{pointerEvents:"none"},width:o,initialWidth:o,height:a,initialHeight:a}}function AJe({parallelPrefix:e,x:r,y:n,width:o,height:a},i){return{id:`seq-parallel-${e}`,type:"seq-parallel",data:{id:`seq-parallel-${e}`,title:"PARALLEL",technology:null,color:u_.default,shape:"rectangle",style:{},tags:[],x:r,y:n,level:0,icon:null,width:o,height:a,description:Kt.EMPTY,viewId:i.id,parallelPrefix:e},zIndex:cte.parallel,position:{x:r,y:n},draggable:!1,deletable:!1,selectable:!1,focusable:!1,style:{pointerEvents:"none"},width:o,initialWidth:o,height:a,initialHeight:a}}function NJe({id:e,x:r,y:n,width:o,height:a,ports:i},s,l,c){return{id:e,type:"seq-actor",data:{id:s.id,x:r,y:n,level:0,icon:s.icon??null,isMultiple:s.style.multiple??!1,title:s.title,width:o,height:a,color:s.color,navigateTo:s.navigateTo??null,shape:s.shape,style:s.style,tags:s.tags,modelFqn:s.modelRef??null,technology:s.technology??null,description:Kt.from(s.description),viewHeight:l.height,viewId:c.id,ports:i},deletable:!1,selectable:!0,zIndex:cte.actor,position:{x:r,y:n},width:o,initialWidth:o,height:a,initialHeight:a}}function RJe({id:e,labelBBox:r,sourceHandle:n,targetHandle:o},a){return{id:e,type:"seq-step",data:{id:e,label:a.label,technology:a.technology,notes:Kt.from(a.notes),navigateTo:a.navigateTo,controlPoints:null,labelBBox:{x:0,y:0,width:r?.width??a.labelBBox?.width??32,height:r?.height??a.labelBBox?.height??32},labelXY:null,points:a.points,color:a.color,line:a.line,dir:"forward",head:a.head??"normal",tail:a.tail??"none",astPath:a.astPath},selectable:!0,focusable:!1,zIndex:20,interactionWidth:40,source:a.source,sourceHandle:n,target:a.target,targetHandle:o}}function $Je({dynamicViewVariant:e,...r}){const n=r.view,o=n._type==="dynamic",{bounds:a,xynodes:i,xyedges:s}=o&&e==="sequence"?CJe(n):SJe(r);return o&&n.variant!==e?{view:{...n,bounds:a,variant:e},xynodes:i,xyedges:s}:{view:a===n.bounds?n:{...n,bounds:a},xynodes:i,xyedges:s}}function ute(e,r){return r.map(n=>{const o=e.find(a=>a.id===n.id);return o&&ut(o.type,n.type)?ut(o.hidden??!1,n.hidden??!1)&&ut(o.source,n.source)&&ut(o.sourceHandle??null,n.sourceHandle??null)&&ut(o.target,n.target)&&ut(o.targetHandle??null,n.targetHandle??null)&&ut(o.zIndex??0,n.zIndex??0)&&ut(o.data,n.data)?o:{...Vd(o,["hidden","zIndex"]),...n,data:n.data}:n})}function dte(e,r){return H6(r)?ute(e,r):(r=e,n=>ute(n,r))}function hte(e,r){return r.map(n=>{const o=e.find(a=>a.id===n.id);if(o&&ut(o.type,n.type)){const{width:a,height:i}=Wn(o);return ut(a,n.initialWidth)&&ut(i,n.initialHeight)&&ut(o.parentId??null,n.parentId??null)&&ut(o.hidden??!1,n.hidden??!1)&&ut(o.zIndex??0,n.zIndex??0)&&ut(o.position,n.position)&&ut(o.data,n.data)?o:{...Vd(o,["measured","parentId","hidden","zIndex"]),...n,width:n.initialWidth,height:n.initialHeight,data:n.data}}return n})}function h7(e,r){return H6(r)?hte(e,r):(r=e,n=>hte(n,r))}const f7={top:"40px",bottom:"16px",left:"16px",right:"16px"};function fte(e){const r=[],n=[],o=new Map,a=E4.from(e.nodes.reduce((l,c)=>(o.set(c.id,c),c.parent||l.push({node:c,parent:null}),l),[])),i=l=>mt(o.get(l),`Node not found: ${l}`);let s;for(;s=a.dequeue();){const{node:l,parent:c}=s,u=To(l.children,1)||l.kind==vd;if(u)for(const x of l.children)a.enqueue({node:i(x),parent:l});const d={x:l.x,y:l.y};c&&(d.x-=c.x,d.y-=c.y);const h=l.id,p={id:h,draggable:!1,selectable:!0,focusable:!0,position:d,zIndex:u?ds.Compound:ds.Element,style:{width:l.width,height:l.height},initialWidth:l.width,initialHeight:l.height,...c&&{parentId:c.id}},g=l.modelRef??null,y={navigateTo:l.navigateTo??null};switch(!0){case l.kind===Ik.Empty:{r.push({...p,type:"empty",data:{column:l.column}});break}case(u&&!!g):{r.push({...p,type:"compound",data:{id:h,column:l.column,title:l.title,color:l.color,shape:l.shape,style:l.style,depth:l.depth??0,icon:l.icon??"none",ports:l.ports,existsInCurrentView:l.existsInCurrentView,fqn:g,...y}});break}default:nt(g,"Element should have either modelRef or deploymentRef"),r.push({...p,type:"element",data:{id:h,column:l.column,fqn:g,title:l.title,technology:l.technology,description:l.description,height:l.height,width:l.width,color:l.color,shape:l.shape,icon:l.icon??"none",ports:l.ports,style:l.style,existsInCurrentView:l.existsInCurrentView,tags:l.tags,...y}})}}for(const l of e.edges){const c=l.source,u=l.target,d=l.id;if(!To(l.points,2)){console.error("edge should have at least 2 points",l);continue}if(!To(l.relations,1)){console.error("edge should have at least 1 relation",l);continue}n.push({id:d,type:"relationship",source:c,target:u,sourceHandle:l.sourceHandle,targetHandle:l.targetHandle,data:{sourceFqn:l.sourceFqn,targetFqn:l.targetFqn,relations:l.relations,color:l.color??"gray",label:l.label,navigateTo:l.navigateTo??null,line:l.line??"dashed",existsInCurrentView:l.existsInCurrentView},interactionWidth:20})}return{xynodes:r,xyedges:n}}const pte=e=>e.find(r=>r.data.column==="subjects"&&rV(r.parentId)),PJe=Kje(async({input:e,self:r,signal:n})=>{const{subjectId:o,navigateFromNode:a,xyflow:i,xystore:s,update:l}=e;let{nodes:c,width:u,height:d}=s.getState();const h=fte(l),p=()=>{const{nodes:R,edges:M}=s.getState();return{xynodes:h7(R,h.xynodes),xyedges:dte(M,h.xyedges)}},g=mt(r._parent);let y=i.getZoom();const x=Math.max(y,1),w=tu(l.bounds,u,d,hs,x,f7),k=h.xynodes.find(R=>R.type!=="empty"&&R.data.column==="subjects"&&R.data.fqn===o)??pte(h.xynodes),C=pte(c),_=a?c.find(R=>R.id===a):c.find(R=>R.type!=="empty"&&R.data.column!=="subjects"&&R.data.fqn===o);if(!k||!_||k.type==="empty"||!C||k.data.fqn===C.data.fqn)return await i.setViewport(w),p();const T={x:k.position.x+(k.initialWidth??0)/2,y:k.position.y+(k.initialHeight??0)/2},A=i.getInternalNode(C.id),N=eYe(A),$=new Set;return c.forEach(R=>{if(R.id!==_.id){if(R.data.column==="subjects"){$.add(R.id);return}R.parentId&&(R.parentId===_.id||$.has(R.parentId))&&$.add(R.id)}}),c=h7(c,c.flatMap(R=>$.has(R.id)?[]:R.id!==_.id?{...R,data:{...R.data,dimmed:R.data.column==="subjects"?"immediate":!0}}:{...Vd(R,["parentId"]),position:{x:N.x-R.initialWidth/2,y:N.y-R.initialHeight/2},zIndex:ds.Max,hidden:!1,data:{...R.data,dimmed:!1}})),g.send({type:"update.xydata",xynodes:c,xyedges:[]}),await F4e(120),h.xynodes=h.xynodes.map(Jt.setDimmed(!1)),n.aborted||(await i.setCenter(N.x,N.y,{zoom:y,duration:300}),await i.setCenter(T.x,T.y,{zoom:y})),p()}),MJe=ec({actors:{layouter:PJe},guards:{hasViewId:({context:e})=>e.viewId!==null,isReady:({context:e})=>e.xyflow!==null&&e.xystore!==null&&e.layouted!==null,anotherSubject:({context:e,event:r})=>r.type==="update.view"?e.layouted?.subject!==r.layouted.subject:!1},actions:{"xyflow.init":et(({event:e})=>(Ut(e,"xyflow.init"),{xyflow:e.instance,xystore:e.store})),"update.view":et(({event:e})=>(Ut(e,"update.view"),{layouted:e.layouted,...fte(e.layouted)})),"xyflow:updateNodeInternals":({context:e})=>{nt(e.xystore,"xystore is not initialized");const{domNode:r,updateNodeInternals:n}=e.xystore.getState(),o=new Set(e.xyedges.flatMap(i=>[i.source,i.target]));if(o.size===0||!r)return;const a=new Map;for(const i of o){const s=r.querySelector(`.react-flow__node[data-id="${i}"]`);s&&a.set(i,{id:i,nodeElement:s,force:!0})}n(a,{triggerFitView:!1})},"xyflow:fitDiagram":({context:e},r)=>{let{duration:n,bounds:o}=r??{};n??=450;const{xyflow:a,xystore:i}=e;nt(a,"xyflow is not initialized"),nt(i,"xystore is not initialized"),o??=e.layouted?.bounds;const s=Math.max(a.getZoom(),1);if(o){const{width:l,height:c}=i.getState(),u=tu(o,l,c,hs,s,f7);a.setViewport(u,n>0?{duration:n}:void 0).catch(console.error)}else a.fitView({minZoom:hs,maxZoom:s,padding:f7,...n>0&&{duration:n}}).catch(console.error)},"xyflow.applyNodeChanges":et(({context:e,event:r})=>(Ut(r,"xyflow.applyNodeChanges"),{xynodes:Aw(r.changes,e.xynodes)})),"xyflow.applyEdgeChanges":et(({context:e,event:r})=>(Ut(r,"xyflow.applyEdgeChanges"),{xyedges:Nw(r.changes,e.xyedges)}))}}).createMachine({id:"relationships-browser",context:({input:e})=>({subject:e.subject,viewId:e.viewId,scope:e.viewId?e.scope:"global",closeable:e.closeable??!0,enableSelectSubject:e.enableSelectSubject??!0,enableChangeScope:e.enableChangeScope??!0,xyflow:null,xystore:null,layouted:null,navigateFromNode:null,xynodes:[],xyedges:[]}),initial:"initializing",on:{"xyflow.applyNodeChanges":{actions:"xyflow.applyNodeChanges"},"xyflow.applyEdgeChanges":{actions:"xyflow.applyEdgeChanges"}},states:{initializing:{on:{"xyflow.init":{actions:"xyflow.init",target:"isReady"},"update.view":{actions:"update.view",target:"isReady"},stop:"closed",close:"closed"}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},sn({type:"xyflow.updateNodeInternals"},{delay:150})],target:"active"},{target:"initializing"}]},active:{initial:"idle",tags:["active"],on:{"xyflow.nodeClick":{actions:ln(({event:e,enqueue:r})=>{if("fqn"in e.node.data){const n=e.node.data.fqn;r.raise({type:"navigate.to",subject:n,fromNode:e.node.id})}})},"xyflow.edgeClick":{guard:"hasViewId",actions:ln(({event:e,context:r,system:n,enqueue:o})=>{(e.edge.selected||e.edge.data.relations.length>1)&&o.sendTo(tc(n).overlaysActorRef,{type:"open.relationshipDetails",viewId:r.viewId,source:e.edge.data.sourceFqn,target:e.edge.data.targetFqn})})},"navigate.to":{actions:[et({subject:({event:e})=>e.subject,viewId:({event:e,context:r})=>e.viewId??r.viewId??null,navigateFromNode:({event:e})=>e.fromNode??null})]},"xyflow.paneDblClick":{actions:"xyflow:fitDiagram"},"update.view":{actions:"update.view",target:".layouting"},"change.scope":{actions:et({scope:({event:e})=>e.scope})},"xyflow.updateNodeInternals":{actions:"xyflow:updateNodeInternals"},fitDiagram:{actions:{type:"xyflow:fitDiagram",params:Ca("event")}},"xyflow.resized":{actions:[oa("fitDiagram"),sn({type:"fitDiagram"},{id:"fitDiagram",delay:300})]},"xyflow.init":{actions:"xyflow.init"},"xyflow.unmount":{target:"initializing"},close:"closed"},states:{idle:{on:{"xyflow.edgeMouseEnter":{actions:[et({xyedges:({context:e,event:r})=>{const n=e.xyedges.some(o=>o.data.dimmed!==!1||o.selected);return e.xyedges.map(o=>o.id===r.edge.id?Jt.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?Jt.setDimmed(o,"immediate"):o)}}),oa("undim.edges"),oa("dim.nonhovered.edges"),sn({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:200})]},"xyflow.edgeMouseLeave":{actions:[et({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?Jt.setHovered(n,!1):n)}),oa("dim.nonhovered.edges"),sn({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:et({xyedges:({context:e})=>e.xyedges.map(r=>r.data.hovered?r:Jt.setDimmed(r,r.data.dimmed==="immediate"?"immediate":!0))})},"undim.edges":{actions:et({xyedges:({context:e})=>e.xyedges.map(Jt.setDimmed(!1))})},"xyflow.selectionChange":{actions:ln(({event:e,context:r,enqueue:n})=>{e.edges.length===0&&r.xyedges.some(o=>o.data.dimmed)&&!r.xyedges.some(o=>o.data.hovered)&&n.raise({type:"undim.edges"})})}}},layouting:{invoke:{id:"layouter",src:"layouter",input:({context:e})=>({subjectId:e.subject,navigateFromNode:e.navigateFromNode,xyflow:mt(e.xyflow),xystore:mt(e.xystore),update:mt(e.layouted)}),onDone:{target:"idle",actions:ln(({enqueue:e,event:r})=>{e.assign({xynodes:r.output.xynodes,xyedges:r.output.xyedges,navigateFromNode:null}),e.raise({type:"fitDiagram",duration:200},{id:"fitDiagram",delay:50});for(let n=0;n<6;n++)e.raise({type:"xyflow.updateNodeInternals"},{delay:100+n*100})})}},on:{"update.xydata":{actions:et({xynodes:({event:e})=>e.xynodes,xyedges:({event:e})=>e.xyedges})},"xyflow.applyEdgeChanges":{},"xyflow.applyNodeChanges":{}}}}},closed:{id:"closed",type:"final"}},exit:et({xyflow:null,layouted:null,xystore:null,xyedges:[],xynodes:[]})}),mte=MJe,OJe=ec({actors:{relationshipsBrowserLogic:mte}}).createMachine({id:"element-details",context:({input:e})=>({...e,initiatedFrom:{node:e.initiatedFrom?.node??null,clientRect:e.initiatedFrom?.clientRect??null}}),initial:"active",states:{active:{entry:qp("relationshipsBrowserLogic",{id:({self:e})=>`${e.id}-relationships`,input:({context:e})=>({subject:e.subject,viewId:e.currentView.id,scope:"view",enableSelectSubject:!1,enableChangeScope:!0,closeable:!1})}),exit:[il(({self:e})=>`${e.id}-relationships`,{type:"close"}),yu(({self:e})=>`${e.id}-relationships`)],on:{"change.subject":{actions:et({subject:({event:e})=>e.subject})},close:"closed"}},closed:{id:"closed",type:"final"}}}),DJe=OJe;function LJe(e){const r=[],n=[],o=new Map,a=E4.from(e.nodes.reduce((l,c)=>(o.set(c.id,c),c.parent||l.push({node:c,parent:null}),l),[])),i=l=>mt(o.get(l),`Node not found: ${l}`);let s;for(;s=a.dequeue();){const{node:l,parent:c}=s,u=To(l.children,1);if(u)for(const x of l.children)a.enqueue({node:i(x),parent:l});const d={x:l.x,y:l.y};c&&(d.x-=c.x,d.y-=c.y);const h=l.id,p={id:h,draggable:!1,selectable:!0,focusable:!0,deletable:!1,position:d,zIndex:u?ds.Compound:ds.Element,style:{width:l.width,height:l.height},initialWidth:l.width,initialHeight:l.height,...c&&{parentId:c.id}},g=l.modelRef,y={navigateTo:l.navigateTo??null};switch(!0){case u:{r.push({...p,type:"compound",data:{id:h,column:l.column,title:l.title,color:l.color,style:l.style,depth:l.depth??0,icon:l.icon??"none",ports:l.ports,fqn:g,...y}});break}default:r.push({...p,type:"element",data:{id:h,column:l.column,fqn:g,title:l.title,technology:l.technology,description:Kt.from(l.description),height:l.height,width:l.width,color:l.color,shape:l.shape,icon:l.icon??"none",ports:l.ports,style:l.style,tags:l.tags,...y}})}}for(const{source:l,target:c,relationId:u,label:d,technology:h,description:p,navigateTo:g=null,color:y="gray",line:x="dashed",...w}of e.edges){const k=w.id;n.push({id:k,type:"relationship",source:l,target:c,sourceHandle:w.sourceHandle,targetHandle:w.targetHandle,deletable:!1,data:{relationId:u,label:d,color:y,navigateTo:g,line:x,description:Kt.from(p),...h&&{technology:h}}})}return{xynodes:r,xyedges:n,bounds:e.bounds}}function gte(e){return"edgeId"in e?(nt(V6(e.edgeId),"edgeId is required"),{edgeId:e.edgeId}):{source:e.source,target:e.target}}const IJe=ec({actions:{"xyflow:fitDiagram":({context:e},r)=>{let{duration:n,bounds:o}=r??{};n??=450;const{xyflow:a,xystore:i}=e;nt(a,"xyflow is not initialized"),nt(i,"xystore is not initialized"),o??=e.bounds;const s=Math.max(a.getZoom(),1);if(o){const{width:l,height:c}=i.getState(),u=tu(o,l,c,hs,s,.1);a.setViewport(u,n>0?{duration:n}:void 0).catch(console.error)}else a.fitView({minZoom:hs,maxZoom:s,padding:.1,...n>0&&{duration:n}}).catch(console.error)},"xyflow:updateNodeInternals":({context:e})=>{nt(e.xystore,"xystore is not initialized");const{domNode:r,updateNodeInternals:n}=e.xystore.getState(),o=new Set(e.xyedges.flatMap(i=>[i.source,i.target]));if(o.size===0||!r)return;const a=new Map;for(const i of o){const s=r.querySelector(`.react-flow__node[data-id="${i}"]`);s&&a.set(i,{id:i,nodeElement:s,force:!0})}n(a,{triggerFitView:!1})},updateXYFlow:et(({context:e,event:r})=>{Ut(r,"xyflow.init");let n=e.initialized;return n.xyflow||(n={...n,xyflow:!0}),{initialized:n,xyflow:r.instance,xystore:r.store}}),updateLayoutData:et(({context:e,event:r})=>{Ut(r,"update.layoutData");const{xynodes:n,xyedges:o,bounds:a}=LJe(r.data);let i=e.initialized;return i.xydata||(i={...i,xydata:!0}),{initialized:i,xynodes:h7(e.xynodes,n),xyedges:dte(e.xyedges,o),bounds:Xn(e.bounds,a)?e.bounds:a}})},guards:{isReady:({context:e})=>e.initialized.xydata&&e.initialized.xyflow,"enable: navigate.to":()=>!0}}).createMachine({initial:"initializing",context:({input:e})=>({subject:gte(e),viewId:e.viewId,bounds:{x:0,y:0,width:200,height:200},initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null,xynodes:[],xyedges:[]}),states:{initializing:{on:{"xyflow.init":{actions:"updateXYFlow",target:"isReady"},"update.layoutData":{actions:"updateLayoutData",target:"isReady"},close:{target:"closed"}}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},sn({type:"xyflow.updateNodeInternals"},{delay:50})],target:"ready"},{target:"initializing"}]},ready:{on:{"xyflow.edgeMouseEnter":{actions:[et({xyedges:({context:e,event:r})=>{const n=e.xyedges.some(o=>o.data.dimmed===!0||o.data.dimmed==="immediate");return e.xyedges.map(o=>o.id===r.edge.id?Jt.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?Jt.setDimmed(o,"immediate"):o)}}),oa("undim.edges"),oa("dim.nonhovered.edges"),sn({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:100})]},"xyflow.edgeMouseLeave":{actions:[et({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?Jt.setHovered(n,!1):n)}),oa("dim.nonhovered.edges"),sn({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:et({xyedges:({context:e})=>e.xyedges.map(r=>Jt.setDimmed(r,r.data.hovered!==!0))})},"undim.edges":{actions:et({xyedges:({context:e})=>e.xyedges.some(r=>r.selected===!0)?e.xyedges.map(r=>Jt.setDimmed(r,r.selected!==!0?r.data.dimmed||"immediate":!1)):e.xyedges.map(Jt.setDimmed(!1))})},"xyflow.selectionChange":{actions:ln(({event:e,context:r,enqueue:n})=>{e.edges.length===0&&r.xyedges.some(o=>o.data.dimmed)&&!r.xyedges.some(o=>o.data.hovered)&&n.raise({type:"undim.edges"})})},"update.layoutData":{actions:["updateLayoutData",oa("fitDiagram"),sn({type:"fitDiagram",duration:0},{id:"fitDiagram",delay:50}),sn({type:"xyflow.updateNodeInternals"},{delay:75})]},"xyflow.init":{actions:"updateXYFlow"},"xyflow.applyNodeChanges":{actions:et({xynodes:({context:e,event:r})=>Aw(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:et({xyedges:({context:e,event:r})=>Nw(r.changes,e.xyedges)})},"xyflow.paneDblClick":{actions:"xyflow:fitDiagram"},"navigate.to":{actions:et({subject:({event:e})=>gte(e.params),viewId:({context:e,event:r})=>r.params.viewId??e.viewId})},close:{target:"closed"}},exit:et({xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null})},closed:{type:"final"}},on:{fitDiagram:{actions:{type:"xyflow:fitDiagram",params:Ca("event")}},"xyflow.resized":{actions:[oa("fitDiagram"),sn({type:"fitDiagram"},{id:"fitDiagram",delay:200})]},"xyflow.updateNodeInternals":{actions:"xyflow:updateNodeInternals"}}}),zJe=IJe,jJe=zX(({sendBack:e})=>{const r=oC([["Escape",n=>{n.stopPropagation(),e({type:"close"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r,{capture:!0}),()=>{document.body.removeEventListener("keydown",r,{capture:!0})}}),BJe=ec({actors:{relationshipDetails:zJe,elementDetails:DJe,relationshipsBrowser:mte,hotkey:jJe},actions:{closeLastOverlay:ln(({context:e,enqueue:r})=>{if(e.overlays.length===0)return;const n=Ud(e.overlays)?.id;n&&(r.sendTo(n,{type:"close"}),r.stopChild(n),r.assign({overlays:e.overlays.filter(o=>o.id!==n)}))}),closeSpecificOverlay:ln(({context:e,enqueue:r},n)=>{const o=e.overlays.find(a=>a.id===n.actorId)?.id;o&&(r.sendTo(o,{type:"close"}),r.stopChild(o),r.assign({overlays:e.overlays.filter(a=>a.id!==o)}))}),closeAllOverlays:ln(({context:e,enqueue:r})=>{for(const{id:n}of e$e(e.overlays))r.sendTo(n,{type:"close"}),r.stopChild(n);r.assign({overlays:[]})}),openElementDetails:ln(({context:e,enqueue:r,event:n})=>{if(Ut(n,"open.elementDetails"),e.overlays.some(a=>a.type==="elementDetails"&&a.subject===n.subject))return;const o=`elementDetails-${e.seq}`;r.spawnChild("elementDetails",{id:o,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"elementDetails",id:o,subject:n.subject}]})}),openRelationshipDetails:ln(({context:e,enqueue:r,event:n})=>{Ut(n,"open.relationshipDetails");const o=Ud(e.overlays);if(o?.type==="relationshipDetails"){r.sendTo(o.id,{...n,type:"navigate.to"});return}const a=`relationshipDetails-${e.seq}`;r.spawnChild("relationshipDetails",{id:a,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"relationshipDetails",id:a}]})}),openRelationshipsBrowser:ln(({context:e,enqueue:r,event:n})=>{Ut(n,"open.relationshipsBrowser");const o=Ud(e.overlays);if(o?.type==="relationshipsBrowser"){r.sendTo(o.id,{type:"navigate.to",subject:n.subject,viewId:n.viewId});return}const a=`relationshipsBrowser-${e.seq}`;r.spawnChild("relationshipsBrowser",{id:a,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"relationshipsBrowser",id:a,subject:n.subject}]})}),listenToEsc:qp("hotkey",{id:"hotkey"}),stopListeningToEsc:yu("hotkey")},guards:{"has overlays?":({context:e})=>e.overlays.length>0,"close specific overlay?":({context:e,event:r})=>(Ut(r,"close"),V6(r.actorId)&&e.overlays.some(n=>n.id===r.actorId)),"last: is relationshipDetails?":({context:e})=>Ud(e.overlays)?.type==="relationshipDetails","last: is relationshipsBrowser?":({context:e})=>Ud(e.overlays)?.type==="relationshipsBrowser"}}).createMachine({id:"overlays",context:()=>({seq:1,overlays:[]}),initial:"idle",on:{"open.elementDetails":{actions:"openElementDetails",target:".active",reenter:!1},"open.relationshipDetails":{actions:"openRelationshipDetails",target:".active",reenter:!1},"open.relationshipsBrowser":{actions:"openRelationshipsBrowser",target:".active",reenter:!1}},states:{idle:{},active:{entry:"listenToEsc",exit:"stopListeningToEsc",on:{close:[{guard:"close specific overlay?",actions:{type:"closeSpecificOverlay",params:({event:e})=>({actorId:e.actorId})},target:"closing"},{actions:"closeLastOverlay",target:"closing"}],"close.all":{actions:["closeAllOverlays","stopListeningToEsc"],target:"idle"}}},closing:{always:[{guard:"has overlays?",target:"active"},{actions:"stopListeningToEsc",target:"idle"}]}},exit:["stopListeningToEsc","closeAllOverlays"]}),FJe=BJe,HJe=ec({actions:{"change searchValue":et({searchValue:({event:e,context:r})=>(Ut(e,["change.search","open"]),e.search??r.searchValue)}),"reset pickViewFor":et({pickViewFor:()=>null})}}).createMachine({id:"search",context:{openedWithSearch:null,searchValue:"",pickViewFor:null},initial:"inactive",on:{close:{target:".inactive",actions:"reset pickViewFor"}},states:{inactive:{on:{open:{target:"opened",actions:[et({openedWithSearch:({event:e})=>e.search??null,searchValue:({event:e,context:r})=>e.search??r.searchValue})]}}},opened:{on:{open:{actions:"change searchValue"},"change.search":{actions:"change searchValue"},"pickview.open":{target:"pickView",actions:et({pickViewFor:({event:e})=>e.elementFqn})}}},pickView:{on:{"pickview.close":{target:"opened",actions:"reset pickViewFor"}}}}}),UJe=HJe;class yte{}class Sm extends yte{constructor(r,n,o){super(),this.getEdgePosition=r,this.computePosition=n,this.propertyToEdit=o}alignTo;computeLayout(r){this.alignTo=this.getEdgePosition(r)}applyPosition(r){return{[this.propertyToEdit]:this.computePosition(this.alignTo,r)}}}class VJe extends yte{layout=new Map;axisPreset;get primaryAxisCoord(){return this.axisPreset.primaryAxisCoord}get secondaryAxisCoord(){return this.axisPreset.secondaryAxisCoord}get primaryAxisDimension(){return this.axisPreset.primaryAxisDimension}get secondaryAxisDimension(){return this.axisPreset.secondaryAxisDimension}constructor(r){super(),this.axisPreset=r==="Column"?{primaryAxisDimension:"width",secondaryAxisDimension:"height",primaryAxisCoord:"x",secondaryAxisCoord:"y"}:{primaryAxisDimension:"height",secondaryAxisDimension:"width",primaryAxisCoord:"y",secondaryAxisCoord:"x"}}applyPosition(r){return this.layout?.get(r.id)??{}}computeLayout(r){const n=yn(r,jw(i=>i[this.primaryAxisCoord])),o=this.getLayoutRect(n),a=this.getLayers(n);this.layout=this.buildLayout(a,o,n)}getLayoutRect(r){const n=Math.min(...r.map(s=>s.x)),o=Math.min(...r.map(s=>s.y)),a=Math.max(...r.map(s=>s.x+s.width)),i=Math.max(...r.map(s=>s.y+s.height));return{x:n,y:o,width:a-n,height:i-o}}getLayers(r){const n=[];let o=0,a=null;for(let i of r)if(a&&i[this.primaryAxisCoord]i.nodes.sort((s,l)=>s[this.secondaryAxisCoord]-l[this.secondaryAxisCoord])),n}buildLayout(r,n,o){const a=new Map(o.map(y=>[y.id,y])),i=[],s=r.reduce((y,x)=>y+x.primaryAxisSize,0),l=r.length>1?(n[this.primaryAxisDimension]-s)/(r.length-1):0,c=r.reduce((y,x,w)=>r[y].occupiedSpacey+x.primaryAxisSize+l,n[this.primaryAxisCoord]),h=this.buildLayerLayout(u,n,d,a,null);u.layout=h,i.push(...h.nodePositions);let p=d+u.primaryAxisSize+l,g=u;for(let y=c+1;y=0;y--){const x=r[y];p-=x.primaryAxisSize+l,x.layout=this.buildLayerLayout(x,n,p,a,g),i.push(...x.layout.nodePositions),g=x.layout.refLayer??x}return new Map(i)}buildLayerLayout(r,n,o,a,i){let s=this.scoreLayout(this.spaceAround(r,n,o),a);if(r.nodes.length!=1){const l=this.scoreLayout(this.spaceBetween(r,n,o),a);s=l[0]=r.nodes.length){const l=this.scoreLayout(this.placeInGaps(r,o,i),a);s=l[0]=r.nodes.length){const l=this.scoreLayout(this.placeInCells(r,o,i),a);s=l[0]c[this.secondaryAxisCoord]))s.set(l.id,{[this.secondaryAxisCoord]:i,[this.primaryAxisCoord]:o}),i+=l[this.secondaryAxisDimension]+a;return{nodePositions:s,refLayer:null}}placeInGaps(r,n,o){const a=new Map,i=r.nodes,s=this.getGapsPositions(o);let l=0;for(let c=0,u=i[c];c{const i=n.get(o);return nt(i,`Could not find original rect for node ${o}`),[lV(i,["x","y"]),a]}),Ao(([o,a])=>Math.abs(o[this.secondaryAxisCoord]-a[this.secondaryAxisCoord])),fp((o,a)=>o+a,0)),r]}getGapsPositions(r){const n=[],{layout:o,nodes:a}=r;nt(o,"Layout of the layer must be computed before calling getGapsPositions");for(let i=1;iMath.min(...r.map(n=>n.x)),(r,n)=>Math.floor(r),"x");case"Top":return new Sm(r=>Math.min(...r.map(n=>n.y)),(r,n)=>Math.floor(r),"y");case"Right":return new Sm(r=>Math.max(...r.map(n=>n.x+n.width)),(r,n)=>Math.floor(r-n.width),"x");case"Bottom":return new Sm(r=>Math.max(...r.map(n=>n.y+n.height)),(r,n)=>Math.floor(r-n.height),"y");case"Center":return new Sm(r=>Math.min(...r.map(n=>n.x+n.width/2)),(r,n)=>Math.floor(r-n.width/2),"x");case"Middle":return new Sm(r=>Math.min(...r.map(n=>n.y+n.height/2)),(r,n)=>Math.floor(r-n.height/2),"y")}}function bte(e){const{width:r,height:n}=Wn(e);return{...e.internals.positionAbsolute,id:e.id,width:r,height:n}}function YJe(e){switch(e){case"Left":case"Right":case"Top":case"Bottom":case"Center":case"Middle":return qJe(e);case"Column":case"Row":return new VJe(e);default:Ga(e)}}function WJe(e){const{lastClickedNode:r}=e.context;return!r||r.id!==e.event.node.id?{id:e.event.node.id,clicks:1,timestamp:Date.now()}:{id:r.id,clicks:r.clicks+1,timestamp:Date.now()}}function vte({context:e,event:r}){Ut(r,"update.view");const n=r.view,o=e.view.id===n.id,a=e.xynodes,i=r.xynodes.map(l=>{const c=a.find(u=>u.id===l.id);if(c){const{width:u,height:d}=Wn(c);return ut(c.type,l.type)&&ut(u,l.initialWidth)&&ut(d,l.initialHeight)&&ut(c.hidden??!1,l.hidden??!1)&&ut(c.position,l.position)&&ut(c.data,l.data)&&ut(c.parentId??null,l.parentId??null)?c:{...Vd(c,["measured","parentId"]),...l,width:l.initialWidth,height:l.initialHeight,data:{...c.data,...l.data}}}return l});let s=r.xyedges;if(o&&!n.hasLayoutDrift){const l=e.xyedges;s=r.xyedges.map(c=>{const u=l.find(d=>d.id===c.id);return u&&u.type===c.type?ut(u.hidden??!1,c.hidden??!1)&&ut(u.data,c.data)&&ut(u.source,c.source)&&ut(u.target,c.target)&&ut(u.sourceHandle,c.sourceHandle)&&ut(u.targetHandle,c.targetHandle)?u:{...Vd(u,["sourceHandle","targetHandle"]),...c,data:{...u.data,...c.data}}:c})}if(!o){for(const l of i)l.data={...l.data,dimmed:!1,hovered:!1};for(const l of s)l.data={...l.data,dimmed:!1,hovered:!1,active:!1}}return{xynodes:i,xyedges:s,view:n}}function XJe(e){const{xynodes:r,xyedges:n,focusedNode:o}=e.context;if(!o)return{};const a=new Set([o]),i=n.map(s=>s.source===o||s.target===o?(a.add(s.source),a.add(s.target),Jt.setData(s,{dimmed:!1,active:!0})):Jt.setData(s,{dimmed:!0,active:!1}));return{xynodes:r.map(s=>Jt.setDimmed(s,!a.has(s.id))),xyedges:i}}function xte({context:e,event:r}){Ut(r,"update.view");let{navigationHistory:{currentIndex:n,history:o},lastOnNavigate:a,viewport:i}=e;const s=o[n];if(!s)return{navigationHistory:{currentIndex:0,history:[{viewId:r.view.id,fromNode:null,viewport:{...i}}]}};if(s.viewId!==r.view.id){if(!a){const l=n>0?mt(o[n-1]):null;if(l&&l.viewId===r.view.id)return{navigationHistory:{currentIndex:n-1,history:o},lastOnNavigate:{fromView:s.viewId,toView:l.viewId,fromNode:s.fromNode}};const c=n0,"Cannot navigate back");const o=n[r],a=n[r-1];return{navigationHistory:{currentIndex:r-1,history:n},lastOnNavigate:{fromView:o.viewId,toView:a.viewId,fromNode:o.fromNode}}}function KJe({context:e}){const{navigationHistory:{currentIndex:r,history:n}}=e;nt(r{if(n.id!==r.nodeId)return n;const o=aV(n.data,r.data);return ut(o,n.data)?n:{...n,data:o}})}}function QJe({context:e,event:r}){return Ut(r,"update.edgeData"),{xyedges:e.xyedges.map(n=>{if(n.id!==r.edgeId)return n;const o=aV(n.data,r.data);return ut(o,n.data)?n:{...n,data:o}})}}function JJe({context:e}){const{xynodes:r}=e;function n(i,s){const l=bh({x:i.width||0,y:i.height||0});let c=bh(i.position).add(l.mul(.5)),u=i;do{const d=u.parentId&&s.find(h=>h.id==u.parentId);if(!d)break;u=d,c=c.add(d.position)}while(!0);return c}function o(i){const s=r.find(g=>g.id==i.source),l=r.find(g=>g.id==i.target);if(!s||!l)return[];const c=n(s,r),u=n(l,r);if(!c||!u)return[];if(s===l){const g=new ia(0,s.height||0).mul(-.5).add(c);return[g.add(new ia(-32,-80)),g.add(new ia(32,-80))]}const d=u.sub(c),h=a(s,c,d),p=a(l,u,d.mul(-1));return[h.add(p.sub(h).mul(.3))]}function a(i,s,l){const c=(i.width||0)/2/l.x,u=(i.height||0)/2/l.y,d=Math.min(Math.abs(c),Math.abs(u));return bh(l).mul(d).add(s)}return{xyedges:e.xyedges.map(i=>!i.data.controlPoints||iu(i.data.controlPoints)?i:{...i,data:{...i.data,controlPoints:o(i)}})}}function eet({context:e}){const{stepId:r,parallelPrefix:n}=mt(e.activeWalkthrough,"activeWalkthrough is null"),o=mt(e.xyedges.find(a=>a.id===r));return{xyedges:e.xyedges.map(a=>{const i=r===a.id||!!n&&a.id.startsWith(n);return Jt.setData(a,{active:i,dimmed:r!==a.id})}),xynodes:e.xynodes.map(a=>{const i=o.source!==a.id&&o.target!==a.id;return a.type==="seq-parallel"?Jt.setData(a,{color:n===a.data.parallelPrefix?u_.active:u_.default,dimmed:i}):Jt.setDimmed(a,i)})}}const tet=zX(({sendBack:e})=>{const r=oC([["Escape",o=>{o.stopPropagation(),e({type:"key.esc"})},{preventDefault:!0}]]),n=oC([["ArrowLeft",o=>{o.stopPropagation(),e({type:"key.arrow.left"})},{preventDefault:!0}],["ArrowRight",o=>{o.stopPropagation(),e({type:"key.arrow.right"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r),document.body.addEventListener("keydown",n,{capture:!0}),()=>{document.body.removeEventListener("keydown",r),document.body.removeEventListener("keydown",n,{capture:!0})}}),p7="likec4:diagram:toggledFeatures",wte={read(){try{let e=sessionStorage.getItem(p7);return e?JSON.parse(e):null}catch(e){return console.error(`Error reading fromStorage ${p7}:`,e),null}},write(e){return sessionStorage.setItem(p7,JSON.stringify(GRe(e,eV))),e}},ret=ec({delays:{timeout:2e3},actions:{"trigger:OnChange":(e,r)=>{}},guards:{"same view":({context:e})=>e.parent.getSnapshot().context.view.id===e.viewId}}).createMachine({initial:"idle",context:({input:e})=>({...e}),states:{idle:{tags:"ready",on:{sync:{target:"pending"}}},paused:{tags:"pending",on:{sync:{target:"pending"}}},pending:{tags:"pending",on:{sync:{target:"pending",reenter:!0},cancel:{target:"paused"}},after:{timeout:[{guard:"same view",actions:{type:"trigger:OnChange",params:({context:e})=>({change:net(e.parent.getSnapshot().context)})},target:"synced"},{target:"stopped"}]}},synced:{tags:"ready",on:{sync:{target:"pending"}}},stopped:{entry:et({parent:null}),type:"final"}},on:{synced:{target:".synced"},stop:{target:".stopped"}}}),kte=ret;function net(e){const{view:r,xystore:n,xyflow:o}=e,{nodeLookup:a}=n.getState(),i=new Set;let s;const l=fp([...a.values()],(u,d)=>{const h=Wn(d);(!_y(d.internals.positionAbsolute,d.data)||d.initialWidth!==h.width||d.initialHeight!==h.height)&&i.add(d.id);const p=u[d.id]={isCompound:d.type!=="element"&&d.type!=="deployment",x:Math.floor(d.internals.positionAbsolute.x),y:Math.floor(d.internals.positionAbsolute.y),width:Math.ceil(h.width),height:Math.ceil(h.height)};return s=s?vw(s,p):p,u},{}),c=fp(o?.getEdges()??[],(u,{source:d,target:h,data:p})=>{let g=p.controlPoints??[];const y=i.has(d)||i.has(h);if(g.length===0&&y&&(g=SQ(p)),p.points.length===0&&g.length===0)return u;const x=u[p.id]={points:p.points};p.labelXY&&p.labelBBox&&(x.labelBBox={...p.labelBBox,...p.labelXY}),p.labelBBox&&(x.labelBBox??=p.labelBBox),To(g,1)&&(x.controlPoints=g);const w=[...p.points.map(_=>_[0]),...g.map(_=>_.x),...x.labelBBox?[x.labelBBox.x,x.labelBBox.x+x.labelBBox.width]:[]],k=[...p.points.map(_=>_[1]),...g.map(_=>_.y),...x.labelBBox?[x.labelBBox.y,x.labelBBox.y+x.labelBBox.height]:[]],C=p1({x:Math.floor(Math.min(...w)),y:Math.floor(Math.min(...k)),x2:Math.ceil(Math.max(...w)),y2:Math.ceil(Math.max(...k))});return s=s?vw(s,C):C,u},{});return s??=r.bounds,{op:"save-manual-layout",layout:{hash:r.hash,autoLayout:r.autoLayout,nodes:l,edges:c,...s}}}const oet=ec({actors:{syncManualLayoutActorLogic:kte,hotkeyActorLogic:tet,overlaysActorLogic:FJe,searchActorLogic:UJe},guards:{isReady:({context:e})=>e.initialized.xydata&&e.initialized.xyflow,"enabled: FitView":({context:e})=>e.features.enableFitView,"enabled: FocusMode":({context:e})=>e.features.enableFocusMode&&(e.view._type!=="dynamic"||e.dynamicViewVariant!=="sequence"),"enabled: Readonly":({context:e})=>e.features.enableReadOnly,"enabled: RelationshipDetails":({context:e})=>e.features.enableRelationshipDetails,"enabled: Search":({context:e})=>e.features.enableSearch,"enabled: ElementDetails":({context:e})=>e.features.enableElementDetails,"enabled: DynamicViewWalkthrough":({context:e})=>e.features.enableDynamicViewWalkthrough,"not readonly":({context:e})=>!e.features.enableReadOnly,"is dynamic view":({context:e})=>e.view._type==="dynamic","is another view":({context:e,event:r})=>{if(Ut(r,["update.view","navigate.to"]),r.type==="update.view")return e.view.id!==r.view.id;if(r.type==="navigate.to")return e.view.id!==r.viewId;Ga(r.type)},"click: node has modelFqn":({event:e})=>(Ut(e,"xyflow.nodeClick"),"modelFqn"in e.node.data),"click: selected node":({event:e})=>(Ut(e,"xyflow.nodeClick"),e.node.selected===!0),"click: same node":({context:e,event:r})=>(Ut(r,"xyflow.nodeClick"),e.lastClickedNode?.id===r.node.id),"click: focused node":({context:e,event:r})=>(Ut(r,"xyflow.nodeClick"),e.focusedNode===r.node.id),"click: node has connections":({context:e,event:r})=>(Ut(r,"xyflow.nodeClick"),e.xyedges.some(n=>n.source===r.node.id||n.target===r.node.id)),"click: selected edge":({event:e})=>(Ut(e,"xyflow.edgeClick"),e.edge.selected===!0||e.edge.data.active===!0)},actions:{"trigger:NavigateTo":ui(({context:e})=>({type:"navigateTo",viewId:mt(e.lastOnNavigate,"Invalid state, lastOnNavigate is null").toView})),"assign lastClickedNode":et(({context:e,event:r})=>(Ut(r,"xyflow.nodeClick"),{lastClickedNode:WJe({context:e,event:r})})),"assign: focusedNode":et(({event:e})=>{let r;switch(e.type){case"xyflow.nodeClick":r=e.node.data.id;break;case"focus.node":r=e.nodeId;break;default:throw new Error(`Unexpected event type: ${e.type} in action 'assign: focusedNode'`)}return{focusedNode:r}}),"reset lastClickedNode":et(()=>({lastClickedNode:null})),"open source of focused or last clicked node":ln(({context:e,enqueue:r})=>{const n=e.focusedNode??e.lastClickedNode?.id;if(!n||!e.features.enableVscode)return;const o=Qp(e,n);o&&(o.deploymentRef?r.raise({type:"open.source",deployment:o.deploymentRef}):o.modelRef&&r.raise({type:"open.source",element:o.modelRef}))}),"xyflow:fitDiagram":({context:e},r)=>{const{bounds:n=e.view.bounds,duration:o=450}=r??{},{width:a,height:i,panZoom:s,transform:l}=mt(e.xystore).getState(),c=Math.max(1,l[2]),u=tu(n,a,i,hs,c,e.fitViewPadding);u.x=Math.round(u.x),u.y=Math.round(u.y),s?.setViewport(u,o>0?{duration:o}:void 0).catch(console.error)},"xyflow:fitFocusedBounds":({context:e})=>{const r=!!e.activeWalkthrough&&e.dynamicViewVariant==="sequence",{bounds:n,duration:o=450}=r?pBe({context:e}):hBe({context:e}),{width:a,height:i,panZoom:s,transform:l}=mt(e.xystore).getState(),c=Math.max(1,l[2]),u=tu(n,a,i,hs,c,e.fitViewPadding);u.x=Math.round(u.x),u.y=Math.round(u.y),s?.setViewport(u,o>0?{duration:o}:void 0)},"xyflow:setViewportCenter":({context:e},r)=>{const{x:n,y:o}=r;nt(e.xyflow,"xyflow is not initialized");const a=e.xyflow.getZoom();e.xyflow.setCenter(Math.round(n),Math.round(o),{zoom:a})},"xyflow:setViewport":({context:e},r)=>{const{viewport:n,duration:o=350}=r;e.xystore?.getState().panZoom?.setViewport(n,o>0?{duration:o}:void 0)},"xyflow:alignNodeFromToAfterNavigate":({context:e},r)=>{const n=mt(e.xyflow,"xyflow is not initialized"),o=n.getInternalNode(r.fromNode);if(!o)return;const a=n.flowToScreenPosition({x:o.internals.positionAbsolute.x,y:o.internals.positionAbsolute.y}),i=n.flowToScreenPosition(r.toPosition),s={x:Math.round(a.x-i.x),y:Math.round(a.y-i.y)};e.xystore.getState().panBy(s)},"layout.align":({context:e},r)=>{const{mode:n}=r,o=mt(e.xystore,"xystore is not initialized"),{nodeLookup:a,parentLookup:i}=o.getState(),s=[...new Set(a.values().filter(d=>d.selected).map(d=>d.id)).difference(new Set(i.keys()))];if(!To(s,2)){console.warn("At least 2 nodes must be selected to align");return}const l=lte(o,s),c=YJe(n),u=s.map(d=>({node:mt(a.get(d)),rect:mt(l.rects.get(d))}));c.computeLayout(u.map(({node:d})=>bte(d)));for(const{rect:d,node:h}of u)d.positionAbsolute={...d.positionAbsolute,...c.applyPosition(bte(h))};l.updateXYFlowNodes()},"ensure overlays actor state":ln(({enqueue:e,context:{features:r},system:n})=>{const o=r.enableElementDetails||r.enableRelationshipDetails||r.enableRelationshipBrowser,a=tc(n).overlaysActorRef;if(o&&!a){e.spawnChild("overlaysActorLogic",{id:"overlays",systemId:"overlays"});return}!o&&a&&(e.sendTo(a,{type:"close.all"}),e.stopChild("overlays"))}),"ensure search actor state":ln(({enqueue:e,context:{features:{enableSearch:r}},system:n})=>{const o=tc(n).searchActorRef;if(r&&!o){e.spawnChild("searchActorLogic",{id:"search",systemId:"search"});return}!r&&o&&(e.sendTo(o,{type:"close"}),e.stopChild("search"))}),updateFeatures:et(({event:e})=>(Ut(e,"update.features"),{features:{...e.features}})),updateInputs:et(({event:e})=>(Ut(e,"update.inputs"),{...e.inputs})),closeSearch:il(({system:e})=>tc(e).searchActorRef,{type:"close"}),closeAllOverlays:il(({system:e})=>tc(e).overlaysActorRef,{type:"close.all"}),startSyncLayout:et(({context:e,spawn:r,self:n})=>({syncLayoutActorRef:r("syncManualLayoutActorLogic",{id:"syncLayout",input:{parent:n,viewId:e.view.id}})})),stopSyncLayout:ln(({context:e,enqueue:r})=>{r.sendTo(e.syncLayoutActorRef,{type:"stop"}),r.stopChild(e.syncLayoutActorRef),r.assign({syncLayoutActorRef:null})}),onNodeMouseEnter:et(({context:e},r)=>({xynodes:e.xynodes.map(n=>n.id===r.node.id?Jt.setHovered(n,!0):n)})),onNodeMouseLeave:et(({context:e},r)=>({xynodes:e.xynodes.map(n=>n.id===r.node.id?Jt.setHovered(n,!1):n)})),onEdgeMouseEnter:ln(({enqueue:e,context:r,event:n})=>{Ut(n,"xyflow.edgeMouseEnter");let o=n.edge;e.assign({xyedges:r.xyedges.map(a=>a.id===n.edge.id?(o=Jt.setHovered(a,!0),o):a)}),e.emit({type:"edgeMouseEnter",edge:o,event:n.event})}),onEdgeMouseLeave:ln(({enqueue:e,context:r,event:n})=>{Ut(n,"xyflow.edgeMouseLeave");let o=n.edge;e.assign({xyedges:r.xyedges.map(a=>a.id===n.edge.id?(o=Jt.setHovered(a,!1),o):a)}),e.emit({type:"edgeMouseLeave",edge:o,event:n.event})}),"focus on nodes and edges":et(XJe),"notations.highlight":et(({context:e},r)=>{const n=r.kind?[r.kind]:r.notation.kinds;return{xynodes:e.xynodes.map(o=>{const a=Qp(e,o.id);return a&&a.notation===r.notation.title&&a.shape===r.notation.shape&&a.color===r.notation.color&&n.includes(a.kind)?Jt.setDimmed(o,!1):Jt.setDimmed(o,"immediate")}),xyedges:e.xyedges.map(Jt.setDimmed("immediate"))}}),"tag.highlight":et(({context:e,event:r})=>(Ut(r,"tag.highlight"),{xynodes:e.xynodes.map(n=>n.data.tags?.includes(r.tag)?Jt.setDimmed(n,!1):Jt.setDimmed(n,!0))})),"undim everything":et(({context:e})=>({xynodes:e.xynodes.map(Jt.setDimmed(!1)),xyedges:e.xyedges.map(Jt.setData({dimmed:!1,active:!1}))})),"update active walkthrough":et(eet),"open element details":il(({system:e})=>tc(e).overlaysActorRef,({context:e,event:r},n)=>{let o=null,a,i;if(n)i=n.fqn,a=n.fromNode??e.view.nodes.find(l=>l.modelRef===n.fqn)?.id;else if(r.type==="xyflow.nodeClick")nt("modelFqn"in r.node.data&&!!r.node.data.modelFqn,"No modelFqn in event node data"),i=r.node.data.modelFqn,a=r.node.data.id;else if(r.type==="open.elementDetails")i=r.fqn,a=r.fromNode;else{nt(e.lastClickedNode,"No last clicked node"),a=mt(e.lastClickedNode).id;const l=mt(e.xynodes.find(c=>c.id===a));nt("modelFqn"in l.data&&!!l.data.modelFqn,"No modelFqn in last clicked node"),i=l.data.modelFqn}const s=a?e.xystore.getState().nodeLookup.get(a):null;if(a&&s){const l=Bd(s),c=e.xyflow.getZoom(),u={...e.xyflow.flowToScreenPosition(l),width:l.width*c,height:l.height*c};o={node:a,clientRect:u}}return{type:"open.elementDetails",subject:i,currentView:e.view,...o&&{initiatedFrom:o}}}),"emit: walkthroughStarted":ui(({context:e})=>{const r=e.xyedges.find(n=>n.id===e.activeWalkthrough?.stepId);return nt(r,"Invalid walkthrough state"),{type:"walkthroughStarted",edge:r}}),"emit: walkthroughStep":ui(({context:e})=>{const r=e.xyedges.find(n=>n.id===e.activeWalkthrough?.stepId);return nt(r,"Invalid walkthrough state"),{type:"walkthroughStep",edge:r}}),"emit: walkthroughStopped":ui(()=>({type:"walkthroughStopped"})),"emit: edgeEditingStarted":ui(({context:e,event:r})=>(Ut(r,"xyflow.edgeEditingStarted"),{type:"edgeEditingStarted",edge:mt(e.xyedges.find(n=>n.id===r.edge.id),`Edge ${r.edge.id} not found`)})),"emit: paneClick":ui(()=>({type:"paneClick"})),"emit: nodeClick":ui(({context:e,event:r})=>(Ut(r,"xyflow.nodeClick"),{type:"nodeClick",node:mt(Qp(e,r.node.id),`Node ${r.node.id} not found in diagram`),xynode:r.node})),"emit: edgeClick":ui(({context:e,event:r})=>(Ut(r,"xyflow.edgeClick"),{type:"edgeClick",edge:mt(o8(e,r.edge.id),`Edge ${r.edge.id} not found in diagram`),xyedge:r.edge})),"emit: initialized":ui(({context:e})=>(nt(e.xyflow,"XYFlow instance not found"),{type:"initialized",instance:e.xyflow})),"emit: openSource":ui((e,r)=>({type:"openSource",params:r})),"assign: dynamicViewVariant":et(({event:e})=>(Ut(e,"switch.dynamicViewVariant"),{dynamicViewVariant:e.variant}))}}).createMachine({initial:"initializing",context:({input:e})=>({...e,xyedges:[],xynodes:[],features:{...HJ},toggledFeatures:wte.read()??{enableReadOnly:!0},initialized:{xydata:!1,xyflow:!1},viewportChangedManually:!1,lastOnNavigate:null,lastClickedNode:null,focusedNode:null,activeElementDetails:null,viewportBeforeFocus:null,navigationHistory:{currentIndex:0,history:[]},viewport:{x:0,y:0,zoom:1},xyflow:null,syncLayoutActorRef:null,dynamicViewVariant:e.dynamicViewVariant??(e.view._type==="dynamic"?e.view.variant:"diagram")??"diagram",activeWalkthrough:null}),states:{initializing:{on:{"xyflow.init":{actions:et(({context:e,event:r})=>({initialized:{...e.initialized,xyflow:!0},xyflow:r.instance})),target:"isReady"},"update.view":{actions:et(({context:e,event:r})=>({initialized:{...e.initialized,xydata:!0},view:r.view,xynodes:r.xynodes,xyedges:r.xyedges})),target:"isReady"}}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},et(({context:e})=>({navigationHistory:{currentIndex:0,history:[{viewId:e.view.id,fromNode:null,viewport:{...e.xyflow.getViewport()}}]}})),"startSyncLayout","emit: initialized"],target:"ready"},{target:"initializing"}]},ready:{initial:"idle",on:{"navigate.to":{guard:"is another view",actions:et({lastOnNavigate:({context:e,event:r})=>({fromView:e.view.id,toView:r.viewId,fromNode:r.fromNode??null})}),target:"#navigating"},"navigate.back":{guard:({context:e})=>e.navigationHistory.currentIndex>0,actions:et(GJe),target:"#navigating"},"navigate.forward":{guard:({context:e})=>e.navigationHistory.currentIndex({mode:e.mode})},sn({type:"saveManualLayout.schedule"})]},"layout.resetEdgeControlPoints":{guard:"not readonly",actions:[et(JJe),sn({type:"saveManualLayout.schedule"})]},"xyflow.resized":{guard:({context:e})=>e.features.enableFitView&&!e.viewportChangedManually,actions:[oa("fitDiagram"),sn({type:"fitDiagram"},{id:"fitDiagram",delay:200})]},"open.elementDetails":{guard:"enabled: ElementDetails",actions:"open element details"},"open.relationshipsBrowser":{actions:il(({system:e})=>tc(e).overlaysActorRef,({context:e,event:r})=>({type:"open.relationshipsBrowser",subject:r.fqn,viewId:e.view.id,scope:"view",closeable:!0,enableChangeScope:!0,enableSelectSubject:!0}))},"open.relationshipDetails":{actions:il(({system:e})=>tc(e).overlaysActorRef,({context:e,event:r})=>({type:"open.relationshipDetails",viewId:e.view.id,...r.params}))},"open.source":{actions:{type:"emit: openSource",params:Ca("event")}},"walkthrough.start":{guard:"is dynamic view",target:".walkthrough"},"toggle.feature":{actions:et({toggledFeatures:({context:e,event:r})=>wte.write({...e.toggledFeatures,[`enable${r.feature}`]:r.forceValue??!(e.toggledFeatures[`enable${r.feature}`]??e.features[`enable${r.feature}`])})})},"xyflow.nodeMouseEnter":{actions:{type:"onNodeMouseEnter",params:Ca("event")}},"xyflow.nodeMouseLeave":{actions:{type:"onNodeMouseLeave",params:Ca("event")}},"xyflow.edgeMouseEnter":{actions:"onEdgeMouseEnter"},"xyflow.edgeMouseLeave":{actions:"onEdgeMouseLeave"},"notations.highlight":{actions:{type:"notations.highlight",params:Ca("event")}},"notations.unhighlight":{actions:"undim everything"},"tag.highlight":{actions:"tag.highlight"},"tag.unhighlight":{actions:"undim everything"},"saveManualLayout.*":{guard:"not readonly",actions:il(e=>e.context.syncLayoutActorRef,({event:e})=>{if(e.type==="saveManualLayout.schedule")return{type:"sync"};if(e.type==="saveManualLayout.cancel")return{type:"cancel"};Ga(e)})},"open.search":{guard:"enabled: Search",actions:il(({system:e})=>tc(e).searchActorRef,({event:e})=>({type:"open",search:e.search}))}},exit:[oa("fitDiagram")],states:{idle:{id:"idle",on:{"xyflow.nodeClick":[{guard:Z3(["enabled: FocusMode","click: node has connections",_X(["click: same node","click: selected node"])]),actions:["assign lastClickedNode","assign: focusedNode","emit: nodeClick"],target:"focused"},{guard:Z3(["enabled: ElementDetails","click: node has modelFqn",_X(["click: same node","click: selected node"])]),actions:["assign lastClickedNode","open source of focused or last clicked node","open element details","emit: nodeClick"]},{actions:["assign lastClickedNode","open source of focused or last clicked node","emit: nodeClick"]}],"xyflow.paneClick":{actions:["reset lastClickedNode","emit: paneClick"]},"xyflow.paneDblClick":{actions:["reset lastClickedNode","xyflow:fitDiagram",{type:"emit: openSource",params:({context:e})=>({view:e.view.id})}]},"focus.node":{guard:"enabled: FocusMode",actions:"assign: focusedNode",target:"focused"},"xyflow.edgeClick":{guard:Z3(["is dynamic view","enabled: DynamicViewWalkthrough","click: selected edge"]),actions:[sn(({event:e})=>({type:"walkthrough.start",stepId:e.edge.id})),"emit: edgeClick"]}}},focused:{entry:["focus on nodes and edges",et(e=>({viewportBeforeFocus:{...e.context.viewport}})),"open source of focused or last clicked node",qp("hotkeyActorLogic",{id:"hotkey"}),"xyflow:fitFocusedBounds"],exit:ln(({enqueue:e,context:r})=>{e.stopChild("hotkey"),r.viewportBeforeFocus?e({type:"xyflow:setViewport",params:{viewport:r.viewportBeforeFocus}}):e("xyflow:fitDiagram"),e("undim everything"),e.assign({viewportBeforeFocus:null,focusedNode:null})}),on:{"xyflow.nodeClick":[{guard:Z3(["click: focused node","click: node has modelFqn"]),actions:["open element details","emit: nodeClick"]},{guard:"click: focused node",actions:"emit: nodeClick",target:"#idle"},{actions:["assign lastClickedNode",sn(({event:e})=>({type:"focus.node",nodeId:e.node.id})),"emit: nodeClick"]}],"focus.node":{actions:["assign: focusedNode","focus on nodes and edges","open source of focused or last clicked node","xyflow:fitFocusedBounds"]},"key.esc":{target:"idle"},"xyflow.paneClick":{actions:["reset lastClickedNode","emit: paneClick"],target:"idle"},"notations.unhighlight":{actions:"focus on nodes and edges"},"tag.unhighlight":{actions:"focus on nodes and edges"}}},walkthrough:{entry:[qp("hotkeyActorLogic",{id:"hotkey"}),et({viewportBeforeFocus:({context:e})=>e.viewport,activeWalkthrough:({context:e,event:r})=>{Ut(r,"walkthrough.start");const n=r.stepId??hp(e.xyedges).id;return{stepId:n,parallelPrefix:PS(n)}}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: walkthroughStarted"],exit:ln(({enqueue:e,context:r})=>{e.stopChild("hotkey"),r.viewportBeforeFocus?e({type:"xyflow:setViewport",params:{viewport:r.viewportBeforeFocus}}):e("xyflow:fitDiagram"),r.dynamicViewVariant==="sequence"&&r.activeWalkthrough?.parallelPrefix&&e.assign({xynodes:r.xynodes.map(n=>n.type==="seq-parallel"?Jt.setData(n,{color:u_.default}):n)}),e("undim everything"),e.assign({activeWalkthrough:null,viewportBeforeFocus:null}),e("emit: walkthroughStopped")}),on:{"key.esc":{target:"idle"},"key.arrow.left":{actions:sn({type:"walkthrough.step",direction:"previous"})},"key.arrow.right":{actions:sn({type:"walkthrough.step",direction:"next"})},"walkthrough.step":{actions:[et(({context:e,event:r})=>{const{stepId:n}=e.activeWalkthrough,o=e.xyedges.findIndex(s=>s.id===n),a=Ki(r.direction==="next"?o+1:o-1,{min:0,max:e.xyedges.length-1});if(a===o)return{};const i=e.xyedges[a].id;return{activeWalkthrough:{stepId:i,parallelPrefix:PS(i)}}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: walkthroughStep"]},"xyflow.edgeClick":{actions:[et(({event:e,context:r})=>!v0(e.edge.id)||e.edge.id===r.activeWalkthrough?.stepId?{}:{activeWalkthrough:{stepId:e.edge.id,parallelPrefix:PS(e.edge.id)}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: edgeClick","emit: walkthroughStep"]},"notations.unhighlight":{actions:"update active walkthrough"},"tag.unhighlight":{actions:"update active walkthrough"},"walkthrough.end":{target:"idle"},"xyflow.paneDblClick":{target:"idle"},"update.view":{guard:"is another view",actions:sn(({event:e})=>e,{delay:50}),target:"idle"}}}}},navigating:{id:"navigating",entry:["closeAllOverlays","closeSearch","stopSyncLayout","trigger:NavigateTo"],on:{"update.view":{actions:ln(({enqueue:e,context:r,event:n})=>{const{fromNode:o,toNode:a}=Ete(r,n);e(o&&a?{type:"xyflow:alignNodeFromToAfterNavigate",params:{fromNode:o.id,toPosition:{x:a.data.x,y:a.data.y}}}:{type:"xyflow:setViewportCenter",params:Qc.center(n.view.bounds)}),e.assign(xte),e.assign({...vte({context:r,event:n}),lastOnNavigate:null}),e("startSyncLayout"),e.raise({type:"fitDiagram"},{id:"fitDiagram",delay:25})}),target:"#idle"}}}},on:{"xyflow.paneClick":{actions:"emit: paneClick"},"xyflow.nodeClick":{actions:"emit: nodeClick"},"xyflow.edgeClick":{actions:"emit: edgeClick"},"xyflow.applyNodeChanges":{actions:et({xynodes:({context:e,event:r})=>Aw(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:et({xyedges:({context:e,event:r})=>Nw(r.changes,e.xyedges)})},"xyflow.viewportMoved":{actions:et({viewportChangedManually:(({event:e})=>e.manually),viewport:(({event:e})=>e.viewport)})},"xyflow.edgeEditingStarted":{actions:"emit: edgeEditingStarted"},fitDiagram:{guard:"enabled: FitView",actions:{type:"xyflow:fitDiagram",params:Ca("event")}},"update.nodeData":{actions:et(ZJe)},"update.edgeData":{actions:et(QJe)},"update.view":{actions:[et(xte),ln(({enqueue:e,event:r,check:n,context:o})=>{const a=n("is another view");if(a){e("closeAllOverlays"),e("closeSearch"),e("stopSyncLayout"),e.assign({focusedNode:null});const{fromNode:i,toNode:s}=Ete(o,r);i&&s?(e({type:"xyflow:alignNodeFromToAfterNavigate",params:{fromNode:i.id,toPosition:{x:s.data.x,y:s.data.y}}}),e.raise({type:"fitDiagram"},{id:"fitDiagram",delay:80})):(e({type:"xyflow:setViewportCenter",params:Qc.center(r.view.bounds)}),e.raise({type:"fitDiagram",duration:200},{id:"fitDiagram",delay:25}))}else{const i=r.view;i._type==="dynamic"&&o.view._type==="dynamic"&&i.variant!==o.view.variant&&e({type:"xyflow:setViewportCenter",params:Qc.center(i.bounds)})}e.assign({...vte({context:o,event:r}),lastOnNavigate:null}),a?e("startSyncLayout"):(e.sendTo(i=>i.context.syncLayoutActorRef,{type:"synced"}),o.viewportChangedManually||e.raise({type:"fitDiagram"},{id:"fitDiagram",delay:50}))})]},"update.inputs":{actions:"updateInputs"},"update.features":{actions:["updateFeatures","ensure overlays actor state","ensure search actor state"]},"switch.dynamicViewVariant":{actions:"assign: dynamicViewVariant"}},exit:["stopSyncLayout",oa("fitDiagram"),yu("hotkey"),yu("overlays"),yu("search"),et({xyflow:null,xystore:null,xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1},syncLayoutActorRef:null})]});function _te(e){switch(e.type){case"element":case"compound-element":case"seq-actor":return e.data.modelFqn;case"deployment":case"compound-deployment":return e.data.modelFqn??e.data.deploymentFqn;case"seq-parallel":case"view-group":return null;default:Ga(e)}}function Ete(e,r){const n=e.lastOnNavigate?.fromNode,o=n&&e.xynodes.find(s=>s.id===n),a=o&&_te(o),i=a&&r.xynodes.find(s=>_te(s)===a);return{fromNode:o,toNode:i}}const aet=oet,iet=e=>e.context.dynamicViewVariant;function set({view:e,zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a,where:i,children:s,dynamicViewVariant:l}){const{handlersRef:c}=sc(),u=pr(),d=E.useRef(null);d.current||(d.current=aet.provide({actors:{syncManualLayoutActorLogic:kte.provide({actions:{"trigger:OnChange":((x,w)=>{c.current.onChange?.(w)})}})}}));const h=n8(d.current,{id:"diagram",systemId:"diagram",input:{xystore:u,view:e,zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a,dynamicViewVariant:l}}),p=wr();BB(()=>{h.send({type:"update.features",features:p})},[p],Xn),E.useEffect(()=>{h.send({type:"update.inputs",inputs:{zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a}})},[r,n,o,a]);const g=wn(h,iet),y=E.useMemo(()=>$Je({view:e,where:i,nodesSelectable:a,dynamicViewVariant:g}),[e,i,a,g]);return HB(()=>{h.send({type:"update.view",...y})},[h,y]),$k(()=>{l&&h.send({type:"switch.dynamicViewVariant",variant:l})},[l]),b.jsxs(gBe,{value:h,children:[b.jsx(lX,{children:b.jsx(uet,{actorRef:h,children:s})}),b.jsx(det,{actorRef:h})]})}const cet=e=>e.context.features.enableReadOnly||e.context.activeWalkthrough?{viewId:e.context.view.id,toggledFeatures:{...e.context.toggledFeatures,enableReadOnly:!0}}:{viewId:e.context.view.id,toggledFeatures:e.context.toggledFeatures};function uet({children:e,actorRef:r}){const{viewId:n,toggledFeatures:o}=wn(r,cet,ut),a=Ho().findView(n);return b.jsx(OT.Provider,{value:a,children:b.jsx(fh,{overrides:o,children:e})})}function det({actorRef:e}){const r=Wt(),{onNavigateTo:n,onOpenSource:o,handlersRef:a}=sc();is("openSource",({params:s})=>o?.(s)),is("navigateTo",({viewId:s})=>n?.(s));const i=E.useRef(!1);return E.useEffect(()=>{if(i.current)return;let s=e.on("initialized",({instance:l})=>{try{a.current.onInitialized?.({diagram:r,xyflow:l})}catch(c){console.error(c)}i.current=!0,s?.unsubscribe(),s=null});return()=>{s?.unsubscribe()}},[e,r]),null}const d_={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const r=e/255;return e>.03928?Math.pow((r+.055)/1.055,2.4):r/12.92},hue2rgb:(e,r,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*6*n:n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:r,l:n},o)=>{if(!r)return n*2.55;e/=360,r/=100,n/=100;const a=n<.5?n*(1+r):n+r-n*r,i=2*n-a;switch(o){case"r":return d_.hue2rgb(i,a,e+1/3)*255;case"g":return d_.hue2rgb(i,a,e)*255;case"b":return d_.hue2rgb(i,a,e-1/3)*255}},rgb2hsl:({r:e,g:r,b:n},o)=>{e/=255,r/=255,n/=255;const a=Math.max(e,r,n),i=Math.min(e,r,n),s=(a+i)/2;if(o==="l")return s*100;if(a===i)return 0;const l=a-i,c=s>.5?l/(2-a-i):l/(a+i);if(o==="s")return c*100;switch(a){case e:return((r-n)/l+(rr>n?Math.min(r,Math.max(n,e)):Math.min(n,Math.max(r,e)),round:e=>Math.round(e*1e10)/1e10},fet={dec2hex:e=>{const r=Math.round(e).toString(16);return r.length>1?r:`0${r}`}},Nt={channel:d_,lang:het,unit:fet},Tu={};for(let e=0;e<=255;e++)Tu[e]=Nt.unit.dec2hex(e);const Po={ALL:0,RGB:1,HSL:2};class pet{constructor(){this.type=Po.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=Po.ALL}is(r){return this.type===r}}class met{constructor(r,n){this.color=n,this.changed=!1,this.data=r,this.type=new pet}set(r,n){return this.color=n,this.changed=!1,this.data=r,this.type.type=Po.ALL,this}_ensureHSL(){const r=this.data,{h:n,s:o,l:a}=r;n===void 0&&(r.h=Nt.channel.rgb2hsl(r,"h")),o===void 0&&(r.s=Nt.channel.rgb2hsl(r,"s")),a===void 0&&(r.l=Nt.channel.rgb2hsl(r,"l"))}_ensureRGB(){const r=this.data,{r:n,g:o,b:a}=r;n===void 0&&(r.r=Nt.channel.hsl2rgb(r,"r")),o===void 0&&(r.g=Nt.channel.hsl2rgb(r,"g")),a===void 0&&(r.b=Nt.channel.hsl2rgb(r,"b"))}get r(){const r=this.data,n=r.r;return!this.type.is(Po.HSL)&&n!==void 0?n:(this._ensureHSL(),Nt.channel.hsl2rgb(r,"r"))}get g(){const r=this.data,n=r.g;return!this.type.is(Po.HSL)&&n!==void 0?n:(this._ensureHSL(),Nt.channel.hsl2rgb(r,"g"))}get b(){const r=this.data,n=r.b;return!this.type.is(Po.HSL)&&n!==void 0?n:(this._ensureHSL(),Nt.channel.hsl2rgb(r,"b"))}get h(){const r=this.data,n=r.h;return!this.type.is(Po.RGB)&&n!==void 0?n:(this._ensureRGB(),Nt.channel.rgb2hsl(r,"h"))}get s(){const r=this.data,n=r.s;return!this.type.is(Po.RGB)&&n!==void 0?n:(this._ensureRGB(),Nt.channel.rgb2hsl(r,"s"))}get l(){const r=this.data,n=r.l;return!this.type.is(Po.RGB)&&n!==void 0?n:(this._ensureRGB(),Nt.channel.rgb2hsl(r,"l"))}get a(){return this.data.a}set r(r){this.type.set(Po.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(Po.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(Po.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(Po.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(Po.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(Po.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}const h_=new met({r:0,g:0,b:0,a:0},"transparent"),Cm={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const r=e.match(Cm.re);if(!r)return;const n=r[1],o=parseInt(n,16),a=n.length,i=a%4===0,s=a>4,l=s?1:17,c=s?8:4,u=i?0:-1,d=s?255:15;return h_.set({r:(o>>c*(u+3)&d)*l,g:(o>>c*(u+2)&d)*l,b:(o>>c*(u+1)&d)*l,a:i?(o&d)*l/255:1},e)},stringify:e=>{const{r,g:n,b:o,a}=e;return a<1?`#${Tu[Math.round(r)]}${Tu[Math.round(n)]}${Tu[Math.round(o)]}${Tu[Math.round(a*255)]}`:`#${Tu[Math.round(r)]}${Tu[Math.round(n)]}${Tu[Math.round(o)]}`}},xh={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const r=e.match(xh.hueRe);if(r){const[,n,o]=r;switch(o){case"grad":return Nt.channel.clamp.h(parseFloat(n)*.9);case"rad":return Nt.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return Nt.channel.clamp.h(parseFloat(n)*360)}}return Nt.channel.clamp.h(parseFloat(e))},parse:e=>{const r=e.charCodeAt(0);if(r!==104&&r!==72)return;const n=e.match(xh.re);if(!n)return;const[,o,a,i,s,l]=n;return h_.set({h:xh._hue2deg(o),s:Nt.channel.clamp.s(parseFloat(a)),l:Nt.channel.clamp.l(parseFloat(i)),a:s?Nt.channel.clamp.a(l?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:r,s:n,l:o,a}=e;return a<1?`hsla(${Nt.lang.round(r)}, ${Nt.lang.round(n)}%, ${Nt.lang.round(o)}%, ${a})`:`hsl(${Nt.lang.round(r)}, ${Nt.lang.round(n)}%, ${Nt.lang.round(o)}%)`}},zy={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const r=zy.colors[e];if(r)return Cm.parse(r)},stringify:e=>{const r=Cm.stringify(e);for(const n in zy.colors)if(zy.colors[n]===r)return n}},jy={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const r=e.charCodeAt(0);if(r!==114&&r!==82)return;const n=e.match(jy.re);if(!n)return;const[,o,a,i,s,l,c,u,d]=n;return h_.set({r:Nt.channel.clamp.r(a?parseFloat(o)*2.55:parseFloat(o)),g:Nt.channel.clamp.g(s?parseFloat(i)*2.55:parseFloat(i)),b:Nt.channel.clamp.b(c?parseFloat(l)*2.55:parseFloat(l)),a:u?Nt.channel.clamp.a(d?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r,g:n,b:o,a}=e;return a<1?`rgba(${Nt.lang.round(r)}, ${Nt.lang.round(n)}, ${Nt.lang.round(o)}, ${Nt.lang.round(a)})`:`rgb(${Nt.lang.round(r)}, ${Nt.lang.round(n)}, ${Nt.lang.round(o)})`}},ys={format:{keyword:zy,hex:Cm,rgb:jy,rgba:jy,hsl:xh,hsla:xh},parse:e=>{if(typeof e!="string")return e;const r=Cm.parse(e)||jy.parse(e)||xh.parse(e)||zy.parse(e);if(r)return r;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Po.HSL)||e.data.r===void 0?xh.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?jy.stringify(e):Cm.stringify(e)},Ste=(e,r)=>{const n=ys.parse(e);for(const o in r)n[o]=Nt.channel.clamp[o](r[o]);return ys.stringify(n)},get=(e,r,n=0,o=1)=>{if(typeof e!="number")return Ste(e,{a:r});const a=h_.set({r:Nt.channel.clamp.r(e),g:Nt.channel.clamp.g(r),b:Nt.channel.clamp.b(n),a:Nt.channel.clamp.a(o)});return ys.stringify(a)},Cte=e=>ys.format.hex.stringify(ys.parse(e)),Tte=e=>ys.format.rgba.stringify(ys.parse(e)),yet=(e,r)=>{const n=ys.parse(e),o={};for(const a in r)r[a]&&(o[a]=n[a]+r[a]);return Ste(e,o)},Ate=(e,r,n=50)=>{const{r:o,g:a,b:i,a:s}=ys.parse(e),{r:l,g:c,b:u,a:d}=ys.parse(r),h=n/100,p=h*2-1,g=s-d,y=((p*g===-1?p:(p+g)/(1+p*g))+1)/2,x=1-y,w=o*y+l*x,k=a*y+c*x,C=i*y+u*x,_=s*h+d*(1-h);return get(w,k,C,_)},Nte=(e,r)=>{const n=ys.parse(e),o={},a=(i,s,l)=>s>0?(l-i)*s/100:i*s/100;for(const i in r)o[i]=a(n[i],r[i],Nt.channel.max[i]);return yet(e,o)},Rte=e=>`[data-mantine-color-scheme="${e}"]`,$te=Rte("dark"),bet=Rte("light"),vet=5,xet=(e,r,n,o)=>{const a=l=>Cte(Nte(l,{l:-22-5*o,s:-10-6*o})),i=l=>Cte(Nte(l,{l:-20-3*o,s:-3-6*o})),s=`:where(${e} [data-likec4-color="${r}"][data-compound-depth="${o}"])`;return` +${s} { + --likec4-palette-fill: ${i(n.elements.fill)}; + --likec4-palette-stroke: ${i(n.elements.stroke)}; +} +${$te} ${s} { + --likec4-palette-fill: ${a(n.elements.fill)}; + --likec4-palette-stroke: ${a(n.elements.stroke)}; +} + `.trim()};function wet(e,r,n){const{elements:o,relationships:a}=n,i=`:where(${e} [data-likec4-color=${r}])`;return[` +${i} { + --likec4-palette-fill: ${o.fill}; + --likec4-palette-stroke: ${o.stroke}; + --likec4-palette-hiContrast: ${o.hiContrast}; + --likec4-palette-loContrast: ${o.loContrast}; + --likec4-palette-relation-stroke: ${a.line}; + --likec4-palette-relation-label: ${a.label}; + --likec4-palette-relation-label-bg: ${a.labelBg}; +} +${bet} ${i} { + --likec4-palette-relation-stroke-selected: ${Tte(Ate(a.line,"black",85))}; +} +${$te} ${i} { + --likec4-palette-relation-stroke-selected: ${Tte(Ate(a.line,"white",70))}; +} + + `.trim(),...ZRe(1,vet+1).map(s=>xet(e,r,n,s))].join(` +`)}function ket(e,r){return yn(r.colors,B6(),Ao(([n,o])=>wet(e,n,o)),oV(` +`))}const _et=E.memo(({id:e})=>{const r=`#${e}`,n=Yd()?.(),{theme:o}=nte(),a=ket(r,o);return b.jsx("style",{type:"text/css","data-likec4-colors":e,dangerouslySetInnerHTML:{__html:a},nonce:n})});function Pte(e,r){if(e._type==="dynamic")try{if(r??=e.variant,r==="sequence")return e.sequenceLayout.bounds}catch{}return e.bounds}function Mte({children:e}){const r=E.useContext(Zw);return E.useEffect(()=>{r||console.warn("LikeC4Diagram must be a child of MantineProvider")},[]),r?b.jsx(b.Fragment,{children:e}):b.jsx(gC,{defaultColorScheme:"auto",children:e})}Mte.displayName="EnsureMantine";const m7=({reducedMotion:e="user",children:r})=>{const n=Yd()?.();return b.jsx(wUe,{features:yqe,strict:!0,children:b.jsx(EUe,{reducedMotion:e,...n&&{nonce:n},children:r})})};function Ote({onCanvasClick:e,onCanvasContextMenu:r,onCanvasDblClick:n,onEdgeClick:o,onChange:a,onEdgeContextMenu:i,onNavigateTo:s,onNodeClick:l,onNodeContextMenu:c,onOpenSource:u,onBurgerMenuClick:d,onInitialized:h,view:p,className:g,readonly:y=!0,controls:x=!y,fitView:w=!0,fitViewPadding:k=x?Mk.withControls:Mk.default,pannable:C=!0,zoomable:_=!0,background:T="dots",enableElementTags:A=!1,enableFocusMode:N=!1,enableElementDetails:$=!1,enableRelationshipDetails:R=!1,enableRelationshipBrowser:M=!1,nodesDraggable:O=!y,nodesSelectable:B=!y||N||!!s||!!l,showNotations:I=!0,showNavigationButtons:Y=!!s,enableDynamicViewWalkthrough:D=!1,dynamicViewVariant:V,enableSearch:L=!1,initialWidth:U,initialHeight:q,experimentalEdgeEditing:X=!y,reduceGraphics:F="auto",renderIcon:J,where:Q,reactFlowProps:z,renderNodes:W,children:G}){const Z=ZW(),oe=E.useRef(null),ee=Pte(p,V),re=Eet(k);oe.current==null&&(oe.current={defaultEdges:[],defaultNodes:[],initialWidth:U??ee.width,initialHeight:q??ee.height,initialFitViewOptions:{maxZoom:H9,minZoom:hs,padding:re},initialMaxZoom:H9,initialMinZoom:hs});const he=F==="auto"?C&&(ee.width??1)*(ee.height??1)>6e6&&p.nodes.some(Ce=>Ce.children?.length>0):F;return b.jsx(Mte,{children:b.jsx(m7,{...he&&{reducedMotion:"always"},children:b.jsx(u6e,{value:J??null,children:b.jsx(fh,{features:{enableFitView:w,enableReadOnly:y,enableFocusMode:N,enableNavigateTo:!!s,enableElementDetails:$,enableRelationshipDetails:R,enableRelationshipBrowser:M,enableSearch:L,enableNavigationButtons:Y&&!!s,enableDynamicViewWalkthrough:p._type==="dynamic"&&D,enableEdgeEditing:X,enableNotations:I,enableVscode:!!u,enableControls:x,enableElementTags:A},children:b.jsxs(gKe,{handlers:{onCanvasClick:e,onCanvasContextMenu:r,onCanvasDblClick:n,onEdgeClick:o,onChange:a,onEdgeContextMenu:i,onNavigateTo:s,onNodeClick:l,onNodeContextMenu:c,onOpenSource:u,onBurgerMenuClick:d,onInitialized:h},children:[b.jsx(_et,{id:Z}),b.jsx(Mze,{rootSelector:`#${Z}`,children:b.jsx(Cze,{id:Z,className:g,reduceGraphics:he,children:b.jsx(Mw,{fitView:w,...oe.current,children:b.jsxs(set,{view:p,zoomable:_,pannable:C,fitViewPadding:re,nodesSelectable:B,where:Q??null,dynamicViewVariant:V,children:[b.jsx(EJe,{nodesDraggable:O,nodesSelectable:B,background:T,reactFlowProps:z,renderNodes:W,children:G}),b.jsx(Yee,{})]})})})})]})})})})})}const Dte=e=>typeof e=="number"?`${e}px`:e;function Eet(e){return VB(()=>U6(e)?URe(e,Dte):Dte(e),[e],ut)}function Cet({children:e,likec4model:r}){return b.jsx(W1.Provider,{value:r,children:e})}const g7=({children:e})=>b.jsx("div",{style:{margin:"1rem 0"},children:b.jsx("div",{style:{margin:"0 auto",display:"inline-block",padding:"2rem",background:"rgba(250,82,82,.15)",color:"#ffa8a8"},children:e})}),Tet=({viewId:e})=>b.jsxs(g7,{children:["View ",b.jsx("code",{children:e})," not found"]}),Aet=e=>{throw new Error("LikeC4View is not available SSR")};var Lte={exports:{}},y7,Ite;function Net(){if(Ite)return y7;Ite=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return y7=e,y7}var b7,zte;function Ret(){if(zte)return b7;zte=1;var e=Net();function r(){}function n(){}return n.resetWarningCache=r,b7=function(){function o(s,l,c,u,d,h){if(h!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}o.isRequired=o;function a(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return i.PropTypes=i,i},b7}var jte;function $et(){return jte||(jte=1,Lte.exports=Ret()()),Lte.exports}var Pet=$et();const bs=$6(Pet);var Met=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bte(e,r){return e(r={exports:{}},r.exports),r.exports}var Oet=Bte((function(e){(function(r){var n=function(w,k,C){if(!c(k)||d(k)||h(k)||p(k)||l(k))return k;var _,T=0,A=0;if(u(k))for(_=[],A=k.length;Te.length)&&(r=e.length);for(var n=0,o=new Array(r);n=0||(a[n]=e[n]);return a},Ute=function(e,r){if(e==null)return{};var n,o,a=Bet(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},Fet=E.createContext(null);function Vte(e){var r=e.children,n=r===void 0?"":r,o=Ute(e,["children"]);return typeof n!="string"&&(n=Aet()),Gr.createElement("template",Hte({},o,{dangerouslySetInnerHTML:{__html:n}}))}function qte(e){var r=e.root,n=e.children;return ji.createPortal(n===void 0?null:n,r)}function Het(e){var r=E.forwardRef((function(n,o){var a,i,s=n.mode,l=s===void 0?"open":s,c=n.delegatesFocus,u=c!==void 0&&c,d=n.styleSheets,h=d===void 0?[]:d,p=n.ssr,g=p!==void 0&&p,y=n.children,x=Ute(n,["mode","delegatesFocus","styleSheets","ssr","children"]),w=(i=E.useRef((a=o)&&a.current),E.useEffect((function(){a&&(a.current=i.current)}),[a]),i),k=E.useState(null),C=jet(k,2),_=C[0],T=C[1],A="node_".concat(l).concat(u);return E.useLayoutEffect((function(){if(w.current)try{if(typeof o=="function"&&o(w.current),g){var N=w.current.shadowRoot;return void T(N)}var $=w.current.attachShadow({mode:l,delegatesFocus:u});h.length>0&&($.adoptedStyleSheets=h),T($)}catch(R){(function(M){var O=M.error,B=M.styleSheets,I=M.root;switch(O.name){case"NotSupportedError":B.length>0&&(I.adoptedStyleSheets=B);break;default:throw O}})({error:R,styleSheets:h,root:_})}}),[o,w,h]),Gr.createElement(Gr.Fragment,null,Gr.createElement(e.tag,Hte({key:A,ref:w},x),(_||g)&&Gr.createElement(Fet.Provider,{value:_},g?Gr.createElement(Vte,{shadowroot:l,shadowrootmode:l},e.render({root:_,ssr:g,children:y})):Gr.createElement(qte,{root:_},e.render({root:_,ssr:g,children:y})))))}));return r.propTypes={mode:bs.oneOf(["open","closed"]),delegatesFocus:bs.bool,styleSheets:bs.arrayOf(bs.instanceOf(globalThis.CSSStyleSheet)),ssr:bs.bool,children:bs.node},r}Vte.propTypes={children:bs.oneOfType([bs.string,bs.node])},qte.propTypes={root:bs.object.isRequired,children:bs.node};var v7=new Map;function Uet(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(o){return o.children};return new Proxy(e,{get:function(o,a){var i=Oet(a,{separator:"-"}),s="".concat(r,"-").concat(i);return v7.has(s)||v7.set(s,Het({tag:i,render:n})),v7.get(s)}})}var Vet=Uet();const qet='@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}',Yte=`@layer reset,base,mantine,xyflow,tokens,recipes,utilities;@layer mantine{:root{color-scheme:var(--mantine-color-scheme)}*,*:before,*:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body{margin:0;font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing)}@media screen and (max-device-width: 31.25em){body{-webkit-text-size-adjust:100%}}@media (prefers-reduced-motion: reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root{--mantine-z-index-app: 100;--mantine-z-index-modal: 200;--mantine-z-index-popover: 300;--mantine-z-index-overlay: 400;--mantine-z-index-max: 9999;--mantine-scale: 1;--mantine-cursor-type: default;--mantine-webkit-font-smoothing: antialiased;--mantine-moz-font-smoothing: grayscale;--mantine-color-white: #fff;--mantine-color-black: #000;--mantine-line-height: 1.55;--mantine-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight: 700;--mantine-heading-text-wrap: wrap;--mantine-radius-default: calc(.25rem * var(--mantine-scale));--mantine-primary-color-filled: var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover: var(--mantine-color-blue-filled-hover);--mantine-primary-color-light: var(--mantine-color-blue-light);--mantine-primary-color-light-hover: var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color: var(--mantine-color-blue-light-color);--mantine-breakpoint-xs: 36em;--mantine-breakpoint-sm: 48em;--mantine-breakpoint-md: 62em;--mantine-breakpoint-lg: 75em;--mantine-breakpoint-xl: 88em;--mantine-spacing-xs: calc(.625rem * var(--mantine-scale));--mantine-spacing-sm: calc(.75rem * var(--mantine-scale));--mantine-spacing-md: calc(1rem * var(--mantine-scale));--mantine-spacing-lg: calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl: calc(2rem * var(--mantine-scale));--mantine-font-size-xs: calc(.75rem * var(--mantine-scale));--mantine-font-size-sm: calc(.875rem * var(--mantine-scale));--mantine-font-size-md: calc(1rem * var(--mantine-scale));--mantine-font-size-lg: calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl: calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs: 1.4;--mantine-line-height-sm: 1.45;--mantine-line-height-md: 1.55;--mantine-line-height-lg: 1.6;--mantine-line-height-xl: 1.65;--mantine-shadow-xs: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) rgba(0, 0, 0, .1);--mantine-shadow-sm: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs: calc(.125rem * var(--mantine-scale));--mantine-radius-sm: calc(.25rem * var(--mantine-scale));--mantine-radius-md: calc(.5rem * var(--mantine-scale));--mantine-radius-lg: calc(1rem * var(--mantine-scale));--mantine-radius-xl: calc(2rem * var(--mantine-scale));--mantine-primary-color-0: var(--mantine-color-blue-0);--mantine-primary-color-1: var(--mantine-color-blue-1);--mantine-primary-color-2: var(--mantine-color-blue-2);--mantine-primary-color-3: var(--mantine-color-blue-3);--mantine-primary-color-4: var(--mantine-color-blue-4);--mantine-primary-color-5: var(--mantine-color-blue-5);--mantine-primary-color-6: var(--mantine-color-blue-6);--mantine-primary-color-7: var(--mantine-color-blue-7);--mantine-primary-color-8: var(--mantine-color-blue-8);--mantine-primary-color-9: var(--mantine-color-blue-9);--mantine-color-dark-0: #c9c9c9;--mantine-color-dark-1: #b8b8b8;--mantine-color-dark-2: #828282;--mantine-color-dark-3: #696969;--mantine-color-dark-4: #424242;--mantine-color-dark-5: #3b3b3b;--mantine-color-dark-6: #2e2e2e;--mantine-color-dark-7: #242424;--mantine-color-dark-8: #1f1f1f;--mantine-color-dark-9: #141414;--mantine-color-gray-0: #f8f9fa;--mantine-color-gray-1: #f1f3f5;--mantine-color-gray-2: #e9ecef;--mantine-color-gray-3: #dee2e6;--mantine-color-gray-4: #ced4da;--mantine-color-gray-5: #adb5bd;--mantine-color-gray-6: #868e96;--mantine-color-gray-7: #495057;--mantine-color-gray-8: #343a40;--mantine-color-gray-9: #212529;--mantine-color-red-0: #fff5f5;--mantine-color-red-1: #ffe3e3;--mantine-color-red-2: #ffc9c9;--mantine-color-red-3: #ffa8a8;--mantine-color-red-4: #ff8787;--mantine-color-red-5: #ff6b6b;--mantine-color-red-6: #fa5252;--mantine-color-red-7: #f03e3e;--mantine-color-red-8: #e03131;--mantine-color-red-9: #c92a2a;--mantine-color-pink-0: #fff0f6;--mantine-color-pink-1: #ffdeeb;--mantine-color-pink-2: #fcc2d7;--mantine-color-pink-3: #faa2c1;--mantine-color-pink-4: #f783ac;--mantine-color-pink-5: #f06595;--mantine-color-pink-6: #e64980;--mantine-color-pink-7: #d6336c;--mantine-color-pink-8: #c2255c;--mantine-color-pink-9: #a61e4d;--mantine-color-grape-0: #f8f0fc;--mantine-color-grape-1: #f3d9fa;--mantine-color-grape-2: #eebefa;--mantine-color-grape-3: #e599f7;--mantine-color-grape-4: #da77f2;--mantine-color-grape-5: #cc5de8;--mantine-color-grape-6: #be4bdb;--mantine-color-grape-7: #ae3ec9;--mantine-color-grape-8: #9c36b5;--mantine-color-grape-9: #862e9c;--mantine-color-violet-0: #f3f0ff;--mantine-color-violet-1: #e5dbff;--mantine-color-violet-2: #d0bfff;--mantine-color-violet-3: #b197fc;--mantine-color-violet-4: #9775fa;--mantine-color-violet-5: #845ef7;--mantine-color-violet-6: #7950f2;--mantine-color-violet-7: #7048e8;--mantine-color-violet-8: #6741d9;--mantine-color-violet-9: #5f3dc4;--mantine-color-indigo-0: #edf2ff;--mantine-color-indigo-1: #dbe4ff;--mantine-color-indigo-2: #bac8ff;--mantine-color-indigo-3: #91a7ff;--mantine-color-indigo-4: #748ffc;--mantine-color-indigo-5: #5c7cfa;--mantine-color-indigo-6: #4c6ef5;--mantine-color-indigo-7: #4263eb;--mantine-color-indigo-8: #3b5bdb;--mantine-color-indigo-9: #364fc7;--mantine-color-blue-0: #e7f5ff;--mantine-color-blue-1: #d0ebff;--mantine-color-blue-2: #a5d8ff;--mantine-color-blue-3: #74c0fc;--mantine-color-blue-4: #4dabf7;--mantine-color-blue-5: #339af0;--mantine-color-blue-6: #228be6;--mantine-color-blue-7: #1c7ed6;--mantine-color-blue-8: #1971c2;--mantine-color-blue-9: #1864ab;--mantine-color-cyan-0: #e3fafc;--mantine-color-cyan-1: #c5f6fa;--mantine-color-cyan-2: #99e9f2;--mantine-color-cyan-3: #66d9e8;--mantine-color-cyan-4: #3bc9db;--mantine-color-cyan-5: #22b8cf;--mantine-color-cyan-6: #15aabf;--mantine-color-cyan-7: #1098ad;--mantine-color-cyan-8: #0c8599;--mantine-color-cyan-9: #0b7285;--mantine-color-teal-0: #e6fcf5;--mantine-color-teal-1: #c3fae8;--mantine-color-teal-2: #96f2d7;--mantine-color-teal-3: #63e6be;--mantine-color-teal-4: #38d9a9;--mantine-color-teal-5: #20c997;--mantine-color-teal-6: #12b886;--mantine-color-teal-7: #0ca678;--mantine-color-teal-8: #099268;--mantine-color-teal-9: #087f5b;--mantine-color-green-0: #ebfbee;--mantine-color-green-1: #d3f9d8;--mantine-color-green-2: #b2f2bb;--mantine-color-green-3: #8ce99a;--mantine-color-green-4: #69db7c;--mantine-color-green-5: #51cf66;--mantine-color-green-6: #40c057;--mantine-color-green-7: #37b24d;--mantine-color-green-8: #2f9e44;--mantine-color-green-9: #2b8a3e;--mantine-color-lime-0: #f4fce3;--mantine-color-lime-1: #e9fac8;--mantine-color-lime-2: #d8f5a2;--mantine-color-lime-3: #c0eb75;--mantine-color-lime-4: #a9e34b;--mantine-color-lime-5: #94d82d;--mantine-color-lime-6: #82c91e;--mantine-color-lime-7: #74b816;--mantine-color-lime-8: #66a80f;--mantine-color-lime-9: #5c940d;--mantine-color-yellow-0: #fff9db;--mantine-color-yellow-1: #fff3bf;--mantine-color-yellow-2: #ffec99;--mantine-color-yellow-3: #ffe066;--mantine-color-yellow-4: #ffd43b;--mantine-color-yellow-5: #fcc419;--mantine-color-yellow-6: #fab005;--mantine-color-yellow-7: #f59f00;--mantine-color-yellow-8: #f08c00;--mantine-color-yellow-9: #e67700;--mantine-color-orange-0: #fff4e6;--mantine-color-orange-1: #ffe8cc;--mantine-color-orange-2: #ffd8a8;--mantine-color-orange-3: #ffc078;--mantine-color-orange-4: #ffa94d;--mantine-color-orange-5: #ff922b;--mantine-color-orange-6: #fd7e14;--mantine-color-orange-7: #f76707;--mantine-color-orange-8: #e8590c;--mantine-color-orange-9: #d9480f;--mantine-h1-font-size: calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height: 1.3;--mantine-h1-font-weight: 700;--mantine-h2-font-size: calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height: 1.35;--mantine-h2-font-weight: 700;--mantine-h3-font-size: calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height: 1.4;--mantine-h3-font-weight: 700;--mantine-h4-font-size: calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height: 1.45;--mantine-h4-font-weight: 700;--mantine-h5-font-size: calc(1rem * var(--mantine-scale));--mantine-h5-line-height: 1.5;--mantine-h5-font-weight: 700;--mantine-h6-font-size: calc(.875rem * var(--mantine-scale));--mantine-h6-line-height: 1.5;--mantine-h6-font-weight: 700}:root[data-mantine-color-scheme=dark]{--mantine-color-scheme: dark;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-white);--mantine-color-text: var(--mantine-color-dark-0);--mantine-color-body: var(--mantine-color-dark-7);--mantine-color-error: var(--mantine-color-red-8);--mantine-color-placeholder: var(--mantine-color-dark-3);--mantine-color-anchor: var(--mantine-color-blue-4);--mantine-color-default: var(--mantine-color-dark-6);--mantine-color-default-hover: var(--mantine-color-dark-5);--mantine-color-default-color: var(--mantine-color-white);--mantine-color-default-border: var(--mantine-color-dark-4);--mantine-color-dimmed: var(--mantine-color-dark-2);--mantine-color-disabled: var(--mantine-color-dark-6);--mantine-color-disabled-color: var(--mantine-color-dark-3);--mantine-color-disabled-border: var(--mantine-color-dark-4);--mantine-color-dark-text: var(--mantine-color-dark-4);--mantine-color-dark-filled: var(--mantine-color-dark-8);--mantine-color-dark-filled-hover: var(--mantine-color-dark-9);--mantine-color-dark-light: rgba(46, 46, 46, .15);--mantine-color-dark-light-hover: rgba(46, 46, 46, .2);--mantine-color-dark-light-color: var(--mantine-color-dark-3);--mantine-color-dark-outline: var(--mantine-color-dark-4);--mantine-color-dark-outline-hover: rgba(66, 66, 66, .05);--mantine-color-gray-text: var(--mantine-color-gray-4);--mantine-color-gray-filled: var(--mantine-color-gray-8);--mantine-color-gray-filled-hover: var(--mantine-color-gray-9);--mantine-color-gray-light: rgba(134, 142, 150, .15);--mantine-color-gray-light-hover: rgba(134, 142, 150, .2);--mantine-color-gray-light-color: var(--mantine-color-gray-3);--mantine-color-gray-outline: var(--mantine-color-gray-4);--mantine-color-gray-outline-hover: rgba(206, 212, 218, .05);--mantine-color-red-text: var(--mantine-color-red-4);--mantine-color-red-filled: var(--mantine-color-red-8);--mantine-color-red-filled-hover: var(--mantine-color-red-9);--mantine-color-red-light: rgba(250, 82, 82, .15);--mantine-color-red-light-hover: rgba(250, 82, 82, .2);--mantine-color-red-light-color: var(--mantine-color-red-3);--mantine-color-red-outline: var(--mantine-color-red-4);--mantine-color-red-outline-hover: rgba(255, 135, 135, .05);--mantine-color-pink-text: var(--mantine-color-pink-4);--mantine-color-pink-filled: var(--mantine-color-pink-8);--mantine-color-pink-filled-hover: var(--mantine-color-pink-9);--mantine-color-pink-light: rgba(230, 73, 128, .15);--mantine-color-pink-light-hover: rgba(230, 73, 128, .2);--mantine-color-pink-light-color: var(--mantine-color-pink-3);--mantine-color-pink-outline: var(--mantine-color-pink-4);--mantine-color-pink-outline-hover: rgba(247, 131, 172, .05);--mantine-color-grape-text: var(--mantine-color-grape-4);--mantine-color-grape-filled: var(--mantine-color-grape-8);--mantine-color-grape-filled-hover: var(--mantine-color-grape-9);--mantine-color-grape-light: rgba(190, 75, 219, .15);--mantine-color-grape-light-hover: rgba(190, 75, 219, .2);--mantine-color-grape-light-color: var(--mantine-color-grape-3);--mantine-color-grape-outline: var(--mantine-color-grape-4);--mantine-color-grape-outline-hover: rgba(218, 119, 242, .05);--mantine-color-violet-text: var(--mantine-color-violet-4);--mantine-color-violet-filled: var(--mantine-color-violet-8);--mantine-color-violet-filled-hover: var(--mantine-color-violet-9);--mantine-color-violet-light: rgba(121, 80, 242, .15);--mantine-color-violet-light-hover: rgba(121, 80, 242, .2);--mantine-color-violet-light-color: var(--mantine-color-violet-3);--mantine-color-violet-outline: var(--mantine-color-violet-4);--mantine-color-violet-outline-hover: rgba(151, 117, 250, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-4);--mantine-color-indigo-filled: var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-9);--mantine-color-indigo-light: rgba(76, 110, 245, .15);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .2);--mantine-color-indigo-light-color: var(--mantine-color-indigo-3);--mantine-color-indigo-outline: var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover: rgba(116, 143, 252, .05);--mantine-color-blue-text: var(--mantine-color-blue-4);--mantine-color-blue-filled: var(--mantine-color-blue-8);--mantine-color-blue-filled-hover: var(--mantine-color-blue-9);--mantine-color-blue-light: rgba(34, 139, 230, .15);--mantine-color-blue-light-hover: rgba(34, 139, 230, .2);--mantine-color-blue-light-color: var(--mantine-color-blue-3);--mantine-color-blue-outline: var(--mantine-color-blue-4);--mantine-color-blue-outline-hover: rgba(77, 171, 247, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-4);--mantine-color-cyan-filled: var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-9);--mantine-color-cyan-light: rgba(21, 170, 191, .15);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .2);--mantine-color-cyan-light-color: var(--mantine-color-cyan-3);--mantine-color-cyan-outline: var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover: rgba(59, 201, 219, .05);--mantine-color-teal-text: var(--mantine-color-teal-4);--mantine-color-teal-filled: var(--mantine-color-teal-8);--mantine-color-teal-filled-hover: var(--mantine-color-teal-9);--mantine-color-teal-light: rgba(18, 184, 134, .15);--mantine-color-teal-light-hover: rgba(18, 184, 134, .2);--mantine-color-teal-light-color: var(--mantine-color-teal-3);--mantine-color-teal-outline: var(--mantine-color-teal-4);--mantine-color-teal-outline-hover: rgba(56, 217, 169, .05);--mantine-color-green-text: var(--mantine-color-green-4);--mantine-color-green-filled: var(--mantine-color-green-8);--mantine-color-green-filled-hover: var(--mantine-color-green-9);--mantine-color-green-light: rgba(64, 192, 87, .15);--mantine-color-green-light-hover: rgba(64, 192, 87, .2);--mantine-color-green-light-color: var(--mantine-color-green-3);--mantine-color-green-outline: var(--mantine-color-green-4);--mantine-color-green-outline-hover: rgba(105, 219, 124, .05);--mantine-color-lime-text: var(--mantine-color-lime-4);--mantine-color-lime-filled: var(--mantine-color-lime-8);--mantine-color-lime-filled-hover: var(--mantine-color-lime-9);--mantine-color-lime-light: rgba(130, 201, 30, .15);--mantine-color-lime-light-hover: rgba(130, 201, 30, .2);--mantine-color-lime-light-color: var(--mantine-color-lime-3);--mantine-color-lime-outline: var(--mantine-color-lime-4);--mantine-color-lime-outline-hover: rgba(169, 227, 75, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-4);--mantine-color-yellow-filled: var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-9);--mantine-color-yellow-light: rgba(250, 176, 5, .15);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .2);--mantine-color-yellow-light-color: var(--mantine-color-yellow-3);--mantine-color-yellow-outline: var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover: rgba(255, 212, 59, .05);--mantine-color-orange-text: var(--mantine-color-orange-4);--mantine-color-orange-filled: var(--mantine-color-orange-8);--mantine-color-orange-filled-hover: var(--mantine-color-orange-9);--mantine-color-orange-light: rgba(253, 126, 20, .15);--mantine-color-orange-light-hover: rgba(253, 126, 20, .2);--mantine-color-orange-light-color: var(--mantine-color-orange-3);--mantine-color-orange-outline: var(--mantine-color-orange-4);--mantine-color-orange-outline-hover: rgba(255, 169, 77, .05)}:root[data-mantine-color-scheme=light]{--mantine-color-scheme: light;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-black);--mantine-color-text: #000;--mantine-color-body: #fff;--mantine-color-error: var(--mantine-color-red-6);--mantine-color-placeholder: var(--mantine-color-gray-5);--mantine-color-anchor: var(--mantine-color-blue-6);--mantine-color-default: var(--mantine-color-white);--mantine-color-default-hover: var(--mantine-color-gray-0);--mantine-color-default-color: var(--mantine-color-black);--mantine-color-default-border: var(--mantine-color-gray-4);--mantine-color-dimmed: var(--mantine-color-gray-6);--mantine-color-disabled: var(--mantine-color-gray-2);--mantine-color-disabled-color: var(--mantine-color-gray-5);--mantine-color-disabled-border: var(--mantine-color-gray-3);--mantine-color-dark-text: var(--mantine-color-dark-filled);--mantine-color-dark-filled: var(--mantine-color-dark-6);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(46, 46, 46, .1);--mantine-color-dark-light-hover: rgba(46, 46, 46, .12);--mantine-color-dark-light-color: var(--mantine-color-dark-6);--mantine-color-dark-outline: var(--mantine-color-dark-6);--mantine-color-dark-outline-hover: rgba(46, 46, 46, .05);--mantine-color-gray-text: var(--mantine-color-gray-filled);--mantine-color-gray-filled: var(--mantine-color-gray-6);--mantine-color-gray-filled-hover: var(--mantine-color-gray-7);--mantine-color-gray-light: rgba(134, 142, 150, .1);--mantine-color-gray-light-hover: rgba(134, 142, 150, .12);--mantine-color-gray-light-color: var(--mantine-color-gray-6);--mantine-color-gray-outline: var(--mantine-color-gray-6);--mantine-color-gray-outline-hover: rgba(134, 142, 150, .05);--mantine-color-red-text: var(--mantine-color-red-filled);--mantine-color-red-filled: var(--mantine-color-red-6);--mantine-color-red-filled-hover: var(--mantine-color-red-7);--mantine-color-red-light: rgba(250, 82, 82, .1);--mantine-color-red-light-hover: rgba(250, 82, 82, .12);--mantine-color-red-light-color: var(--mantine-color-red-6);--mantine-color-red-outline: var(--mantine-color-red-6);--mantine-color-red-outline-hover: rgba(250, 82, 82, .05);--mantine-color-pink-text: var(--mantine-color-pink-filled);--mantine-color-pink-filled: var(--mantine-color-pink-6);--mantine-color-pink-filled-hover: var(--mantine-color-pink-7);--mantine-color-pink-light: rgba(230, 73, 128, .1);--mantine-color-pink-light-hover: rgba(230, 73, 128, .12);--mantine-color-pink-light-color: var(--mantine-color-pink-6);--mantine-color-pink-outline: var(--mantine-color-pink-6);--mantine-color-pink-outline-hover: rgba(230, 73, 128, .05);--mantine-color-grape-text: var(--mantine-color-grape-filled);--mantine-color-grape-filled: var(--mantine-color-grape-6);--mantine-color-grape-filled-hover: var(--mantine-color-grape-7);--mantine-color-grape-light: rgba(190, 75, 219, .1);--mantine-color-grape-light-hover: rgba(190, 75, 219, .12);--mantine-color-grape-light-color: var(--mantine-color-grape-6);--mantine-color-grape-outline: var(--mantine-color-grape-6);--mantine-color-grape-outline-hover: rgba(190, 75, 219, .05);--mantine-color-violet-text: var(--mantine-color-violet-filled);--mantine-color-violet-filled: var(--mantine-color-violet-6);--mantine-color-violet-filled-hover: var(--mantine-color-violet-7);--mantine-color-violet-light: rgba(121, 80, 242, .1);--mantine-color-violet-light-hover: rgba(121, 80, 242, .12);--mantine-color-violet-light-color: var(--mantine-color-violet-6);--mantine-color-violet-outline: var(--mantine-color-violet-6);--mantine-color-violet-outline-hover: rgba(121, 80, 242, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-filled);--mantine-color-indigo-filled: var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-7);--mantine-color-indigo-light: rgba(76, 110, 245, .1);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .12);--mantine-color-indigo-light-color: var(--mantine-color-indigo-6);--mantine-color-indigo-outline: var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover: rgba(76, 110, 245, .05);--mantine-color-blue-text: var(--mantine-color-blue-filled);--mantine-color-blue-filled: var(--mantine-color-blue-6);--mantine-color-blue-filled-hover: var(--mantine-color-blue-7);--mantine-color-blue-light: rgba(34, 139, 230, .1);--mantine-color-blue-light-hover: rgba(34, 139, 230, .12);--mantine-color-blue-light-color: var(--mantine-color-blue-6);--mantine-color-blue-outline: var(--mantine-color-blue-6);--mantine-color-blue-outline-hover: rgba(34, 139, 230, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-filled);--mantine-color-cyan-filled: var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-7);--mantine-color-cyan-light: rgba(21, 170, 191, .1);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .12);--mantine-color-cyan-light-color: var(--mantine-color-cyan-6);--mantine-color-cyan-outline: var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover: rgba(21, 170, 191, .05);--mantine-color-teal-text: var(--mantine-color-teal-filled);--mantine-color-teal-filled: var(--mantine-color-teal-6);--mantine-color-teal-filled-hover: var(--mantine-color-teal-7);--mantine-color-teal-light: rgba(18, 184, 134, .1);--mantine-color-teal-light-hover: rgba(18, 184, 134, .12);--mantine-color-teal-light-color: var(--mantine-color-teal-6);--mantine-color-teal-outline: var(--mantine-color-teal-6);--mantine-color-teal-outline-hover: rgba(18, 184, 134, .05);--mantine-color-green-text: var(--mantine-color-green-filled);--mantine-color-green-filled: var(--mantine-color-green-6);--mantine-color-green-filled-hover: var(--mantine-color-green-7);--mantine-color-green-light: rgba(64, 192, 87, .1);--mantine-color-green-light-hover: rgba(64, 192, 87, .12);--mantine-color-green-light-color: var(--mantine-color-green-6);--mantine-color-green-outline: var(--mantine-color-green-6);--mantine-color-green-outline-hover: rgba(64, 192, 87, .05);--mantine-color-lime-text: var(--mantine-color-lime-filled);--mantine-color-lime-filled: var(--mantine-color-lime-6);--mantine-color-lime-filled-hover: var(--mantine-color-lime-7);--mantine-color-lime-light: rgba(130, 201, 30, .1);--mantine-color-lime-light-hover: rgba(130, 201, 30, .12);--mantine-color-lime-light-color: var(--mantine-color-lime-6);--mantine-color-lime-outline: var(--mantine-color-lime-6);--mantine-color-lime-outline-hover: rgba(130, 201, 30, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-filled);--mantine-color-yellow-filled: var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-7);--mantine-color-yellow-light: rgba(250, 176, 5, .1);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .12);--mantine-color-yellow-light-color: var(--mantine-color-yellow-6);--mantine-color-yellow-outline: var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover: rgba(250, 176, 5, .05);--mantine-color-orange-text: var(--mantine-color-orange-filled);--mantine-color-orange-filled: var(--mantine-color-orange-6);--mantine-color-orange-filled-hover: var(--mantine-color-orange-7);--mantine-color-orange-light: rgba(253, 126, 20, .1);--mantine-color-orange-light-hover: rgba(253, 126, 20, .12);--mantine-color-orange-light-color: var(--mantine-color-orange-6);--mantine-color-orange-outline: var(--mantine-color-orange-6);--mantine-color-orange-outline-hover: rgba(253, 126, 20, .05)}.m_d57069b5{--scrollarea-scrollbar-size: calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_d57069b5:where([data-autosize]) .m_b1336c6{min-width:min-content}.m_c0783ff9{scrollbar-width:none;overscroll-behavior:var(--scrollarea-over-scroll-behavior);-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):where([data-vertical-hidden]){padding-inline-end:0;padding-inline-start:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]){padding-inline-end:var(--scrollarea-scrollbar-size);padding-inline-start:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):where([data-horizontal-hidden]){padding-bottom:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):not([data-horizontal-hidden]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{user-select:none;touch-action:none;box-sizing:border-box;transition:background-color .15s ease,opacity .15s ease;padding:calc(var(--scrollarea-scrollbar-size) / 5);display:flex;background-color:transparent;flex-direction:row}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);flex-direction:column;bottom:0;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_d8b5e363{flex:1;border-radius:var(--scrollarea-scrollbar-size);position:relative;transition:background-color .15s ease;overflow:hidden;opacity:var(--thumb-opacity)}.m_d8b5e363:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{position:absolute;opacity:0;transition:opacity .15s ease;display:block;inset-inline-end:0;bottom:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_b1336c6{min-width:100%}.m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_515a97f8{border:0;clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));overflow:hidden;padding:0;position:absolute;white-space:nowrap}.m_1b7284a3{--paper-radius: var(--mantine-radius-default);outline:0;-webkit-tap-highlight-color:transparent;display:block;touch-action:manipulation;text-decoration:none;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body)}[data-mantine-color-scheme=light] .m_1b7284a3{--paper-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_1b7284a3{--paper-border-color: var(--mantine-color-dark-4)}.m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--paper-border-color)}.m_9814e45f{inset:0;position:absolute;background:var(--overlay-bg, rgba(0, 0, 0, .6));-webkit-backdrop-filter:var(--overlay-filter);backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius, 0);z-index:var(--overlay-z-index)}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){display:flex;align-items:center;justify-content:center}.m_38a85659{position:absolute;border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow, none);border-radius:var(--popover-radius, var(--mantine-radius-default))}.m_38a85659:where([data-fixed]){position:fixed}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color: var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color: var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_3d7bc908{position:fixed;inset:0}.m_5ae2e3c{--loader-size-xs: calc(1.125rem * var(--mantine-scale));--loader-size-sm: calc(1.375rem * var(--mantine-scale));--loader-size-md: calc(2.25rem * var(--mantine-scale));--loader-size-lg: calc(2.75rem * var(--mantine-scale));--loader-size-xl: calc(3.625rem * var(--mantine-scale));--loader-size: var(--loader-size-md);--loader-color: var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{transform:scale(.6);opacity:0}50%,to{transform:scale(1)}}.m_7a2bd4cd{position:relative;width:var(--loader-size);height:var(--loader-size);display:flex;gap:calc(var(--loader-size) / 5)}.m_870bb79{flex:1;background:var(--loader-color);animation:m_5d2b3b9d 1.2s cubic-bezier(0,.5,.5,1) infinite;border-radius:calc(.125rem * var(--mantine-scale))}.m_870bb79:nth-of-type(1){animation-delay:-.24s}.m_870bb79:nth-of-type(2){animation-delay:-.12s}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.5}}.m_4e3f22d7{display:flex;justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);position:relative;width:var(--loader-size);height:var(--loader-size)}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);border-radius:50%;background:var(--loader-color);animation:m_aac34a1 .8s infinite linear}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{display:inline-block;width:var(--loader-size);height:var(--loader-size)}.m_b34414df:after{content:"";display:block;width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:m_f8e89c4b 1.2s linear infinite}.m_8d3f4000{--ai-size-xs: calc(1.125rem * var(--mantine-scale));--ai-size-sm: calc(1.375rem * var(--mantine-scale));--ai-size-md: calc(1.75rem * var(--mantine-scale));--ai-size-lg: calc(2.125rem * var(--mantine-scale));--ai-size-xl: calc(2.75rem * var(--mantine-scale));--ai-size-input-xs: calc(1.875rem * var(--mantine-scale));--ai-size-input-sm: calc(2.25rem * var(--mantine-scale));--ai-size-input-md: calc(2.625rem * var(--mantine-scale));--ai-size-input-lg: calc(3.125rem * var(--mantine-scale));--ai-size-input-xl: calc(3.75rem * var(--mantine-scale));--ai-size: var(--ai-size-md);--ai-color: var(--mantine-color-white);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;overflow:hidden;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius, var(--mantine-radius-default));background:var(--ai-bg, var(--mantine-primary-color-filled));color:var(--ai-color, var(--mantine-color-white));border:var(--ai-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer}@media (hover: hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}@media (hover: none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-disabled-color);background-color:var(--mantine-color-disabled)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));position:absolute;border-radius:var(--ai-radius, var(--mantine-radius-default));display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{position:relative;z-index:1}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2)}.m_8d3afb97{display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .1s ease;width:100%;height:100%}.m_437b6484{--section-height-xs: calc(1.125rem * var(--mantine-scale));--section-height-sm: calc(1.375rem * var(--mantine-scale));--section-height-md: calc(1.75rem * var(--mantine-scale));--section-height-lg: calc(2.125rem * var(--mantine-scale));--section-height-xl: calc(2.75rem * var(--mantine-scale));--section-height-input-xs: calc(1.875rem * var(--mantine-scale));--section-height-input-sm: calc(2.25rem * var(--mantine-scale));--section-height-input-md: calc(2.625rem * var(--mantine-scale));--section-height-input-lg: calc(3.125rem * var(--mantine-scale));--section-height-input-xl: calc(3.75rem * var(--mantine-scale));--section-padding-x-xs: calc(.375rem * var(--mantine-scale));--section-padding-x-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-md: calc(.625rem * var(--mantine-scale));--section-padding-x-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-xl: calc(1rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_86a44da5{--cb-size-xs: calc(1.125rem * var(--mantine-scale));--cb-size-sm: calc(1.375rem * var(--mantine-scale));--cb-size-md: calc(1.75rem * var(--mantine-scale));--cb-size-lg: calc(2.125rem * var(--mantine-scale));--cb-size-xl: calc(2.75rem * var(--mantine-scale));--cb-size: var(--cb-size-md);--cb-icon-size: 70%;--cb-radius: var(--mantine-radius-default);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius)}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{display:flex;flex-direction:row;flex-wrap:var(--group-wrap, wrap);justify-content:var(--group-justify, flex-start);align-items:var(--group-align, center);gap:var(--group-gap, var(--mantine-spacing-md))}.m_4081bf90:where([data-grow])>*{flex-grow:1;max-width:var(--group-child-width)}.m_615af6c9{line-height:1;padding:0;margin:0;font-weight:400;font-size:var(--mantine-font-size-md)}.m_b5489c3c{display:flex;justify-content:space-between;align-items:center;padding:var(--mb-padding, var(--mantine-spacing-md));padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));position:sticky;top:0;background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale));transition:padding-inline-end .1s}.m_60c222c7{position:fixed;width:100%;top:0;bottom:0;z-index:var(--mb-z-index);pointer-events:none}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow, var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(.3125rem * var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding, var(--mantine-spacing-md));padding-top:var(--mb-padding, var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{position:relative;margin-top:var(--input-margin-top, 0rem);margin-bottom:var(--input-margin-bottom, 0rem);--input-height-xs: calc(1.875rem * var(--mantine-scale));--input-height-sm: calc(2.25rem * var(--mantine-scale));--input-height-md: calc(2.625rem * var(--mantine-scale));--input-height-lg: calc(3.125rem * var(--mantine-scale));--input-height-xl: calc(3.75rem * var(--mantine-scale));--input-padding-y-xs: calc(.3125rem * var(--mantine-scale));--input-padding-y-sm: calc(.375rem * var(--mantine-scale));--input-padding-y-md: calc(.5rem * var(--mantine-scale));--input-padding-y-lg: calc(.625rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-height: var(--input-height-sm);--input-radius: var(--mantine-radius-default);--input-cursor: text;--input-text-align: left;--input-line-height: calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding: calc(var(--input-height) / 3);--input-padding-inline-start: var(--input-padding);--input-padding-inline-end: var(--input-padding);--input-placeholder-color: var(--mantine-color-placeholder);--input-color: var(--mantine-color-text);--input-disabled-bg: var(--mantine-color-disabled);--input-disabled-color: var(--mantine-color-disabled-color);--input-left-section-size: var(--input-left-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size: var( --input-right-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))) );--input-size: var(--input-height);--section-y: calc(.0625rem * var(--mantine-scale));--left-section-start: calc(.0625rem * var(--mantine-scale));--left-section-border-radius: var(--input-radius) 0 0 var(--input-radius);--right-section-end: calc(.0625rem * var(--mantine-scale));--right-section-border-radius: 0 var(--input-radius) var(--input-radius) 0}.m_6c018570[data-variant=unstyled]{--input-padding: 0;--input-padding-y: 0;--input-padding-inline-start: 0;--input-padding-inline-end: 0}.m_6c018570[data-pointer]{--input-cursor: pointer}.m_6c018570[data-multiline]{--input-padding-y-xs: calc(.28125rem * var(--mantine-scale));--input-padding-y-sm: calc(.34375rem * var(--mantine-scale));--input-padding-y-md: calc(.4375rem * var(--mantine-scale));--input-padding-y-lg: calc(.59375rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-size: auto;--input-line-height: var(--mantine-line-height)}.m_6c018570[data-with-left-section]{--input-padding-inline-start: var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end: var(--input-right-section-size)}.m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(var(--input-right-section-size) * 1.55)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-gray-4);--input-bg: var(--mantine-color-white);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-gray-1);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-dark-4);--input-bg: var(--mantine-color-dark-6);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-dark-5);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd: var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color: var(--mantine-color-error);--input-placeholder-color: var(--mantine-color-error);--input-section-color: var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align: right;--left-section-border-radius: 0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius: var(--input-radius) 0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;appearance:none;resize:var(--input-resize, none);display:block;width:100%;transition:border-color .1s ease;text-align:var(--input-text-align);color:var(--input-color);border:calc(.0625rem * var(--mantine-scale)) solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family, var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--_input-fz, var(--input-fz, var(--mantine-font-size-md)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y, 0rem);padding-bottom:var(--input-padding-y, 0rem);cursor:var(--input-cursor);overflow:var(--input-overflow)}.m_8fb7ebe7[data-no-overflow]{--input-overflow: hidden}.m_8fb7ebe7[data-monospace]{--input-font-family: var(--mantine-font-family-monospace);--_input-fz: calc(var(--input-fz) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{outline:none;--input-bd: var(--input-bd-focus)}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd: var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7[readonly]{caret-color:transparent}.m_82577fc2{pointer-events:var(--section-pointer-events);position:absolute;z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);display:flex;align-items:center;justify-content:center;width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color, var(--mantine-color-dimmed))}.m_82577fc2[data-position=right]{--section-pointer-events: var(--input-right-section-pointer-events);--section-end: var(--right-section-end);--section-size: var(--input-right-section-size);--section-border-radius: var(--right-section-border-radius)}.m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(var(--input-right-section-size) * 1.55)}.m_82577fc2[data-position=left]{--section-pointer-events: var(--input-left-section-pointer-events);--section-start: var(--left-section-start);--section-size: var(--input-left-section-size);--section-border-radius: var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color, var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color: var(--input-color, var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{display:inline-block;font-weight:500;overflow-wrap:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size, var(--mantine-font-size-sm))}.m_78a94662{color:var(--input-asterisk-color, var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;line-height:1.2;display:block;margin:0;padding:0}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration: .15s;top:0;left:0;position:absolute;z-index:0;transition-property:transform,width,height;transition-timing-function:ease;transition-duration:0ms}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){background-color:red;display:none}.m_9bdbb667{--accordion-radius: var(--mantine-radius-default)}.m_df78851f{overflow-wrap:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{margin:0;padding:0}.m_4ba585b8{width:100%;display:flex;align-items:center;flex-direction:row-reverse;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;background-color:transparent;color:var(--mantine-color-bright)}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm)}.m_3f35ae96{display:flex;align-items:center;justify-content:flex-start;transition:transform var(--accordion-transition-duration, .2s) ease;width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-end:var(--mantine-spacing-md);margin-inline-start:var(--mantine-spacing-md)}.m_9bd771fe{display:flex;align-items:center;justify-content:center;margin-inline-end:var(--mantine-spacing-sm)}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-end:0;margin-inline-start:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color: var(--mantine-color-gray-3);--item-filled-color: var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color: var(--mantine-color-dark-4);--item-filled-color: var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s ease}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s ease}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{position:fixed;z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom)}.m_66836ed3{--alert-radius: var(--mantine-radius-default);--alert-bg: var(--mantine-primary-color-light);--alert-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color: var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);position:relative;overflow:hidden;background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color)}.m_a5d60502{display:flex}.m_667c2793{flex:1;display:flex;flex-direction:column;gap:var(--mantine-spacing-xs)}.m_6a03f287{display:flex;align-items:center;justify-content:space-between;font-size:var(--mantine-font-size-sm);font-weight:700}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{display:block;overflow:hidden;text-overflow:ellipsis}.m_667f2a6a{line-height:1;width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));display:flex;align-items:center;justify-content:flex-start;margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale))}.m_7fa78076{text-overflow:ellipsis;overflow:hidden;font-size:var(--mantine-font-size-sm)}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;text-decoration:none;font-size:var(--text-fz, var(--mantine-font-size-md));line-height:var(--text-lh, var(--mantine-line-height-md));font-weight:400;margin:0;padding:0;color:var(--text-color)}.m_b6d8b162:where([data-truncate]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m_b6d8b162:where([data-truncate=start]){direction:rtl;text-align:right}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){direction:ltr;text-align:left}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.m_b6d8b162:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);text-decoration:none;appearance:none;border:none;display:inline;padding:0;margin:0;background-color:transparent;cursor:pointer}@media (hover: hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media (hover: none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=not-hover]){text-decoration:underline}@media (hover: hover){.m_849cf0da:where([data-underline=not-hover]):hover{text-decoration:none}}@media (hover: none){.m_849cf0da:where([data-underline=not-hover]):active{text-decoration:none}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}.m_48204f9b{width:var(--slider-size);height:var(--slider-size);position:relative;border-radius:100%;display:flex;align-items:center;justify-content:center;user-select:none}.m_48204f9b:focus-within{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_48204f9b{--slider-size: calc(3.75rem * var(--mantine-scale));--thumb-size: calc(var(--slider-size) / 5)}:where([data-mantine-color-scheme=light]) .m_48204f9b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_48204f9b{background-color:var(--mantine-color-dark-5)}.m_bb9cdbad{position:absolute;inset:calc(.0625rem * var(--mantine-scale));border-radius:var(--slider-size);pointer-events:none}.m_481dd586{width:calc(.125rem * var(--mantine-scale));position:absolute;top:0;bottom:0;left:calc(50% - 1px);transform:rotate(var(--angle))}.m_481dd586:before{content:"";position:absolute;top:calc(var(--thumb-size) / 3);left:calc(.03125rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));height:calc(var(--thumb-size) / 1.5);transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_481dd586:before{background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_481dd586:before{background-color:var(--mantine-color-dark-3)}.m_481dd586[data-label]:after{min-width:calc(1.125rem * var(--mantine-scale));text-align:center;content:attr(data-label);position:absolute;top:calc(-1.5rem * var(--mantine-scale));left:calc(-.4375rem * var(--mantine-scale));transform:rotate(calc(360deg - var(--angle)));font-size:var(--mantine-font-size-xs)}.m_bc02ba3d{position:absolute;inset-block:0;inset-inline-start:calc(50% - 1.5px);inset-inline-end:0;height:100%;width:calc(.1875rem * var(--mantine-scale));outline:none;pointer-events:none}.m_bc02ba3d:before{content:"";position:absolute;right:0;top:0;height:min(var(--thumb-size),calc(var(--slider-size) / 2));width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_bc02ba3d:before{background-color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_bc02ba3d:before{background-color:var(--mantine-color-dark-1)}.m_bb8e875b{font-size:var(--mantine-font-size-xs)}.m_89ab340[data-resizing]{--app-shell-transition-duration: 0ms !important}.m_89ab340[data-disabled]{--app-shell-header-offset: 0rem !important;--app-shell-navbar-offset: 0rem !important;--app-shell-aside-offset: 0rem !important;--app-shell-footer-offset: 0rem !important}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color: var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{position:fixed;display:flex;flex-direction:column;top:var(--app-shell-header-offset, 0rem);height:calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));background-color:var(--mantine-color-body);transition-property:transform,top,height}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{top:0rem;height:100dvh}.m_45252eee{inset-inline-start:0;width:var(--app-shell-navbar-width);transition-property:transform,top,height;transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{inset-inline-end:0;width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}.m_3b16f56b,.m_3840c879{position:fixed;inset-inline:0;transition-property:transform,left,right;background-color:var(--mantine-color-body)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{inset-inline-start:var(--app-shell-navbar-offset, 0rem);inset-inline-end:var(--app-shell-aside-offset, 0rem)}.m_3b16f56b{top:0;height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{bottom:0;height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio: 1;max-width:100%}.m_71ac47fc>:where(*:not(style)){aspect-ratio:var(--ar-ratio);width:100%}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding: calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8{max-width:calc(100% + var(--combobox-padding))}.m_88b62a41[data-composed]{padding-inline-end:0}.m_88b62a41[data-hidden]{display:none}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs: calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm: calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md: calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg: calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl: calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding: var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);background-color:transparent;color:inherit;cursor:pointer;overflow-wrap:break-word}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;border-inline-width:0;border-end-start-radius:0;border-end-end-radius:0;margin-bottom:var(--combobox-padding);position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border:0 solid transparent;margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding)}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:500;position:relative;display:flex;align-items:center}.m_2bb2e9e5:after{content:"";flex:1;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));margin-inline-start:var(--mantine-spacing-xs)}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs: calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));--combobox-chevron-size: var(--combobox-chevron-size-sm)}:where([data-mantine-color-scheme=light]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-gray-6))}:where([data-mantine-color-scheme=dark]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-dark-3))}.m_2943220b{width:var(--combobox-chevron-size);height:var(--combobox-chevron-size);color:var(--_combobox-chevron-color)}.m_2943220b:where([data-error]){color:var(--combobox-chevron-color, var(--mantine-color-error))}.m_390b5f4{display:flex;align-items:center;gap:calc(.5rem * var(--mantine-scale))}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_5f75b09e{--label-lh-xs: calc(1rem * var(--mantine-scale));--label-lh-sm: calc(1.25rem * var(--mantine-scale));--label-lh-md: calc(1.5rem * var(--mantine-scale));--label-lh-lg: calc(1.875rem * var(--mantine-scale));--label-lh-xl: calc(2.25rem * var(--mantine-scale));--label-lh: var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order: 1;--label-offset-end: var(--mantine-spacing-sm);--label-offset-start: 0}.m_5f75b09e[data-label-position=right]{--label-order: 2;--label-offset-end: 0;--label-offset-start: var(--mantine-spacing-sm)}.m_5f6e695e{-webkit-tap-highlight-color:transparent;display:flex}.m_d3ea56bb{--label-cursor: var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:inline-flex;flex-direction:column;font-size:var(--label-fz, var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);order:var(--label-order)}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor: not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}fieldset:disabled .m_8ee546b8,.m_8ee546b8:where([data-disabled]){color:var(--mantine-color-disabled-color)}.m_328f68c0,.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_26775b0a{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_26775b0a :where(*){cursor:inherit}.m_26775b0a:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_5e5256ee{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled);--checkbox-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);min-width:var(--checkbox-size);height:var(--checkbox-size);min-height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_5e5256ee{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_5e5256ee[data-indeterminate],.m_5e5256ee[data-checked]{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_5e5256ee[data-indeterminate]>.m_1b1c543a,.m_5e5256ee[data-checked]>.m_1b1c543a{opacity:1;transform:none;color:var(--checkbox-icon-color)}.m_5e5256ee[data-disabled]{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}[data-mantine-color-scheme=light] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-dark-3)}.m_76e20374[data-indeterminate]:not([data-disabled]),.m_76e20374[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--checkbox-color)}.m_76e20374[data-indeterminate]:not([data-disabled])>.m_1b1c543a,.m_76e20374[data-checked]:not([data-disabled])>.m_1b1c543a{color:var(--checkbox-color);opacity:1;transform:none}.m_1b1c543a{display:block;width:60%;color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_bf2d988c{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled);--checkbox-icon-color: var(--mantine-color-white)}.m_26062bec{position:relative;width:var(--checkbox-size);height:var(--checkbox-size);order:1}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));padding:0;display:block;margin:0;transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}.m_26063560:disabled+.m_bf295423{color:var(--mantine-color-disabled-color)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){background-color:transparent;border-color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-color);opacity:1;transform:none}.m_bf295423{position:absolute;inset:0;width:60%;margin:auto;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;transition:transform .1s ease,opacity .1s ease}.m_11def92b{--ag-spacing: var(--mantine-spacing-sm);--ag-offset: calc(var(--ag-spacing) * -1);display:flex;padding-inline-start:var(--ag-spacing)}.m_f85678b6{--avatar-size-xs: calc(1rem * var(--mantine-scale));--avatar-size-sm: calc(1.625rem * var(--mantine-scale));--avatar-size-md: calc(2.375rem * var(--mantine-scale));--avatar-size-lg: calc(3.5rem * var(--mantine-scale));--avatar-size-xl: calc(5.25rem * var(--mantine-scale));--avatar-size: var(--avatar-size-md);--avatar-radius: calc(62.5rem * var(--mantine-scale));--avatar-bg: var(--mantine-color-gray-light);--avatar-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color: var(--mantine-color-gray-light-color);--avatar-placeholder-fz: calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;position:relative;display:block;user-select:none;overflow:hidden;border-radius:var(--avatar-radius);text-decoration:none;padding:0;width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size)}.m_f85678b6:where([data-within-group]){margin-inline-start:var(--ag-offset);border:2px solid var(--mantine-color-body);background:var(--mantine-color-body)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:700;display:flex;align-items:center;justify-content:center;width:100%;height:100%;user-select:none;border-radius:var(--avatar-radius);font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color)}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{background-size:cover;background-position:center;display:block;width:100%;border:0;text-decoration:none;border-radius:var(--bi-radius, 0)}.m_347db0ec{--badge-height-xs: calc(1rem * var(--mantine-scale));--badge-height-sm: calc(1.125rem * var(--mantine-scale));--badge-height-md: calc(1.25rem * var(--mantine-scale));--badge-height-lg: calc(1.625rem * var(--mantine-scale));--badge-height-xl: calc(2rem * var(--mantine-scale));--badge-fz-xs: calc(.5625rem * var(--mantine-scale));--badge-fz-sm: calc(.625rem * var(--mantine-scale));--badge-fz-md: calc(.6875rem * var(--mantine-scale));--badge-fz-lg: calc(.8125rem * var(--mantine-scale));--badge-fz-xl: calc(1rem * var(--mantine-scale));--badge-padding-x-xs: calc(.375rem * var(--mantine-scale));--badge-padding-x-sm: calc(.5rem * var(--mantine-scale));--badge-padding-x-md: calc(.625rem * var(--mantine-scale));--badge-padding-x-lg: calc(.75rem * var(--mantine-scale));--badge-padding-x-xl: calc(1rem * var(--mantine-scale));--badge-height: var(--badge-height-md);--badge-fz: var(--badge-fz-md);--badge-padding-x: var(--badge-padding-x-md);--badge-radius: calc(62.5rem * var(--mantine-scale));--badge-lh: calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color: var(--mantine-color-white);--badge-bg: var(--mantine-primary-color-filled);--badge-border-width: calc(.0625rem * var(--mantine-scale));--badge-bd: var(--badge-border-width) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);text-decoration:none;padding:0 var(--badge-padding-x);display:inline-grid;align-items:center;justify-content:center;width:fit-content;text-transform:uppercase;font-weight:700;letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:default;text-overflow:ellipsis;overflow:hidden;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd)}.m_347db0ec:where([data-with-left-section],[data-variant=dot]){grid-template-columns:auto 1fr}.m_347db0ec:where([data-with-right-section]){grid-template-columns:1fr auto}.m_347db0ec:where([data-with-left-section][data-with-right-section],[data-variant=dot][data-with-right-section]){grid-template-columns:auto 1fr auto}.m_347db0ec:where([data-block]){display:flex;width:100%}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));display:flex;width:var(--badge-height)}.m_fbd81e3d{--badge-dot-size: calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";display:block;width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size)}.m_5add502a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;cursor:inherit}.m_91fdda9b{--badge-section-margin: calc(var(--mantine-spacing-xs) / 2);display:inline-flex;justify-content:center;align-items:center;max-height:calc(var(--badge-height) - var(--badge-border-width) * 2)}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border: 3px solid var(--bq-bd);position:relative;margin:0;border-inline-start:var(--blockquote-border);border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);position:absolute;color:var(--bq-bd);background-color:var(--mantine-color-body);display:flex;align-items:center;justify-content:center;top:var(--blockquote-icon-offset);inset-inline-start:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size)}.m_dde51a35{display:block;margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%}.m_8b3717df{display:flex;align-items:center;flex-wrap:wrap}.m_f678d540{line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent}.m_3b8f2208{margin-inline:var(--bc-separator-margin, var(--mantine-spacing-xs));line-height:1;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs: calc(.75rem * var(--mantine-scale));--burger-size-sm: calc(1.125rem * var(--mantine-scale));--burger-size-md: calc(1.5rem * var(--mantine-scale));--burger-size-lg: calc(2.125rem * var(--mantine-scale));--burger-size-xl: calc(2.625rem * var(--mantine-scale));--burger-size: var(--burger-size-md);--burger-line-size: calc(var(--burger-size) / 12);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color: var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color: var(--mantine-color-white)}.m_d4fb9cad{position:relative;user-select:none}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{display:block;width:var(--burger-size);height:var(--burger-line-size);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration, .3s);transition-timing-function:var(--burger-transition-timing-function, ease)}.m_d4fb9cad:before,.m_d4fb9cad:after{position:absolute;content:"";inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:transparent}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs: calc(1.875rem * var(--mantine-scale));--button-height-sm: calc(2.25rem * var(--mantine-scale));--button-height-md: calc(2.625rem * var(--mantine-scale));--button-height-lg: calc(3.125rem * var(--mantine-scale));--button-height-xl: calc(3.75rem * var(--mantine-scale));--button-height-compact-xs: calc(1.375rem * var(--mantine-scale));--button-height-compact-sm: calc(1.625rem * var(--mantine-scale));--button-height-compact-md: calc(1.875rem * var(--mantine-scale));--button-height-compact-lg: calc(2.125rem * var(--mantine-scale));--button-height-compact-xl: calc(2.5rem * var(--mantine-scale));--button-padding-x-xs: calc(.875rem * var(--mantine-scale));--button-padding-x-sm: calc(1.125rem * var(--mantine-scale));--button-padding-x-md: calc(1.375rem * var(--mantine-scale));--button-padding-x-lg: calc(1.625rem * var(--mantine-scale));--button-padding-x-xl: calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;transform:none;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media (hover: hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media (hover: none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_70be2a01{--section-height-xs: calc(1.875rem * var(--mantine-scale));--section-height-sm: calc(2.25rem * var(--mantine-scale));--section-height-md: calc(2.625rem * var(--mantine-scale));--section-height-lg: calc(3.125rem * var(--mantine-scale));--section-height-xl: calc(3.75rem * var(--mantine-scale));--section-height-compact-xs: calc(1.375rem * var(--mantine-scale));--section-height-compact-sm: calc(1.625rem * var(--mantine-scale));--section-height-compact-md: calc(1.875rem * var(--mantine-scale));--section-height-compact-lg: calc(2.125rem * var(--mantine-scale));--section-height-compact-xl: calc(2.5rem * var(--mantine-scale));--section-padding-x-xs: calc(.875rem * var(--mantine-scale));--section-padding-x-sm: calc(1.125rem * var(--mantine-scale));--section-padding-x-md: calc(1.375rem * var(--mantine-scale));--section-padding-x-lg: calc(1.625rem * var(--mantine-scale));--section-padding-x-xl: calc(2rem * var(--mantine-scale));--section-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--section-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--section-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_e615b15f{--card-padding: var(--mantine-spacing-md);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:var(--card-padding);color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{display:block;margin-inline:calc(var(--card-padding) * -1)}.m_599a2148:where(:first-child){margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where(:last-child){margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-inherit-padding]){padding-inline:var(--card-padding)}.m_599a2148:where([data-with-border]){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-bottom:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_599a2148{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{border-color:var(--mantine-color-dark-4)}.m_599a2148+.m_599a2148{border-top:none!important}.m_4451eb3a{display:flex;align-items:center;justify-content:center}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs: calc(1.4375rem * var(--mantine-scale));--chip-size-sm: calc(1.75rem * var(--mantine-scale));--chip-size-md: calc(2rem * var(--mantine-scale));--chip-size-lg: calc(2.25rem * var(--mantine-scale));--chip-size-xl: calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs: calc(.625rem * var(--mantine-scale));--chip-icon-size-sm: calc(.75rem * var(--mantine-scale));--chip-icon-size-md: calc(.875rem * var(--mantine-scale));--chip-icon-size-lg: calc(1rem * var(--mantine-scale));--chip-icon-size-xl: calc(1.125rem * var(--mantine-scale));--chip-padding-xs: calc(1rem * var(--mantine-scale));--chip-padding-sm: calc(1.25rem * var(--mantine-scale));--chip-padding-md: calc(1.5rem * var(--mantine-scale));--chip-padding-lg: calc(1.75rem * var(--mantine-scale));--chip-padding-xl: calc(2rem * var(--mantine-scale));--chip-checked-padding-xs: calc(.46875rem * var(--mantine-scale));--chip-checked-padding-sm: calc(.625rem * var(--mantine-scale));--chip-checked-padding-md: calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg: calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl: calc(.98125rem * var(--mantine-scale));--chip-spacing-xs: calc(.625rem * var(--mantine-scale));--chip-spacing-sm: calc(.75rem * var(--mantine-scale));--chip-spacing-md: calc(1rem * var(--mantine-scale));--chip-spacing-lg: calc(1.25rem * var(--mantine-scale));--chip-spacing-xl: calc(1.375rem * var(--mantine-scale));--chip-size: var(--chip-size-sm);--chip-icon-size: var(--chip-icon-size-sm);--chip-padding: var(--chip-padding-sm);--chip-spacing: var(--chip-spacing-sm);--chip-checked-padding: var(--chip-checked-padding-sm);--chip-bg: var(--mantine-primary-color-filled);--chip-hover: var(--mantine-primary-color-filled-hover);--chip-color: var(--mantine-color-white);--chip-bd: calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{display:inline-flex;align-items:center;user-select:none;border-radius:var(--chip-radius, 1000rem);height:var(--chip-size);font-size:var(--chip-fz, var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}.m_be049a53:where([data-checked]){padding:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed;background-color:var(--mantine-color-disabled);color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);border:var(--chip-bd)}@media (hover: hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media (hover: hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover: none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);display:flex;align-items:center;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);display:block;color:var(--chip-icon-color, inherit)}.m_bde07329{width:0;height:0;padding:0;opacity:0;margin:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-gray-0))}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-dark-6))}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size: calc(1.75rem * var(--mantine-scale));--cs-radius: calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;border:none;appearance:none;display:block;line-height:1;position:relative;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;text-decoration:none}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-gray-3);--alpha-overlay-bg: var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-dark-4);--alpha-overlay-bg: var(--mantine-color-dark-7)}.m_862f3d1b{position:absolute;inset:0;border-radius:var(--cs-radius)}.m_98ae7f22{position:absolute;inset:0;border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset,#00000026 0 0 calc(.25rem * var(--mantine-scale)) inset}.m_95709ac0{position:absolute;inset:0;border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0,0 calc(.25rem * var(--mantine-scale)),calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)),calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(-45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--alpha-overlay-color) 75%),linear-gradient(-45deg,var(--alpha-overlay-bg) 75%,var(--alpha-overlay-color) 75%)}.m_93e74e3{position:absolute;inset:0;border-radius:var(--cs-radius);z-index:2;display:flex;align-items:center;justify-content:center}.m_fee9c77{--cp-width-xs: calc(11.25rem * var(--mantine-scale));--cp-width-sm: calc(12.5rem * var(--mantine-scale));--cp-width-md: calc(15rem * var(--mantine-scale));--cp-width-lg: calc(17.5rem * var(--mantine-scale));--cp-width-xl: calc(20rem * var(--mantine-scale));--cp-preview-size-xs: calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm: calc(2.125rem * var(--mantine-scale));--cp-preview-size-md: calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg: calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl: calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs: calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm: calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md: calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg: calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl: calc(10rem * var(--mantine-scale));--cp-preview-size: var(--cp-preview-size-sm);--cp-thumb-size: var(--cp-thumb-size-sm);--cp-saturation-height: var(--cp-saturation-height-sm);--cp-width: var(--cp-width-sm);--cp-body-spacing: var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{display:flex;padding-top:calc(var(--cp-body-spacing) / 2)}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{overflow:hidden;position:absolute;box-shadow:0 0 1px #0009;border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2)}.m_d8ee6fd8{height:unset!important;width:unset!important;min-width:0!important;min-height:0!important;margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)))}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));display:flex;flex-wrap:wrap}.m_5711e686:only-child{margin-top:0}.m_202a296e{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;position:relative;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2)}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{position:absolute;border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)))}.m_d856d47d{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-thumb-size: var(--cp-thumb-size, calc(.75rem * var(--mantine-scale)));position:relative;height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers: var(--mantine-color-dark-4)}.m_8f327113{position:absolute;top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem}.m_b077c2bc{--ci-eye-dropper-icon-size-xs: calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm: calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md: calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg: calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl: calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm)}.m_c5ccdcab{--ci-preview-size-xs: calc(1rem * var(--mantine-scale));--ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));--ci-preview-size-md: calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg: calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl: calc(2.25rem * var(--mantine-scale));--ci-preview-size: var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs: calc(33.75rem * var(--mantine-scale));--container-size-sm: calc(45rem * var(--mantine-scale));--container-size-md: calc(60rem * var(--mantine-scale));--container-size-lg: calc(71.25rem * var(--mantine-scale));--container-size-xl: calc(82.5rem * var(--mantine-scale));--container-size: var(--container-size-md)}.m_7485cace:where([data-strategy=block]){max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-strategy=block]):where([data-fluid]){max-width:100%}.m_7485cace:where([data-strategy=grid]){display:grid;grid-template-columns:1fr min(100%,var(--container-size)) 1fr;margin-inline:auto}.m_7485cace:where([data-strategy=grid])>*{grid-column:2}.m_7485cace:where([data-strategy=grid])>[data-breakout]{grid-column:1 / -1}.m_7485cace:where([data-strategy=grid])>[data-breakout]>[data-container]{max-width:var(--container-size);margin-inline:auto}.m_e2125a27{--dialog-size-xs: calc(10rem * var(--mantine-scale));--dialog-size-sm: calc(12.5rem * var(--mantine-scale));--dialog-size-md: calc(21.25rem * var(--mantine-scale));--dialog-size-lg: calc(25rem * var(--mantine-scale));--dialog-size-xl: calc(31.25rem * var(--mantine-scale));--dialog-size: var(--dialog-size-md);position:relative;width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale))}.m_5abab665{position:absolute;top:calc(var(--mantine-spacing-md) / 2);inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs: calc(.0625rem * var(--mantine-scale));--divider-size-sm: calc(.125rem * var(--mantine-scale));--divider-size-md: calc(.1875rem * var(--mantine-scale));--divider-size-lg: calc(.25rem * var(--mantine-scale));--divider-size-xl: calc(.3125rem * var(--mantine-scale));--divider-size: var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color: var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);height:auto;align-self:stretch}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{display:flex;align-items:center;font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap}.m_9e365f20:where([data-position=left]):before{display:none}.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs: calc(20rem * var(--mantine-scale));--drawer-size-sm: calc(23.75rem * var(--mantine-scale));--drawer-size-md: calc(27.5rem * var(--mantine-scale));--drawer-size-lg: calc(38.75rem * var(--mantine-scale));--drawer-size-xl: calc(48.75rem * var(--mantine-scale));--drawer-size: var(--drawer-size-md);--drawer-offset: 0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex, 0 0 var(--drawer-size));height:var(--drawer-height, calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:calc(100% - var(--drawer-offset) * 2);max-height:calc(100% - var(--drawer-offset) * 2);overflow-y:auto}.m_b8a05bbd[data-hidden]{opacity:0!important;pointer-events:none}.m_31cd769a{display:flex;justify-content:var(--drawer-justify, flex-start);align-items:var(--drawer-align, flex-start)}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius, var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{padding:0;border:0;border-radius:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{padding:0;margin-bottom:var(--mantine-spacing-sm)}.m_8478a6da{container:mantine-grid / inline-size}.m_410352e9{--grid-overflow: visible;--grid-margin: calc(var(--grid-gutter) / -2);--grid-col-padding: calc(var(--grid-gutter) / 2);overflow:var(--grid-overflow)}.m_dee7bd2f{width:calc(100% + var(--grid-gutter));display:flex;flex-wrap:wrap;justify-content:var(--grid-justify);align-items:var(--grid-align);margin:var(--grid-margin)}.m_96bdd299{--col-flex-grow: 0;--col-offset: 0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);margin-inline-start:var(--col-offset);padding:var(--grid-col-padding)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{display:block;object-fit:var(--image-object-fit, cover);width:100%;border-radius:var(--image-radius, 0)}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size: calc(.625rem * var(--mantine-scale));--indicator-color: var(--mantine-primary-color-filled);position:relative;display:block}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{position:absolute;top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x),var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius, 1000rem);z-index:var(--indicator-z-index, 200);display:flex;align-items:center;justify-content:center;font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color, var(--mantine-color-white));white-space:nowrap}.m_760d1fb1:before{content:"";position:absolute;inset:0;background-color:var(--indicator-color);border-radius:var(--indicator-radius, 1000rem);z-index:-1}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:m_885901b1 1s linear infinite}.m_dc6f14e2{--kbd-fz-xs: calc(.625rem * var(--mantine-scale));--kbd-fz-sm: calc(.75rem * var(--mantine-scale));--kbd-fz-md: calc(.875rem * var(--mantine-scale));--kbd-fz-lg: calc(1rem * var(--mantine-scale));--kbd-fz-xl: calc(1.25rem * var(--mantine-scale));--kbd-fz: var(--kbd-fz-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));unicode-bidi:embed;text-align:center;padding:.12em .45em}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz: var(--mantine-font-size-md);--list-lh: var(--mantine-line-height-md);list-style-position:inside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0}.m_abbac491:where([data-with-padding]){padding-inline-start:var(--mantine-spacing-md)}.m_abb6bec2{white-space:nowrap;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction: row;--li-align: center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing, 0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{display:inline-flex;flex-direction:var(--li-direction, column);align-items:var(--li-align, flex-start);white-space:normal}.m_60f83e5b{display:inline-block;vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm)}.m_6e45937b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:var(--lo-z-index)}.m_e8eb006c{position:relative;z-index:calc(var(--lo-z-index) + 1)}.m_df587f17{z-index:var(--lo-z-index)}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:500;font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius, var(--mantine-radius-default));color:var(--menu-item-color, var(--mantine-color-text));display:flex;align-items:center;user-select:none}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-disabled-color);opacity:.6;cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-dark-4))}.m_99ac2aa1:where([data-sub-menu-item]){padding-inline-end:calc(.3125rem * var(--mantine-scale))}.m_5476e0d3{flex:1}.m_8b75e504{display:flex;justify-content:center;align-items:center}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_b85b0bed{transform:rotate(-90deg)}:where([dir=rtl]) .m_b85b0bed{transform:rotate(90deg)}.m_9df02822{--modal-size-xs: calc(20rem * var(--mantine-scale));--modal-size-sm: calc(23.75rem * var(--mantine-scale));--modal-size-md: calc(27.5rem * var(--mantine-scale));--modal-size-lg: calc(38.75rem * var(--mantine-scale));--modal-size-xl: calc(48.75rem * var(--mantine-scale));--modal-size: var(--modal-size-md);--modal-y-offset: 5dvh;--modal-x-offset: 5vw}.m_9df02822[data-full-screen]{--modal-border-radius: 0 !important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex: 0 0 100%;--modal-content-max-height: auto;--modal-content-height: 100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset: 0;--modal-inner-x-offset: 0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align: center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius, var(--mantine-radius-default));border-start-end-radius:var(--modal-radius, var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex, 0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height, calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height, auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{opacity:0!important;pointer-events:none}.m_1f958f16{display:flex;justify-content:center;align-items:var(--modal-inner-align, flex-start);padding-top:var(--modal-inner-y-offset, var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset, var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset, var(--modal-x-offset))}.m_7cda1cd6{--pill-fz-xs: calc(.625rem * var(--mantine-scale));--pill-fz-sm: calc(.75rem * var(--mantine-scale));--pill-fz-md: calc(.875rem * var(--mantine-scale));--pill-fz-lg: calc(1rem * var(--mantine-scale));--pill-fz-xl: calc(1.125rem * var(--mantine-scale));--pill-height-xs: calc(1.125rem * var(--mantine-scale));--pill-height-sm: calc(1.375rem * var(--mantine-scale));--pill-height-md: calc(1.5625rem * var(--mantine-scale));--pill-height-lg: calc(1.75rem * var(--mantine-scale));--pill-height-xl: calc(2rem * var(--mantine-scale));--pill-fz: var(--pill-fz-sm);--pill-height: var(--pill-height-sm);font-size:var(--pill-fz);flex:0;height:var(--pill-height);padding-inline:.8em;display:inline-flex;align-items:center;border-radius:var(--pill-radius, 1000rem);line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;max-width:100%}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}.m_1e0e6180{cursor:inherit;overflow:hidden;height:100%;line-height:var(--pill-height);text-overflow:ellipsis}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;padding-inline-start:.1em;padding-inline-end:.3em;flex:0;border-end-end-radius:var(--pill-radius, 50%);border-start-end-radius:var(--pill-radius, 50%)}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{display:none;background-color:transparent;width:.8em;min-width:.8em;padding:0;cursor:not-allowed}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs: calc(.375rem * var(--mantine-scale));--pg-gap-sm: calc(.5rem * var(--mantine-scale));--pg-gap-md: calc(.625rem * var(--mantine-scale));--pg-gap-lg: calc(.75rem * var(--mantine-scale));--pg-gap-xl: calc(.75rem * var(--mantine-scale));--pg-gap: var(--pg-gap-sm);display:flex;align-items:center;gap:var(--pg-gap);flex-wrap:wrap}.m_45c4369d{background-color:transparent;appearance:none;min-width:calc(6.25rem * var(--mantine-scale));flex:1;border:0;font-size:inherit;height:1.6em;color:inherit;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));top:0;left:0;pointer-events:none;position:absolute;opacity:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){height:1.6em;visibility:visible;opacity:1;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg: var(--mantine-primary-color-light);--nl-hover: var(--mantine-primary-color-light-hover);--nl-color: var(--mantine-primary-color-light-color);display:flex;align-items:center;width:100%;padding:8px var(--mantine-spacing-sm);user-select:none}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active],[aria-current=page]){background-color:var(--nl-bg);color:var(--nl-color)}@media (hover: hover){.m_f0824112:where([data-active],[aria-current=page]):hover{background-color:var(--nl-hover)}}@media (hover: none){.m_f0824112:where([data-active],[aria-current=page]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active],[aria-current=page]) .m_57492dcc{--description-opacity: .9;--description-color: var(--nl-color)}.m_690090b5{display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{flex:1;overflow:hidden;text-overflow:ellipsis}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{display:block;font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity, 1);color:var(--description-color, var(--mantine-color-dimmed));overflow:hidden;text-overflow:ellipsis}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset, var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius: var(--mantine-radius-default);--notification-color: var(--mantine-primary-color-filled);overflow:hidden;box-sizing:border-box;position:relative;display:flex;align-items:center;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg)}.m_a513464:before{content:"";display:block;position:absolute;width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);inset-inline-start:calc(.25rem * var(--mantine-scale));border-radius:var(--notification-radius);background-color:var(--notification-color)}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;margin-inline-end:var(--mantine-spacing-md);width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));display:flex;align-items:center;justify-content:center;background-color:var(--notification-color);color:var(--mantine-color-white)}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;overflow:hidden;margin-inline-end:var(--mantine-spacing-xs)}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));overflow:hidden;text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:500}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);overflow:hidden;text-overflow:ellipsis}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs: calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm: calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md: calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg: calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl: calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs: calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm: calc(.875rem * var(--mantine-scale));--ni-chevron-size-md: calc(1rem * var(--mantine-scale));--ni-chevron-size-lg: calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl: calc(1.25rem * var(--mantine-scale));--ni-chevron-size: var(--ni-chevron-size-sm);display:flex;flex-direction:column;width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);margin-inline-start:auto}.m_80b4b171{--control-border: 1px solid var(--input-bd);--control-radius: calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));flex:0 0 50%;width:100%;padding:0;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text);background-color:transparent;cursor:pointer}.m_80b4b171:where(:disabled){background-color:transparent;cursor:not-allowed;opacity:.6;color:var(--mantine-color-disabled-color)}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-radius:0;border-end-end-radius:var(--control-radius)}.m_4addd315{--pagination-control-size-xs: calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm: calc(1.625rem * var(--mantine-scale));--pagination-control-size-md: calc(2rem * var(--mantine-scale));--pagination-control-size-lg: calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl: calc(2.75rem * var(--mantine-scale));--pagination-control-size: var(--pagination-control-size-md);--pagination-control-fz: var(--mantine-font-size-md);--pagination-active-bg: var(--mantine-primary-color-filled)}.m_326d024a{display:flex;align-items:center;justify-content:center;border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);line-height:1;border-radius:var(--pagination-control-radius, var(--mantine-radius-default))}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media (hover: hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color, var(--mantine-color-white))}@media (hover: hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media (hover: none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);display:flex;align-items:center;justify-content:center;pointer-events:none}.m_f61ca620{--psi-button-size-xs: calc(1.375rem * var(--mantine-scale));--psi-button-size-sm: calc(1.625rem * var(--mantine-scale));--psi-button-size-md: calc(1.75rem * var(--mantine-scale));--psi-button-size-lg: calc(2rem * var(--mantine-scale));--psi-button-size-xl: calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs: calc(.75rem * var(--mantine-scale));--psi-icon-size-sm: calc(.9375rem * var(--mantine-scale));--psi-icon-size-md: calc(1.0625rem * var(--mantine-scale));--psi-icon-size-lg: calc(1.1875rem * var(--mantine-scale));--psi-icon-size-xl: calc(1.3125rem * var(--mantine-scale));--psi-button-size: var(--psi-button-size-sm);--psi-icon-size: var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);background-color:transparent;border:0;padding-inline-end:var(--input-padding-inline-end);padding-inline-start:var(--input-padding-inline-start);position:absolute;inset:0;outline:0;font-size:inherit;line-height:var(--mantine-line-height);height:100%;width:100%;color:inherit}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_f2d85dd2::-ms-reveal{display:none}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs: calc(1.875rem * var(--mantine-scale));--pin-input-size-sm: calc(2.25rem * var(--mantine-scale));--pin-input-size-md: calc(2.625rem * var(--mantine-scale));--pin-input-size-lg: calc(3.125rem * var(--mantine-scale));--pin-input-size-xl: calc(3.75rem * var(--mantine-scale));--pin-input-size: var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}@keyframes m_e0fb7a86{0%{background-position:0 0}to{background-position:0 calc(2.5rem * var(--mantine-scale))}}.m_db6d6462{--progress-radius: var(--mantine-radius-default);--progress-size: var(--progress-size-md);--progress-size-xs: calc(.1875rem * var(--mantine-scale));--progress-size-sm: calc(.3125rem * var(--mantine-scale));--progress-size-md: calc(.5rem * var(--mantine-scale));--progress-size-lg: calc(.75rem * var(--mantine-scale));--progress-size-xl: calc(1rem * var(--mantine-scale));position:relative;height:var(--progress-size);border-radius:var(--progress-radius);overflow:hidden;display:flex}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_db6d6462:where([data-orientation=vertical]){height:auto;width:var(--progress-size);flex-direction:column-reverse}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-size);display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration, .1s) ease}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_2242eb65:where([data-animated]){animation:m_81a374bd 1s linear infinite}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65{width:100%;height:var(--progress-section-size);transition:height var(--progress-transition-duration, .1s) ease}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-striped]){background-image:linear-gradient(135deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-animated]){animation:m_e0fb7a86 1s linear infinite}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:last-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-start-end-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:first-of-type){border-radius:0;border-end-start-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color, var(--mantine-color-white));font-weight:700;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:min(calc(var(--progress-size) * .65),calc(1.125rem * var(--mantine-scale)));line-height:1;padding-inline:calc(.25rem * var(--mantine-scale))}.m_db6d6462:where([data-orientation=vertical]) .m_91e40b74{writing-mode:vertical-rl}.m_9dc8ae12{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_9dc8ae12 :where(*){cursor:inherit}.m_9dc8ae12:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_717d7ff6{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-size: var(--radio-size-sm);--radio-color: var(--mantine-primary-color-filled);--radio-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--radio-size);min-width:var(--radio-size);height:var(--radio-size);min-height:var(--radio-size);border-radius:var(--radio-radius, 10000px);transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_717d7ff6{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_717d7ff6[data-indeterminate],.m_717d7ff6[data-checked]{background-color:var(--radio-color);border-color:var(--radio-color)}.m_717d7ff6[data-indeterminate]>.m_3e4da632,.m_717d7ff6[data-checked]>.m_3e4da632{opacity:1;transform:none;color:var(--radio-icon-color)}.m_717d7ff6[data-disabled]{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-disabled-color)}.m_2980836c[data-indeterminate]:not([data-disabled]),.m_2980836c[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--radio-color)}.m_2980836c[data-indeterminate]:not([data-disabled])>.m_3e4da632,.m_2980836c[data-checked]:not([data-disabled])>.m_3e4da632{color:var(--radio-color);opacity:1;transform:none}.m_3e4da632{display:block;width:var(--radio-icon-size);height:var(--radio-icon-size);color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_f3f1af94{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-size: var(--radio-size-sm);--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-icon-color: var(--mantine-color-white)}.m_89c4f5e4{position:relative;width:var(--radio-size);height:var(--radio-size);order:1}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity, 0);transform:var(--radio-icon-transform, scale(.2) translateY(calc(.625rem * var(--mantine-scale))));transition:opacity .1s ease,transform .2s ease;pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);position:absolute;top:calc(50% - var(--radio-icon-size) / 2);left:calc(50% - var(--radio-icon-size) / 2)}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;position:relative;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius, var(--radio-size));margin:0;display:flex;align-items:center;justify-content:center;transition-property:background-color,border-color;transition-timing-function:ease;transition-duration:.1s;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color, var(--mantine-primary-color-filled));border-color:var(--radio-color, var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity: 1;--radio-icon-transform: scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-disabled-color)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color: var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){background-color:transparent;border-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color: var(--radio-color);--radio-icon-opacity: 1;--radio-icon-transform: none}.m_f8d312f2{--rating-size-xs: calc(.875rem * var(--mantine-scale));--rating-size-sm: calc(1.125rem * var(--mantine-scale));--rating-size-md: calc(1.25rem * var(--mantine-scale));--rating-size-lg: calc(1.75rem * var(--mantine-scale));--rating-size-xl: calc(2rem * var(--mantine-scale));display:flex;width:max-content}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{position:relative;transition:transform .1s ease}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{display:block;cursor:pointer;position:absolute;top:0;left:0;z-index:var(--rating-item-z-index, 0);-webkit-tap-highlight-color:transparent}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_1b3c8819{--tooltip-radius: var(--mantine-radius-default);position:absolute;padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius)}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-9));color:var(--tooltip-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-2));color:var(--tooltip-color, var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_1b3c8819:where([data-fixed]){position:fixed}.m_f898399f{background-color:inherit;border:0;z-index:1}.m_b32e4812{position:relative;width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);--rp-transition-duration: 0ms}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(-90deg)}.m_b1ca1fbf{stroke:var(--curve-color, var(--rp-curve-root-color));transition:stroke-dashoffset var(--rp-transition-duration) ease,stroke-dasharray var(--rp-transition-duration) ease,stroke var(--rp-transition-duration)}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-dark-4)}.m_b23f9dc4{position:absolute;top:50%;transform:translateY(-50%);inset-inline:var(--rp-label-offset)}.m_cf365364{--sc-padding-xs: calc(.125rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm: calc(.1875rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md: calc(.25rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg: calc(.4375rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl: calc(.625rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration: .2s;--sc-padding: var(--sc-padding-sm);--sc-transition-timing-function: ease;--sc-font-size: var(--mantine-font-size-sm);position:relative;display:inline-flex;flex-direction:row;width:auto;border-radius:var(--sc-radius, var(--mantine-radius-default));overflow:hidden;padding:calc(.25rem * var(--mantine-scale))}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){display:flex;flex-direction:column;width:max-content}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{position:absolute;display:block;z-index:1;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:500;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:none;border-radius:var(--sc-radius, var(--mantine-radius-default));font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline, none)}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed;color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";inset:0;z-index:0;position:absolute;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media (hover: hover){fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-disabled-color)!important}}@media (hover: none){fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-disabled-color)!important}}.m_1714d588{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_69686b9b{position:relative;flex:1;z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;bottom:auto;height:calc(.0625rem * var(--mantine-scale));width:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color: var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before{--separator-color: transparent}[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color: transparent}.m_78882f40{position:relative;z-index:2}.m_fa528724{--scp-filled-segment-color: var(--mantine-primary-color-filled);--scp-transition-duration: 0ms;--scp-thickness: calc(.625rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-dark-4)}.m_fa528724{position:relative;width:fit-content}.m_62e9e7e2{display:block;transform:var(--scp-rotation);overflow:hidden}.m_c573fb6f{transition:stroke-dashoffset var(--scp-transition-duration) ease,stroke-dasharray var(--scp-transition-duration) ease,stroke var(--scp-transition-duration)}.m_4fa340f2{position:absolute;margin:0;padding:0;inset-inline:0;text-align:center;z-index:1}.m_4fa340f2:where([data-position=bottom]){bottom:0;padding-inline:calc(var(--scp-thickness) * 2)}.m_4fa340f2:where([data-position=bottom]):where([data-orientation=down]){bottom:auto;top:0}.m_4fa340f2:where([data-position=center]){top:50%;padding-inline:calc(var(--scp-thickness) * 3)}.m_925c2d2c{container:simple-grid / inline-size}.m_2415a157{display:grid;grid-template-columns:repeat(var(--sg-cols),minmax(0,1fr));gap:var(--sg-spacing-y) var(--sg-spacing-x)}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height, auto);width:var(--skeleton-width, 100%);border-radius:var(--skeleton-radius, var(--mantine-radius-default));position:relative;transform:translateZ(0);-webkit-transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:m_299c329c 1.5s linear infinite}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{position:absolute;content:"";inset:0;z-index:10;background-color:var(--mantine-color-body)}.m_18320242:where([data-visible]):after{position:absolute;content:"";inset:0;z-index:11}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs: calc(.25rem * var(--mantine-scale));--slider-size-sm: calc(.375rem * var(--mantine-scale));--slider-size-md: calc(.5rem * var(--mantine-scale));--slider-size-lg: calc(.625rem * var(--mantine-scale));--slider-size-xl: calc(.75rem * var(--mantine-scale));--slider-size: var(--slider-size-md);--slider-radius: calc(62.5rem * var(--mantine-scale));--slider-color: var(--mantine-primary-color-filled);--slider-track-disabled-bg: var(--mantine-color-disabled);-webkit-tap-highlight-color:transparent;outline:none;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);display:flex;flex-direction:column;align-items:center;touch-action:none;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg: var(--mantine-color-dark-4)}.m_c9357328{position:absolute;top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;user-select:none;touch-action:none}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}.m_c9a9a60a{position:absolute;display:flex;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;transform:translate(-50%,-50%);top:50%;cursor:pointer;border-radius:var(--slider-radius);align-items:center;justify-content:center;transition:box-shadow .1s ease,transform .1s ease;z-index:3;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));left:var(--slider-thumb-offset)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){transform:translate(-50%,-50%) scale(1.05);box-shadow:var(--mantine-shadow-sm)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{color:var(--slider-color);border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{color:var(--mantine-color-white);border-color:var(--mantine-color-white);background-color:var(--slider-color)}.m_a8645c2{display:flex;align-items:center;width:100%;height:calc(var(--slider-size) * 2);cursor:pointer}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}.m_c9ade57f{position:relative;width:100%;height:var(--slider-size)}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg: var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg: var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";position:absolute;top:0;bottom:0;border-radius:var(--slider-radius);inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg, var(--slider-track-bg));z-index:0}.m_38aeed47{position:absolute;z-index:1;top:0;bottom:0;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}fieldset:disabled .m_38aeed47:where(:not([data-inverted])),.m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-disabled-color)}.m_b7b0423a{position:absolute;inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);top:0;z-index:2;height:0;pointer-events:none}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}.m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-disabled-border)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2),calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;user-select:none}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{display:flex;flex-direction:column;overflow:hidden;transition:max-height var(--spoiler-transition-duration, .2s) ease}.m_b9131032{position:absolute;inset-inline-start:0;top:100%;height:calc(1.5rem * var(--mantine-scale))}.m_6d731127{display:flex;flex-direction:column;align-items:var(--stack-align, stretch);justify-content:var(--stack-justify, flex-start);gap:var(--stack-gap, var(--mantine-spacing-md))}.m_cbb4ea7e{--stepper-icon-size-xs: calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm: calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md: calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg: calc(3rem * var(--mantine-scale));--stepper-icon-size-xl: calc(3.25rem * var(--mantine-scale));--stepper-icon-size: var(--stepper-icon-size-md);--stepper-color: var(--mantine-primary-color-filled);--stepper-content-padding: var(--mantine-spacing-md);--stepper-spacing: var(--mantine-spacing-md);--stepper-radius: calc(62.5rem * var(--mantine-scale));--stepper-fz: var(--mantine-font-size-md);--stepper-outline-thickness: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-dark-5)}.m_aaf89d0b{display:flex;flex-wrap:nowrap;align-items:center}.m_aaf89d0b:where([data-wrap]){flex-wrap:wrap;gap:var(--mantine-spacing-md) 0}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{transition:background-color .15s ease;flex:1;height:var(--stepper-outline-thickness);margin-inline:var(--mantine-spacing-md);background-color:var(--stepper-outline-color)}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color: var(--stepper-color);display:flex;cursor:default}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing: calc(var(--mantine-spacing-xs) / 2);justify-content:flex-start;min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type){min-height:auto}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));inset-inline-start:calc(var(--stepper-icon-size) / 2);height:100vh;position:absolute;border-inline-start:var(--stepper-outline-thickness) solid var(--stepper-outline-color)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;transition:background-color .15s ease,border-color .15s ease;border:var(--stepper-outline-thickness) solid var(--stepper-outline-color);background-color:var(--stepper-outline-color)}:where([data-mantine-color-scheme=light]) .m_1959ad01{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color, var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_a79331dc{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--stepper-icon-color, var(--mantine-color-white))}.m_1956aa2a{display:flex;flex-direction:column}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:right;margin-inline-end:var(--mantine-spacing-sm)}:where([dir=rtl]) .m_1956aa2a:where([data-icon-position=right]){text-align:left}.m_12051f6c{font-weight:500;font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));line-height:1;color:var(--mantine-color-dimmed)}.m_5f93f3bb{--switch-height-xs: calc(1rem * var(--mantine-scale));--switch-height-sm: calc(1.25rem * var(--mantine-scale));--switch-height-md: calc(1.5rem * var(--mantine-scale));--switch-height-lg: calc(1.875rem * var(--mantine-scale));--switch-height-xl: calc(2.25rem * var(--mantine-scale));--switch-width-xs: calc(2rem * var(--mantine-scale));--switch-width-sm: calc(2.375rem * var(--mantine-scale));--switch-width-md: calc(2.875rem * var(--mantine-scale));--switch-width-lg: calc(3.5rem * var(--mantine-scale));--switch-width-xl: calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs: calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm: calc(.875rem * var(--mantine-scale));--switch-thumb-size-md: calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg: calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl: calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs: calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm: calc(.375rem * var(--mantine-scale));--switch-label-font-size-md: calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg: calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl: calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-sm: calc(.15625rem * var(--mantine-scale));--switch-track-label-padding-md: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-lg: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl: calc(.21875rem * var(--mantine-scale));--switch-height: var(--switch-height-sm);--switch-width: var(--switch-width-sm);--switch-thumb-size: var(--switch-thumb-size-sm);--switch-label-font-size: var(--switch-label-font-size-sm);--switch-track-label-padding: var(--switch-track-label-padding-sm);--switch-radius: calc(62.5rem * var(--mantine-scale));--switch-color: var(--mantine-primary-color-filled);--switch-disabled-color: var(--mantine-color-disabled);position:relative}.m_926b4011{height:0;width:0;opacity:0;margin:0;padding:0;position:absolute;overflow:hidden;white-space:nowrap}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor, var(--mantine-cursor-type));overflow:hidden;position:relative;border-radius:var(--switch-radius);background-color:var(--switch-bg);height:var(--switch-height);min-width:var(--switch-width);margin:0;transition:background-color .15s ease,border-color .15s ease;appearance:none;display:flex;align-items:center;font-size:var(--switch-label-font-size);font-weight:600;order:var(--switch-order, 1);user-select:none;z-index:0;line-height:0;color:var(--switch-text-color)}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg: var(--switch-color);--switch-text-color: var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg: var(--switch-disabled-color);--switch-cursor: not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg: var(--mantine-color-gray-3);--switch-text-color: var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg: var(--mantine-color-dark-5);--switch-text-color: var(--mantine-color-dark-1)}.m_9307d992[data-label-position=left]{--switch-order: 2}.m_93039a1d{position:absolute;z-index:1;border-radius:var(--switch-radius);display:flex;background-color:var(--switch-thumb-bg, var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);inset-inline-start:var(--switch-thumb-start, var(--switch-track-label-padding));transition:inset-inline-start .15s ease}.m_93039a1d:where([data-with-thumb-indicator]):before{content:"";width:40%;height:40%;background-color:var(--switch-bg);position:absolute;border-radius:var(--switch-radius);top:50%;left:50%;transform:translate(-50%,-50%)}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start: calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding))}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bg: var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-dark-3)}.m_8277e082{height:100%;display:grid;place-content:center;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s ease}.m_926b4011:checked+*>.m_8277e082{margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));margin-inline-start:0}.m_b23fa0ef{width:100%;border-collapse:collapse;border-spacing:0;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout, auto);caption-side:var(--table-caption-side, bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-gray-1);--table-striped-color: var(--mantine-color-gray-0);--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-dark-5);--table-striped-color: var(--mantine-color-dark-6);--table-border-color: var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b23fa0ef:where([data-tabular-nums]){font-variant-numeric:tabular-nums}.m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){font-weight:500}:where([data-mantine-color-scheme=light]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-dark-6)}.m_4e7aa4f3{text-align:left}:where([dir=rtl]) .m_4e7aa4f3{text-align:right}.m_4e7aa4fd{border-bottom:none;background-color:transparent}@media (hover: hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media (hover: none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing, var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:first-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:first-child)){border-inline-start:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b2404537>:where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537>:where(tr):where([data-striped=odd]:nth-of-type(odd)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr)[data-hover]{--tr-hover-bg: var(--table-highlight-on-hover-color, var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset, 0);z-index:3}.m_b242d975:where([data-sticky]){position:sticky}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3){position:sticky;top:var(--table-sticky-header-offset, 0);background-color:var(--mantine-color-body)}:where([data-with-table-border]) .m_b242d975[data-sticky]{position:sticky;top:var(--table-sticky-header-offset, 0);z-index:4;border-top:none}:where([data-with-table-border]) .m_b242d975[data-sticky]:before{content:"";display:block;position:absolute;left:0;top:calc(-.03125rem * var(--mantine-scale));width:100%;height:calc(.0625rem * var(--mantine-scale));background-color:var(--table-border-color);z-index:5}:where([data-with-table-border]) .m_b242d975[data-sticky] .m_4e7aa4f3:first-child{border-top:none}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width);max-height:var(--table-max-height)}.m_bcaa9990{display:flex;flex-direction:column;--toc-depth-offset: .8em}.m_375a65ef{display:block;padding:.3em .8em;font-size:var(--toc-size, var(--mantine-font-size-md));border-radius:var(--toc-radius, var(--mantine-radius-default));padding-left:max(calc(var(--depth-offset) * var(--toc-depth-offset)),.8em)}@media (hover: hover){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}@media (hover: none){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}.m_375a65ef:where([data-active]){background-color:var(--toc-bg);color:var(--toc-color)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color: var(--mantine-color-dark-4)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tabs-list-direction: row;--tabs-panel-grow: unset;--tabs-display: block;--tabs-flex-direction: row;--tabs-list-border-width: 0;--tabs-list-border-size: 0 0 var(--tabs-list-border-width) 0;--tabs-list-gap: unset;--tabs-list-line-bottom: 0;--tabs-list-line-top: unset;--tabs-list-line-start: 0;--tabs-list-line-end: 0;--tab-radius: var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width: 0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom: unset;--tabs-list-line-top: 0;--tab-radius: 0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width: var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start: unset;--tabs-list-line-end: 0;--tabs-list-line-top: 0;--tabs-list-line-bottom: 0;--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction: column;--tabs-panel-grow: 1;--tabs-display: flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction: row-reverse;--tabs-list-line-start: 0;--tabs-list-line-end: unset;--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius)}.m_89d60db1[data-variant=default]{--tabs-list-border-width: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width: calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap: calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d33d6d{display:flex;flex-wrap:wrap;justify-content:var(--tabs-justify, flex-start);flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap)}.m_89d33d6d:where([data-grow]) .m_4ec4dce6{flex:1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{position:relative;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;display:flex;align-items:center;line-height:1;user-select:none}.m_4ec4dce6:where(:disabled,[data-disabled]){opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{display:flex;align-items:center;justify-content:center}.m_fc420b1f:where([data-position=left]:not(:only-child)){margin-inline-end:var(--mantine-spacing-xs)}.m_fc420b1f:where([data-position=right]:not(:only-child)){margin-inline-start:var(--mantine-spacing-xs)}.m_42bbd1ae{flex:1;text-align:center}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";position:absolute;border:1px solid var(--tab-border-color);bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);border-style:solid;border-color:transparent;background-color:transparent}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media (hover: hover){.m_539e827b:hover{background-color:var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: none){.m_539e827b:active{background-color:var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover: hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{background-color:transparent}}@media (hover: none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{background-color:transparent}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-right:calc(.0625rem * var(--mantine-scale)) solid transparent;border-left:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);position:relative;--tab-border-bottom-color: transparent;--tab-border-top-color: transparent;--tab-border-inline-end-color: transparent;--tab-border-inline-start-color: transparent}.m_b59ab47c:where([data-active]):before{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-before-bottom, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-before-left, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-before-right, auto);top:var(--tab-before-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]):after{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-after-bottom, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-after-right, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-after-left, auto);top:var(--tab-after-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color: var(--tab-border-color);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color: var(--tab-border-color);--tab-border-top-color: var(--mantine-color-body);--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-bottom: auto;--tab-after-top: calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color: var(--mantine-color-body);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-before-left: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto;--tab-after-right: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-before-right: auto;--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-after-left: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color: var(--mantine-color-body);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-before-right: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto;--tab-after-left: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-before-left: auto;--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-after-right: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg: transparent;--tab-color: inherit}@media (hover: hover){.m_c3381914:not([data-disabled]):hover{--tab-bg: var(--tab-hover-color)}}@media (hover: none){.m_c3381914:not([data-disabled]):active{--tab-bg: var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg: var(--tabs-color);--tab-color: var(--tabs-text-color, var(--mantine-color-white))}@media (hover: hover){.m_c3381914[data-active][data-active]:hover{--tab-bg: var(--tabs-color)}}@media (hover: none){.m_c3381914[data-active][data-active]:active{--tab-bg: var(--tabs-color)}}.m_7341320d{--ti-size-xs: calc(1.125rem * var(--mantine-scale));--ti-size-sm: calc(1.375rem * var(--mantine-scale));--ti-size-md: calc(1.75rem * var(--mantine-scale));--ti-size-lg: calc(2.125rem * var(--mantine-scale));--ti-size-xl: calc(2.75rem * var(--mantine-scale));--ti-size: var(--ti-size-md);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius, var(--mantine-radius-default));background:var(--ti-bg, var(--mantine-primary-color-filled));color:var(--ti-color, var(--mantine-color-white));border:var(--ti-bd, 1px solid transparent)}.m_43657ece{--offset: calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size: calc(1.25rem * var(--mantine-scale));--tl-line-width: calc(.25rem * var(--mantine-scale));--tl-radius: calc(62.5rem * var(--mantine-scale));--tl-color: var(--mantine-primary-color-filled)}.m_43657ece:where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:500;line-height:1;margin-bottom:calc(var(--mantine-spacing-xs) / 2)}.m_436178ff{--item-border: var(--tl-line-width) var(--tli-border-style, solid) var(--item-border-color);position:relative;color:var(--mantine-color-text)}.m_436178ff:before{content:"";pointer-events:none;position:absolute;top:0;left:var(--timeline-line-left, 0);right:var(--timeline-line-right, 0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display, none)}.m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}[dir=rtl] .m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}.m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}[dir=rtl] .m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}.m_43657ece:where([data-align=left]) .m_436178ff{padding-inline-start:var(--offset);text-align:left}.m_43657ece:where([data-align=right]) .m_436178ff{padding-inline-end:var(--offset);text-align:right}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color: var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color, var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display: block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius, var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);position:absolute;top:0;display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where([data-align=left]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-align=right]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color, var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color, var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color, var(--tl-color));color:var(--tl-icon-color, var(--mantine-color-white))}.m_43657ece:where([data-align=left]) .m_540e8f41{padding-inline-start:var(--offset);text-align:left}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_540e8f41{text-align:right}.m_43657ece:where([data-align=right]) .m_540e8f41{padding-inline-end:var(--offset);text-align:right}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_540e8f41{text-align:left}.m_8a5d1357{margin:0;font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap, var(--mantine-heading-text-wrap))}.m_8a5d1357:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical}.m_f698e191{--level-offset: var(--mantine-spacing-lg);margin:0;padding:0;user-select:none}.m_75f3ecf{margin:0;padding:0}.m_f6970eb1{cursor:pointer;list-style:none;margin:0;padding:0;outline:0}.m_f6970eb1:focus-visible>.m_dc283425{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_dc283425{padding-inline-start:var(--label-offset)}:where([data-mantine-color-scheme=light]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-dark-5)}.m_d08caa0 :first-child{margin-top:0}.m_d08caa0 :last-child{margin-bottom:0}.m_d08caa0 :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap);font-family:var(--mantine-font-family-headings)}.m_d08caa0 :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d08caa0 :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d08caa0 :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d08caa0 :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d08caa0 :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d08caa0 :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d08caa0 :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d08caa0 :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d08caa0 :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media (hover: hover){.m_d08caa0 :where(a):hover{text-decoration:underline}}@media (hover: none){.m_d08caa0 :where(a):active{text-decoration:underline}}.m_d08caa0 :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-dark-3)}.m_d08caa0 :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);overflow-x:auto;font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-dark-8)}.m_d08caa0 :where(pre) :where(code){background-color:transparent;padding:0;border-radius:0;color:inherit;border:0}.m_d08caa0 :where(kbd){--kbd-fz: calc(.75rem * var(--mantine-scale));--kbd-padding: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d08caa0 :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d08caa0 :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:var(--mantine-spacing-xl);list-style-position:outside}.m_d08caa0 :where(table){width:100%;border-collapse:collapse;caption-side:bottom;margin-bottom:var(--mantine-spacing-md)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-dark-4)}.m_d08caa0 :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dimmed)}.m_d08caa0 :where(table) :where(th){text-align:left;font-weight:700;font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d08caa0 :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color);font-size:var(--mantine-font-size-sm)}.m_d08caa0 :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d08caa0 :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-dark-8)}}@layer xyflow{.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}}@layer base{:root{--made-with-panda: "🐼"}*,:before,:after,::backdrop{--blur: ;--brightness: ;--contrast: ;--grayscale: ;--hue-rotate: ;--invert: ;--saturate: ;--sepia: ;--drop-shadow: ;--backdrop-blur: ;--backdrop-brightness: ;--backdrop-contrast: ;--backdrop-grayscale: ;--backdrop-hue-rotate: ;--backdrop-invert: ;--backdrop-opacity: ;--backdrop-saturate: ;--backdrop-sepia: ;--gradient-from-position: ;--gradient-to-position: ;--gradient-via-position: ;--scroll-snap-strictness: proximity;--border-spacing-x: 0;--border-spacing-y: 0;--translate-x: 0;--translate-y: 0;--rotate: 0;--rotate-x: 0;--rotate-y: 0;--skew-x: 0;--skew-y: 0;--scale-x: 1;--scale-y: 1}:where(:root,:host){--likec4-app-font-default: "IBM Plex Sans",'ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'}:where([data-likec4-text-size=xs]){--likec4-text-size: var(--font-sizes-likec4-xs)}:where([data-likec4-text-size=sm]){--likec4-text-size: var(--font-sizes-likec4-sm)}:where([data-likec4-text-size=md]){--likec4-text-size: var(--font-sizes-likec4-md)}:where([data-likec4-text-size=lg]){--likec4-text-size: var(--font-sizes-likec4-lg)}:where([data-likec4-text-size=xl]){--likec4-text-size: var(--font-sizes-likec4-xl)}:where([data-likec4-spacing=xs]){--likec4-spacing: var(--spacing-likec4-xs)}:where([data-likec4-spacing=sm]){--likec4-spacing: var(--spacing-likec4-sm)}:where([data-likec4-spacing=md]){--likec4-spacing: var(--spacing-likec4-md)}:where([data-likec4-spacing=lg]){--likec4-spacing: var(--spacing-likec4-lg)}:where([data-likec4-spacing=xl]){--likec4-spacing: var(--spacing-likec4-xl)}.likec4-shadow-root{--mantine-font-family: var(--likec4-app-font, var(--likec4-app-font-default));--mantine-font-family-headings: var(--likec4-app-font, var(--likec4-app-font-default));display:contents}.likec4-shadow-root dialog{color:var(--mantine-color-text)}.likec4-edge-label-container{position:absolute;top:var(--spacing-0);left:var(--spacing-0);width:auto;height:auto}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-edge-label-container{display:none}:where([data-likec4-zoom-small=true]) .likec4-edge-label-container{display:none}.likec4-root{padding:var(--spacing-0);margin:var(--spacing-0);border:0px solid transparent;overflow:hidden;position:relative;container-name:likec4-root;container-type:size;width:100%;height:100%}.likec4-root .react-flow{--xy-background-color: var(--colors-likec4-background);--xy-background-pattern-color: var(--colors-likec4-background-pattern, var(--colors-likec4-background));contain:paint}.likec4-root .react-flow:is(.bg-transparent){--xy-background-color: transparent !important;background:var(--colors-transparent)!important}.likec4-root .react-flow:is(.not-initialized){opacity:0}.likec4-root .react-flow .react-flow__pane{-webkit-user-select:none;user-select:none}.likec4-root .react-flow :where(.react-flow__nodes,.react-flow__edges,.react-flow__edgelabel-renderer){display:contents}.likec4-root .react-flow .react-flow__node.draggable:has(.likec4-compound-node){cursor:default}.likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-stroke-width: 3;--xy-edge-stroke: var(--likec4-palette-relation-stroke);--xy-edge-stroke-selected: var(--likec4-palette-relation-stroke-selected);--xy-edge-label-color: var(--likec4-palette-relation-label);--xy-edge-label-background-color: var(--likec4-palette-relation-label-bg)}[data-mantine-color-scheme=dark] .likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-label-background-color: color-mix(in srgb, var(--likec4-palette-relation-label-bg) 50%, transparent)}[data-mantine-color-scheme=light] .likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-label-color: color-mix(in srgb, var(--likec4-palette-relation-label), rgba(255 255 255 / .85) 40%);--xy-edge-label-background-color: color-mix(in srgb, var(--likec4-palette-relation-label-bg) 60%, transparent)}.likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container):is([data-likec4-hovered=true],[data-edge-active=true]){--xy-edge-stroke-width: 4;--xy-edge-stroke: var(--likec4-palette-relation-stroke-selected)}.likec4-root :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]){opacity:.25}.likec4-root .likec4-edge-label-container:is([data-likec4-dimmed]){opacity:.25}.likec4-root:is([data-likec4-reduced-graphics]) .hide-on-reduced-graphics{display:none}.likec4-root :where(.relationships-browser,.likec4-relationship-details) .react-flow__attribution{display:none}.likec4-root .mantine-ActionIcon-icon .tabler-icon{width:75%;height:75%}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]){filter:grayscale(85%)}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed=true]){--transition-prop: opacity, filter;transition-property:opacity,filter;--transition-easing: cubic-bezier(.5, 0, .2, 1);transition-timing-function:cubic-bezier(.5,0,.2,1);--transition-duration: .4s;transition-duration:.4s}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge-label-container:is([data-likec4-dimmed]){filter:grayscale(85%)}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge-label-container:is([data-likec4-dimmed=true]){--transition-prop: opacity, filter;transition-property:opacity,filter;--transition-easing: cubic-bezier(.5, 0, .2, 1);transition-timing-function:cubic-bezier(.5,0,.2,1);--transition-duration: .4s;transition-duration:.4s}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges,.react-flow__edgelabel-renderer)>:where(svg,.likec4-edge-label-container){mix-blend-mode:plus-lighter}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges,.react-flow__edgelabel-renderer)>:where(svg,.likec4-edge-label-container){mix-blend-mode:screen}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]):has(.react-flow__node-seq-parallel) :where(.react-flow__edges>svg){mix-blend-mode:color-burn}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:luminosity}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:color-burn}.likec4-static-view .react-flow .react-flow__attribution{display:none}:where(:root,:host){--likec4-text-size: 1.2rem;--likec4-palette-fill: #3b82f6;--likec4-palette-stroke: #2563eb;--likec4-palette-hiContrast: #eff6ff;--likec4-palette-loContrast: #bfdbfe;--likec4-palette-relation-stroke: #6E6E6E;--likec4-palette-relation-label: #C6C6C6;--likec4-palette-relation-label-bg: #18191b;--mantine-scale: 1;--likec4-palette-outline: var(--likec4-palette-loContrast);--likec4-spacing: ;--text-fz: ;--likec4-icon-size: }}@layer tokens{:where(:root,:host){--spacing-0: 0px;--spacing-1: 4px;--spacing-2: 8px;--spacing-3: 12px;--spacing-4: 16px;--spacing-5: 20px;--spacing-6: 24px;--spacing-7: 28px;--spacing-8: 32px;--spacing-9: 36px;--spacing-10: 40px;--spacing-likec4-xs: 8px;--spacing-likec4-sm: 10px;--spacing-likec4-md: 16px;--spacing-likec4-lg: 24px;--spacing-likec4-xl: 32px;--spacing-0\\.5: 2px;--spacing-1\\.5: 6px;--spacing-2\\.5: 10px;--spacing-3\\.5: 14px;--spacing-4\\.5: 18px;--spacing-xxs: calc(.5rem * var(--mantine-scale));--spacing-xs: calc(.625rem * var(--mantine-scale));--spacing-sm: calc(.75rem * var(--mantine-scale));--spacing-md: calc(1rem * var(--mantine-scale));--spacing-lg: calc(1.25rem * var(--mantine-scale));--spacing-xl: calc(2rem * var(--mantine-scale));--font-sizes-xxs: .625rem;--font-sizes-xs: calc(.75rem * var(--mantine-scale));--font-sizes-sm: calc(.875rem * var(--mantine-scale));--font-sizes-md: calc(1rem * var(--mantine-scale));--font-sizes-lg: calc(1.125rem * var(--mantine-scale));--font-sizes-xl: calc(1.25rem * var(--mantine-scale));--font-sizes-likec4-xs: .833rem;--font-sizes-likec4-sm: 1rem;--font-sizes-likec4-md: 1.2rem;--font-sizes-likec4-lg: 1.44rem;--font-sizes-likec4-xl: 1.73rem;--line-heights-1: 1;--line-heights-xs: 1.4;--line-heights-sm: 1.45;--line-heights-md: 1.55;--line-heights-lg: 1.6;--line-heights-xl: 1.65;--colors-mantine-colors-primary: var(--mantine-primary-color-6);--colors-mantine-colors-primary-filled: var(--mantine-primary-color-filled);--colors-mantine-colors-primary-filled-hover: var(--mantine-primary-color-filled-hover);--colors-mantine-colors-primary-light: var(--mantine-primary-color-light);--colors-mantine-colors-primary-light-hover: var(--mantine-primary-color-light-hover);--colors-mantine-colors-primary-light-color: var(--mantine-primary-color-light-color);--colors-mantine-colors-primary-outline: var(--mantine-primary-color-outline);--colors-mantine-colors-primary-outline-hover: var(--mantine-primary-color-outline-hover);--colors-mantine-colors-primary\\[0\\]: var(--mantine-primary-color-0);--colors-mantine-colors-primary\\[1\\]: var(--mantine-primary-color-1);--colors-mantine-colors-primary\\[2\\]: var(--mantine-primary-color-2);--colors-mantine-colors-primary\\[3\\]: var(--mantine-primary-color-3);--colors-mantine-colors-primary\\[4\\]: var(--mantine-primary-color-4);--colors-mantine-colors-primary\\[5\\]: var(--mantine-primary-color-5);--colors-mantine-colors-primary\\[6\\]: var(--mantine-primary-color-6);--colors-mantine-colors-primary\\[7\\]: var(--mantine-primary-color-7);--colors-mantine-colors-primary\\[8\\]: var(--mantine-primary-color-8);--colors-mantine-colors-primary\\[9\\]: var(--mantine-primary-color-9);--colors-mantine-colors-white: var(--mantine-color-white);--colors-mantine-colors-text: var(--mantine-color-text);--colors-mantine-colors-body: var(--mantine-color-body);--colors-mantine-colors-dimmed: var(--mantine-color-dimmed);--colors-mantine-colors-default-border: var(--mantine-color-default-border);--colors-mantine-colors-default-color: var(--mantine-color-default-color);--colors-mantine-colors-default-hover: var(--mantine-color-default-hover);--colors-mantine-colors-default: var(--mantine-color-default);--colors-mantine-colors-error: var(--mantine-color-error);--colors-mantine-colors-placeholder: var(--mantine-color-placeholder);--colors-mantine-colors-gray: var(--mantine-color-gray-6);--colors-mantine-colors-gray-filled: var(--mantine-color-gray-filled);--colors-mantine-colors-gray-filled-hover: var(--mantine-color-gray-filled-hover);--colors-mantine-colors-gray-light: var(--mantine-color-gray-light);--colors-mantine-colors-gray-light-hover: var(--mantine-color-gray-light-hover);--colors-mantine-colors-gray-light-color: var(--mantine-color-gray-light-color);--colors-mantine-colors-gray-outline: var(--mantine-color-gray-outline);--colors-mantine-colors-gray-outline-hover: var(--mantine-color-gray-outline-hover);--colors-mantine-colors-gray\\[0\\]: var(--mantine-color-gray-0);--colors-mantine-colors-gray\\[1\\]: var(--mantine-color-gray-1);--colors-mantine-colors-gray\\[2\\]: var(--mantine-color-gray-2);--colors-mantine-colors-gray\\[3\\]: var(--mantine-color-gray-3);--colors-mantine-colors-gray\\[4\\]: var(--mantine-color-gray-4);--colors-mantine-colors-gray\\[5\\]: var(--mantine-color-gray-5);--colors-mantine-colors-gray\\[6\\]: var(--mantine-color-gray-6);--colors-mantine-colors-gray\\[7\\]: var(--mantine-color-gray-7);--colors-mantine-colors-gray\\[8\\]: var(--mantine-color-gray-8);--colors-mantine-colors-gray\\[9\\]: var(--mantine-color-gray-9);--colors-mantine-colors-dark: var(--mantine-color-dark-6);--colors-mantine-colors-dark-filled: var(--mantine-color-dark-filled);--colors-mantine-colors-dark-filled-hover: var(--mantine-color-dark-filled-hover);--colors-mantine-colors-dark-light: var(--mantine-color-dark-light);--colors-mantine-colors-dark-light-hover: var(--mantine-color-dark-light-hover);--colors-mantine-colors-dark-light-color: var(--mantine-color-dark-light-color);--colors-mantine-colors-dark-outline: var(--mantine-color-dark-outline);--colors-mantine-colors-dark-outline-hover: var(--mantine-color-dark-outline-hover);--colors-mantine-colors-dark\\[0\\]: var(--mantine-color-dark-0);--colors-mantine-colors-dark\\[1\\]: var(--mantine-color-dark-1);--colors-mantine-colors-dark\\[2\\]: var(--mantine-color-dark-2);--colors-mantine-colors-dark\\[3\\]: var(--mantine-color-dark-3);--colors-mantine-colors-dark\\[4\\]: var(--mantine-color-dark-4);--colors-mantine-colors-dark\\[5\\]: var(--mantine-color-dark-5);--colors-mantine-colors-dark\\[6\\]: var(--mantine-color-dark-6);--colors-mantine-colors-dark\\[7\\]: var(--mantine-color-dark-7);--colors-mantine-colors-dark\\[8\\]: var(--mantine-color-dark-8);--colors-mantine-colors-dark\\[9\\]: var(--mantine-color-dark-9);--colors-mantine-colors-orange: var(--mantine-color-orange-6);--colors-mantine-colors-orange-filled: var(--mantine-color-orange-filled);--colors-mantine-colors-orange-filled-hover: var(--mantine-color-orange-filled-hover);--colors-mantine-colors-orange-light: var(--mantine-color-orange-light);--colors-mantine-colors-orange-light-hover: var(--mantine-color-orange-light-hover);--colors-mantine-colors-orange-light-color: var(--mantine-color-orange-light-color);--colors-mantine-colors-orange-outline: var(--mantine-color-orange-outline);--colors-mantine-colors-orange-outline-hover: var(--mantine-color-orange-outline-hover);--colors-mantine-colors-orange\\[0\\]: var(--mantine-color-orange-0);--colors-mantine-colors-orange\\[1\\]: var(--mantine-color-orange-1);--colors-mantine-colors-orange\\[2\\]: var(--mantine-color-orange-2);--colors-mantine-colors-orange\\[3\\]: var(--mantine-color-orange-3);--colors-mantine-colors-orange\\[4\\]: var(--mantine-color-orange-4);--colors-mantine-colors-orange\\[5\\]: var(--mantine-color-orange-5);--colors-mantine-colors-orange\\[6\\]: var(--mantine-color-orange-6);--colors-mantine-colors-orange\\[7\\]: var(--mantine-color-orange-7);--colors-mantine-colors-orange\\[8\\]: var(--mantine-color-orange-8);--colors-mantine-colors-orange\\[9\\]: var(--mantine-color-orange-9);--colors-mantine-colors-teal: var(--mantine-color-teal-6);--colors-mantine-colors-teal-filled: var(--mantine-color-teal-filled);--colors-mantine-colors-teal-filled-hover: var(--mantine-color-teal-filled-hover);--colors-mantine-colors-teal-light: var(--mantine-color-teal-light);--colors-mantine-colors-teal-light-hover: var(--mantine-color-teal-light-hover);--colors-mantine-colors-teal-light-color: var(--mantine-color-teal-light-color);--colors-mantine-colors-teal-outline: var(--mantine-color-teal-outline);--colors-mantine-colors-teal-outline-hover: var(--mantine-color-teal-outline-hover);--colors-mantine-colors-teal\\[0\\]: var(--mantine-color-teal-0);--colors-mantine-colors-teal\\[1\\]: var(--mantine-color-teal-1);--colors-mantine-colors-teal\\[2\\]: var(--mantine-color-teal-2);--colors-mantine-colors-teal\\[3\\]: var(--mantine-color-teal-3);--colors-mantine-colors-teal\\[4\\]: var(--mantine-color-teal-4);--colors-mantine-colors-teal\\[5\\]: var(--mantine-color-teal-5);--colors-mantine-colors-teal\\[6\\]: var(--mantine-color-teal-6);--colors-mantine-colors-teal\\[7\\]: var(--mantine-color-teal-7);--colors-mantine-colors-teal\\[8\\]: var(--mantine-color-teal-8);--colors-mantine-colors-teal\\[9\\]: var(--mantine-color-teal-9);--colors-mantine-colors-red: var(--mantine-color-red-6);--colors-mantine-colors-red-filled: var(--mantine-color-red-filled);--colors-mantine-colors-red-filled-hover: var(--mantine-color-red-filled-hover);--colors-mantine-colors-red-light: var(--mantine-color-red-light);--colors-mantine-colors-red-light-hover: var(--mantine-color-red-light-hover);--colors-mantine-colors-red-light-color: var(--mantine-color-red-light-color);--colors-mantine-colors-red-outline: var(--mantine-color-red-outline);--colors-mantine-colors-red-outline-hover: var(--mantine-color-red-outline-hover);--colors-mantine-colors-red\\[0\\]: var(--mantine-color-red-0);--colors-mantine-colors-red\\[1\\]: var(--mantine-color-red-1);--colors-mantine-colors-red\\[2\\]: var(--mantine-color-red-2);--colors-mantine-colors-red\\[3\\]: var(--mantine-color-red-3);--colors-mantine-colors-red\\[4\\]: var(--mantine-color-red-4);--colors-mantine-colors-red\\[5\\]: var(--mantine-color-red-5);--colors-mantine-colors-red\\[6\\]: var(--mantine-color-red-6);--colors-mantine-colors-red\\[7\\]: var(--mantine-color-red-7);--colors-mantine-colors-red\\[8\\]: var(--mantine-color-red-8);--colors-mantine-colors-red\\[9\\]: var(--mantine-color-red-9);--colors-mantine-colors-green: var(--mantine-color-green-6);--colors-mantine-colors-green-filled: var(--mantine-color-green-filled);--colors-mantine-colors-green-filled-hover: var(--mantine-color-green-filled-hover);--colors-mantine-colors-green-light: var(--mantine-color-green-light);--colors-mantine-colors-green-light-hover: var(--mantine-color-green-light-hover);--colors-mantine-colors-green-light-color: var(--mantine-color-green-light-color);--colors-mantine-colors-green-outline: var(--mantine-color-green-outline);--colors-mantine-colors-green-outline-hover: var(--mantine-color-green-outline-hover);--colors-mantine-colors-green\\[0\\]: var(--mantine-color-green-0);--colors-mantine-colors-green\\[1\\]: var(--mantine-color-green-1);--colors-mantine-colors-green\\[2\\]: var(--mantine-color-green-2);--colors-mantine-colors-green\\[3\\]: var(--mantine-color-green-3);--colors-mantine-colors-green\\[4\\]: var(--mantine-color-green-4);--colors-mantine-colors-green\\[5\\]: var(--mantine-color-green-5);--colors-mantine-colors-green\\[6\\]: var(--mantine-color-green-6);--colors-mantine-colors-green\\[7\\]: var(--mantine-color-green-7);--colors-mantine-colors-green\\[8\\]: var(--mantine-color-green-8);--colors-mantine-colors-green\\[9\\]: var(--mantine-color-green-9);--colors-mantine-colors-yellow: var(--mantine-color-yellow-6);--colors-mantine-colors-yellow-filled: var(--mantine-color-yellow-filled);--colors-mantine-colors-yellow-filled-hover: var(--mantine-color-yellow-filled-hover);--colors-mantine-colors-yellow-light: var(--mantine-color-yellow-light);--colors-mantine-colors-yellow-light-hover: var(--mantine-color-yellow-light-hover);--colors-mantine-colors-yellow-light-color: var(--mantine-color-yellow-light-color);--colors-mantine-colors-yellow-outline: var(--mantine-color-yellow-outline);--colors-mantine-colors-yellow-outline-hover: var(--mantine-color-yellow-outline-hover);--colors-mantine-colors-yellow\\[0\\]: var(--mantine-color-yellow-0);--colors-mantine-colors-yellow\\[1\\]: var(--mantine-color-yellow-1);--colors-mantine-colors-yellow\\[2\\]: var(--mantine-color-yellow-2);--colors-mantine-colors-yellow\\[3\\]: var(--mantine-color-yellow-3);--colors-mantine-colors-yellow\\[4\\]: var(--mantine-color-yellow-4);--colors-mantine-colors-yellow\\[5\\]: var(--mantine-color-yellow-5);--colors-mantine-colors-yellow\\[6\\]: var(--mantine-color-yellow-6);--colors-mantine-colors-yellow\\[7\\]: var(--mantine-color-yellow-7);--colors-mantine-colors-yellow\\[8\\]: var(--mantine-color-yellow-8);--colors-mantine-colors-yellow\\[9\\]: var(--mantine-color-yellow-9);--colors-transparent: transparent;--colors-none: none;--borders-none: none;--borders-transparent: 0px solid transparent;--borders-default: 1px solid var(--colors-mantine-colors-default-border);--radii-0: 0px;--radii-xs: .125rem;--radii-sm: .25rem;--radii-md: .5rem;--radii-lg: 1rem;--radii-xl: 2rem;--fonts-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--fonts-body: var(--likec4-app-font, var(--likec4-app-font-default));--fonts-likec4: var(--likec4-app-font, var(--likec4-app-font-default));--fonts-likec4-element: var(--likec4-element-font, var(--fonts-likec4));--fonts-likec4-compound: var(--likec4-compound-font, var(--fonts-likec4));--fonts-likec4-relation: var(--likec4-relation-font, var(--fonts-likec4));--easings-default: cubic-bezier(.4, 0, .2, 1);--easings-in: cubic-bezier(.4, 0, 1, 1);--easings-out: cubic-bezier(0, 0, .4, 1);--easings-in-out: cubic-bezier(.5, 0, .2, 1);--durations-fastest: 50ms;--durations-faster: .1s;--durations-fast: .13s;--durations-normal: .17s;--durations-slow: .3s;--durations-slower: .4s;--durations-slowest: .5s;--shadows-none: none;--shadows-xs: 0 1px 3px rgb(0 0 0/5%), 0 1px 2px rgb(0 0 0/10%);--shadows-sm: 0 1px 3px rgb(0 0 0/5%), 0 10px 15px -5px rgb(0 0 0/5%), 0 7px 7px -5px rgb(0 0 0/4%);--shadows-md: 0 1px 3px rgb(0 0 0/5%), 0 20px 25px -5px rgb(0 0 0/5%), 0 10px 10px -5px rgb(0 0 0/4%);--shadows-lg: 0 1px 3px rgb(0 0 0/5%), 0 28px 23px -7px rgb(0 0 0/5%), 0 12px 12px -7px rgb(0 0 0/4%);--shadows-xl: 0 1px 3px rgb(0 0 0/5%), 0 36px 28px -7px rgb(0 0 0/5%), 0 17px 17px -7px rgb(0 0 0/4%);--breakpoints-xs: 36em;--breakpoints-sm: 48em;--breakpoints-md: 62em;--breakpoints-lg: 75em;--breakpoints-xl: 88em;--sizes-breakpoint-xs: 36em;--sizes-breakpoint-sm: 48em;--sizes-breakpoint-md: 62em;--sizes-breakpoint-lg: 75em;--sizes-breakpoint-xl: 88em;--colors-amber-1: var(--colors-amber-light-1);--colors-amber-2: var(--colors-amber-light-2);--colors-amber-3: var(--colors-amber-light-3);--colors-amber-4: var(--colors-amber-light-4);--colors-amber-5: var(--colors-amber-light-5);--colors-amber-6: var(--colors-amber-light-6);--colors-amber-7: var(--colors-amber-light-7);--colors-amber-8: var(--colors-amber-light-8);--colors-amber-9: var(--colors-amber-light-9);--colors-amber-10: var(--colors-amber-light-10);--colors-amber-11: var(--colors-amber-light-11);--colors-amber-12: var(--colors-amber-light-12);--colors-amber-light-1: #fefdfb;--colors-amber-light-2: #fefbe9;--colors-amber-light-3: #fff7c2;--colors-amber-light-4: #ffee9c;--colors-amber-light-5: #fbe577;--colors-amber-light-6: #f3d673;--colors-amber-light-7: #e9c162;--colors-amber-light-8: #e2a336;--colors-amber-light-9: #ffc53d;--colors-amber-light-10: #ffba18;--colors-amber-light-11: #ab6400;--colors-amber-light-12: #4f3422;--colors-amber-light-a-1: #c0800004;--colors-amber-light-a-2: #f4d10016;--colors-amber-light-a-3: #ffde003d;--colors-amber-light-a-4: #ffd40063;--colors-amber-light-a-5: #f8cf0088;--colors-amber-light-a-6: #eab5008c;--colors-amber-light-a-7: #dc9b009d;--colors-amber-light-a-8: #da8a00c9;--colors-amber-light-a-9: #ffb300c2;--colors-amber-light-a-10: #ffb300e7;--colors-amber-light-a-11: #ab6400;--colors-amber-light-a-12: #341500dd;--colors-amber-light-p3-1: color(display-p3 .995 .992 .985);--colors-amber-light-p3-2: color(display-p3 .994 .986 .921);--colors-amber-light-p3-3: color(display-p3 .994 .969 .782);--colors-amber-light-p3-4: color(display-p3 .989 .937 .65);--colors-amber-light-p3-5: color(display-p3 .97 .902 .527);--colors-amber-light-p3-6: color(display-p3 .936 .844 .506);--colors-amber-light-p3-7: color(display-p3 .89 .762 .443);--colors-amber-light-p3-8: color(display-p3 .85 .65 .3);--colors-amber-light-p3-9: color(display-p3 1 .77 .26);--colors-amber-light-p3-10: color(display-p3 .959 .741 .274);--colors-amber-light-p3-11: color(display-p3 .64 .4 0);--colors-amber-light-p3-12: color(display-p3 .294 .208 .145);--colors-amber-light-p3-a-1: color(display-p3 .757 .514 .024 / .016);--colors-amber-light-p3-a-2: color(display-p3 .902 .804 .008 / .079);--colors-amber-light-p3-a-3: color(display-p3 .965 .859 .004 / .22);--colors-amber-light-p3-a-4: color(display-p3 .969 .82 .004 / .35);--colors-amber-light-p3-a-5: color(display-p3 .933 .796 .004 / .475);--colors-amber-light-p3-a-6: color(display-p3 .875 .682 .004 / .495);--colors-amber-light-p3-a-7: color(display-p3 .804 .573 0 / .557);--colors-amber-light-p3-a-8: color(display-p3 .788 .502 0 / .699);--colors-amber-light-p3-a-9: color(display-p3 1 .686 0 / .742);--colors-amber-light-p3-a-10: color(display-p3 .945 .643 0 / .726);--colors-amber-light-p3-a-11: color(display-p3 .64 .4 0);--colors-amber-light-p3-a-12: color(display-p3 .294 .208 .145);--colors-amber-dark-1: #16120c;--colors-amber-dark-2: #1d180f;--colors-amber-dark-3: #302008;--colors-amber-dark-4: #3f2700;--colors-amber-dark-5: #4d3000;--colors-amber-dark-6: #5c3d05;--colors-amber-dark-7: #714f19;--colors-amber-dark-8: #8f6424;--colors-amber-dark-9: #ffc53d;--colors-amber-dark-10: #ffd60a;--colors-amber-dark-11: #ffca16;--colors-amber-dark-12: #ffe7b3;--colors-amber-dark-a-1: #e63c0006;--colors-amber-dark-a-2: #fd9b000d;--colors-amber-dark-a-3: #fa820022;--colors-amber-dark-a-4: #fc820032;--colors-amber-dark-a-5: #fd8b0041;--colors-amber-dark-a-6: #fd9b0051;--colors-amber-dark-a-7: #ffab2567;--colors-amber-dark-a-8: #ffae3587;--colors-amber-dark-a-9: #ffc53d;--colors-amber-dark-a-10: #ffd60a;--colors-amber-dark-a-11: #ffca16;--colors-amber-dark-a-12: #ffe7b3;--colors-amber-dark-p3-1: color(display-p3 .082 .07 .05);--colors-amber-dark-p3-2: color(display-p3 .111 .094 .064);--colors-amber-dark-p3-3: color(display-p3 .178 .128 .049);--colors-amber-dark-p3-4: color(display-p3 .239 .156 0);--colors-amber-dark-p3-5: color(display-p3 .29 .193 0);--colors-amber-dark-p3-6: color(display-p3 .344 .245 .076);--colors-amber-dark-p3-7: color(display-p3 .422 .314 .141);--colors-amber-dark-p3-8: color(display-p3 .535 .399 .189);--colors-amber-dark-p3-9: color(display-p3 1 .77 .26);--colors-amber-dark-p3-10: color(display-p3 1 .87 .15);--colors-amber-dark-p3-11: color(display-p3 1 .8 .29);--colors-amber-dark-p3-12: color(display-p3 .984 .909 .726);--colors-amber-dark-p3-a-1: color(display-p3 .992 .298 0 / .017);--colors-amber-dark-p3-a-2: color(display-p3 .988 .651 0 / .047);--colors-amber-dark-p3-a-3: color(display-p3 1 .6 0 / .118);--colors-amber-dark-p3-a-4: color(display-p3 1 .557 0 / .185);--colors-amber-dark-p3-a-5: color(display-p3 1 .592 0 / .24);--colors-amber-dark-p3-a-6: color(display-p3 1 .659 .094 / .299);--colors-amber-dark-p3-a-7: color(display-p3 1 .714 .263 / .383);--colors-amber-dark-p3-a-8: color(display-p3 .996 .729 .306 / .5);--colors-amber-dark-p3-a-9: color(display-p3 1 .769 .259);--colors-amber-dark-p3-a-10: color(display-p3 1 .871 .149);--colors-amber-dark-p3-a-11: color(display-p3 1 .8 .29);--colors-amber-dark-p3-a-12: color(display-p3 .984 .909 .726);--colors-amber-a-1: var(--colors-amber-light-a-1);--colors-amber-a-2: var(--colors-amber-light-a-2);--colors-amber-a-3: var(--colors-amber-light-a-3);--colors-amber-a-4: var(--colors-amber-light-a-4);--colors-amber-a-5: var(--colors-amber-light-a-5);--colors-amber-a-6: var(--colors-amber-light-a-6);--colors-amber-a-7: var(--colors-amber-light-a-7);--colors-amber-a-8: var(--colors-amber-light-a-8);--colors-amber-a-9: var(--colors-amber-light-a-9);--colors-amber-a-10: var(--colors-amber-light-a-10);--colors-amber-a-11: var(--colors-amber-light-a-11);--colors-amber-a-12: var(--colors-amber-light-a-12);--colors-amber-p3-1: var(--colors-amber-light-p3-1);--colors-amber-p3-2: var(--colors-amber-light-p3-2);--colors-amber-p3-3: var(--colors-amber-light-p3-3);--colors-amber-p3-4: var(--colors-amber-light-p3-4);--colors-amber-p3-5: var(--colors-amber-light-p3-5);--colors-amber-p3-6: var(--colors-amber-light-p3-6);--colors-amber-p3-7: var(--colors-amber-light-p3-7);--colors-amber-p3-8: var(--colors-amber-light-p3-8);--colors-amber-p3-9: var(--colors-amber-light-p3-9);--colors-amber-p3-10: var(--colors-amber-light-p3-10);--colors-amber-p3-11: var(--colors-amber-light-p3-11);--colors-amber-p3-12: var(--colors-amber-light-p3-12);--colors-amber-p3-a-1: var(--colors-amber-light-p3-a-1);--colors-amber-p3-a-2: var(--colors-amber-light-p3-a-2);--colors-amber-p3-a-3: var(--colors-amber-light-p3-a-3);--colors-amber-p3-a-4: var(--colors-amber-light-p3-a-4);--colors-amber-p3-a-5: var(--colors-amber-light-p3-a-5);--colors-amber-p3-a-6: var(--colors-amber-light-p3-a-6);--colors-amber-p3-a-7: var(--colors-amber-light-p3-a-7);--colors-amber-p3-a-8: var(--colors-amber-light-p3-a-8);--colors-amber-p3-a-9: var(--colors-amber-light-p3-a-9);--colors-amber-p3-a-10: var(--colors-amber-light-p3-a-10);--colors-amber-p3-a-11: var(--colors-amber-light-p3-a-11);--colors-amber-p3-a-12: var(--colors-amber-light-p3-a-12);--colors-blue-1: var(--colors-blue-light-1);--colors-blue-2: var(--colors-blue-light-2);--colors-blue-3: var(--colors-blue-light-3);--colors-blue-4: var(--colors-blue-light-4);--colors-blue-5: var(--colors-blue-light-5);--colors-blue-6: var(--colors-blue-light-6);--colors-blue-7: var(--colors-blue-light-7);--colors-blue-8: var(--colors-blue-light-8);--colors-blue-9: var(--colors-blue-light-9);--colors-blue-10: var(--colors-blue-light-10);--colors-blue-11: var(--colors-blue-light-11);--colors-blue-12: var(--colors-blue-light-12);--colors-blue-light-1: #fbfdff;--colors-blue-light-2: #f4faff;--colors-blue-light-3: #e6f4fe;--colors-blue-light-4: #d5efff;--colors-blue-light-5: #c2e5ff;--colors-blue-light-6: #acd8fc;--colors-blue-light-7: #8ec8f6;--colors-blue-light-8: #5eb1ef;--colors-blue-light-9: #0090ff;--colors-blue-light-10: #0588f0;--colors-blue-light-11: #0d74ce;--colors-blue-light-12: #113264;--colors-blue-light-a-1: #0080ff04;--colors-blue-light-a-2: #008cff0b;--colors-blue-light-a-3: #008ff519;--colors-blue-light-a-4: #009eff2a;--colors-blue-light-a-5: #0093ff3d;--colors-blue-light-a-6: #0088f653;--colors-blue-light-a-7: #0083eb71;--colors-blue-light-a-8: #0084e6a1;--colors-blue-light-a-9: #0090ff;--colors-blue-light-a-10: #0086f0fa;--colors-blue-light-a-11: #006dcbf2;--colors-blue-light-a-12: #002359ee;--colors-blue-light-p3-1: color(display-p3 .986 .992 .999);--colors-blue-light-p3-2: color(display-p3 .96 .979 .998);--colors-blue-light-p3-3: color(display-p3 .912 .956 .991);--colors-blue-light-p3-4: color(display-p3 .853 .932 1);--colors-blue-light-p3-5: color(display-p3 .788 .894 .998);--colors-blue-light-p3-6: color(display-p3 .709 .843 .976);--colors-blue-light-p3-7: color(display-p3 .606 .777 .947);--colors-blue-light-p3-8: color(display-p3 .451 .688 .917);--colors-blue-light-p3-9: color(display-p3 .247 .556 .969);--colors-blue-light-p3-10: color(display-p3 .234 .523 .912);--colors-blue-light-p3-11: color(display-p3 .15 .44 .84);--colors-blue-light-p3-12: color(display-p3 .102 .193 .379);--colors-blue-light-p3-a-1: color(display-p3 .024 .514 1 / .016);--colors-blue-light-p3-a-2: color(display-p3 .024 .514 .906 / .04);--colors-blue-light-p3-a-3: color(display-p3 .012 .506 .914 / .087);--colors-blue-light-p3-a-4: color(display-p3 .008 .545 1 / .146);--colors-blue-light-p3-a-5: color(display-p3 .004 .502 .984 / .212);--colors-blue-light-p3-a-6: color(display-p3 .004 .463 .922 / .291);--colors-blue-light-p3-a-7: color(display-p3 .004 .431 .863 / .393);--colors-blue-light-p3-a-8: color(display-p3 0 .427 .851 / .55);--colors-blue-light-p3-a-9: color(display-p3 0 .412 .961 / .753);--colors-blue-light-p3-a-10: color(display-p3 0 .376 .886 / .765);--colors-blue-light-p3-a-11: color(display-p3 .15 .44 .84);--colors-blue-light-p3-a-12: color(display-p3 .102 .193 .379);--colors-blue-dark-1: #0d1520;--colors-blue-dark-2: #111927;--colors-blue-dark-3: #0d2847;--colors-blue-dark-4: #003362;--colors-blue-dark-5: #004074;--colors-blue-dark-6: #104d87;--colors-blue-dark-7: #205d9e;--colors-blue-dark-8: #2870bd;--colors-blue-dark-9: #0090ff;--colors-blue-dark-10: #3b9eff;--colors-blue-dark-11: #70b8ff;--colors-blue-dark-12: #c2e6ff;--colors-blue-dark-a-1: #004df211;--colors-blue-dark-a-2: #1166fb18;--colors-blue-dark-a-3: #0077ff3a;--colors-blue-dark-a-4: #0075ff57;--colors-blue-dark-a-5: #0081fd6b;--colors-blue-dark-a-6: #0f89fd7f;--colors-blue-dark-a-7: #2a91fe98;--colors-blue-dark-a-8: #3094feb9;--colors-blue-dark-a-9: #0090ff;--colors-blue-dark-a-10: #3b9eff;--colors-blue-dark-a-11: #70b8ff;--colors-blue-dark-a-12: #c2e6ff;--colors-blue-dark-p3-1: color(display-p3 .057 .081 .122);--colors-blue-dark-p3-2: color(display-p3 .072 .098 .147);--colors-blue-dark-p3-3: color(display-p3 .078 .154 .27);--colors-blue-dark-p3-4: color(display-p3 .033 .197 .37);--colors-blue-dark-p3-5: color(display-p3 .08 .245 .441);--colors-blue-dark-p3-6: color(display-p3 .14 .298 .511);--colors-blue-dark-p3-7: color(display-p3 .195 .361 .6);--colors-blue-dark-p3-8: color(display-p3 .239 .434 .72);--colors-blue-dark-p3-9: color(display-p3 .247 .556 .969);--colors-blue-dark-p3-10: color(display-p3 .344 .612 .973);--colors-blue-dark-p3-11: color(display-p3 .49 .72 1);--colors-blue-dark-p3-12: color(display-p3 .788 .898 .99);--colors-blue-dark-p3-a-1: color(display-p3 0 .333 1 / .059);--colors-blue-dark-p3-a-2: color(display-p3 .114 .435 .988 / .085);--colors-blue-dark-p3-a-3: color(display-p3 .122 .463 1 / .219);--colors-blue-dark-p3-a-4: color(display-p3 0 .467 1 / .324);--colors-blue-dark-p3-a-5: color(display-p3 .098 .51 1 / .4);--colors-blue-dark-p3-a-6: color(display-p3 .224 .557 1 / .475);--colors-blue-dark-p3-a-7: color(display-p3 .294 .584 1 / .572);--colors-blue-dark-p3-a-8: color(display-p3 .314 .592 1 / .702);--colors-blue-dark-p3-a-9: color(display-p3 .251 .573 .996 / .967);--colors-blue-dark-p3-a-10: color(display-p3 .357 .631 1 / .971);--colors-blue-dark-p3-a-11: color(display-p3 .49 .72 1);--colors-blue-dark-p3-a-12: color(display-p3 .788 .898 .99);--colors-blue-a-1: var(--colors-blue-light-a-1);--colors-blue-a-2: var(--colors-blue-light-a-2);--colors-blue-a-3: var(--colors-blue-light-a-3);--colors-blue-a-4: var(--colors-blue-light-a-4);--colors-blue-a-5: var(--colors-blue-light-a-5);--colors-blue-a-6: var(--colors-blue-light-a-6);--colors-blue-a-7: var(--colors-blue-light-a-7);--colors-blue-a-8: var(--colors-blue-light-a-8);--colors-blue-a-9: var(--colors-blue-light-a-9);--colors-blue-a-10: var(--colors-blue-light-a-10);--colors-blue-a-11: var(--colors-blue-light-a-11);--colors-blue-a-12: var(--colors-blue-light-a-12);--colors-blue-p3-1: var(--colors-blue-light-p3-1);--colors-blue-p3-2: var(--colors-blue-light-p3-2);--colors-blue-p3-3: var(--colors-blue-light-p3-3);--colors-blue-p3-4: var(--colors-blue-light-p3-4);--colors-blue-p3-5: var(--colors-blue-light-p3-5);--colors-blue-p3-6: var(--colors-blue-light-p3-6);--colors-blue-p3-7: var(--colors-blue-light-p3-7);--colors-blue-p3-8: var(--colors-blue-light-p3-8);--colors-blue-p3-9: var(--colors-blue-light-p3-9);--colors-blue-p3-10: var(--colors-blue-light-p3-10);--colors-blue-p3-11: var(--colors-blue-light-p3-11);--colors-blue-p3-12: var(--colors-blue-light-p3-12);--colors-blue-p3-a-1: var(--colors-blue-light-p3-a-1);--colors-blue-p3-a-2: var(--colors-blue-light-p3-a-2);--colors-blue-p3-a-3: var(--colors-blue-light-p3-a-3);--colors-blue-p3-a-4: var(--colors-blue-light-p3-a-4);--colors-blue-p3-a-5: var(--colors-blue-light-p3-a-5);--colors-blue-p3-a-6: var(--colors-blue-light-p3-a-6);--colors-blue-p3-a-7: var(--colors-blue-light-p3-a-7);--colors-blue-p3-a-8: var(--colors-blue-light-p3-a-8);--colors-blue-p3-a-9: var(--colors-blue-light-p3-a-9);--colors-blue-p3-a-10: var(--colors-blue-light-p3-a-10);--colors-blue-p3-a-11: var(--colors-blue-light-p3-a-11);--colors-blue-p3-a-12: var(--colors-blue-light-p3-a-12);--colors-crimson-1: var(--colors-crimson-light-1);--colors-crimson-2: var(--colors-crimson-light-2);--colors-crimson-3: var(--colors-crimson-light-3);--colors-crimson-4: var(--colors-crimson-light-4);--colors-crimson-5: var(--colors-crimson-light-5);--colors-crimson-6: var(--colors-crimson-light-6);--colors-crimson-7: var(--colors-crimson-light-7);--colors-crimson-8: var(--colors-crimson-light-8);--colors-crimson-9: var(--colors-crimson-light-9);--colors-crimson-10: var(--colors-crimson-light-10);--colors-crimson-11: var(--colors-crimson-light-11);--colors-crimson-12: var(--colors-crimson-light-12);--colors-crimson-light-1: #fffcfd;--colors-crimson-light-2: #fef7f9;--colors-crimson-light-3: #ffe9f0;--colors-crimson-light-4: #fedce7;--colors-crimson-light-5: #facedd;--colors-crimson-light-6: #f3bed1;--colors-crimson-light-7: #eaacc3;--colors-crimson-light-8: #e093b2;--colors-crimson-light-9: #e93d82;--colors-crimson-light-10: #df3478;--colors-crimson-light-11: #cb1d63;--colors-crimson-light-12: #621639;--colors-crimson-light-a-1: #ff005503;--colors-crimson-light-a-2: #e0004008;--colors-crimson-light-a-3: #ff005216;--colors-crimson-light-a-4: #f8005123;--colors-crimson-light-a-5: #e5004f31;--colors-crimson-light-a-6: #d0004b41;--colors-crimson-light-a-7: #bf004753;--colors-crimson-light-a-8: #b6004a6c;--colors-crimson-light-a-9: #e2005bc2;--colors-crimson-light-a-10: #d70056cb;--colors-crimson-light-a-11: #c4004fe2;--colors-crimson-light-a-12: #530026e9;--colors-crimson-light-p3-1: color(display-p3 .998 .989 .992);--colors-crimson-light-p3-2: color(display-p3 .991 .969 .976);--colors-crimson-light-p3-3: color(display-p3 .987 .917 .941);--colors-crimson-light-p3-4: color(display-p3 .975 .866 .904);--colors-crimson-light-p3-5: color(display-p3 .953 .813 .864);--colors-crimson-light-p3-6: color(display-p3 .921 .755 .817);--colors-crimson-light-p3-7: color(display-p3 .88 .683 .761);--colors-crimson-light-p3-8: color(display-p3 .834 .592 .694);--colors-crimson-light-p3-9: color(display-p3 .843 .298 .507);--colors-crimson-light-p3-10: color(display-p3 .807 .266 .468);--colors-crimson-light-p3-11: color(display-p3 .731 .195 .388);--colors-crimson-light-p3-12: color(display-p3 .352 .111 .221);--colors-crimson-light-p3-a-1: color(display-p3 .675 .024 .349 / .012);--colors-crimson-light-p3-a-2: color(display-p3 .757 .02 .267 / .032);--colors-crimson-light-p3-a-3: color(display-p3 .859 .008 .294 / .083);--colors-crimson-light-p3-a-4: color(display-p3 .827 .008 .298 / .134);--colors-crimson-light-p3-a-5: color(display-p3 .753 .008 .275 / .189);--colors-crimson-light-p3-a-6: color(display-p3 .682 .004 .247 / .244);--colors-crimson-light-p3-a-7: color(display-p3 .62 .004 .251 / .318);--colors-crimson-light-p3-a-8: color(display-p3 .6 .004 .251 / .408);--colors-crimson-light-p3-a-9: color(display-p3 .776 0 .298 / .702);--colors-crimson-light-p3-a-10: color(display-p3 .737 0 .275 / .734);--colors-crimson-light-p3-a-11: color(display-p3 .731 .195 .388);--colors-crimson-light-p3-a-12: color(display-p3 .352 .111 .221);--colors-crimson-dark-1: #191114;--colors-crimson-dark-2: #201318;--colors-crimson-dark-3: #381525;--colors-crimson-dark-4: #4d122f;--colors-crimson-dark-5: #5c1839;--colors-crimson-dark-6: #6d2545;--colors-crimson-dark-7: #873356;--colors-crimson-dark-8: #b0436e;--colors-crimson-dark-9: #e93d82;--colors-crimson-dark-10: #ee518a;--colors-crimson-dark-11: #ff92ad;--colors-crimson-dark-12: #fdd3e8;--colors-crimson-dark-a-1: #f4126709;--colors-crimson-dark-a-2: #f22f7a11;--colors-crimson-dark-a-3: #fe2a8b2a;--colors-crimson-dark-a-4: #fd158741;--colors-crimson-dark-a-5: #fd278f51;--colors-crimson-dark-a-6: #fe459763;--colors-crimson-dark-a-7: #fd559b7f;--colors-crimson-dark-a-8: #fe5b9bab;--colors-crimson-dark-a-9: #fe418de8;--colors-crimson-dark-a-10: #ff5693ed;--colors-crimson-dark-a-11: #ff92ad;--colors-crimson-dark-a-12: #ffd5eafd;--colors-crimson-dark-p3-1: color(display-p3 .093 .068 .078);--colors-crimson-dark-p3-2: color(display-p3 .117 .078 .095);--colors-crimson-dark-p3-3: color(display-p3 .203 .091 .143);--colors-crimson-dark-p3-4: color(display-p3 .277 .087 .182);--colors-crimson-dark-p3-5: color(display-p3 .332 .115 .22);--colors-crimson-dark-p3-6: color(display-p3 .394 .162 .268);--colors-crimson-dark-p3-7: color(display-p3 .489 .222 .336);--colors-crimson-dark-p3-8: color(display-p3 .638 .289 .429);--colors-crimson-dark-p3-9: color(display-p3 .843 .298 .507);--colors-crimson-dark-p3-10: color(display-p3 .864 .364 .539);--colors-crimson-dark-p3-11: color(display-p3 1 .56 .66);--colors-crimson-dark-p3-12: color(display-p3 .966 .834 .906);--colors-crimson-dark-p3-a-1: color(display-p3 .984 .071 .463 / .03);--colors-crimson-dark-p3-a-2: color(display-p3 .996 .282 .569 / .055);--colors-crimson-dark-p3-a-3: color(display-p3 .996 .227 .573 / .148);--colors-crimson-dark-p3-a-4: color(display-p3 1 .157 .569 / .227);--colors-crimson-dark-p3-a-5: color(display-p3 1 .231 .604 / .286);--colors-crimson-dark-p3-a-6: color(display-p3 1 .337 .643 / .349);--colors-crimson-dark-p3-a-7: color(display-p3 1 .416 .663 / .454);--colors-crimson-dark-p3-a-8: color(display-p3 .996 .427 .651 / .614);--colors-crimson-dark-p3-a-9: color(display-p3 1 .345 .596 / .832);--colors-crimson-dark-p3-a-10: color(display-p3 1 .42 .62 / .853);--colors-crimson-dark-p3-a-11: color(display-p3 1 .56 .66);--colors-crimson-dark-p3-a-12: color(display-p3 .966 .834 .906);--colors-crimson-a-1: var(--colors-crimson-light-a-1);--colors-crimson-a-2: var(--colors-crimson-light-a-2);--colors-crimson-a-3: var(--colors-crimson-light-a-3);--colors-crimson-a-4: var(--colors-crimson-light-a-4);--colors-crimson-a-5: var(--colors-crimson-light-a-5);--colors-crimson-a-6: var(--colors-crimson-light-a-6);--colors-crimson-a-7: var(--colors-crimson-light-a-7);--colors-crimson-a-8: var(--colors-crimson-light-a-8);--colors-crimson-a-9: var(--colors-crimson-light-a-9);--colors-crimson-a-10: var(--colors-crimson-light-a-10);--colors-crimson-a-11: var(--colors-crimson-light-a-11);--colors-crimson-a-12: var(--colors-crimson-light-a-12);--colors-crimson-p3-1: var(--colors-crimson-light-p3-1);--colors-crimson-p3-2: var(--colors-crimson-light-p3-2);--colors-crimson-p3-3: var(--colors-crimson-light-p3-3);--colors-crimson-p3-4: var(--colors-crimson-light-p3-4);--colors-crimson-p3-5: var(--colors-crimson-light-p3-5);--colors-crimson-p3-6: var(--colors-crimson-light-p3-6);--colors-crimson-p3-7: var(--colors-crimson-light-p3-7);--colors-crimson-p3-8: var(--colors-crimson-light-p3-8);--colors-crimson-p3-9: var(--colors-crimson-light-p3-9);--colors-crimson-p3-10: var(--colors-crimson-light-p3-10);--colors-crimson-p3-11: var(--colors-crimson-light-p3-11);--colors-crimson-p3-12: var(--colors-crimson-light-p3-12);--colors-crimson-p3-a-1: var(--colors-crimson-light-p3-a-1);--colors-crimson-p3-a-2: var(--colors-crimson-light-p3-a-2);--colors-crimson-p3-a-3: var(--colors-crimson-light-p3-a-3);--colors-crimson-p3-a-4: var(--colors-crimson-light-p3-a-4);--colors-crimson-p3-a-5: var(--colors-crimson-light-p3-a-5);--colors-crimson-p3-a-6: var(--colors-crimson-light-p3-a-6);--colors-crimson-p3-a-7: var(--colors-crimson-light-p3-a-7);--colors-crimson-p3-a-8: var(--colors-crimson-light-p3-a-8);--colors-crimson-p3-a-9: var(--colors-crimson-light-p3-a-9);--colors-crimson-p3-a-10: var(--colors-crimson-light-p3-a-10);--colors-crimson-p3-a-11: var(--colors-crimson-light-p3-a-11);--colors-crimson-p3-a-12: var(--colors-crimson-light-p3-a-12);--colors-grass-1: var(--colors-grass-light-1);--colors-grass-2: var(--colors-grass-light-2);--colors-grass-3: var(--colors-grass-light-3);--colors-grass-4: var(--colors-grass-light-4);--colors-grass-5: var(--colors-grass-light-5);--colors-grass-6: var(--colors-grass-light-6);--colors-grass-7: var(--colors-grass-light-7);--colors-grass-8: var(--colors-grass-light-8);--colors-grass-9: var(--colors-grass-light-9);--colors-grass-10: var(--colors-grass-light-10);--colors-grass-11: var(--colors-grass-light-11);--colors-grass-12: var(--colors-grass-light-12);--colors-grass-light-1: #fbfefb;--colors-grass-light-2: #f5fbf5;--colors-grass-light-3: #e9f6e9;--colors-grass-light-4: #daf1db;--colors-grass-light-5: #c9e8ca;--colors-grass-light-6: #b2ddb5;--colors-grass-light-7: #94ce9a;--colors-grass-light-8: #65ba74;--colors-grass-light-9: #46a758;--colors-grass-light-10: #3e9b4f;--colors-grass-light-11: #2a7e3b;--colors-grass-light-12: #203c25;--colors-grass-light-a-1: #00c00004;--colors-grass-light-a-2: #0099000a;--colors-grass-light-a-3: #00970016;--colors-grass-light-a-4: #009f0725;--colors-grass-light-a-5: #00930536;--colors-grass-light-a-6: #008f0a4d;--colors-grass-light-a-7: #018b0f6b;--colors-grass-light-a-8: #008d199a;--colors-grass-light-a-9: #008619b9;--colors-grass-light-a-10: #007b17c1;--colors-grass-light-a-11: #006514d5;--colors-grass-light-a-12: #002006df;--colors-grass-light-p3-1: color(display-p3 .986 .996 .985);--colors-grass-light-p3-2: color(display-p3 .966 .983 .964);--colors-grass-light-p3-3: color(display-p3 .923 .965 .917);--colors-grass-light-p3-4: color(display-p3 .872 .94 .865);--colors-grass-light-p3-5: color(display-p3 .811 .908 .802);--colors-grass-light-p3-6: color(display-p3 .733 .864 .724);--colors-grass-light-p3-7: color(display-p3 .628 .803 .622);--colors-grass-light-p3-8: color(display-p3 .477 .72 .482);--colors-grass-light-p3-9: color(display-p3 .38 .647 .378);--colors-grass-light-p3-10: color(display-p3 .344 .598 .342);--colors-grass-light-p3-11: color(display-p3 .263 .488 .261);--colors-grass-light-p3-12: color(display-p3 .151 .233 .153);--colors-grass-light-p3-a-1: color(display-p3 .024 .757 .024 / .016);--colors-grass-light-p3-a-2: color(display-p3 .024 .565 .024 / .036);--colors-grass-light-p3-a-3: color(display-p3 .059 .576 .008 / .083);--colors-grass-light-p3-a-4: color(display-p3 .035 .565 .008 / .134);--colors-grass-light-p3-a-5: color(display-p3 .047 .545 .008 / .197);--colors-grass-light-p3-a-6: color(display-p3 .031 .502 .004 / .275);--colors-grass-light-p3-a-7: color(display-p3 .012 .482 .004 / .377);--colors-grass-light-p3-a-8: color(display-p3 0 .467 .008 / .522);--colors-grass-light-p3-a-9: color(display-p3 .008 .435 0 / .624);--colors-grass-light-p3-a-10: color(display-p3 .008 .388 0 / .659);--colors-grass-light-p3-a-11: color(display-p3 .263 .488 .261);--colors-grass-light-p3-a-12: color(display-p3 .151 .233 .153);--colors-grass-dark-1: #0e1511;--colors-grass-dark-2: #141a15;--colors-grass-dark-3: #1b2a1e;--colors-grass-dark-4: #1d3a24;--colors-grass-dark-5: #25482d;--colors-grass-dark-6: #2d5736;--colors-grass-dark-7: #366740;--colors-grass-dark-8: #3e7949;--colors-grass-dark-9: #46a758;--colors-grass-dark-10: #53b365;--colors-grass-dark-11: #71d083;--colors-grass-dark-12: #c2f0c2;--colors-grass-dark-a-1: #00de1205;--colors-grass-dark-a-2: #5ef7780a;--colors-grass-dark-a-3: #70fe8c1b;--colors-grass-dark-a-4: #57ff802c;--colors-grass-dark-a-5: #68ff8b3b;--colors-grass-dark-a-6: #71ff8f4b;--colors-grass-dark-a-7: #77fd925d;--colors-grass-dark-a-8: #77fd9070;--colors-grass-dark-a-9: #65ff82a1;--colors-grass-dark-a-10: #72ff8dae;--colors-grass-dark-a-11: #89ff9fcd;--colors-grass-dark-a-12: #ceffceef;--colors-grass-dark-p3-1: color(display-p3 .062 .083 .067);--colors-grass-dark-p3-2: color(display-p3 .083 .103 .085);--colors-grass-dark-p3-3: color(display-p3 .118 .163 .122);--colors-grass-dark-p3-4: color(display-p3 .142 .225 .15);--colors-grass-dark-p3-5: color(display-p3 .178 .279 .186);--colors-grass-dark-p3-6: color(display-p3 .217 .337 .224);--colors-grass-dark-p3-7: color(display-p3 .258 .4 .264);--colors-grass-dark-p3-8: color(display-p3 .302 .47 .305);--colors-grass-dark-p3-9: color(display-p3 .38 .647 .378);--colors-grass-dark-p3-10: color(display-p3 .426 .694 .426);--colors-grass-dark-p3-11: color(display-p3 .535 .807 .542);--colors-grass-dark-p3-12: color(display-p3 .797 .936 .776);--colors-grass-dark-p3-a-1: color(display-p3 0 .992 .071 / .017);--colors-grass-dark-p3-a-2: color(display-p3 .482 .996 .584 / .038);--colors-grass-dark-p3-a-3: color(display-p3 .549 .992 .588 / .106);--colors-grass-dark-p3-a-4: color(display-p3 .51 .996 .557 / .169);--colors-grass-dark-p3-a-5: color(display-p3 .553 1 .588 / .227);--colors-grass-dark-p3-a-6: color(display-p3 .584 1 .608 / .29);--colors-grass-dark-p3-a-7: color(display-p3 .604 1 .616 / .358);--colors-grass-dark-p3-a-8: color(display-p3 .608 1 .62 / .433);--colors-grass-dark-p3-a-9: color(display-p3 .573 1 .569 / .622);--colors-grass-dark-p3-a-10: color(display-p3 .6 .996 .6 / .673);--colors-grass-dark-p3-a-11: color(display-p3 .535 .807 .542);--colors-grass-dark-p3-a-12: color(display-p3 .797 .936 .776);--colors-grass-a-1: var(--colors-grass-light-a-1);--colors-grass-a-2: var(--colors-grass-light-a-2);--colors-grass-a-3: var(--colors-grass-light-a-3);--colors-grass-a-4: var(--colors-grass-light-a-4);--colors-grass-a-5: var(--colors-grass-light-a-5);--colors-grass-a-6: var(--colors-grass-light-a-6);--colors-grass-a-7: var(--colors-grass-light-a-7);--colors-grass-a-8: var(--colors-grass-light-a-8);--colors-grass-a-9: var(--colors-grass-light-a-9);--colors-grass-a-10: var(--colors-grass-light-a-10);--colors-grass-a-11: var(--colors-grass-light-a-11);--colors-grass-a-12: var(--colors-grass-light-a-12);--colors-grass-p3-1: var(--colors-grass-light-p3-1);--colors-grass-p3-2: var(--colors-grass-light-p3-2);--colors-grass-p3-3: var(--colors-grass-light-p3-3);--colors-grass-p3-4: var(--colors-grass-light-p3-4);--colors-grass-p3-5: var(--colors-grass-light-p3-5);--colors-grass-p3-6: var(--colors-grass-light-p3-6);--colors-grass-p3-7: var(--colors-grass-light-p3-7);--colors-grass-p3-8: var(--colors-grass-light-p3-8);--colors-grass-p3-9: var(--colors-grass-light-p3-9);--colors-grass-p3-10: var(--colors-grass-light-p3-10);--colors-grass-p3-11: var(--colors-grass-light-p3-11);--colors-grass-p3-12: var(--colors-grass-light-p3-12);--colors-grass-p3-a-1: var(--colors-grass-light-p3-a-1);--colors-grass-p3-a-2: var(--colors-grass-light-p3-a-2);--colors-grass-p3-a-3: var(--colors-grass-light-p3-a-3);--colors-grass-p3-a-4: var(--colors-grass-light-p3-a-4);--colors-grass-p3-a-5: var(--colors-grass-light-p3-a-5);--colors-grass-p3-a-6: var(--colors-grass-light-p3-a-6);--colors-grass-p3-a-7: var(--colors-grass-light-p3-a-7);--colors-grass-p3-a-8: var(--colors-grass-light-p3-a-8);--colors-grass-p3-a-9: var(--colors-grass-light-p3-a-9);--colors-grass-p3-a-10: var(--colors-grass-light-p3-a-10);--colors-grass-p3-a-11: var(--colors-grass-light-p3-a-11);--colors-grass-p3-a-12: var(--colors-grass-light-p3-a-12);--colors-indigo-1: var(--colors-indigo-light-1);--colors-indigo-2: var(--colors-indigo-light-2);--colors-indigo-3: var(--colors-indigo-light-3);--colors-indigo-4: var(--colors-indigo-light-4);--colors-indigo-5: var(--colors-indigo-light-5);--colors-indigo-6: var(--colors-indigo-light-6);--colors-indigo-7: var(--colors-indigo-light-7);--colors-indigo-8: var(--colors-indigo-light-8);--colors-indigo-9: var(--colors-indigo-light-9);--colors-indigo-10: var(--colors-indigo-light-10);--colors-indigo-11: var(--colors-indigo-light-11);--colors-indigo-12: var(--colors-indigo-light-12);--colors-indigo-light-1: #fdfdfe;--colors-indigo-light-2: #f7f9ff;--colors-indigo-light-3: #edf2fe;--colors-indigo-light-4: #e1e9ff;--colors-indigo-light-5: #d2deff;--colors-indigo-light-6: #c1d0ff;--colors-indigo-light-7: #abbdf9;--colors-indigo-light-8: #8da4ef;--colors-indigo-light-9: #3e63dd;--colors-indigo-light-10: #3358d4;--colors-indigo-light-11: #3a5bc7;--colors-indigo-light-12: #1f2d5c;--colors-indigo-light-a-1: #00008002;--colors-indigo-light-a-2: #0040ff08;--colors-indigo-light-a-3: #0047f112;--colors-indigo-light-a-4: #0044ff1e;--colors-indigo-light-a-5: #0044ff2d;--colors-indigo-light-a-6: #003eff3e;--colors-indigo-light-a-7: #0037ed54;--colors-indigo-light-a-8: #0034dc72;--colors-indigo-light-a-9: #0031d2c1;--colors-indigo-light-a-10: #002ec9cc;--colors-indigo-light-a-11: #002bb7c5;--colors-indigo-light-a-12: #001046e0;--colors-indigo-light-p3-1: color(display-p3 .992 .992 .996);--colors-indigo-light-p3-2: color(display-p3 .971 .977 .998);--colors-indigo-light-p3-3: color(display-p3 .933 .948 .992);--colors-indigo-light-p3-4: color(display-p3 .885 .914 1);--colors-indigo-light-p3-5: color(display-p3 .831 .87 1);--colors-indigo-light-p3-6: color(display-p3 .767 .814 .995);--colors-indigo-light-p3-7: color(display-p3 .685 .74 .957);--colors-indigo-light-p3-8: color(display-p3 .569 .639 .916);--colors-indigo-light-p3-9: color(display-p3 .276 .384 .837);--colors-indigo-light-p3-10: color(display-p3 .234 .343 .801);--colors-indigo-light-p3-11: color(display-p3 .256 .354 .755);--colors-indigo-light-p3-12: color(display-p3 .133 .175 .348);--colors-indigo-light-p3-a-1: color(display-p3 .02 .02 .51 / .008);--colors-indigo-light-p3-a-2: color(display-p3 .024 .161 .863 / .028);--colors-indigo-light-p3-a-3: color(display-p3 .008 .239 .886 / .067);--colors-indigo-light-p3-a-4: color(display-p3 .004 .247 1 / .114);--colors-indigo-light-p3-a-5: color(display-p3 .004 .235 1 / .169);--colors-indigo-light-p3-a-6: color(display-p3 .004 .208 .984 / .232);--colors-indigo-light-p3-a-7: color(display-p3 .004 .176 .863 / .314);--colors-indigo-light-p3-a-8: color(display-p3 .004 .165 .812 / .432);--colors-indigo-light-p3-a-9: color(display-p3 0 .153 .773 / .726);--colors-indigo-light-p3-a-10: color(display-p3 0 .137 .737 / .765);--colors-indigo-light-p3-a-11: color(display-p3 .256 .354 .755);--colors-indigo-light-p3-a-12: color(display-p3 .133 .175 .348);--colors-indigo-dark-1: #11131f;--colors-indigo-dark-2: #141726;--colors-indigo-dark-3: #182449;--colors-indigo-dark-4: #1d2e62;--colors-indigo-dark-5: #253974;--colors-indigo-dark-6: #304384;--colors-indigo-dark-7: #3a4f97;--colors-indigo-dark-8: #435db1;--colors-indigo-dark-9: #3e63dd;--colors-indigo-dark-10: #5472e4;--colors-indigo-dark-11: #9eb1ff;--colors-indigo-dark-12: #d6e1ff;--colors-indigo-dark-a-1: #1133ff0f;--colors-indigo-dark-a-2: #3354fa17;--colors-indigo-dark-a-3: #2f62ff3c;--colors-indigo-dark-a-4: #3566ff57;--colors-indigo-dark-a-5: #4171fd6b;--colors-indigo-dark-a-6: #5178fd7c;--colors-indigo-dark-a-7: #5a7fff90;--colors-indigo-dark-a-8: #5b81feac;--colors-indigo-dark-a-9: #4671ffdb;--colors-indigo-dark-a-10: #5c7efee3;--colors-indigo-dark-a-11: #9eb1ff;--colors-indigo-dark-a-12: #d6e1ff;--colors-indigo-dark-p3-1: color(display-p3 .068 .074 .118);--colors-indigo-dark-p3-2: color(display-p3 .081 .089 .144);--colors-indigo-dark-p3-3: color(display-p3 .105 .141 .275);--colors-indigo-dark-p3-4: color(display-p3 .129 .18 .369);--colors-indigo-dark-p3-5: color(display-p3 .163 .22 .439);--colors-indigo-dark-p3-6: color(display-p3 .203 .262 .5);--colors-indigo-dark-p3-7: color(display-p3 .245 .309 .575);--colors-indigo-dark-p3-8: color(display-p3 .285 .362 .674);--colors-indigo-dark-p3-9: color(display-p3 .276 .384 .837);--colors-indigo-dark-p3-10: color(display-p3 .354 .445 .866);--colors-indigo-dark-p3-11: color(display-p3 .63 .69 1);--colors-indigo-dark-p3-12: color(display-p3 .848 .881 .99);--colors-indigo-dark-p3-a-1: color(display-p3 .071 .212 .996 / .055);--colors-indigo-dark-p3-a-2: color(display-p3 .251 .345 .988 / .085);--colors-indigo-dark-p3-a-3: color(display-p3 .243 .404 1 / .223);--colors-indigo-dark-p3-a-4: color(display-p3 .263 .42 1 / .324);--colors-indigo-dark-p3-a-5: color(display-p3 .314 .451 1 / .4);--colors-indigo-dark-p3-a-6: color(display-p3 .361 .49 1 / .467);--colors-indigo-dark-p3-a-7: color(display-p3 .388 .51 1 / .547);--colors-indigo-dark-p3-a-8: color(display-p3 .404 .518 1 / .652);--colors-indigo-dark-p3-a-9: color(display-p3 .318 .451 1 / .824);--colors-indigo-dark-p3-a-10: color(display-p3 .404 .506 1 / .858);--colors-indigo-dark-p3-a-11: color(display-p3 .63 .69 1);--colors-indigo-dark-p3-a-12: color(display-p3 .848 .881 .99);--colors-indigo-a-1: var(--colors-indigo-light-a-1);--colors-indigo-a-2: var(--colors-indigo-light-a-2);--colors-indigo-a-3: var(--colors-indigo-light-a-3);--colors-indigo-a-4: var(--colors-indigo-light-a-4);--colors-indigo-a-5: var(--colors-indigo-light-a-5);--colors-indigo-a-6: var(--colors-indigo-light-a-6);--colors-indigo-a-7: var(--colors-indigo-light-a-7);--colors-indigo-a-8: var(--colors-indigo-light-a-8);--colors-indigo-a-9: var(--colors-indigo-light-a-9);--colors-indigo-a-10: var(--colors-indigo-light-a-10);--colors-indigo-a-11: var(--colors-indigo-light-a-11);--colors-indigo-a-12: var(--colors-indigo-light-a-12);--colors-indigo-p3-1: var(--colors-indigo-light-p3-1);--colors-indigo-p3-2: var(--colors-indigo-light-p3-2);--colors-indigo-p3-3: var(--colors-indigo-light-p3-3);--colors-indigo-p3-4: var(--colors-indigo-light-p3-4);--colors-indigo-p3-5: var(--colors-indigo-light-p3-5);--colors-indigo-p3-6: var(--colors-indigo-light-p3-6);--colors-indigo-p3-7: var(--colors-indigo-light-p3-7);--colors-indigo-p3-8: var(--colors-indigo-light-p3-8);--colors-indigo-p3-9: var(--colors-indigo-light-p3-9);--colors-indigo-p3-10: var(--colors-indigo-light-p3-10);--colors-indigo-p3-11: var(--colors-indigo-light-p3-11);--colors-indigo-p3-12: var(--colors-indigo-light-p3-12);--colors-indigo-p3-a-1: var(--colors-indigo-light-p3-a-1);--colors-indigo-p3-a-2: var(--colors-indigo-light-p3-a-2);--colors-indigo-p3-a-3: var(--colors-indigo-light-p3-a-3);--colors-indigo-p3-a-4: var(--colors-indigo-light-p3-a-4);--colors-indigo-p3-a-5: var(--colors-indigo-light-p3-a-5);--colors-indigo-p3-a-6: var(--colors-indigo-light-p3-a-6);--colors-indigo-p3-a-7: var(--colors-indigo-light-p3-a-7);--colors-indigo-p3-a-8: var(--colors-indigo-light-p3-a-8);--colors-indigo-p3-a-9: var(--colors-indigo-light-p3-a-9);--colors-indigo-p3-a-10: var(--colors-indigo-light-p3-a-10);--colors-indigo-p3-a-11: var(--colors-indigo-light-p3-a-11);--colors-indigo-p3-a-12: var(--colors-indigo-light-p3-a-12);--colors-lime-1: var(--colors-lime-light-1);--colors-lime-2: var(--colors-lime-light-2);--colors-lime-3: var(--colors-lime-light-3);--colors-lime-4: var(--colors-lime-light-4);--colors-lime-5: var(--colors-lime-light-5);--colors-lime-6: var(--colors-lime-light-6);--colors-lime-7: var(--colors-lime-light-7);--colors-lime-8: var(--colors-lime-light-8);--colors-lime-9: var(--colors-lime-light-9);--colors-lime-10: var(--colors-lime-light-10);--colors-lime-11: var(--colors-lime-light-11);--colors-lime-12: var(--colors-lime-light-12);--colors-lime-light-1: #fcfdfa;--colors-lime-light-2: #f8faf3;--colors-lime-light-3: #eef6d6;--colors-lime-light-4: #e2f0bd;--colors-lime-light-5: #d3e7a6;--colors-lime-light-6: #c2da91;--colors-lime-light-7: #abc978;--colors-lime-light-8: #8db654;--colors-lime-light-9: #bdee63;--colors-lime-light-10: #b0e64c;--colors-lime-light-11: #5c7c2f;--colors-lime-light-12: #37401c;--colors-lime-light-a-1: #66990005;--colors-lime-light-a-2: #6b95000c;--colors-lime-light-a-3: #96c80029;--colors-lime-light-a-4: #8fc60042;--colors-lime-light-a-5: #81bb0059;--colors-lime-light-a-6: #72aa006e;--colors-lime-light-a-7: #61990087;--colors-lime-light-a-8: #559200ab;--colors-lime-light-a-9: #93e4009c;--colors-lime-light-a-10: #8fdc00b3;--colors-lime-light-a-11: #375f00d0;--colors-lime-light-a-12: #1e2900e3;--colors-lime-light-p3-1: color(display-p3 .989 .992 .981);--colors-lime-light-p3-2: color(display-p3 .975 .98 .954);--colors-lime-light-p3-3: color(display-p3 .939 .965 .851);--colors-lime-light-p3-4: color(display-p3 .896 .94 .76);--colors-lime-light-p3-5: color(display-p3 .843 .903 .678);--colors-lime-light-p3-6: color(display-p3 .778 .852 .599);--colors-lime-light-p3-7: color(display-p3 .694 .784 .508);--colors-lime-light-p3-8: color(display-p3 .585 .707 .378);--colors-lime-light-p3-9: color(display-p3 .78 .928 .466);--colors-lime-light-p3-10: color(display-p3 .734 .896 .397);--colors-lime-light-p3-11: color(display-p3 .386 .482 .227);--colors-lime-light-p3-12: color(display-p3 .222 .25 .128);--colors-lime-light-p3-a-1: color(display-p3 .412 .608 .02 / .02);--colors-lime-light-p3-a-2: color(display-p3 .514 .592 .024 / .048);--colors-lime-light-p3-a-3: color(display-p3 .584 .765 .008 / .15);--colors-lime-light-p3-a-4: color(display-p3 .561 .757 .004 / .24);--colors-lime-light-p3-a-5: color(display-p3 .514 .698 .004 / .322);--colors-lime-light-p3-a-6: color(display-p3 .443 .627 0 / .4);--colors-lime-light-p3-a-7: color(display-p3 .376 .561 .004 / .491);--colors-lime-light-p3-a-8: color(display-p3 .333 .529 0 / .624);--colors-lime-light-p3-a-9: color(display-p3 .588 .867 0 / .534);--colors-lime-light-p3-a-10: color(display-p3 .561 .827 0 / .604);--colors-lime-light-p3-a-11: color(display-p3 .386 .482 .227);--colors-lime-light-p3-a-12: color(display-p3 .222 .25 .128);--colors-lime-dark-1: #11130c;--colors-lime-dark-2: #151a10;--colors-lime-dark-3: #1f2917;--colors-lime-dark-4: #29371d;--colors-lime-dark-5: #334423;--colors-lime-dark-6: #3d522a;--colors-lime-dark-7: #496231;--colors-lime-dark-8: #577538;--colors-lime-dark-9: #bdee63;--colors-lime-dark-10: #d4ff70;--colors-lime-dark-11: #bde56c;--colors-lime-dark-12: #e3f7ba;--colors-lime-dark-a-1: #11bb0003;--colors-lime-dark-a-2: #78f7000a;--colors-lime-dark-a-3: #9bfd4c1a;--colors-lime-dark-a-4: #a7fe5c29;--colors-lime-dark-a-5: #affe6537;--colors-lime-dark-a-6: #b2fe6d46;--colors-lime-dark-a-7: #b6ff6f57;--colors-lime-dark-a-8: #b6fd6d6c;--colors-lime-dark-a-9: #caff69ed;--colors-lime-dark-a-10: #d4ff70;--colors-lime-dark-a-11: #d1fe77e4;--colors-lime-dark-a-12: #e9febff7;--colors-lime-dark-p3-1: color(display-p3 .067 .073 .048);--colors-lime-dark-p3-2: color(display-p3 .086 .1 .067);--colors-lime-dark-p3-3: color(display-p3 .13 .16 .099);--colors-lime-dark-p3-4: color(display-p3 .172 .214 .126);--colors-lime-dark-p3-5: color(display-p3 .213 .266 .153);--colors-lime-dark-p3-6: color(display-p3 .257 .321 .182);--colors-lime-dark-p3-7: color(display-p3 .307 .383 .215);--colors-lime-dark-p3-8: color(display-p3 .365 .456 .25);--colors-lime-dark-p3-9: color(display-p3 .78 .928 .466);--colors-lime-dark-p3-10: color(display-p3 .865 .995 .519);--colors-lime-dark-p3-11: color(display-p3 .771 .893 .485);--colors-lime-dark-p3-12: color(display-p3 .905 .966 .753);--colors-lime-dark-p3-a-1: color(display-p3 .067 .941 0 / .009);--colors-lime-dark-p3-a-2: color(display-p3 .584 .996 .071 / .038);--colors-lime-dark-p3-a-3: color(display-p3 .69 1 .38 / .101);--colors-lime-dark-p3-a-4: color(display-p3 .729 1 .435 / .16);--colors-lime-dark-p3-a-5: color(display-p3 .745 1 .471 / .215);--colors-lime-dark-p3-a-6: color(display-p3 .769 1 .482 / .274);--colors-lime-dark-p3-a-7: color(display-p3 .769 1 .506 / .341);--colors-lime-dark-p3-a-8: color(display-p3 .784 1 .51 / .416);--colors-lime-dark-p3-a-9: color(display-p3 .839 1 .502 / .925);--colors-lime-dark-p3-a-10: color(display-p3 .871 1 .522 / .996);--colors-lime-dark-p3-a-11: color(display-p3 .771 .893 .485);--colors-lime-dark-p3-a-12: color(display-p3 .905 .966 .753);--colors-lime-a-1: var(--colors-lime-light-a-1);--colors-lime-a-2: var(--colors-lime-light-a-2);--colors-lime-a-3: var(--colors-lime-light-a-3);--colors-lime-a-4: var(--colors-lime-light-a-4);--colors-lime-a-5: var(--colors-lime-light-a-5);--colors-lime-a-6: var(--colors-lime-light-a-6);--colors-lime-a-7: var(--colors-lime-light-a-7);--colors-lime-a-8: var(--colors-lime-light-a-8);--colors-lime-a-9: var(--colors-lime-light-a-9);--colors-lime-a-10: var(--colors-lime-light-a-10);--colors-lime-a-11: var(--colors-lime-light-a-11);--colors-lime-a-12: var(--colors-lime-light-a-12);--colors-lime-p3-1: var(--colors-lime-light-p3-1);--colors-lime-p3-2: var(--colors-lime-light-p3-2);--colors-lime-p3-3: var(--colors-lime-light-p3-3);--colors-lime-p3-4: var(--colors-lime-light-p3-4);--colors-lime-p3-5: var(--colors-lime-light-p3-5);--colors-lime-p3-6: var(--colors-lime-light-p3-6);--colors-lime-p3-7: var(--colors-lime-light-p3-7);--colors-lime-p3-8: var(--colors-lime-light-p3-8);--colors-lime-p3-9: var(--colors-lime-light-p3-9);--colors-lime-p3-10: var(--colors-lime-light-p3-10);--colors-lime-p3-11: var(--colors-lime-light-p3-11);--colors-lime-p3-12: var(--colors-lime-light-p3-12);--colors-lime-p3-a-1: var(--colors-lime-light-p3-a-1);--colors-lime-p3-a-2: var(--colors-lime-light-p3-a-2);--colors-lime-p3-a-3: var(--colors-lime-light-p3-a-3);--colors-lime-p3-a-4: var(--colors-lime-light-p3-a-4);--colors-lime-p3-a-5: var(--colors-lime-light-p3-a-5);--colors-lime-p3-a-6: var(--colors-lime-light-p3-a-6);--colors-lime-p3-a-7: var(--colors-lime-light-p3-a-7);--colors-lime-p3-a-8: var(--colors-lime-light-p3-a-8);--colors-lime-p3-a-9: var(--colors-lime-light-p3-a-9);--colors-lime-p3-a-10: var(--colors-lime-light-p3-a-10);--colors-lime-p3-a-11: var(--colors-lime-light-p3-a-11);--colors-lime-p3-a-12: var(--colors-lime-light-p3-a-12);--colors-orange-1: var(--colors-orange-light-1);--colors-orange-2: var(--colors-orange-light-2);--colors-orange-3: var(--colors-orange-light-3);--colors-orange-4: var(--colors-orange-light-4);--colors-orange-5: var(--colors-orange-light-5);--colors-orange-6: var(--colors-orange-light-6);--colors-orange-7: var(--colors-orange-light-7);--colors-orange-8: var(--colors-orange-light-8);--colors-orange-9: var(--colors-orange-light-9);--colors-orange-10: var(--colors-orange-light-10);--colors-orange-11: var(--colors-orange-light-11);--colors-orange-12: var(--colors-orange-light-12);--colors-orange-light-1: #fefcfb;--colors-orange-light-2: #fff7ed;--colors-orange-light-3: #ffefd6;--colors-orange-light-4: #ffdfb5;--colors-orange-light-5: #ffd19a;--colors-orange-light-6: #ffc182;--colors-orange-light-7: #f5ae73;--colors-orange-light-8: #ec9455;--colors-orange-light-9: #f76b15;--colors-orange-light-10: #ef5f00;--colors-orange-light-11: #cc4e00;--colors-orange-light-12: #582d1d;--colors-orange-light-a-1: #c0400004;--colors-orange-light-a-2: #ff8e0012;--colors-orange-light-a-3: #ff9c0029;--colors-orange-light-a-4: #ff91014a;--colors-orange-light-a-5: #ff8b0065;--colors-orange-light-a-6: #ff81007d;--colors-orange-light-a-7: #ed6c008c;--colors-orange-light-a-8: #e35f00aa;--colors-orange-light-a-9: #f65e00ea;--colors-orange-light-a-10: #ef5f00;--colors-orange-light-a-11: #cc4e00;--colors-orange-light-a-12: #431200e2;--colors-orange-light-p3-1: color(display-p3 .995 .988 .985);--colors-orange-light-p3-2: color(display-p3 .994 .968 .934);--colors-orange-light-p3-3: color(display-p3 .989 .938 .85);--colors-orange-light-p3-4: color(display-p3 1 .874 .687);--colors-orange-light-p3-5: color(display-p3 1 .821 .583);--colors-orange-light-p3-6: color(display-p3 .975 .767 .545);--colors-orange-light-p3-7: color(display-p3 .919 .693 .486);--colors-orange-light-p3-8: color(display-p3 .877 .597 .379);--colors-orange-light-p3-9: color(display-p3 .9 .45 .2);--colors-orange-light-p3-10: color(display-p3 .87 .409 .164);--colors-orange-light-p3-11: color(display-p3 .76 .34 0);--colors-orange-light-p3-12: color(display-p3 .323 .185 .127);--colors-orange-light-p3-a-1: color(display-p3 .757 .267 .024 / .016);--colors-orange-light-p3-a-2: color(display-p3 .886 .533 .008 / .067);--colors-orange-light-p3-a-3: color(display-p3 .922 .584 .008 / .15);--colors-orange-light-p3-a-4: color(display-p3 1 .604 .004 / .314);--colors-orange-light-p3-a-5: color(display-p3 1 .569 .004 / .416);--colors-orange-light-p3-a-6: color(display-p3 .949 .494 .004 / .455);--colors-orange-light-p3-a-7: color(display-p3 .839 .408 0 / .514);--colors-orange-light-p3-a-8: color(display-p3 .804 .349 0 / .62);--colors-orange-light-p3-a-9: color(display-p3 .878 .314 0 / .8);--colors-orange-light-p3-a-10: color(display-p3 .843 .29 0 / .836);--colors-orange-light-p3-a-11: color(display-p3 .76 .34 0);--colors-orange-light-p3-a-12: color(display-p3 .323 .185 .127);--colors-orange-dark-1: #17120e;--colors-orange-dark-2: #1e160f;--colors-orange-dark-3: #331e0b;--colors-orange-dark-4: #462100;--colors-orange-dark-5: #562800;--colors-orange-dark-6: #66350c;--colors-orange-dark-7: #7e451d;--colors-orange-dark-8: #a35829;--colors-orange-dark-9: #f76b15;--colors-orange-dark-10: #ff801f;--colors-orange-dark-11: #ffa057;--colors-orange-dark-12: #ffe0c2;--colors-orange-dark-a-1: #ec360007;--colors-orange-dark-a-2: #fe6d000e;--colors-orange-dark-a-3: #fb6a0025;--colors-orange-dark-a-4: #ff590039;--colors-orange-dark-a-5: #ff61004a;--colors-orange-dark-a-6: #fd75045c;--colors-orange-dark-a-7: #ff832c75;--colors-orange-dark-a-8: #fe84389d;--colors-orange-dark-a-9: #fe6d15f7;--colors-orange-dark-a-10: #ff801f;--colors-orange-dark-a-11: #ffa057;--colors-orange-dark-a-12: #ffe0c2;--colors-orange-dark-p3-1: color(display-p3 .088 .07 .057);--colors-orange-dark-p3-2: color(display-p3 .113 .089 .061);--colors-orange-dark-p3-3: color(display-p3 .189 .12 .056);--colors-orange-dark-p3-4: color(display-p3 .262 .132 0);--colors-orange-dark-p3-5: color(display-p3 .315 .168 .016);--colors-orange-dark-p3-6: color(display-p3 .376 .219 .088);--colors-orange-dark-p3-7: color(display-p3 .465 .283 .147);--colors-orange-dark-p3-8: color(display-p3 .601 .359 .201);--colors-orange-dark-p3-9: color(display-p3 .9 .45 .2);--colors-orange-dark-p3-10: color(display-p3 .98 .51 .23);--colors-orange-dark-p3-11: color(display-p3 1 .63 .38);--colors-orange-dark-p3-12: color(display-p3 .98 .883 .775);--colors-orange-dark-p3-a-1: color(display-p3 .961 .247 0 / .022);--colors-orange-dark-p3-a-2: color(display-p3 .992 .529 0 / .051);--colors-orange-dark-p3-a-3: color(display-p3 .996 .486 0 / .131);--colors-orange-dark-p3-a-4: color(display-p3 .996 .384 0 / .211);--colors-orange-dark-p3-a-5: color(display-p3 1 .455 0 / .265);--colors-orange-dark-p3-a-6: color(display-p3 1 .529 .129 / .332);--colors-orange-dark-p3-a-7: color(display-p3 1 .569 .251 / .429);--colors-orange-dark-p3-a-8: color(display-p3 1 .584 .302 / .572);--colors-orange-dark-p3-a-9: color(display-p3 1 .494 .216 / .895);--colors-orange-dark-p3-a-10: color(display-p3 1 .522 .235 / .979);--colors-orange-dark-p3-a-11: color(display-p3 1 .63 .38);--colors-orange-dark-p3-a-12: color(display-p3 .98 .883 .775);--colors-orange-a-1: var(--colors-orange-light-a-1);--colors-orange-a-2: var(--colors-orange-light-a-2);--colors-orange-a-3: var(--colors-orange-light-a-3);--colors-orange-a-4: var(--colors-orange-light-a-4);--colors-orange-a-5: var(--colors-orange-light-a-5);--colors-orange-a-6: var(--colors-orange-light-a-6);--colors-orange-a-7: var(--colors-orange-light-a-7);--colors-orange-a-8: var(--colors-orange-light-a-8);--colors-orange-a-9: var(--colors-orange-light-a-9);--colors-orange-a-10: var(--colors-orange-light-a-10);--colors-orange-a-11: var(--colors-orange-light-a-11);--colors-orange-a-12: var(--colors-orange-light-a-12);--colors-orange-p3-1: var(--colors-orange-light-p3-1);--colors-orange-p3-2: var(--colors-orange-light-p3-2);--colors-orange-p3-3: var(--colors-orange-light-p3-3);--colors-orange-p3-4: var(--colors-orange-light-p3-4);--colors-orange-p3-5: var(--colors-orange-light-p3-5);--colors-orange-p3-6: var(--colors-orange-light-p3-6);--colors-orange-p3-7: var(--colors-orange-light-p3-7);--colors-orange-p3-8: var(--colors-orange-light-p3-8);--colors-orange-p3-9: var(--colors-orange-light-p3-9);--colors-orange-p3-10: var(--colors-orange-light-p3-10);--colors-orange-p3-11: var(--colors-orange-light-p3-11);--colors-orange-p3-12: var(--colors-orange-light-p3-12);--colors-orange-p3-a-1: var(--colors-orange-light-p3-a-1);--colors-orange-p3-a-2: var(--colors-orange-light-p3-a-2);--colors-orange-p3-a-3: var(--colors-orange-light-p3-a-3);--colors-orange-p3-a-4: var(--colors-orange-light-p3-a-4);--colors-orange-p3-a-5: var(--colors-orange-light-p3-a-5);--colors-orange-p3-a-6: var(--colors-orange-light-p3-a-6);--colors-orange-p3-a-7: var(--colors-orange-light-p3-a-7);--colors-orange-p3-a-8: var(--colors-orange-light-p3-a-8);--colors-orange-p3-a-9: var(--colors-orange-light-p3-a-9);--colors-orange-p3-a-10: var(--colors-orange-light-p3-a-10);--colors-orange-p3-a-11: var(--colors-orange-light-p3-a-11);--colors-orange-p3-a-12: var(--colors-orange-light-p3-a-12);--colors-pink-1: var(--colors-pink-light-1);--colors-pink-2: var(--colors-pink-light-2);--colors-pink-3: var(--colors-pink-light-3);--colors-pink-4: var(--colors-pink-light-4);--colors-pink-5: var(--colors-pink-light-5);--colors-pink-6: var(--colors-pink-light-6);--colors-pink-7: var(--colors-pink-light-7);--colors-pink-8: var(--colors-pink-light-8);--colors-pink-9: var(--colors-pink-light-9);--colors-pink-10: var(--colors-pink-light-10);--colors-pink-11: var(--colors-pink-light-11);--colors-pink-12: var(--colors-pink-light-12);--colors-pink-light-1: #fffcfe;--colors-pink-light-2: #fef7fb;--colors-pink-light-3: #fee9f5;--colors-pink-light-4: #fbdcef;--colors-pink-light-5: #f6cee7;--colors-pink-light-6: #efbfdd;--colors-pink-light-7: #e7acd0;--colors-pink-light-8: #dd93c2;--colors-pink-light-9: #d6409f;--colors-pink-light-10: #cf3897;--colors-pink-light-11: #c2298a;--colors-pink-light-12: #651249;--colors-pink-light-a-1: #ff00aa03;--colors-pink-light-a-2: #e0008008;--colors-pink-light-a-3: #f4008c16;--colors-pink-light-a-4: #e2008b23;--colors-pink-light-a-5: #d1008331;--colors-pink-light-a-6: #c0007840;--colors-pink-light-a-7: #b6006f53;--colors-pink-light-a-8: #af006f6c;--colors-pink-light-a-9: #c8007fbf;--colors-pink-light-a-10: #c2007ac7;--colors-pink-light-a-11: #b60074d6;--colors-pink-light-a-12: #59003bed;--colors-pink-light-p3-1: color(display-p3 .998 .989 .996);--colors-pink-light-p3-2: color(display-p3 .992 .97 .985);--colors-pink-light-p3-3: color(display-p3 .981 .917 .96);--colors-pink-light-p3-4: color(display-p3 .963 .867 .932);--colors-pink-light-p3-5: color(display-p3 .939 .815 .899);--colors-pink-light-p3-6: color(display-p3 .907 .756 .859);--colors-pink-light-p3-7: color(display-p3 .869 .683 .81);--colors-pink-light-p3-8: color(display-p3 .825 .59 .751);--colors-pink-light-p3-9: color(display-p3 .775 .297 .61);--colors-pink-light-p3-10: color(display-p3 .748 .27 .581);--colors-pink-light-p3-11: color(display-p3 .698 .219 .528);--colors-pink-light-p3-12: color(display-p3 .363 .101 .279);--colors-pink-light-p3-a-1: color(display-p3 .675 .024 .675 / .012);--colors-pink-light-p3-a-2: color(display-p3 .757 .02 .51 / .032);--colors-pink-light-p3-a-3: color(display-p3 .765 .008 .529 / .083);--colors-pink-light-p3-a-4: color(display-p3 .737 .008 .506 / .134);--colors-pink-light-p3-a-5: color(display-p3 .663 .004 .451 / .185);--colors-pink-light-p3-a-6: color(display-p3 .616 .004 .424 / .244);--colors-pink-light-p3-a-7: color(display-p3 .596 .004 .412 / .318);--colors-pink-light-p3-a-8: color(display-p3 .573 .004 .404 / .412);--colors-pink-light-p3-a-9: color(display-p3 .682 0 .447 / .702);--colors-pink-light-p3-a-10: color(display-p3 .655 0 .424 / .73);--colors-pink-light-p3-a-11: color(display-p3 .698 .219 .528);--colors-pink-light-p3-a-12: color(display-p3 .363 .101 .279);--colors-pink-dark-1: #191117;--colors-pink-dark-2: #21121d;--colors-pink-dark-3: #37172f;--colors-pink-dark-4: #4b143d;--colors-pink-dark-5: #591c47;--colors-pink-dark-6: #692955;--colors-pink-dark-7: #833869;--colors-pink-dark-8: #a84885;--colors-pink-dark-9: #d6409f;--colors-pink-dark-10: #de51a8;--colors-pink-dark-11: #ff8dcc;--colors-pink-dark-12: #fdd1ea;--colors-pink-dark-a-1: #f412bc09;--colors-pink-dark-a-2: #f420bb12;--colors-pink-dark-a-3: #fe37cc29;--colors-pink-dark-a-4: #fc1ec43f;--colors-pink-dark-a-5: #fd35c24e;--colors-pink-dark-a-6: #fd51c75f;--colors-pink-dark-a-7: #fd62c87b;--colors-pink-dark-a-8: #ff68c8a2;--colors-pink-dark-a-9: #fe49bcd4;--colors-pink-dark-a-10: #ff5cc0dc;--colors-pink-dark-a-11: #ff8dcc;--colors-pink-dark-a-12: #ffd3ecfd;--colors-pink-dark-p3-1: color(display-p3 .093 .068 .089);--colors-pink-dark-p3-2: color(display-p3 .121 .073 .11);--colors-pink-dark-p3-3: color(display-p3 .198 .098 .179);--colors-pink-dark-p3-4: color(display-p3 .271 .095 .231);--colors-pink-dark-p3-5: color(display-p3 .32 .127 .273);--colors-pink-dark-p3-6: color(display-p3 .382 .177 .326);--colors-pink-dark-p3-7: color(display-p3 .477 .238 .405);--colors-pink-dark-p3-8: color(display-p3 .612 .304 .51);--colors-pink-dark-p3-9: color(display-p3 .775 .297 .61);--colors-pink-dark-p3-10: color(display-p3 .808 .356 .645);--colors-pink-dark-p3-11: color(display-p3 1 .535 .78);--colors-pink-dark-p3-12: color(display-p3 .964 .826 .912);--colors-pink-dark-p3-a-1: color(display-p3 .984 .071 .855 / .03);--colors-pink-dark-p3-a-2: color(display-p3 1 .2 .8 / .059);--colors-pink-dark-p3-a-3: color(display-p3 1 .294 .886 / .139);--colors-pink-dark-p3-a-4: color(display-p3 1 .192 .82 / .219);--colors-pink-dark-p3-a-5: color(display-p3 1 .282 .827 / .274);--colors-pink-dark-p3-a-6: color(display-p3 1 .396 .835 / .337);--colors-pink-dark-p3-a-7: color(display-p3 1 .459 .831 / .442);--colors-pink-dark-p3-a-8: color(display-p3 1 .478 .827 / .585);--colors-pink-dark-p3-a-9: color(display-p3 1 .373 .784 / .761);--colors-pink-dark-p3-a-10: color(display-p3 1 .435 .792 / .795);--colors-pink-dark-p3-a-11: color(display-p3 1 .535 .78);--colors-pink-dark-p3-a-12: color(display-p3 .964 .826 .912);--colors-pink-a-1: var(--colors-pink-light-a-1);--colors-pink-a-2: var(--colors-pink-light-a-2);--colors-pink-a-3: var(--colors-pink-light-a-3);--colors-pink-a-4: var(--colors-pink-light-a-4);--colors-pink-a-5: var(--colors-pink-light-a-5);--colors-pink-a-6: var(--colors-pink-light-a-6);--colors-pink-a-7: var(--colors-pink-light-a-7);--colors-pink-a-8: var(--colors-pink-light-a-8);--colors-pink-a-9: var(--colors-pink-light-a-9);--colors-pink-a-10: var(--colors-pink-light-a-10);--colors-pink-a-11: var(--colors-pink-light-a-11);--colors-pink-a-12: var(--colors-pink-light-a-12);--colors-pink-p3-1: var(--colors-pink-light-p3-1);--colors-pink-p3-2: var(--colors-pink-light-p3-2);--colors-pink-p3-3: var(--colors-pink-light-p3-3);--colors-pink-p3-4: var(--colors-pink-light-p3-4);--colors-pink-p3-5: var(--colors-pink-light-p3-5);--colors-pink-p3-6: var(--colors-pink-light-p3-6);--colors-pink-p3-7: var(--colors-pink-light-p3-7);--colors-pink-p3-8: var(--colors-pink-light-p3-8);--colors-pink-p3-9: var(--colors-pink-light-p3-9);--colors-pink-p3-10: var(--colors-pink-light-p3-10);--colors-pink-p3-11: var(--colors-pink-light-p3-11);--colors-pink-p3-12: var(--colors-pink-light-p3-12);--colors-pink-p3-a-1: var(--colors-pink-light-p3-a-1);--colors-pink-p3-a-2: var(--colors-pink-light-p3-a-2);--colors-pink-p3-a-3: var(--colors-pink-light-p3-a-3);--colors-pink-p3-a-4: var(--colors-pink-light-p3-a-4);--colors-pink-p3-a-5: var(--colors-pink-light-p3-a-5);--colors-pink-p3-a-6: var(--colors-pink-light-p3-a-6);--colors-pink-p3-a-7: var(--colors-pink-light-p3-a-7);--colors-pink-p3-a-8: var(--colors-pink-light-p3-a-8);--colors-pink-p3-a-9: var(--colors-pink-light-p3-a-9);--colors-pink-p3-a-10: var(--colors-pink-light-p3-a-10);--colors-pink-p3-a-11: var(--colors-pink-light-p3-a-11);--colors-pink-p3-a-12: var(--colors-pink-light-p3-a-12);--colors-purple-1: var(--colors-purple-light-1);--colors-purple-2: var(--colors-purple-light-2);--colors-purple-3: var(--colors-purple-light-3);--colors-purple-4: var(--colors-purple-light-4);--colors-purple-5: var(--colors-purple-light-5);--colors-purple-6: var(--colors-purple-light-6);--colors-purple-7: var(--colors-purple-light-7);--colors-purple-8: var(--colors-purple-light-8);--colors-purple-9: var(--colors-purple-light-9);--colors-purple-10: var(--colors-purple-light-10);--colors-purple-11: var(--colors-purple-light-11);--colors-purple-12: var(--colors-purple-light-12);--colors-purple-light-1: #fefcfe;--colors-purple-light-2: #fbf7fe;--colors-purple-light-3: #f7edfe;--colors-purple-light-4: #f2e2fc;--colors-purple-light-5: #ead5f9;--colors-purple-light-6: #e0c4f4;--colors-purple-light-7: #d1afec;--colors-purple-light-8: #be93e4;--colors-purple-light-9: #8e4ec6;--colors-purple-light-10: #8347b9;--colors-purple-light-11: #8145b5;--colors-purple-light-12: #402060;--colors-purple-light-a-1: #aa00aa03;--colors-purple-light-a-2: #8000e008;--colors-purple-light-a-3: #8e00f112;--colors-purple-light-a-4: #8d00e51d;--colors-purple-light-a-5: #8000db2a;--colors-purple-light-a-6: #7a01d03b;--colors-purple-light-a-7: #6d00c350;--colors-purple-light-a-8: #6600c06c;--colors-purple-light-a-9: #5c00adb1;--colors-purple-light-a-10: #53009eb8;--colors-purple-light-a-11: #52009aba;--colors-purple-light-a-12: #250049df;--colors-purple-light-p3-1: color(display-p3 .995 .988 .996);--colors-purple-light-p3-2: color(display-p3 .983 .971 .993);--colors-purple-light-p3-3: color(display-p3 .963 .931 .989);--colors-purple-light-p3-4: color(display-p3 .937 .888 .981);--colors-purple-light-p3-5: color(display-p3 .904 .837 .966);--colors-purple-light-p3-6: color(display-p3 .86 .774 .942);--colors-purple-light-p3-7: color(display-p3 .799 .69 .91);--colors-purple-light-p3-8: color(display-p3 .719 .583 .874);--colors-purple-light-p3-9: color(display-p3 .523 .318 .751);--colors-purple-light-p3-10: color(display-p3 .483 .289 .7);--colors-purple-light-p3-11: color(display-p3 .473 .281 .687);--colors-purple-light-p3-12: color(display-p3 .234 .132 .363);--colors-purple-light-p3-a-1: color(display-p3 .675 .024 .675 / .012);--colors-purple-light-p3-a-2: color(display-p3 .443 .024 .722 / .028);--colors-purple-light-p3-a-3: color(display-p3 .506 .008 .835 / .071);--colors-purple-light-p3-a-4: color(display-p3 .451 .004 .831 / .114);--colors-purple-light-p3-a-5: color(display-p3 .431 .004 .788 / .165);--colors-purple-light-p3-a-6: color(display-p3 .384 .004 .745 / .228);--colors-purple-light-p3-a-7: color(display-p3 .357 .004 .71 / .31);--colors-purple-light-p3-a-8: color(display-p3 .322 .004 .702 / .416);--colors-purple-light-p3-a-9: color(display-p3 .298 0 .639 / .683);--colors-purple-light-p3-a-10: color(display-p3 .271 0 .58 / .71);--colors-purple-light-p3-a-11: color(display-p3 .473 .281 .687);--colors-purple-light-p3-a-12: color(display-p3 .234 .132 .363);--colors-purple-dark-1: #18111b;--colors-purple-dark-2: #1e1523;--colors-purple-dark-3: #301c3b;--colors-purple-dark-4: #3d224e;--colors-purple-dark-5: #48295c;--colors-purple-dark-6: #54346b;--colors-purple-dark-7: #664282;--colors-purple-dark-8: #8457aa;--colors-purple-dark-9: #8e4ec6;--colors-purple-dark-10: #9a5cd0;--colors-purple-dark-11: #d19dff;--colors-purple-dark-12: #ecd9fa;--colors-purple-dark-a-1: #b412f90b;--colors-purple-dark-a-2: #b744f714;--colors-purple-dark-a-3: #c150ff2d;--colors-purple-dark-a-4: #bb53fd42;--colors-purple-dark-a-5: #be5cfd51;--colors-purple-dark-a-6: #c16dfd61;--colors-purple-dark-a-7: #c378fd7a;--colors-purple-dark-a-8: #c47effa4;--colors-purple-dark-a-9: #b661ffc2;--colors-purple-dark-a-10: #bc6fffcd;--colors-purple-dark-a-11: #d19dff;--colors-purple-dark-a-12: #f1ddfffa;--colors-purple-dark-p3-1: color(display-p3 .09 .068 .103);--colors-purple-dark-p3-2: color(display-p3 .113 .082 .134);--colors-purple-dark-p3-3: color(display-p3 .175 .112 .224);--colors-purple-dark-p3-4: color(display-p3 .224 .137 .297);--colors-purple-dark-p3-5: color(display-p3 .264 .167 .349);--colors-purple-dark-p3-6: color(display-p3 .311 .208 .406);--colors-purple-dark-p3-7: color(display-p3 .381 .266 .496);--colors-purple-dark-p3-8: color(display-p3 .49 .349 .649);--colors-purple-dark-p3-9: color(display-p3 .523 .318 .751);--colors-purple-dark-p3-10: color(display-p3 .57 .373 .791);--colors-purple-dark-p3-11: color(display-p3 .8 .62 1);--colors-purple-dark-p3-12: color(display-p3 .913 .854 .971);--colors-purple-dark-p3-a-1: color(display-p3 .686 .071 .996 / .038);--colors-purple-dark-p3-a-2: color(display-p3 .722 .286 .996 / .072);--colors-purple-dark-p3-a-3: color(display-p3 .718 .349 .996 / .169);--colors-purple-dark-p3-a-4: color(display-p3 .702 .353 1 / .248);--colors-purple-dark-p3-a-5: color(display-p3 .718 .404 1 / .303);--colors-purple-dark-p3-a-6: color(display-p3 .733 .455 1 / .366);--colors-purple-dark-p3-a-7: color(display-p3 .753 .506 1 / .458);--colors-purple-dark-p3-a-8: color(display-p3 .749 .522 1 / .622);--colors-purple-dark-p3-a-9: color(display-p3 .686 .408 1 / .736);--colors-purple-dark-p3-a-10: color(display-p3 .71 .459 1 / .778);--colors-purple-dark-p3-a-11: color(display-p3 .8 .62 1);--colors-purple-dark-p3-a-12: color(display-p3 .913 .854 .971);--colors-purple-a-1: var(--colors-purple-light-a-1);--colors-purple-a-2: var(--colors-purple-light-a-2);--colors-purple-a-3: var(--colors-purple-light-a-3);--colors-purple-a-4: var(--colors-purple-light-a-4);--colors-purple-a-5: var(--colors-purple-light-a-5);--colors-purple-a-6: var(--colors-purple-light-a-6);--colors-purple-a-7: var(--colors-purple-light-a-7);--colors-purple-a-8: var(--colors-purple-light-a-8);--colors-purple-a-9: var(--colors-purple-light-a-9);--colors-purple-a-10: var(--colors-purple-light-a-10);--colors-purple-a-11: var(--colors-purple-light-a-11);--colors-purple-a-12: var(--colors-purple-light-a-12);--colors-purple-p3-1: var(--colors-purple-light-p3-1);--colors-purple-p3-2: var(--colors-purple-light-p3-2);--colors-purple-p3-3: var(--colors-purple-light-p3-3);--colors-purple-p3-4: var(--colors-purple-light-p3-4);--colors-purple-p3-5: var(--colors-purple-light-p3-5);--colors-purple-p3-6: var(--colors-purple-light-p3-6);--colors-purple-p3-7: var(--colors-purple-light-p3-7);--colors-purple-p3-8: var(--colors-purple-light-p3-8);--colors-purple-p3-9: var(--colors-purple-light-p3-9);--colors-purple-p3-10: var(--colors-purple-light-p3-10);--colors-purple-p3-11: var(--colors-purple-light-p3-11);--colors-purple-p3-12: var(--colors-purple-light-p3-12);--colors-purple-p3-a-1: var(--colors-purple-light-p3-a-1);--colors-purple-p3-a-2: var(--colors-purple-light-p3-a-2);--colors-purple-p3-a-3: var(--colors-purple-light-p3-a-3);--colors-purple-p3-a-4: var(--colors-purple-light-p3-a-4);--colors-purple-p3-a-5: var(--colors-purple-light-p3-a-5);--colors-purple-p3-a-6: var(--colors-purple-light-p3-a-6);--colors-purple-p3-a-7: var(--colors-purple-light-p3-a-7);--colors-purple-p3-a-8: var(--colors-purple-light-p3-a-8);--colors-purple-p3-a-9: var(--colors-purple-light-p3-a-9);--colors-purple-p3-a-10: var(--colors-purple-light-p3-a-10);--colors-purple-p3-a-11: var(--colors-purple-light-p3-a-11);--colors-purple-p3-a-12: var(--colors-purple-light-p3-a-12);--colors-red-1: var(--colors-red-light-1);--colors-red-2: var(--colors-red-light-2);--colors-red-3: var(--colors-red-light-3);--colors-red-4: var(--colors-red-light-4);--colors-red-5: var(--colors-red-light-5);--colors-red-6: var(--colors-red-light-6);--colors-red-7: var(--colors-red-light-7);--colors-red-8: var(--colors-red-light-8);--colors-red-9: var(--colors-red-light-9);--colors-red-10: var(--colors-red-light-10);--colors-red-11: var(--colors-red-light-11);--colors-red-12: var(--colors-red-light-12);--colors-red-light-1: #fffcfc;--colors-red-light-2: #fff7f7;--colors-red-light-3: #feebec;--colors-red-light-4: #ffdbdc;--colors-red-light-5: #ffcdce;--colors-red-light-6: #fdbdbe;--colors-red-light-7: #f4a9aa;--colors-red-light-8: #eb8e90;--colors-red-light-9: #e5484d;--colors-red-light-10: #dc3e42;--colors-red-light-11: #ce2c31;--colors-red-light-12: #641723;--colors-red-light-a-1: #ff000003;--colors-red-light-a-2: #ff000008;--colors-red-light-a-3: #f3000d14;--colors-red-light-a-4: #ff000824;--colors-red-light-a-5: #ff000632;--colors-red-light-a-6: #f8000442;--colors-red-light-a-7: #df000356;--colors-red-light-a-8: #d2000571;--colors-red-light-a-9: #db0007b7;--colors-red-light-a-10: #d10005c1;--colors-red-light-a-11: #c40006d3;--colors-red-light-a-12: #55000de8;--colors-red-light-p3-1: color(display-p3 .998 .989 .988);--colors-red-light-p3-2: color(display-p3 .995 .971 .971);--colors-red-light-p3-3: color(display-p3 .985 .925 .925);--colors-red-light-p3-4: color(display-p3 .999 .866 .866);--colors-red-light-p3-5: color(display-p3 .984 .812 .811);--colors-red-light-p3-6: color(display-p3 .955 .751 .749);--colors-red-light-p3-7: color(display-p3 .915 .675 .672);--colors-red-light-p3-8: color(display-p3 .872 .575 .572);--colors-red-light-p3-9: color(display-p3 .83 .329 .324);--colors-red-light-p3-10: color(display-p3 .798 .294 .285);--colors-red-light-p3-11: color(display-p3 .744 .234 .222);--colors-red-light-p3-12: color(display-p3 .36 .115 .143);--colors-red-light-p3-a-1: color(display-p3 .675 .024 .024 / .012);--colors-red-light-p3-a-2: color(display-p3 .863 .024 .024 / .028);--colors-red-light-p3-a-3: color(display-p3 .792 .008 .008 / .075);--colors-red-light-p3-a-4: color(display-p3 1 .008 .008 / .134);--colors-red-light-p3-a-5: color(display-p3 .918 .008 .008 / .189);--colors-red-light-p3-a-6: color(display-p3 .831 .02 .004 / .251);--colors-red-light-p3-a-7: color(display-p3 .741 .016 .004 / .33);--colors-red-light-p3-a-8: color(display-p3 .698 .012 .004 / .428);--colors-red-light-p3-a-9: color(display-p3 .749 .008 0 / .675);--colors-red-light-p3-a-10: color(display-p3 .714 .012 0 / .714);--colors-red-light-p3-a-11: color(display-p3 .744 .234 .222);--colors-red-light-p3-a-12: color(display-p3 .36 .115 .143);--colors-red-dark-1: #191111;--colors-red-dark-2: #201314;--colors-red-dark-3: #3b1219;--colors-red-dark-4: #500f1c;--colors-red-dark-5: #611623;--colors-red-dark-6: #72232d;--colors-red-dark-7: #8c333a;--colors-red-dark-8: #b54548;--colors-red-dark-9: #e5484d;--colors-red-dark-10: #ec5d5e;--colors-red-dark-11: #ff9592;--colors-red-dark-12: #ffd1d9;--colors-red-dark-a-1: #f4121209;--colors-red-dark-a-2: #f22f3e11;--colors-red-dark-a-3: #ff173f2d;--colors-red-dark-a-4: #fe0a3b44;--colors-red-dark-a-5: #ff204756;--colors-red-dark-a-6: #ff3e5668;--colors-red-dark-a-7: #ff536184;--colors-red-dark-a-8: #ff5d61b0;--colors-red-dark-a-9: #fe4e54e4;--colors-red-dark-a-10: #ff6465eb;--colors-red-dark-a-11: #ff9592;--colors-red-dark-a-12: #ffd1d9;--colors-red-dark-p3-1: color(display-p3 .093 .068 .067);--colors-red-dark-p3-2: color(display-p3 .118 .077 .079);--colors-red-dark-p3-3: color(display-p3 .211 .081 .099);--colors-red-dark-p3-4: color(display-p3 .287 .079 .113);--colors-red-dark-p3-5: color(display-p3 .348 .11 .142);--colors-red-dark-p3-6: color(display-p3 .414 .16 .183);--colors-red-dark-p3-7: color(display-p3 .508 .224 .236);--colors-red-dark-p3-8: color(display-p3 .659 .298 .297);--colors-red-dark-p3-9: color(display-p3 .83 .329 .324);--colors-red-dark-p3-10: color(display-p3 .861 .403 .387);--colors-red-dark-p3-11: color(display-p3 1 .57 .55);--colors-red-dark-p3-12: color(display-p3 .971 .826 .852);--colors-red-dark-p3-a-1: color(display-p3 .984 .071 .071 / .03);--colors-red-dark-p3-a-2: color(display-p3 .996 .282 .282 / .055);--colors-red-dark-p3-a-3: color(display-p3 1 .169 .271 / .156);--colors-red-dark-p3-a-4: color(display-p3 1 .118 .267 / .236);--colors-red-dark-p3-a-5: color(display-p3 1 .212 .314 / .303);--colors-red-dark-p3-a-6: color(display-p3 1 .318 .38 / .374);--colors-red-dark-p3-a-7: color(display-p3 1 .4 .424 / .475);--colors-red-dark-p3-a-8: color(display-p3 1 .431 .431 / .635);--colors-red-dark-p3-a-9: color(display-p3 1 .388 .384 / .82);--colors-red-dark-p3-a-10: color(display-p3 1 .463 .447 / .853);--colors-red-dark-p3-a-11: color(display-p3 1 .57 .55);--colors-red-dark-p3-a-12: color(display-p3 .971 .826 .852);--colors-red-a-1: var(--colors-red-light-a-1);--colors-red-a-2: var(--colors-red-light-a-2);--colors-red-a-3: var(--colors-red-light-a-3);--colors-red-a-4: var(--colors-red-light-a-4);--colors-red-a-5: var(--colors-red-light-a-5);--colors-red-a-6: var(--colors-red-light-a-6);--colors-red-a-7: var(--colors-red-light-a-7);--colors-red-a-8: var(--colors-red-light-a-8);--colors-red-a-9: var(--colors-red-light-a-9);--colors-red-a-10: var(--colors-red-light-a-10);--colors-red-a-11: var(--colors-red-light-a-11);--colors-red-a-12: var(--colors-red-light-a-12);--colors-red-p3-1: var(--colors-red-light-p3-1);--colors-red-p3-2: var(--colors-red-light-p3-2);--colors-red-p3-3: var(--colors-red-light-p3-3);--colors-red-p3-4: var(--colors-red-light-p3-4);--colors-red-p3-5: var(--colors-red-light-p3-5);--colors-red-p3-6: var(--colors-red-light-p3-6);--colors-red-p3-7: var(--colors-red-light-p3-7);--colors-red-p3-8: var(--colors-red-light-p3-8);--colors-red-p3-9: var(--colors-red-light-p3-9);--colors-red-p3-10: var(--colors-red-light-p3-10);--colors-red-p3-11: var(--colors-red-light-p3-11);--colors-red-p3-12: var(--colors-red-light-p3-12);--colors-red-p3-a-1: var(--colors-red-light-p3-a-1);--colors-red-p3-a-2: var(--colors-red-light-p3-a-2);--colors-red-p3-a-3: var(--colors-red-light-p3-a-3);--colors-red-p3-a-4: var(--colors-red-light-p3-a-4);--colors-red-p3-a-5: var(--colors-red-light-p3-a-5);--colors-red-p3-a-6: var(--colors-red-light-p3-a-6);--colors-red-p3-a-7: var(--colors-red-light-p3-a-7);--colors-red-p3-a-8: var(--colors-red-light-p3-a-8);--colors-red-p3-a-9: var(--colors-red-light-p3-a-9);--colors-red-p3-a-10: var(--colors-red-light-p3-a-10);--colors-red-p3-a-11: var(--colors-red-light-p3-a-11);--colors-red-p3-a-12: var(--colors-red-light-p3-a-12);--colors-ruby-1: var(--colors-ruby-light-1);--colors-ruby-2: var(--colors-ruby-light-2);--colors-ruby-3: var(--colors-ruby-light-3);--colors-ruby-4: var(--colors-ruby-light-4);--colors-ruby-5: var(--colors-ruby-light-5);--colors-ruby-6: var(--colors-ruby-light-6);--colors-ruby-7: var(--colors-ruby-light-7);--colors-ruby-8: var(--colors-ruby-light-8);--colors-ruby-9: var(--colors-ruby-light-9);--colors-ruby-10: var(--colors-ruby-light-10);--colors-ruby-11: var(--colors-ruby-light-11);--colors-ruby-12: var(--colors-ruby-light-12);--colors-ruby-light-1: #fffcfd;--colors-ruby-light-2: #fff7f8;--colors-ruby-light-3: #feeaed;--colors-ruby-light-4: #ffdce1;--colors-ruby-light-5: #ffced6;--colors-ruby-light-6: #f8bfc8;--colors-ruby-light-7: #efacb8;--colors-ruby-light-8: #e592a3;--colors-ruby-light-9: #e54666;--colors-ruby-light-10: #dc3b5d;--colors-ruby-light-11: #ca244d;--colors-ruby-light-12: #64172b;--colors-ruby-light-a-1: #ff005503;--colors-ruby-light-a-2: #ff002008;--colors-ruby-light-a-3: #f3002515;--colors-ruby-light-a-4: #ff002523;--colors-ruby-light-a-5: #ff002a31;--colors-ruby-light-a-6: #e4002440;--colors-ruby-light-a-7: #ce002553;--colors-ruby-light-a-8: #c300286d;--colors-ruby-light-a-9: #db002cb9;--colors-ruby-light-a-10: #d2002cc4;--colors-ruby-light-a-11: #c10030db;--colors-ruby-light-a-12: #550016e8;--colors-ruby-light-p3-1: color(display-p3 .998 .989 .992);--colors-ruby-light-p3-2: color(display-p3 .995 .971 .974);--colors-ruby-light-p3-3: color(display-p3 .983 .92 .928);--colors-ruby-light-p3-4: color(display-p3 .987 .869 .885);--colors-ruby-light-p3-5: color(display-p3 .968 .817 .839);--colors-ruby-light-p3-6: color(display-p3 .937 .758 .786);--colors-ruby-light-p3-7: color(display-p3 .897 .685 .721);--colors-ruby-light-p3-8: color(display-p3 .851 .588 .639);--colors-ruby-light-p3-9: color(display-p3 .83 .323 .408);--colors-ruby-light-p3-10: color(display-p3 .795 .286 .375);--colors-ruby-light-p3-11: color(display-p3 .728 .211 .311);--colors-ruby-light-p3-12: color(display-p3 .36 .115 .171);--colors-ruby-light-p3-a-1: color(display-p3 .675 .024 .349 / .012);--colors-ruby-light-p3-a-2: color(display-p3 .863 .024 .024 / .028);--colors-ruby-light-p3-a-3: color(display-p3 .804 .008 .11 / .079);--colors-ruby-light-p3-a-4: color(display-p3 .91 .008 .125 / .13);--colors-ruby-light-p3-a-5: color(display-p3 .831 .004 .133 / .185);--colors-ruby-light-p3-a-6: color(display-p3 .745 .004 .118 / .244);--colors-ruby-light-p3-a-7: color(display-p3 .678 .004 .114 / .314);--colors-ruby-light-p3-a-8: color(display-p3 .639 .004 .125 / .412);--colors-ruby-light-p3-a-9: color(display-p3 .753 0 .129 / .679);--colors-ruby-light-p3-a-10: color(display-p3 .714 0 .125 / .714);--colors-ruby-light-p3-a-11: color(display-p3 .728 .211 .311);--colors-ruby-light-p3-a-12: color(display-p3 .36 .115 .171);--colors-ruby-dark-1: #191113;--colors-ruby-dark-2: #1e1517;--colors-ruby-dark-3: #3a141e;--colors-ruby-dark-4: #4e1325;--colors-ruby-dark-5: #5e1a2e;--colors-ruby-dark-6: #6f2539;--colors-ruby-dark-7: #883447;--colors-ruby-dark-8: #b3445a;--colors-ruby-dark-9: #e54666;--colors-ruby-dark-10: #ec5a72;--colors-ruby-dark-11: #ff949d;--colors-ruby-dark-12: #fed2e1;--colors-ruby-dark-a-1: #f4124a09;--colors-ruby-dark-a-2: #fe5a7f0e;--colors-ruby-dark-a-3: #ff235d2c;--colors-ruby-dark-a-4: #fd195e42;--colors-ruby-dark-a-5: #fe2d6b53;--colors-ruby-dark-a-6: #ff447665;--colors-ruby-dark-a-7: #ff577d80;--colors-ruby-dark-a-8: #ff5c7cae;--colors-ruby-dark-a-9: #fe4c70e4;--colors-ruby-dark-a-10: #ff617beb;--colors-ruby-dark-a-11: #ff949d;--colors-ruby-dark-a-12: #ffd3e2fe;--colors-ruby-dark-p3-1: color(display-p3 .093 .068 .074);--colors-ruby-dark-p3-2: color(display-p3 .113 .083 .089);--colors-ruby-dark-p3-3: color(display-p3 .208 .088 .117);--colors-ruby-dark-p3-4: color(display-p3 .279 .092 .147);--colors-ruby-dark-p3-5: color(display-p3 .337 .12 .18);--colors-ruby-dark-p3-6: color(display-p3 .401 .166 .223);--colors-ruby-dark-p3-7: color(display-p3 .495 .224 .281);--colors-ruby-dark-p3-8: color(display-p3 .652 .295 .359);--colors-ruby-dark-p3-9: color(display-p3 .83 .323 .408);--colors-ruby-dark-p3-10: color(display-p3 .857 .392 .455);--colors-ruby-dark-p3-11: color(display-p3 1 .57 .59);--colors-ruby-dark-p3-12: color(display-p3 .968 .83 .88);--colors-ruby-dark-p3-a-1: color(display-p3 .984 .071 .329 / .03);--colors-ruby-dark-p3-a-2: color(display-p3 .992 .376 .529 / .051);--colors-ruby-dark-p3-a-3: color(display-p3 .996 .196 .404 / .152);--colors-ruby-dark-p3-a-4: color(display-p3 1 .173 .416 / .227);--colors-ruby-dark-p3-a-5: color(display-p3 1 .259 .459 / .29);--colors-ruby-dark-p3-a-6: color(display-p3 1 .341 .506 / .358);--colors-ruby-dark-p3-a-7: color(display-p3 1 .412 .541 / .458);--colors-ruby-dark-p3-a-8: color(display-p3 1 .431 .537 / .627);--colors-ruby-dark-p3-a-9: color(display-p3 1 .376 .482 / .82);--colors-ruby-dark-p3-a-10: color(display-p3 1 .447 .522 / .849);--colors-ruby-dark-p3-a-11: color(display-p3 1 .57 .59);--colors-ruby-dark-p3-a-12: color(display-p3 .968 .83 .88);--colors-ruby-a-1: var(--colors-ruby-light-a-1);--colors-ruby-a-2: var(--colors-ruby-light-a-2);--colors-ruby-a-3: var(--colors-ruby-light-a-3);--colors-ruby-a-4: var(--colors-ruby-light-a-4);--colors-ruby-a-5: var(--colors-ruby-light-a-5);--colors-ruby-a-6: var(--colors-ruby-light-a-6);--colors-ruby-a-7: var(--colors-ruby-light-a-7);--colors-ruby-a-8: var(--colors-ruby-light-a-8);--colors-ruby-a-9: var(--colors-ruby-light-a-9);--colors-ruby-a-10: var(--colors-ruby-light-a-10);--colors-ruby-a-11: var(--colors-ruby-light-a-11);--colors-ruby-a-12: var(--colors-ruby-light-a-12);--colors-ruby-p3-1: var(--colors-ruby-light-p3-1);--colors-ruby-p3-2: var(--colors-ruby-light-p3-2);--colors-ruby-p3-3: var(--colors-ruby-light-p3-3);--colors-ruby-p3-4: var(--colors-ruby-light-p3-4);--colors-ruby-p3-5: var(--colors-ruby-light-p3-5);--colors-ruby-p3-6: var(--colors-ruby-light-p3-6);--colors-ruby-p3-7: var(--colors-ruby-light-p3-7);--colors-ruby-p3-8: var(--colors-ruby-light-p3-8);--colors-ruby-p3-9: var(--colors-ruby-light-p3-9);--colors-ruby-p3-10: var(--colors-ruby-light-p3-10);--colors-ruby-p3-11: var(--colors-ruby-light-p3-11);--colors-ruby-p3-12: var(--colors-ruby-light-p3-12);--colors-ruby-p3-a-1: var(--colors-ruby-light-p3-a-1);--colors-ruby-p3-a-2: var(--colors-ruby-light-p3-a-2);--colors-ruby-p3-a-3: var(--colors-ruby-light-p3-a-3);--colors-ruby-p3-a-4: var(--colors-ruby-light-p3-a-4);--colors-ruby-p3-a-5: var(--colors-ruby-light-p3-a-5);--colors-ruby-p3-a-6: var(--colors-ruby-light-p3-a-6);--colors-ruby-p3-a-7: var(--colors-ruby-light-p3-a-7);--colors-ruby-p3-a-8: var(--colors-ruby-light-p3-a-8);--colors-ruby-p3-a-9: var(--colors-ruby-light-p3-a-9);--colors-ruby-p3-a-10: var(--colors-ruby-light-p3-a-10);--colors-ruby-p3-a-11: var(--colors-ruby-light-p3-a-11);--colors-ruby-p3-a-12: var(--colors-ruby-light-p3-a-12);--colors-teal-1: var(--colors-teal-light-1);--colors-teal-2: var(--colors-teal-light-2);--colors-teal-3: var(--colors-teal-light-3);--colors-teal-4: var(--colors-teal-light-4);--colors-teal-5: var(--colors-teal-light-5);--colors-teal-6: var(--colors-teal-light-6);--colors-teal-7: var(--colors-teal-light-7);--colors-teal-8: var(--colors-teal-light-8);--colors-teal-9: var(--colors-teal-light-9);--colors-teal-10: var(--colors-teal-light-10);--colors-teal-11: var(--colors-teal-light-11);--colors-teal-12: var(--colors-teal-light-12);--colors-teal-light-1: #fafefd;--colors-teal-light-2: #f3fbf9;--colors-teal-light-3: #e0f8f3;--colors-teal-light-4: #ccf3ea;--colors-teal-light-5: #b8eae0;--colors-teal-light-6: #a1ded2;--colors-teal-light-7: #83cdc1;--colors-teal-light-8: #53b9ab;--colors-teal-light-9: #12a594;--colors-teal-light-10: #0d9b8a;--colors-teal-light-11: #008573;--colors-teal-light-12: #0d3d38;--colors-teal-light-a-1: #00cc9905;--colors-teal-light-a-2: #00aa800c;--colors-teal-light-a-3: #00c69d1f;--colors-teal-light-a-4: #00c39633;--colors-teal-light-a-5: #00b49047;--colors-teal-light-a-6: #00a6855e;--colors-teal-light-a-7: #0099807c;--colors-teal-light-a-8: #009783ac;--colors-teal-light-a-9: #009e8ced;--colors-teal-light-a-10: #009684f2;--colors-teal-light-a-11: #008573;--colors-teal-light-a-12: #00332df2;--colors-teal-light-p3-1: color(display-p3 .983 .996 .992);--colors-teal-light-p3-2: color(display-p3 .958 .983 .976);--colors-teal-light-p3-3: color(display-p3 .895 .971 .952);--colors-teal-light-p3-4: color(display-p3 .831 .949 .92);--colors-teal-light-p3-5: color(display-p3 .761 .914 .878);--colors-teal-light-p3-6: color(display-p3 .682 .864 .825);--colors-teal-light-p3-7: color(display-p3 .581 .798 .756);--colors-teal-light-p3-8: color(display-p3 .433 .716 .671);--colors-teal-light-p3-9: color(display-p3 .297 .637 .581);--colors-teal-light-p3-10: color(display-p3 .275 .599 .542);--colors-teal-light-p3-11: color(display-p3 .08 .5 .43);--colors-teal-light-p3-12: color(display-p3 .11 .235 .219);--colors-teal-light-p3-a-1: color(display-p3 .024 .757 .514 / .016);--colors-teal-light-p3-a-2: color(display-p3 .02 .647 .467 / .044);--colors-teal-light-p3-a-3: color(display-p3 .004 .741 .557 / .106);--colors-teal-light-p3-a-4: color(display-p3 .004 .702 .537 / .169);--colors-teal-light-p3-a-5: color(display-p3 .004 .643 .494 / .24);--colors-teal-light-p3-a-6: color(display-p3 .004 .569 .447 / .318);--colors-teal-light-p3-a-7: color(display-p3 .004 .518 .424 / .42);--colors-teal-light-p3-a-8: color(display-p3 0 .506 .424 / .569);--colors-teal-light-p3-a-9: color(display-p3 0 .482 .404 / .702);--colors-teal-light-p3-a-10: color(display-p3 0 .451 .369 / .726);--colors-teal-light-p3-a-11: color(display-p3 .08 .5 .43);--colors-teal-light-p3-a-12: color(display-p3 .11 .235 .219);--colors-teal-dark-1: #0d1514;--colors-teal-dark-2: #111c1b;--colors-teal-dark-3: #0d2d2a;--colors-teal-dark-4: #023b37;--colors-teal-dark-5: #084843;--colors-teal-dark-6: #145750;--colors-teal-dark-7: #1c6961;--colors-teal-dark-8: #207e73;--colors-teal-dark-9: #12a594;--colors-teal-dark-10: #0eb39e;--colors-teal-dark-11: #0bd8b6;--colors-teal-dark-12: #adf0dd;--colors-teal-dark-a-1: #00deab05;--colors-teal-dark-a-2: #12fbe60c;--colors-teal-dark-a-3: #00ffe61e;--colors-teal-dark-a-4: #00ffe92d;--colors-teal-dark-a-5: #00ffea3b;--colors-teal-dark-a-6: #1cffe84b;--colors-teal-dark-a-7: #2efde85f;--colors-teal-dark-a-8: #32ffe775;--colors-teal-dark-a-9: #13ffe49f;--colors-teal-dark-a-10: #0dffe0ae;--colors-teal-dark-a-11: #0afed5d6;--colors-teal-dark-a-12: #b8ffebef;--colors-teal-dark-p3-1: color(display-p3 .059 .083 .079);--colors-teal-dark-p3-2: color(display-p3 .075 .11 .107);--colors-teal-dark-p3-3: color(display-p3 .087 .175 .165);--colors-teal-dark-p3-4: color(display-p3 .087 .227 .214);--colors-teal-dark-p3-5: color(display-p3 .12 .277 .261);--colors-teal-dark-p3-6: color(display-p3 .162 .335 .314);--colors-teal-dark-p3-7: color(display-p3 .205 .406 .379);--colors-teal-dark-p3-8: color(display-p3 .245 .489 .453);--colors-teal-dark-p3-9: color(display-p3 .297 .637 .581);--colors-teal-dark-p3-10: color(display-p3 .319 .69 .62);--colors-teal-dark-p3-11: color(display-p3 .388 .835 .719);--colors-teal-dark-p3-12: color(display-p3 .734 .934 .87);--colors-teal-dark-p3-a-1: color(display-p3 0 .992 .761 / .017);--colors-teal-dark-p3-a-2: color(display-p3 .235 .988 .902 / .047);--colors-teal-dark-p3-a-3: color(display-p3 .235 1 .898 / .118);--colors-teal-dark-p3-a-4: color(display-p3 .18 .996 .929 / .173);--colors-teal-dark-p3-a-5: color(display-p3 .31 1 .933 / .227);--colors-teal-dark-p3-a-6: color(display-p3 .396 1 .933 / .286);--colors-teal-dark-p3-a-7: color(display-p3 .443 1 .925 / .366);--colors-teal-dark-p3-a-8: color(display-p3 .459 1 .925 / .454);--colors-teal-dark-p3-a-9: color(display-p3 .443 .996 .906 / .61);--colors-teal-dark-p3-a-10: color(display-p3 .439 .996 .89 / .669);--colors-teal-dark-p3-a-11: color(display-p3 .388 .835 .719);--colors-teal-dark-p3-a-12: color(display-p3 .734 .934 .87);--colors-teal-a-1: var(--colors-teal-light-a-1);--colors-teal-a-2: var(--colors-teal-light-a-2);--colors-teal-a-3: var(--colors-teal-light-a-3);--colors-teal-a-4: var(--colors-teal-light-a-4);--colors-teal-a-5: var(--colors-teal-light-a-5);--colors-teal-a-6: var(--colors-teal-light-a-6);--colors-teal-a-7: var(--colors-teal-light-a-7);--colors-teal-a-8: var(--colors-teal-light-a-8);--colors-teal-a-9: var(--colors-teal-light-a-9);--colors-teal-a-10: var(--colors-teal-light-a-10);--colors-teal-a-11: var(--colors-teal-light-a-11);--colors-teal-a-12: var(--colors-teal-light-a-12);--colors-teal-p3-1: var(--colors-teal-light-p3-1);--colors-teal-p3-2: var(--colors-teal-light-p3-2);--colors-teal-p3-3: var(--colors-teal-light-p3-3);--colors-teal-p3-4: var(--colors-teal-light-p3-4);--colors-teal-p3-5: var(--colors-teal-light-p3-5);--colors-teal-p3-6: var(--colors-teal-light-p3-6);--colors-teal-p3-7: var(--colors-teal-light-p3-7);--colors-teal-p3-8: var(--colors-teal-light-p3-8);--colors-teal-p3-9: var(--colors-teal-light-p3-9);--colors-teal-p3-10: var(--colors-teal-light-p3-10);--colors-teal-p3-11: var(--colors-teal-light-p3-11);--colors-teal-p3-12: var(--colors-teal-light-p3-12);--colors-teal-p3-a-1: var(--colors-teal-light-p3-a-1);--colors-teal-p3-a-2: var(--colors-teal-light-p3-a-2);--colors-teal-p3-a-3: var(--colors-teal-light-p3-a-3);--colors-teal-p3-a-4: var(--colors-teal-light-p3-a-4);--colors-teal-p3-a-5: var(--colors-teal-light-p3-a-5);--colors-teal-p3-a-6: var(--colors-teal-light-p3-a-6);--colors-teal-p3-a-7: var(--colors-teal-light-p3-a-7);--colors-teal-p3-a-8: var(--colors-teal-light-p3-a-8);--colors-teal-p3-a-9: var(--colors-teal-light-p3-a-9);--colors-teal-p3-a-10: var(--colors-teal-light-p3-a-10);--colors-teal-p3-a-11: var(--colors-teal-light-p3-a-11);--colors-teal-p3-a-12: var(--colors-teal-light-p3-a-12);--colors-tomato-1: var(--colors-tomato-light-1);--colors-tomato-2: var(--colors-tomato-light-2);--colors-tomato-3: var(--colors-tomato-light-3);--colors-tomato-4: var(--colors-tomato-light-4);--colors-tomato-5: var(--colors-tomato-light-5);--colors-tomato-6: var(--colors-tomato-light-6);--colors-tomato-7: var(--colors-tomato-light-7);--colors-tomato-8: var(--colors-tomato-light-8);--colors-tomato-9: var(--colors-tomato-light-9);--colors-tomato-10: var(--colors-tomato-light-10);--colors-tomato-11: var(--colors-tomato-light-11);--colors-tomato-12: var(--colors-tomato-light-12);--colors-tomato-light-1: #fffcfc;--colors-tomato-light-2: #fff8f7;--colors-tomato-light-3: #feebe7;--colors-tomato-light-4: #ffdcd3;--colors-tomato-light-5: #ffcdc2;--colors-tomato-light-6: #fdbdaf;--colors-tomato-light-7: #f5a898;--colors-tomato-light-8: #ec8e7b;--colors-tomato-light-9: #e54d2e;--colors-tomato-light-10: #dd4425;--colors-tomato-light-11: #d13415;--colors-tomato-light-12: #5c271f;--colors-tomato-light-a-1: #ff000003;--colors-tomato-light-a-2: #ff200008;--colors-tomato-light-a-3: #f52b0018;--colors-tomato-light-a-4: #ff35002c;--colors-tomato-light-a-5: #ff2e003d;--colors-tomato-light-a-6: #f92d0050;--colors-tomato-light-a-7: #e7280067;--colors-tomato-light-a-8: #db250084;--colors-tomato-light-a-9: #df2600d1;--colors-tomato-light-a-10: #d72400da;--colors-tomato-light-a-11: #cd2200ea;--colors-tomato-light-a-12: #460900e0;--colors-tomato-light-p3-1: color(display-p3 .998 .989 .988);--colors-tomato-light-p3-2: color(display-p3 .994 .974 .969);--colors-tomato-light-p3-3: color(display-p3 .985 .924 .909);--colors-tomato-light-p3-4: color(display-p3 .996 .868 .835);--colors-tomato-light-p3-5: color(display-p3 .98 .812 .77);--colors-tomato-light-p3-6: color(display-p3 .953 .75 .698);--colors-tomato-light-p3-7: color(display-p3 .917 .673 .611);--colors-tomato-light-p3-8: color(display-p3 .875 .575 .502);--colors-tomato-light-p3-9: color(display-p3 .831 .345 .231);--colors-tomato-light-p3-10: color(display-p3 .802 .313 .2);--colors-tomato-light-p3-11: color(display-p3 .755 .259 .152);--colors-tomato-light-p3-12: color(display-p3 .335 .165 .132);--colors-tomato-light-p3-a-1: color(display-p3 .675 .024 .024 / .012);--colors-tomato-light-p3-a-2: color(display-p3 .757 .145 .02 / .032);--colors-tomato-light-p3-a-3: color(display-p3 .831 .184 .012 / .091);--colors-tomato-light-p3-a-4: color(display-p3 .976 .192 .004 / .165);--colors-tomato-light-p3-a-5: color(display-p3 .918 .192 .004 / .232);--colors-tomato-light-p3-a-6: color(display-p3 .847 .173 .004 / .302);--colors-tomato-light-p3-a-7: color(display-p3 .788 .165 .004 / .389);--colors-tomato-light-p3-a-8: color(display-p3 .749 .153 .004 / .499);--colors-tomato-light-p3-a-9: color(display-p3 .78 .149 0 / .769);--colors-tomato-light-p3-a-10: color(display-p3 .757 .141 0 / .8);--colors-tomato-light-p3-a-11: color(display-p3 .755 .259 .152);--colors-tomato-light-p3-a-12: color(display-p3 .335 .165 .132);--colors-tomato-dark-1: #181111;--colors-tomato-dark-2: #1f1513;--colors-tomato-dark-3: #391714;--colors-tomato-dark-4: #4e1511;--colors-tomato-dark-5: #5e1c16;--colors-tomato-dark-6: #6e2920;--colors-tomato-dark-7: #853a2d;--colors-tomato-dark-8: #ac4d39;--colors-tomato-dark-9: #e54d2e;--colors-tomato-dark-10: #ec6142;--colors-tomato-dark-11: #ff977d;--colors-tomato-dark-12: #fbd3cb;--colors-tomato-dark-a-1: #f1121208;--colors-tomato-dark-a-2: #ff55330f;--colors-tomato-dark-a-3: #ff35232b;--colors-tomato-dark-a-4: #fd201142;--colors-tomato-dark-a-5: #fe332153;--colors-tomato-dark-a-6: #ff4f3864;--colors-tomato-dark-a-7: #fd644a7d;--colors-tomato-dark-a-8: #fe6d4ea7;--colors-tomato-dark-a-9: #fe5431e4;--colors-tomato-dark-a-10: #ff6847eb;--colors-tomato-dark-a-11: #ff977d;--colors-tomato-dark-a-12: #ffd6cefb;--colors-tomato-dark-p3-1: color(display-p3 .09 .068 .067);--colors-tomato-dark-p3-2: color(display-p3 .115 .084 .076);--colors-tomato-dark-p3-3: color(display-p3 .205 .097 .083);--colors-tomato-dark-p3-4: color(display-p3 .282 .099 .077);--colors-tomato-dark-p3-5: color(display-p3 .339 .129 .101);--colors-tomato-dark-p3-6: color(display-p3 .398 .179 .141);--colors-tomato-dark-p3-7: color(display-p3 .487 .245 .194);--colors-tomato-dark-p3-8: color(display-p3 .629 .322 .248);--colors-tomato-dark-p3-9: color(display-p3 .831 .345 .231);--colors-tomato-dark-p3-10: color(display-p3 .862 .415 .298);--colors-tomato-dark-p3-11: color(display-p3 1 .585 .455);--colors-tomato-dark-p3-12: color(display-p3 .959 .833 .802);--colors-tomato-dark-p3-a-1: color(display-p3 .973 .071 .071 / .026);--colors-tomato-dark-p3-a-2: color(display-p3 .992 .376 .224 / .051);--colors-tomato-dark-p3-a-3: color(display-p3 .996 .282 .176 / .148);--colors-tomato-dark-p3-a-4: color(display-p3 1 .204 .118 / .232);--colors-tomato-dark-p3-a-5: color(display-p3 1 .286 .192 / .29);--colors-tomato-dark-p3-a-6: color(display-p3 1 .392 .278 / .353);--colors-tomato-dark-p3-a-7: color(display-p3 1 .459 .349 / .45);--colors-tomato-dark-p3-a-8: color(display-p3 1 .49 .369 / .601);--colors-tomato-dark-p3-a-9: color(display-p3 1 .408 .267 / .82);--colors-tomato-dark-p3-a-10: color(display-p3 1 .478 .341 / .853);--colors-tomato-dark-p3-a-11: color(display-p3 1 .585 .455);--colors-tomato-dark-p3-a-12: color(display-p3 .959 .833 .802);--colors-tomato-a-1: var(--colors-tomato-light-a-1);--colors-tomato-a-2: var(--colors-tomato-light-a-2);--colors-tomato-a-3: var(--colors-tomato-light-a-3);--colors-tomato-a-4: var(--colors-tomato-light-a-4);--colors-tomato-a-5: var(--colors-tomato-light-a-5);--colors-tomato-a-6: var(--colors-tomato-light-a-6);--colors-tomato-a-7: var(--colors-tomato-light-a-7);--colors-tomato-a-8: var(--colors-tomato-light-a-8);--colors-tomato-a-9: var(--colors-tomato-light-a-9);--colors-tomato-a-10: var(--colors-tomato-light-a-10);--colors-tomato-a-11: var(--colors-tomato-light-a-11);--colors-tomato-a-12: var(--colors-tomato-light-a-12);--colors-tomato-p3-1: var(--colors-tomato-light-p3-1);--colors-tomato-p3-2: var(--colors-tomato-light-p3-2);--colors-tomato-p3-3: var(--colors-tomato-light-p3-3);--colors-tomato-p3-4: var(--colors-tomato-light-p3-4);--colors-tomato-p3-5: var(--colors-tomato-light-p3-5);--colors-tomato-p3-6: var(--colors-tomato-light-p3-6);--colors-tomato-p3-7: var(--colors-tomato-light-p3-7);--colors-tomato-p3-8: var(--colors-tomato-light-p3-8);--colors-tomato-p3-9: var(--colors-tomato-light-p3-9);--colors-tomato-p3-10: var(--colors-tomato-light-p3-10);--colors-tomato-p3-11: var(--colors-tomato-light-p3-11);--colors-tomato-p3-12: var(--colors-tomato-light-p3-12);--colors-tomato-p3-a-1: var(--colors-tomato-light-p3-a-1);--colors-tomato-p3-a-2: var(--colors-tomato-light-p3-a-2);--colors-tomato-p3-a-3: var(--colors-tomato-light-p3-a-3);--colors-tomato-p3-a-4: var(--colors-tomato-light-p3-a-4);--colors-tomato-p3-a-5: var(--colors-tomato-light-p3-a-5);--colors-tomato-p3-a-6: var(--colors-tomato-light-p3-a-6);--colors-tomato-p3-a-7: var(--colors-tomato-light-p3-a-7);--colors-tomato-p3-a-8: var(--colors-tomato-light-p3-a-8);--colors-tomato-p3-a-9: var(--colors-tomato-light-p3-a-9);--colors-tomato-p3-a-10: var(--colors-tomato-light-p3-a-10);--colors-tomato-p3-a-11: var(--colors-tomato-light-p3-a-11);--colors-tomato-p3-a-12: var(--colors-tomato-light-p3-a-12);--colors-violet-1: var(--colors-violet-light-1);--colors-violet-2: var(--colors-violet-light-2);--colors-violet-3: var(--colors-violet-light-3);--colors-violet-4: var(--colors-violet-light-4);--colors-violet-5: var(--colors-violet-light-5);--colors-violet-6: var(--colors-violet-light-6);--colors-violet-7: var(--colors-violet-light-7);--colors-violet-8: var(--colors-violet-light-8);--colors-violet-9: var(--colors-violet-light-9);--colors-violet-10: var(--colors-violet-light-10);--colors-violet-11: var(--colors-violet-light-11);--colors-violet-12: var(--colors-violet-light-12);--colors-violet-light-1: #fdfcfe;--colors-violet-light-2: #faf8ff;--colors-violet-light-3: #f4f0fe;--colors-violet-light-4: #ebe4ff;--colors-violet-light-5: #e1d9ff;--colors-violet-light-6: #d4cafe;--colors-violet-light-7: #c2b5f5;--colors-violet-light-8: #aa99ec;--colors-violet-light-9: #6e56cf;--colors-violet-light-10: #654dc4;--colors-violet-light-11: #6550b9;--colors-violet-light-12: #2f265f;--colors-violet-light-a-1: #5500aa03;--colors-violet-light-a-2: #4900ff07;--colors-violet-light-a-3: #4400ee0f;--colors-violet-light-a-4: #4300ff1b;--colors-violet-light-a-5: #3600ff26;--colors-violet-light-a-6: #3100fb35;--colors-violet-light-a-7: #2d01dd4a;--colors-violet-light-a-8: #2b00d066;--colors-violet-light-a-9: #2400b7a9;--colors-violet-light-a-10: #2300abb2;--colors-violet-light-a-11: #1f0099af;--colors-violet-light-a-12: #0b0043d9;--colors-violet-light-p3-1: color(display-p3 .991 .988 .995);--colors-violet-light-p3-2: color(display-p3 .978 .974 .998);--colors-violet-light-p3-3: color(display-p3 .953 .943 .993);--colors-violet-light-p3-4: color(display-p3 .916 .897 1);--colors-violet-light-p3-5: color(display-p3 .876 .851 1);--colors-violet-light-p3-6: color(display-p3 .825 .793 .981);--colors-violet-light-p3-7: color(display-p3 .752 .712 .943);--colors-violet-light-p3-8: color(display-p3 .654 .602 .902);--colors-violet-light-p3-9: color(display-p3 .417 .341 .784);--colors-violet-light-p3-10: color(display-p3 .381 .306 .741);--colors-violet-light-p3-11: color(display-p3 .383 .317 .702);--colors-violet-light-p3-12: color(display-p3 .179 .15 .359);--colors-violet-light-p3-a-1: color(display-p3 .349 .024 .675 / .012);--colors-violet-light-p3-a-2: color(display-p3 .161 .024 .863 / .028);--colors-violet-light-p3-a-3: color(display-p3 .204 .004 .871 / .059);--colors-violet-light-p3-a-4: color(display-p3 .196 .004 1 / .102);--colors-violet-light-p3-a-5: color(display-p3 .165 .008 1 / .15);--colors-violet-light-p3-a-6: color(display-p3 .153 .004 .906 / .208);--colors-violet-light-p3-a-7: color(display-p3 .141 .004 .796 / .287);--colors-violet-light-p3-a-8: color(display-p3 .133 .004 .753 / .397);--colors-violet-light-p3-a-9: color(display-p3 .114 0 .675 / .659);--colors-violet-light-p3-a-10: color(display-p3 .11 0 .627 / .695);--colors-violet-light-p3-a-11: color(display-p3 .383 .317 .702);--colors-violet-light-p3-a-12: color(display-p3 .179 .15 .359);--colors-violet-dark-1: #14121f;--colors-violet-dark-2: #1b1525;--colors-violet-dark-3: #291f43;--colors-violet-dark-4: #33255b;--colors-violet-dark-5: #3c2e69;--colors-violet-dark-6: #473876;--colors-violet-dark-7: #56468b;--colors-violet-dark-8: #6958ad;--colors-violet-dark-9: #6e56cf;--colors-violet-dark-10: #7d66d9;--colors-violet-dark-11: #baa7ff;--colors-violet-dark-12: #e2ddfe;--colors-violet-dark-a-1: #4422ff0f;--colors-violet-dark-a-2: #853ff916;--colors-violet-dark-a-3: #8354fe36;--colors-violet-dark-a-4: #7d51fd50;--colors-violet-dark-a-5: #845ffd5f;--colors-violet-dark-a-6: #8f6cfd6d;--colors-violet-dark-a-7: #9879ff83;--colors-violet-dark-a-8: #977dfea8;--colors-violet-dark-a-9: #8668ffcc;--colors-violet-dark-a-10: #9176fed7;--colors-violet-dark-a-11: #baa7ff;--colors-violet-dark-a-12: #e3defffe;--colors-violet-dark-p3-1: color(display-p3 .077 .071 .118);--colors-violet-dark-p3-2: color(display-p3 .101 .084 .141);--colors-violet-dark-p3-3: color(display-p3 .154 .123 .256);--colors-violet-dark-p3-4: color(display-p3 .191 .148 .345);--colors-violet-dark-p3-5: color(display-p3 .226 .182 .396);--colors-violet-dark-p3-6: color(display-p3 .269 .223 .449);--colors-violet-dark-p3-7: color(display-p3 .326 .277 .53);--colors-violet-dark-p3-8: color(display-p3 .399 .346 .656);--colors-violet-dark-p3-9: color(display-p3 .417 .341 .784);--colors-violet-dark-p3-10: color(display-p3 .477 .402 .823);--colors-violet-dark-p3-11: color(display-p3 .72 .65 1);--colors-violet-dark-p3-12: color(display-p3 .883 .867 .986);--colors-violet-dark-p3-a-1: color(display-p3 .282 .141 .996 / .055);--colors-violet-dark-p3-a-2: color(display-p3 .51 .263 1 / .08);--colors-violet-dark-p3-a-3: color(display-p3 .494 .337 .996 / .202);--colors-violet-dark-p3-a-4: color(display-p3 .49 .345 1 / .299);--colors-violet-dark-p3-a-5: color(display-p3 .525 .392 1 / .353);--colors-violet-dark-p3-a-6: color(display-p3 .569 .455 1 / .408);--colors-violet-dark-p3-a-7: color(display-p3 .588 .494 1 / .496);--colors-violet-dark-p3-a-8: color(display-p3 .596 .51 1 / .631);--colors-violet-dark-p3-a-9: color(display-p3 .522 .424 1 / .769);--colors-violet-dark-p3-a-10: color(display-p3 .576 .482 1 / .811);--colors-violet-dark-p3-a-11: color(display-p3 .72 .65 1);--colors-violet-dark-p3-a-12: color(display-p3 .883 .867 .986);--colors-violet-a-1: var(--colors-violet-light-a-1);--colors-violet-a-2: var(--colors-violet-light-a-2);--colors-violet-a-3: var(--colors-violet-light-a-3);--colors-violet-a-4: var(--colors-violet-light-a-4);--colors-violet-a-5: var(--colors-violet-light-a-5);--colors-violet-a-6: var(--colors-violet-light-a-6);--colors-violet-a-7: var(--colors-violet-light-a-7);--colors-violet-a-8: var(--colors-violet-light-a-8);--colors-violet-a-9: var(--colors-violet-light-a-9);--colors-violet-a-10: var(--colors-violet-light-a-10);--colors-violet-a-11: var(--colors-violet-light-a-11);--colors-violet-a-12: var(--colors-violet-light-a-12);--colors-violet-p3-1: var(--colors-violet-light-p3-1);--colors-violet-p3-2: var(--colors-violet-light-p3-2);--colors-violet-p3-3: var(--colors-violet-light-p3-3);--colors-violet-p3-4: var(--colors-violet-light-p3-4);--colors-violet-p3-5: var(--colors-violet-light-p3-5);--colors-violet-p3-6: var(--colors-violet-light-p3-6);--colors-violet-p3-7: var(--colors-violet-light-p3-7);--colors-violet-p3-8: var(--colors-violet-light-p3-8);--colors-violet-p3-9: var(--colors-violet-light-p3-9);--colors-violet-p3-10: var(--colors-violet-light-p3-10);--colors-violet-p3-11: var(--colors-violet-light-p3-11);--colors-violet-p3-12: var(--colors-violet-light-p3-12);--colors-violet-p3-a-1: var(--colors-violet-light-p3-a-1);--colors-violet-p3-a-2: var(--colors-violet-light-p3-a-2);--colors-violet-p3-a-3: var(--colors-violet-light-p3-a-3);--colors-violet-p3-a-4: var(--colors-violet-light-p3-a-4);--colors-violet-p3-a-5: var(--colors-violet-light-p3-a-5);--colors-violet-p3-a-6: var(--colors-violet-light-p3-a-6);--colors-violet-p3-a-7: var(--colors-violet-light-p3-a-7);--colors-violet-p3-a-8: var(--colors-violet-light-p3-a-8);--colors-violet-p3-a-9: var(--colors-violet-light-p3-a-9);--colors-violet-p3-a-10: var(--colors-violet-light-p3-a-10);--colors-violet-p3-a-11: var(--colors-violet-light-p3-a-11);--colors-violet-p3-a-12: var(--colors-violet-light-p3-a-12);--colors-yellow-1: var(--colors-yellow-light-1);--colors-yellow-2: var(--colors-yellow-light-2);--colors-yellow-3: var(--colors-yellow-light-3);--colors-yellow-4: var(--colors-yellow-light-4);--colors-yellow-5: var(--colors-yellow-light-5);--colors-yellow-6: var(--colors-yellow-light-6);--colors-yellow-7: var(--colors-yellow-light-7);--colors-yellow-8: var(--colors-yellow-light-8);--colors-yellow-9: var(--colors-yellow-light-9);--colors-yellow-10: var(--colors-yellow-light-10);--colors-yellow-11: var(--colors-yellow-light-11);--colors-yellow-12: var(--colors-yellow-light-12);--colors-yellow-light-1: #fdfdf9;--colors-yellow-light-2: #fefce9;--colors-yellow-light-3: #fffab8;--colors-yellow-light-4: #fff394;--colors-yellow-light-5: #ffe770;--colors-yellow-light-6: #f3d768;--colors-yellow-light-7: #e4c767;--colors-yellow-light-8: #d5ae39;--colors-yellow-light-9: #ffe629;--colors-yellow-light-10: #ffdc00;--colors-yellow-light-11: #9e6c00;--colors-yellow-light-12: #473b1f;--colors-yellow-light-a-1: #aaaa0006;--colors-yellow-light-a-2: #f4dd0016;--colors-yellow-light-a-3: #ffee0047;--colors-yellow-light-a-4: #ffe3016b;--colors-yellow-light-a-5: #ffd5008f;--colors-yellow-light-a-6: #ebbc0097;--colors-yellow-light-a-7: #d2a10098;--colors-yellow-light-a-8: #c99700c6;--colors-yellow-light-a-9: #ffe100d6;--colors-yellow-light-a-10: #ffdc00;--colors-yellow-light-a-11: #9e6c00;--colors-yellow-light-a-12: #2e2000e0;--colors-yellow-light-p3-1: color(display-p3 .992 .992 .978);--colors-yellow-light-p3-2: color(display-p3 .995 .99 .922);--colors-yellow-light-p3-3: color(display-p3 .997 .982 .749);--colors-yellow-light-p3-4: color(display-p3 .992 .953 .627);--colors-yellow-light-p3-5: color(display-p3 .984 .91 .51);--colors-yellow-light-p3-6: color(display-p3 .934 .847 .474);--colors-yellow-light-p3-7: color(display-p3 .876 .785 .46);--colors-yellow-light-p3-8: color(display-p3 .811 .689 .313);--colors-yellow-light-p3-9: color(display-p3 1 .92 .22);--colors-yellow-light-p3-10: color(display-p3 .977 .868 .291);--colors-yellow-light-p3-11: color(display-p3 .6 .44 0);--colors-yellow-light-p3-12: color(display-p3 .271 .233 .137);--colors-yellow-light-p3-a-1: color(display-p3 .675 .675 .024 / .024);--colors-yellow-light-p3-a-2: color(display-p3 .953 .855 .008 / .079);--colors-yellow-light-p3-a-3: color(display-p3 .988 .925 .004 / .251);--colors-yellow-light-p3-a-4: color(display-p3 .98 .875 .004 / .373);--colors-yellow-light-p3-a-5: color(display-p3 .969 .816 .004 / .491);--colors-yellow-light-p3-a-6: color(display-p3 .875 .71 0 / .526);--colors-yellow-light-p3-a-7: color(display-p3 .769 .604 0 / .542);--colors-yellow-light-p3-a-8: color(display-p3 .725 .549 0 / .687);--colors-yellow-light-p3-a-9: color(display-p3 1 .898 0 / .781);--colors-yellow-light-p3-a-10: color(display-p3 .969 .812 0 / .71);--colors-yellow-light-p3-a-11: color(display-p3 .6 .44 0);--colors-yellow-light-p3-a-12: color(display-p3 .271 .233 .137);--colors-yellow-dark-1: #14120b;--colors-yellow-dark-2: #1b180f;--colors-yellow-dark-3: #2d2305;--colors-yellow-dark-4: #362b00;--colors-yellow-dark-5: #433500;--colors-yellow-dark-6: #524202;--colors-yellow-dark-7: #665417;--colors-yellow-dark-8: #836a21;--colors-yellow-dark-9: #ffe629;--colors-yellow-dark-10: #ffff57;--colors-yellow-dark-11: #f5e147;--colors-yellow-dark-12: #f6eeb4;--colors-yellow-dark-a-1: #d1510004;--colors-yellow-dark-a-2: #f9b4000b;--colors-yellow-dark-a-3: #ffaa001e;--colors-yellow-dark-a-4: #fdb70028;--colors-yellow-dark-a-5: #febb0036;--colors-yellow-dark-a-6: #fec40046;--colors-yellow-dark-a-7: #fdcb225c;--colors-yellow-dark-a-8: #fdca327b;--colors-yellow-dark-a-9: #ffe629;--colors-yellow-dark-a-10: #ffff57;--colors-yellow-dark-a-11: #fee949f5;--colors-yellow-dark-a-12: #fef6baf6;--colors-yellow-dark-p3-1: color(display-p3 .078 .069 .047);--colors-yellow-dark-p3-2: color(display-p3 .103 .094 .063);--colors-yellow-dark-p3-3: color(display-p3 .168 .137 .039);--colors-yellow-dark-p3-4: color(display-p3 .209 .169 0);--colors-yellow-dark-p3-5: color(display-p3 .255 .209 0);--colors-yellow-dark-p3-6: color(display-p3 .31 .261 .07);--colors-yellow-dark-p3-7: color(display-p3 .389 .331 .135);--colors-yellow-dark-p3-8: color(display-p3 .497 .42 .182);--colors-yellow-dark-p3-9: color(display-p3 1 .92 .22);--colors-yellow-dark-p3-10: color(display-p3 1 1 .456);--colors-yellow-dark-p3-11: color(display-p3 .948 .885 .392);--colors-yellow-dark-p3-12: color(display-p3 .959 .934 .731);--colors-yellow-dark-p3-a-1: color(display-p3 .973 .369 0 / .013);--colors-yellow-dark-p3-a-2: color(display-p3 .996 .792 0 / .038);--colors-yellow-dark-p3-a-3: color(display-p3 .996 .71 0 / .11);--colors-yellow-dark-p3-a-4: color(display-p3 .996 .741 0 / .152);--colors-yellow-dark-p3-a-5: color(display-p3 .996 .765 0 / .202);--colors-yellow-dark-p3-a-6: color(display-p3 .996 .816 .082 / .261);--colors-yellow-dark-p3-a-7: color(display-p3 1 .831 .263 / .345);--colors-yellow-dark-p3-a-8: color(display-p3 1 .831 .314 / .463);--colors-yellow-dark-p3-a-9: color(display-p3 1 .922 .22);--colors-yellow-dark-p3-a-10: color(display-p3 1 1 .455);--colors-yellow-dark-p3-a-11: color(display-p3 .948 .885 .392);--colors-yellow-dark-p3-a-12: color(display-p3 .959 .934 .731);--colors-yellow-a-1: var(--colors-yellow-light-a-1);--colors-yellow-a-2: var(--colors-yellow-light-a-2);--colors-yellow-a-3: var(--colors-yellow-light-a-3);--colors-yellow-a-4: var(--colors-yellow-light-a-4);--colors-yellow-a-5: var(--colors-yellow-light-a-5);--colors-yellow-a-6: var(--colors-yellow-light-a-6);--colors-yellow-a-7: var(--colors-yellow-light-a-7);--colors-yellow-a-8: var(--colors-yellow-light-a-8);--colors-yellow-a-9: var(--colors-yellow-light-a-9);--colors-yellow-a-10: var(--colors-yellow-light-a-10);--colors-yellow-a-11: var(--colors-yellow-light-a-11);--colors-yellow-a-12: var(--colors-yellow-light-a-12);--colors-yellow-p3-1: var(--colors-yellow-light-p3-1);--colors-yellow-p3-2: var(--colors-yellow-light-p3-2);--colors-yellow-p3-3: var(--colors-yellow-light-p3-3);--colors-yellow-p3-4: var(--colors-yellow-light-p3-4);--colors-yellow-p3-5: var(--colors-yellow-light-p3-5);--colors-yellow-p3-6: var(--colors-yellow-light-p3-6);--colors-yellow-p3-7: var(--colors-yellow-light-p3-7);--colors-yellow-p3-8: var(--colors-yellow-light-p3-8);--colors-yellow-p3-9: var(--colors-yellow-light-p3-9);--colors-yellow-p3-10: var(--colors-yellow-light-p3-10);--colors-yellow-p3-11: var(--colors-yellow-light-p3-11);--colors-yellow-p3-12: var(--colors-yellow-light-p3-12);--colors-yellow-p3-a-1: var(--colors-yellow-light-p3-a-1);--colors-yellow-p3-a-2: var(--colors-yellow-light-p3-a-2);--colors-yellow-p3-a-3: var(--colors-yellow-light-p3-a-3);--colors-yellow-p3-a-4: var(--colors-yellow-light-p3-a-4);--colors-yellow-p3-a-5: var(--colors-yellow-light-p3-a-5);--colors-yellow-p3-a-6: var(--colors-yellow-light-p3-a-6);--colors-yellow-p3-a-7: var(--colors-yellow-light-p3-a-7);--colors-yellow-p3-a-8: var(--colors-yellow-light-p3-a-8);--colors-yellow-p3-a-9: var(--colors-yellow-light-p3-a-9);--colors-yellow-p3-a-10: var(--colors-yellow-light-p3-a-10);--colors-yellow-p3-a-11: var(--colors-yellow-light-p3-a-11);--colors-yellow-p3-a-12: var(--colors-yellow-light-p3-a-12);--colors-likec4-background: var(--mantine-color-body);--colors-likec4-tag-bg: var(--colors-tomato-9);--colors-likec4-tag-bg-hover: var(--colors-tomato-10);--colors-likec4-tag-border: var(--colors-tomato-8);--colors-likec4-tag-text: var(--colors-tomato-12);--colors-likec4-panel-bg: var(--colors-mantine-colors-body);--colors-likec4-panel-border: transparent;--colors-likec4-panel-action-icon-text: color-mix(in srgb, var(--mantine-color-text) 80%, transparent);--colors-likec4-panel-action-icon-text-hover: var(--mantine-color-bright);--colors-likec4-panel-action-icon-text-disabled: var(--mantine-color-dimmed);--colors-likec4-panel-action-icon-bg: var(--colors-mantine-colors-gray\\[1\\]);--colors-likec4-panel-action-icon-bg-hover: var(--colors-mantine-colors-gray\\[2\\]);--colors-likec4-dropdown-bg: #FFF;--colors-likec4-dropdown-border: var(--colors-likec4-panel-border);--colors-likec4-overlay-backdrop: rgb(34 34 34);--colors-likec4-overlay-body: var(--mantine-color-body);--colors-likec4-overlay-border: color-mix(in srgb, var(--colors-mantine-colors-default-border) 50%, transparent)}[data-mantine-color-scheme=dark]{--colors-amber-1: var(--colors-amber-dark-1);--colors-amber-2: var(--colors-amber-dark-2);--colors-amber-3: var(--colors-amber-dark-3);--colors-amber-4: var(--colors-amber-dark-4);--colors-amber-5: var(--colors-amber-dark-5);--colors-amber-6: var(--colors-amber-dark-6);--colors-amber-7: var(--colors-amber-dark-7);--colors-amber-8: var(--colors-amber-dark-8);--colors-amber-9: var(--colors-amber-dark-9);--colors-amber-10: var(--colors-amber-dark-10);--colors-amber-11: var(--colors-amber-dark-11);--colors-amber-12: var(--colors-amber-dark-12);--colors-amber-a-1: var(--colors-amber-dark-a-1);--colors-amber-a-2: var(--colors-amber-dark-a-2);--colors-amber-a-3: var(--colors-amber-dark-a-3);--colors-amber-a-4: var(--colors-amber-dark-a-4);--colors-amber-a-5: var(--colors-amber-dark-a-5);--colors-amber-a-6: var(--colors-amber-dark-a-6);--colors-amber-a-7: var(--colors-amber-dark-a-7);--colors-amber-a-8: var(--colors-amber-dark-a-8);--colors-amber-a-9: var(--colors-amber-dark-a-9);--colors-amber-a-10: var(--colors-amber-dark-a-10);--colors-amber-a-11: var(--colors-amber-dark-a-11);--colors-amber-a-12: var(--colors-amber-dark-a-12);--colors-amber-p3-1: var(--colors-amber-dark-p3-1);--colors-amber-p3-2: var(--colors-amber-dark-p3-2);--colors-amber-p3-3: var(--colors-amber-dark-p3-3);--colors-amber-p3-4: var(--colors-amber-dark-p3-4);--colors-amber-p3-5: var(--colors-amber-dark-p3-5);--colors-amber-p3-6: var(--colors-amber-dark-p3-6);--colors-amber-p3-7: var(--colors-amber-dark-p3-7);--colors-amber-p3-8: var(--colors-amber-dark-p3-8);--colors-amber-p3-9: var(--colors-amber-dark-p3-9);--colors-amber-p3-10: var(--colors-amber-dark-p3-10);--colors-amber-p3-11: var(--colors-amber-dark-p3-11);--colors-amber-p3-12: var(--colors-amber-dark-p3-12);--colors-amber-p3-a-1: var(--colors-amber-dark-p3-a-1);--colors-amber-p3-a-2: var(--colors-amber-dark-p3-a-2);--colors-amber-p3-a-3: var(--colors-amber-dark-p3-a-3);--colors-amber-p3-a-4: var(--colors-amber-dark-p3-a-4);--colors-amber-p3-a-5: var(--colors-amber-dark-p3-a-5);--colors-amber-p3-a-6: var(--colors-amber-dark-p3-a-6);--colors-amber-p3-a-7: var(--colors-amber-dark-p3-a-7);--colors-amber-p3-a-8: var(--colors-amber-dark-p3-a-8);--colors-amber-p3-a-9: var(--colors-amber-dark-p3-a-9);--colors-amber-p3-a-10: var(--colors-amber-dark-p3-a-10);--colors-amber-p3-a-11: var(--colors-amber-dark-p3-a-11);--colors-amber-p3-a-12: var(--colors-amber-dark-p3-a-12);--colors-blue-1: var(--colors-blue-dark-1);--colors-blue-2: var(--colors-blue-dark-2);--colors-blue-3: var(--colors-blue-dark-3);--colors-blue-4: var(--colors-blue-dark-4);--colors-blue-5: var(--colors-blue-dark-5);--colors-blue-6: var(--colors-blue-dark-6);--colors-blue-7: var(--colors-blue-dark-7);--colors-blue-8: var(--colors-blue-dark-8);--colors-blue-9: var(--colors-blue-dark-9);--colors-blue-10: var(--colors-blue-dark-10);--colors-blue-11: var(--colors-blue-dark-11);--colors-blue-12: var(--colors-blue-dark-12);--colors-blue-a-1: var(--colors-blue-dark-a-1);--colors-blue-a-2: var(--colors-blue-dark-a-2);--colors-blue-a-3: var(--colors-blue-dark-a-3);--colors-blue-a-4: var(--colors-blue-dark-a-4);--colors-blue-a-5: var(--colors-blue-dark-a-5);--colors-blue-a-6: var(--colors-blue-dark-a-6);--colors-blue-a-7: var(--colors-blue-dark-a-7);--colors-blue-a-8: var(--colors-blue-dark-a-8);--colors-blue-a-9: var(--colors-blue-dark-a-9);--colors-blue-a-10: var(--colors-blue-dark-a-10);--colors-blue-a-11: var(--colors-blue-dark-a-11);--colors-blue-a-12: var(--colors-blue-dark-a-12);--colors-blue-p3-1: var(--colors-blue-dark-p3-1);--colors-blue-p3-2: var(--colors-blue-dark-p3-2);--colors-blue-p3-3: var(--colors-blue-dark-p3-3);--colors-blue-p3-4: var(--colors-blue-dark-p3-4);--colors-blue-p3-5: var(--colors-blue-dark-p3-5);--colors-blue-p3-6: var(--colors-blue-dark-p3-6);--colors-blue-p3-7: var(--colors-blue-dark-p3-7);--colors-blue-p3-8: var(--colors-blue-dark-p3-8);--colors-blue-p3-9: var(--colors-blue-dark-p3-9);--colors-blue-p3-10: var(--colors-blue-dark-p3-10);--colors-blue-p3-11: var(--colors-blue-dark-p3-11);--colors-blue-p3-12: var(--colors-blue-dark-p3-12);--colors-blue-p3-a-1: var(--colors-blue-dark-p3-a-1);--colors-blue-p3-a-2: var(--colors-blue-dark-p3-a-2);--colors-blue-p3-a-3: var(--colors-blue-dark-p3-a-3);--colors-blue-p3-a-4: var(--colors-blue-dark-p3-a-4);--colors-blue-p3-a-5: var(--colors-blue-dark-p3-a-5);--colors-blue-p3-a-6: var(--colors-blue-dark-p3-a-6);--colors-blue-p3-a-7: var(--colors-blue-dark-p3-a-7);--colors-blue-p3-a-8: var(--colors-blue-dark-p3-a-8);--colors-blue-p3-a-9: var(--colors-blue-dark-p3-a-9);--colors-blue-p3-a-10: var(--colors-blue-dark-p3-a-10);--colors-blue-p3-a-11: var(--colors-blue-dark-p3-a-11);--colors-blue-p3-a-12: var(--colors-blue-dark-p3-a-12);--colors-crimson-1: var(--colors-crimson-dark-1);--colors-crimson-2: var(--colors-crimson-dark-2);--colors-crimson-3: var(--colors-crimson-dark-3);--colors-crimson-4: var(--colors-crimson-dark-4);--colors-crimson-5: var(--colors-crimson-dark-5);--colors-crimson-6: var(--colors-crimson-dark-6);--colors-crimson-7: var(--colors-crimson-dark-7);--colors-crimson-8: var(--colors-crimson-dark-8);--colors-crimson-9: var(--colors-crimson-dark-9);--colors-crimson-10: var(--colors-crimson-dark-10);--colors-crimson-11: var(--colors-crimson-dark-11);--colors-crimson-12: var(--colors-crimson-dark-12);--colors-crimson-a-1: var(--colors-crimson-dark-a-1);--colors-crimson-a-2: var(--colors-crimson-dark-a-2);--colors-crimson-a-3: var(--colors-crimson-dark-a-3);--colors-crimson-a-4: var(--colors-crimson-dark-a-4);--colors-crimson-a-5: var(--colors-crimson-dark-a-5);--colors-crimson-a-6: var(--colors-crimson-dark-a-6);--colors-crimson-a-7: var(--colors-crimson-dark-a-7);--colors-crimson-a-8: var(--colors-crimson-dark-a-8);--colors-crimson-a-9: var(--colors-crimson-dark-a-9);--colors-crimson-a-10: var(--colors-crimson-dark-a-10);--colors-crimson-a-11: var(--colors-crimson-dark-a-11);--colors-crimson-a-12: var(--colors-crimson-dark-a-12);--colors-crimson-p3-1: var(--colors-crimson-dark-p3-1);--colors-crimson-p3-2: var(--colors-crimson-dark-p3-2);--colors-crimson-p3-3: var(--colors-crimson-dark-p3-3);--colors-crimson-p3-4: var(--colors-crimson-dark-p3-4);--colors-crimson-p3-5: var(--colors-crimson-dark-p3-5);--colors-crimson-p3-6: var(--colors-crimson-dark-p3-6);--colors-crimson-p3-7: var(--colors-crimson-dark-p3-7);--colors-crimson-p3-8: var(--colors-crimson-dark-p3-8);--colors-crimson-p3-9: var(--colors-crimson-dark-p3-9);--colors-crimson-p3-10: var(--colors-crimson-dark-p3-10);--colors-crimson-p3-11: var(--colors-crimson-dark-p3-11);--colors-crimson-p3-12: var(--colors-crimson-dark-p3-12);--colors-crimson-p3-a-1: var(--colors-crimson-dark-p3-a-1);--colors-crimson-p3-a-2: var(--colors-crimson-dark-p3-a-2);--colors-crimson-p3-a-3: var(--colors-crimson-dark-p3-a-3);--colors-crimson-p3-a-4: var(--colors-crimson-dark-p3-a-4);--colors-crimson-p3-a-5: var(--colors-crimson-dark-p3-a-5);--colors-crimson-p3-a-6: var(--colors-crimson-dark-p3-a-6);--colors-crimson-p3-a-7: var(--colors-crimson-dark-p3-a-7);--colors-crimson-p3-a-8: var(--colors-crimson-dark-p3-a-8);--colors-crimson-p3-a-9: var(--colors-crimson-dark-p3-a-9);--colors-crimson-p3-a-10: var(--colors-crimson-dark-p3-a-10);--colors-crimson-p3-a-11: var(--colors-crimson-dark-p3-a-11);--colors-crimson-p3-a-12: var(--colors-crimson-dark-p3-a-12);--colors-grass-1: var(--colors-grass-dark-1);--colors-grass-2: var(--colors-grass-dark-2);--colors-grass-3: var(--colors-grass-dark-3);--colors-grass-4: var(--colors-grass-dark-4);--colors-grass-5: var(--colors-grass-dark-5);--colors-grass-6: var(--colors-grass-dark-6);--colors-grass-7: var(--colors-grass-dark-7);--colors-grass-8: var(--colors-grass-dark-8);--colors-grass-9: var(--colors-grass-dark-9);--colors-grass-10: var(--colors-grass-dark-10);--colors-grass-11: var(--colors-grass-dark-11);--colors-grass-12: var(--colors-grass-dark-12);--colors-grass-a-1: var(--colors-grass-dark-a-1);--colors-grass-a-2: var(--colors-grass-dark-a-2);--colors-grass-a-3: var(--colors-grass-dark-a-3);--colors-grass-a-4: var(--colors-grass-dark-a-4);--colors-grass-a-5: var(--colors-grass-dark-a-5);--colors-grass-a-6: var(--colors-grass-dark-a-6);--colors-grass-a-7: var(--colors-grass-dark-a-7);--colors-grass-a-8: var(--colors-grass-dark-a-8);--colors-grass-a-9: var(--colors-grass-dark-a-9);--colors-grass-a-10: var(--colors-grass-dark-a-10);--colors-grass-a-11: var(--colors-grass-dark-a-11);--colors-grass-a-12: var(--colors-grass-dark-a-12);--colors-grass-p3-1: var(--colors-grass-dark-p3-1);--colors-grass-p3-2: var(--colors-grass-dark-p3-2);--colors-grass-p3-3: var(--colors-grass-dark-p3-3);--colors-grass-p3-4: var(--colors-grass-dark-p3-4);--colors-grass-p3-5: var(--colors-grass-dark-p3-5);--colors-grass-p3-6: var(--colors-grass-dark-p3-6);--colors-grass-p3-7: var(--colors-grass-dark-p3-7);--colors-grass-p3-8: var(--colors-grass-dark-p3-8);--colors-grass-p3-9: var(--colors-grass-dark-p3-9);--colors-grass-p3-10: var(--colors-grass-dark-p3-10);--colors-grass-p3-11: var(--colors-grass-dark-p3-11);--colors-grass-p3-12: var(--colors-grass-dark-p3-12);--colors-grass-p3-a-1: var(--colors-grass-dark-p3-a-1);--colors-grass-p3-a-2: var(--colors-grass-dark-p3-a-2);--colors-grass-p3-a-3: var(--colors-grass-dark-p3-a-3);--colors-grass-p3-a-4: var(--colors-grass-dark-p3-a-4);--colors-grass-p3-a-5: var(--colors-grass-dark-p3-a-5);--colors-grass-p3-a-6: var(--colors-grass-dark-p3-a-6);--colors-grass-p3-a-7: var(--colors-grass-dark-p3-a-7);--colors-grass-p3-a-8: var(--colors-grass-dark-p3-a-8);--colors-grass-p3-a-9: var(--colors-grass-dark-p3-a-9);--colors-grass-p3-a-10: var(--colors-grass-dark-p3-a-10);--colors-grass-p3-a-11: var(--colors-grass-dark-p3-a-11);--colors-grass-p3-a-12: var(--colors-grass-dark-p3-a-12);--colors-indigo-1: var(--colors-indigo-dark-1);--colors-indigo-2: var(--colors-indigo-dark-2);--colors-indigo-3: var(--colors-indigo-dark-3);--colors-indigo-4: var(--colors-indigo-dark-4);--colors-indigo-5: var(--colors-indigo-dark-5);--colors-indigo-6: var(--colors-indigo-dark-6);--colors-indigo-7: var(--colors-indigo-dark-7);--colors-indigo-8: var(--colors-indigo-dark-8);--colors-indigo-9: var(--colors-indigo-dark-9);--colors-indigo-10: var(--colors-indigo-dark-10);--colors-indigo-11: var(--colors-indigo-dark-11);--colors-indigo-12: var(--colors-indigo-dark-12);--colors-indigo-a-1: var(--colors-indigo-dark-a-1);--colors-indigo-a-2: var(--colors-indigo-dark-a-2);--colors-indigo-a-3: var(--colors-indigo-dark-a-3);--colors-indigo-a-4: var(--colors-indigo-dark-a-4);--colors-indigo-a-5: var(--colors-indigo-dark-a-5);--colors-indigo-a-6: var(--colors-indigo-dark-a-6);--colors-indigo-a-7: var(--colors-indigo-dark-a-7);--colors-indigo-a-8: var(--colors-indigo-dark-a-8);--colors-indigo-a-9: var(--colors-indigo-dark-a-9);--colors-indigo-a-10: var(--colors-indigo-dark-a-10);--colors-indigo-a-11: var(--colors-indigo-dark-a-11);--colors-indigo-a-12: var(--colors-indigo-dark-a-12);--colors-indigo-p3-1: var(--colors-indigo-dark-p3-1);--colors-indigo-p3-2: var(--colors-indigo-dark-p3-2);--colors-indigo-p3-3: var(--colors-indigo-dark-p3-3);--colors-indigo-p3-4: var(--colors-indigo-dark-p3-4);--colors-indigo-p3-5: var(--colors-indigo-dark-p3-5);--colors-indigo-p3-6: var(--colors-indigo-dark-p3-6);--colors-indigo-p3-7: var(--colors-indigo-dark-p3-7);--colors-indigo-p3-8: var(--colors-indigo-dark-p3-8);--colors-indigo-p3-9: var(--colors-indigo-dark-p3-9);--colors-indigo-p3-10: var(--colors-indigo-dark-p3-10);--colors-indigo-p3-11: var(--colors-indigo-dark-p3-11);--colors-indigo-p3-12: var(--colors-indigo-dark-p3-12);--colors-indigo-p3-a-1: var(--colors-indigo-dark-p3-a-1);--colors-indigo-p3-a-2: var(--colors-indigo-dark-p3-a-2);--colors-indigo-p3-a-3: var(--colors-indigo-dark-p3-a-3);--colors-indigo-p3-a-4: var(--colors-indigo-dark-p3-a-4);--colors-indigo-p3-a-5: var(--colors-indigo-dark-p3-a-5);--colors-indigo-p3-a-6: var(--colors-indigo-dark-p3-a-6);--colors-indigo-p3-a-7: var(--colors-indigo-dark-p3-a-7);--colors-indigo-p3-a-8: var(--colors-indigo-dark-p3-a-8);--colors-indigo-p3-a-9: var(--colors-indigo-dark-p3-a-9);--colors-indigo-p3-a-10: var(--colors-indigo-dark-p3-a-10);--colors-indigo-p3-a-11: var(--colors-indigo-dark-p3-a-11);--colors-indigo-p3-a-12: var(--colors-indigo-dark-p3-a-12);--colors-lime-1: var(--colors-lime-dark-1);--colors-lime-2: var(--colors-lime-dark-2);--colors-lime-3: var(--colors-lime-dark-3);--colors-lime-4: var(--colors-lime-dark-4);--colors-lime-5: var(--colors-lime-dark-5);--colors-lime-6: var(--colors-lime-dark-6);--colors-lime-7: var(--colors-lime-dark-7);--colors-lime-8: var(--colors-lime-dark-8);--colors-lime-9: var(--colors-lime-dark-9);--colors-lime-10: var(--colors-lime-dark-10);--colors-lime-11: var(--colors-lime-dark-11);--colors-lime-12: var(--colors-lime-dark-12);--colors-lime-a-1: var(--colors-lime-dark-a-1);--colors-lime-a-2: var(--colors-lime-dark-a-2);--colors-lime-a-3: var(--colors-lime-dark-a-3);--colors-lime-a-4: var(--colors-lime-dark-a-4);--colors-lime-a-5: var(--colors-lime-dark-a-5);--colors-lime-a-6: var(--colors-lime-dark-a-6);--colors-lime-a-7: var(--colors-lime-dark-a-7);--colors-lime-a-8: var(--colors-lime-dark-a-8);--colors-lime-a-9: var(--colors-lime-dark-a-9);--colors-lime-a-10: var(--colors-lime-dark-a-10);--colors-lime-a-11: var(--colors-lime-dark-a-11);--colors-lime-a-12: var(--colors-lime-dark-a-12);--colors-lime-p3-1: var(--colors-lime-dark-p3-1);--colors-lime-p3-2: var(--colors-lime-dark-p3-2);--colors-lime-p3-3: var(--colors-lime-dark-p3-3);--colors-lime-p3-4: var(--colors-lime-dark-p3-4);--colors-lime-p3-5: var(--colors-lime-dark-p3-5);--colors-lime-p3-6: var(--colors-lime-dark-p3-6);--colors-lime-p3-7: var(--colors-lime-dark-p3-7);--colors-lime-p3-8: var(--colors-lime-dark-p3-8);--colors-lime-p3-9: var(--colors-lime-dark-p3-9);--colors-lime-p3-10: var(--colors-lime-dark-p3-10);--colors-lime-p3-11: var(--colors-lime-dark-p3-11);--colors-lime-p3-12: var(--colors-lime-dark-p3-12);--colors-lime-p3-a-1: var(--colors-lime-dark-p3-a-1);--colors-lime-p3-a-2: var(--colors-lime-dark-p3-a-2);--colors-lime-p3-a-3: var(--colors-lime-dark-p3-a-3);--colors-lime-p3-a-4: var(--colors-lime-dark-p3-a-4);--colors-lime-p3-a-5: var(--colors-lime-dark-p3-a-5);--colors-lime-p3-a-6: var(--colors-lime-dark-p3-a-6);--colors-lime-p3-a-7: var(--colors-lime-dark-p3-a-7);--colors-lime-p3-a-8: var(--colors-lime-dark-p3-a-8);--colors-lime-p3-a-9: var(--colors-lime-dark-p3-a-9);--colors-lime-p3-a-10: var(--colors-lime-dark-p3-a-10);--colors-lime-p3-a-11: var(--colors-lime-dark-p3-a-11);--colors-lime-p3-a-12: var(--colors-lime-dark-p3-a-12);--colors-orange-1: var(--colors-orange-dark-1);--colors-orange-2: var(--colors-orange-dark-2);--colors-orange-3: var(--colors-orange-dark-3);--colors-orange-4: var(--colors-orange-dark-4);--colors-orange-5: var(--colors-orange-dark-5);--colors-orange-6: var(--colors-orange-dark-6);--colors-orange-7: var(--colors-orange-dark-7);--colors-orange-8: var(--colors-orange-dark-8);--colors-orange-9: var(--colors-orange-dark-9);--colors-orange-10: var(--colors-orange-dark-10);--colors-orange-11: var(--colors-orange-dark-11);--colors-orange-12: var(--colors-orange-dark-12);--colors-orange-a-1: var(--colors-orange-dark-a-1);--colors-orange-a-2: var(--colors-orange-dark-a-2);--colors-orange-a-3: var(--colors-orange-dark-a-3);--colors-orange-a-4: var(--colors-orange-dark-a-4);--colors-orange-a-5: var(--colors-orange-dark-a-5);--colors-orange-a-6: var(--colors-orange-dark-a-6);--colors-orange-a-7: var(--colors-orange-dark-a-7);--colors-orange-a-8: var(--colors-orange-dark-a-8);--colors-orange-a-9: var(--colors-orange-dark-a-9);--colors-orange-a-10: var(--colors-orange-dark-a-10);--colors-orange-a-11: var(--colors-orange-dark-a-11);--colors-orange-a-12: var(--colors-orange-dark-a-12);--colors-orange-p3-1: var(--colors-orange-dark-p3-1);--colors-orange-p3-2: var(--colors-orange-dark-p3-2);--colors-orange-p3-3: var(--colors-orange-dark-p3-3);--colors-orange-p3-4: var(--colors-orange-dark-p3-4);--colors-orange-p3-5: var(--colors-orange-dark-p3-5);--colors-orange-p3-6: var(--colors-orange-dark-p3-6);--colors-orange-p3-7: var(--colors-orange-dark-p3-7);--colors-orange-p3-8: var(--colors-orange-dark-p3-8);--colors-orange-p3-9: var(--colors-orange-dark-p3-9);--colors-orange-p3-10: var(--colors-orange-dark-p3-10);--colors-orange-p3-11: var(--colors-orange-dark-p3-11);--colors-orange-p3-12: var(--colors-orange-dark-p3-12);--colors-orange-p3-a-1: var(--colors-orange-dark-p3-a-1);--colors-orange-p3-a-2: var(--colors-orange-dark-p3-a-2);--colors-orange-p3-a-3: var(--colors-orange-dark-p3-a-3);--colors-orange-p3-a-4: var(--colors-orange-dark-p3-a-4);--colors-orange-p3-a-5: var(--colors-orange-dark-p3-a-5);--colors-orange-p3-a-6: var(--colors-orange-dark-p3-a-6);--colors-orange-p3-a-7: var(--colors-orange-dark-p3-a-7);--colors-orange-p3-a-8: var(--colors-orange-dark-p3-a-8);--colors-orange-p3-a-9: var(--colors-orange-dark-p3-a-9);--colors-orange-p3-a-10: var(--colors-orange-dark-p3-a-10);--colors-orange-p3-a-11: var(--colors-orange-dark-p3-a-11);--colors-orange-p3-a-12: var(--colors-orange-dark-p3-a-12);--colors-pink-1: var(--colors-pink-dark-1);--colors-pink-2: var(--colors-pink-dark-2);--colors-pink-3: var(--colors-pink-dark-3);--colors-pink-4: var(--colors-pink-dark-4);--colors-pink-5: var(--colors-pink-dark-5);--colors-pink-6: var(--colors-pink-dark-6);--colors-pink-7: var(--colors-pink-dark-7);--colors-pink-8: var(--colors-pink-dark-8);--colors-pink-9: var(--colors-pink-dark-9);--colors-pink-10: var(--colors-pink-dark-10);--colors-pink-11: var(--colors-pink-dark-11);--colors-pink-12: var(--colors-pink-dark-12);--colors-pink-a-1: var(--colors-pink-dark-a-1);--colors-pink-a-2: var(--colors-pink-dark-a-2);--colors-pink-a-3: var(--colors-pink-dark-a-3);--colors-pink-a-4: var(--colors-pink-dark-a-4);--colors-pink-a-5: var(--colors-pink-dark-a-5);--colors-pink-a-6: var(--colors-pink-dark-a-6);--colors-pink-a-7: var(--colors-pink-dark-a-7);--colors-pink-a-8: var(--colors-pink-dark-a-8);--colors-pink-a-9: var(--colors-pink-dark-a-9);--colors-pink-a-10: var(--colors-pink-dark-a-10);--colors-pink-a-11: var(--colors-pink-dark-a-11);--colors-pink-a-12: var(--colors-pink-dark-a-12);--colors-pink-p3-1: var(--colors-pink-dark-p3-1);--colors-pink-p3-2: var(--colors-pink-dark-p3-2);--colors-pink-p3-3: var(--colors-pink-dark-p3-3);--colors-pink-p3-4: var(--colors-pink-dark-p3-4);--colors-pink-p3-5: var(--colors-pink-dark-p3-5);--colors-pink-p3-6: var(--colors-pink-dark-p3-6);--colors-pink-p3-7: var(--colors-pink-dark-p3-7);--colors-pink-p3-8: var(--colors-pink-dark-p3-8);--colors-pink-p3-9: var(--colors-pink-dark-p3-9);--colors-pink-p3-10: var(--colors-pink-dark-p3-10);--colors-pink-p3-11: var(--colors-pink-dark-p3-11);--colors-pink-p3-12: var(--colors-pink-dark-p3-12);--colors-pink-p3-a-1: var(--colors-pink-dark-p3-a-1);--colors-pink-p3-a-2: var(--colors-pink-dark-p3-a-2);--colors-pink-p3-a-3: var(--colors-pink-dark-p3-a-3);--colors-pink-p3-a-4: var(--colors-pink-dark-p3-a-4);--colors-pink-p3-a-5: var(--colors-pink-dark-p3-a-5);--colors-pink-p3-a-6: var(--colors-pink-dark-p3-a-6);--colors-pink-p3-a-7: var(--colors-pink-dark-p3-a-7);--colors-pink-p3-a-8: var(--colors-pink-dark-p3-a-8);--colors-pink-p3-a-9: var(--colors-pink-dark-p3-a-9);--colors-pink-p3-a-10: var(--colors-pink-dark-p3-a-10);--colors-pink-p3-a-11: var(--colors-pink-dark-p3-a-11);--colors-pink-p3-a-12: var(--colors-pink-dark-p3-a-12);--colors-purple-1: var(--colors-purple-dark-1);--colors-purple-2: var(--colors-purple-dark-2);--colors-purple-3: var(--colors-purple-dark-3);--colors-purple-4: var(--colors-purple-dark-4);--colors-purple-5: var(--colors-purple-dark-5);--colors-purple-6: var(--colors-purple-dark-6);--colors-purple-7: var(--colors-purple-dark-7);--colors-purple-8: var(--colors-purple-dark-8);--colors-purple-9: var(--colors-purple-dark-9);--colors-purple-10: var(--colors-purple-dark-10);--colors-purple-11: var(--colors-purple-dark-11);--colors-purple-12: var(--colors-purple-dark-12);--colors-purple-a-1: var(--colors-purple-dark-a-1);--colors-purple-a-2: var(--colors-purple-dark-a-2);--colors-purple-a-3: var(--colors-purple-dark-a-3);--colors-purple-a-4: var(--colors-purple-dark-a-4);--colors-purple-a-5: var(--colors-purple-dark-a-5);--colors-purple-a-6: var(--colors-purple-dark-a-6);--colors-purple-a-7: var(--colors-purple-dark-a-7);--colors-purple-a-8: var(--colors-purple-dark-a-8);--colors-purple-a-9: var(--colors-purple-dark-a-9);--colors-purple-a-10: var(--colors-purple-dark-a-10);--colors-purple-a-11: var(--colors-purple-dark-a-11);--colors-purple-a-12: var(--colors-purple-dark-a-12);--colors-purple-p3-1: var(--colors-purple-dark-p3-1);--colors-purple-p3-2: var(--colors-purple-dark-p3-2);--colors-purple-p3-3: var(--colors-purple-dark-p3-3);--colors-purple-p3-4: var(--colors-purple-dark-p3-4);--colors-purple-p3-5: var(--colors-purple-dark-p3-5);--colors-purple-p3-6: var(--colors-purple-dark-p3-6);--colors-purple-p3-7: var(--colors-purple-dark-p3-7);--colors-purple-p3-8: var(--colors-purple-dark-p3-8);--colors-purple-p3-9: var(--colors-purple-dark-p3-9);--colors-purple-p3-10: var(--colors-purple-dark-p3-10);--colors-purple-p3-11: var(--colors-purple-dark-p3-11);--colors-purple-p3-12: var(--colors-purple-dark-p3-12);--colors-purple-p3-a-1: var(--colors-purple-dark-p3-a-1);--colors-purple-p3-a-2: var(--colors-purple-dark-p3-a-2);--colors-purple-p3-a-3: var(--colors-purple-dark-p3-a-3);--colors-purple-p3-a-4: var(--colors-purple-dark-p3-a-4);--colors-purple-p3-a-5: var(--colors-purple-dark-p3-a-5);--colors-purple-p3-a-6: var(--colors-purple-dark-p3-a-6);--colors-purple-p3-a-7: var(--colors-purple-dark-p3-a-7);--colors-purple-p3-a-8: var(--colors-purple-dark-p3-a-8);--colors-purple-p3-a-9: var(--colors-purple-dark-p3-a-9);--colors-purple-p3-a-10: var(--colors-purple-dark-p3-a-10);--colors-purple-p3-a-11: var(--colors-purple-dark-p3-a-11);--colors-purple-p3-a-12: var(--colors-purple-dark-p3-a-12);--colors-red-1: var(--colors-red-dark-1);--colors-red-2: var(--colors-red-dark-2);--colors-red-3: var(--colors-red-dark-3);--colors-red-4: var(--colors-red-dark-4);--colors-red-5: var(--colors-red-dark-5);--colors-red-6: var(--colors-red-dark-6);--colors-red-7: var(--colors-red-dark-7);--colors-red-8: var(--colors-red-dark-8);--colors-red-9: var(--colors-red-dark-9);--colors-red-10: var(--colors-red-dark-10);--colors-red-11: var(--colors-red-dark-11);--colors-red-12: var(--colors-red-dark-12);--colors-red-a-1: var(--colors-red-dark-a-1);--colors-red-a-2: var(--colors-red-dark-a-2);--colors-red-a-3: var(--colors-red-dark-a-3);--colors-red-a-4: var(--colors-red-dark-a-4);--colors-red-a-5: var(--colors-red-dark-a-5);--colors-red-a-6: var(--colors-red-dark-a-6);--colors-red-a-7: var(--colors-red-dark-a-7);--colors-red-a-8: var(--colors-red-dark-a-8);--colors-red-a-9: var(--colors-red-dark-a-9);--colors-red-a-10: var(--colors-red-dark-a-10);--colors-red-a-11: var(--colors-red-dark-a-11);--colors-red-a-12: var(--colors-red-dark-a-12);--colors-red-p3-1: var(--colors-red-dark-p3-1);--colors-red-p3-2: var(--colors-red-dark-p3-2);--colors-red-p3-3: var(--colors-red-dark-p3-3);--colors-red-p3-4: var(--colors-red-dark-p3-4);--colors-red-p3-5: var(--colors-red-dark-p3-5);--colors-red-p3-6: var(--colors-red-dark-p3-6);--colors-red-p3-7: var(--colors-red-dark-p3-7);--colors-red-p3-8: var(--colors-red-dark-p3-8);--colors-red-p3-9: var(--colors-red-dark-p3-9);--colors-red-p3-10: var(--colors-red-dark-p3-10);--colors-red-p3-11: var(--colors-red-dark-p3-11);--colors-red-p3-12: var(--colors-red-dark-p3-12);--colors-red-p3-a-1: var(--colors-red-dark-p3-a-1);--colors-red-p3-a-2: var(--colors-red-dark-p3-a-2);--colors-red-p3-a-3: var(--colors-red-dark-p3-a-3);--colors-red-p3-a-4: var(--colors-red-dark-p3-a-4);--colors-red-p3-a-5: var(--colors-red-dark-p3-a-5);--colors-red-p3-a-6: var(--colors-red-dark-p3-a-6);--colors-red-p3-a-7: var(--colors-red-dark-p3-a-7);--colors-red-p3-a-8: var(--colors-red-dark-p3-a-8);--colors-red-p3-a-9: var(--colors-red-dark-p3-a-9);--colors-red-p3-a-10: var(--colors-red-dark-p3-a-10);--colors-red-p3-a-11: var(--colors-red-dark-p3-a-11);--colors-red-p3-a-12: var(--colors-red-dark-p3-a-12);--colors-ruby-1: var(--colors-ruby-dark-1);--colors-ruby-2: var(--colors-ruby-dark-2);--colors-ruby-3: var(--colors-ruby-dark-3);--colors-ruby-4: var(--colors-ruby-dark-4);--colors-ruby-5: var(--colors-ruby-dark-5);--colors-ruby-6: var(--colors-ruby-dark-6);--colors-ruby-7: var(--colors-ruby-dark-7);--colors-ruby-8: var(--colors-ruby-dark-8);--colors-ruby-9: var(--colors-ruby-dark-9);--colors-ruby-10: var(--colors-ruby-dark-10);--colors-ruby-11: var(--colors-ruby-dark-11);--colors-ruby-12: var(--colors-ruby-dark-12);--colors-ruby-a-1: var(--colors-ruby-dark-a-1);--colors-ruby-a-2: var(--colors-ruby-dark-a-2);--colors-ruby-a-3: var(--colors-ruby-dark-a-3);--colors-ruby-a-4: var(--colors-ruby-dark-a-4);--colors-ruby-a-5: var(--colors-ruby-dark-a-5);--colors-ruby-a-6: var(--colors-ruby-dark-a-6);--colors-ruby-a-7: var(--colors-ruby-dark-a-7);--colors-ruby-a-8: var(--colors-ruby-dark-a-8);--colors-ruby-a-9: var(--colors-ruby-dark-a-9);--colors-ruby-a-10: var(--colors-ruby-dark-a-10);--colors-ruby-a-11: var(--colors-ruby-dark-a-11);--colors-ruby-a-12: var(--colors-ruby-dark-a-12);--colors-ruby-p3-1: var(--colors-ruby-dark-p3-1);--colors-ruby-p3-2: var(--colors-ruby-dark-p3-2);--colors-ruby-p3-3: var(--colors-ruby-dark-p3-3);--colors-ruby-p3-4: var(--colors-ruby-dark-p3-4);--colors-ruby-p3-5: var(--colors-ruby-dark-p3-5);--colors-ruby-p3-6: var(--colors-ruby-dark-p3-6);--colors-ruby-p3-7: var(--colors-ruby-dark-p3-7);--colors-ruby-p3-8: var(--colors-ruby-dark-p3-8);--colors-ruby-p3-9: var(--colors-ruby-dark-p3-9);--colors-ruby-p3-10: var(--colors-ruby-dark-p3-10);--colors-ruby-p3-11: var(--colors-ruby-dark-p3-11);--colors-ruby-p3-12: var(--colors-ruby-dark-p3-12);--colors-ruby-p3-a-1: var(--colors-ruby-dark-p3-a-1);--colors-ruby-p3-a-2: var(--colors-ruby-dark-p3-a-2);--colors-ruby-p3-a-3: var(--colors-ruby-dark-p3-a-3);--colors-ruby-p3-a-4: var(--colors-ruby-dark-p3-a-4);--colors-ruby-p3-a-5: var(--colors-ruby-dark-p3-a-5);--colors-ruby-p3-a-6: var(--colors-ruby-dark-p3-a-6);--colors-ruby-p3-a-7: var(--colors-ruby-dark-p3-a-7);--colors-ruby-p3-a-8: var(--colors-ruby-dark-p3-a-8);--colors-ruby-p3-a-9: var(--colors-ruby-dark-p3-a-9);--colors-ruby-p3-a-10: var(--colors-ruby-dark-p3-a-10);--colors-ruby-p3-a-11: var(--colors-ruby-dark-p3-a-11);--colors-ruby-p3-a-12: var(--colors-ruby-dark-p3-a-12);--colors-teal-1: var(--colors-teal-dark-1);--colors-teal-2: var(--colors-teal-dark-2);--colors-teal-3: var(--colors-teal-dark-3);--colors-teal-4: var(--colors-teal-dark-4);--colors-teal-5: var(--colors-teal-dark-5);--colors-teal-6: var(--colors-teal-dark-6);--colors-teal-7: var(--colors-teal-dark-7);--colors-teal-8: var(--colors-teal-dark-8);--colors-teal-9: var(--colors-teal-dark-9);--colors-teal-10: var(--colors-teal-dark-10);--colors-teal-11: var(--colors-teal-dark-11);--colors-teal-12: var(--colors-teal-dark-12);--colors-teal-a-1: var(--colors-teal-dark-a-1);--colors-teal-a-2: var(--colors-teal-dark-a-2);--colors-teal-a-3: var(--colors-teal-dark-a-3);--colors-teal-a-4: var(--colors-teal-dark-a-4);--colors-teal-a-5: var(--colors-teal-dark-a-5);--colors-teal-a-6: var(--colors-teal-dark-a-6);--colors-teal-a-7: var(--colors-teal-dark-a-7);--colors-teal-a-8: var(--colors-teal-dark-a-8);--colors-teal-a-9: var(--colors-teal-dark-a-9);--colors-teal-a-10: var(--colors-teal-dark-a-10);--colors-teal-a-11: var(--colors-teal-dark-a-11);--colors-teal-a-12: var(--colors-teal-dark-a-12);--colors-teal-p3-1: var(--colors-teal-dark-p3-1);--colors-teal-p3-2: var(--colors-teal-dark-p3-2);--colors-teal-p3-3: var(--colors-teal-dark-p3-3);--colors-teal-p3-4: var(--colors-teal-dark-p3-4);--colors-teal-p3-5: var(--colors-teal-dark-p3-5);--colors-teal-p3-6: var(--colors-teal-dark-p3-6);--colors-teal-p3-7: var(--colors-teal-dark-p3-7);--colors-teal-p3-8: var(--colors-teal-dark-p3-8);--colors-teal-p3-9: var(--colors-teal-dark-p3-9);--colors-teal-p3-10: var(--colors-teal-dark-p3-10);--colors-teal-p3-11: var(--colors-teal-dark-p3-11);--colors-teal-p3-12: var(--colors-teal-dark-p3-12);--colors-teal-p3-a-1: var(--colors-teal-dark-p3-a-1);--colors-teal-p3-a-2: var(--colors-teal-dark-p3-a-2);--colors-teal-p3-a-3: var(--colors-teal-dark-p3-a-3);--colors-teal-p3-a-4: var(--colors-teal-dark-p3-a-4);--colors-teal-p3-a-5: var(--colors-teal-dark-p3-a-5);--colors-teal-p3-a-6: var(--colors-teal-dark-p3-a-6);--colors-teal-p3-a-7: var(--colors-teal-dark-p3-a-7);--colors-teal-p3-a-8: var(--colors-teal-dark-p3-a-8);--colors-teal-p3-a-9: var(--colors-teal-dark-p3-a-9);--colors-teal-p3-a-10: var(--colors-teal-dark-p3-a-10);--colors-teal-p3-a-11: var(--colors-teal-dark-p3-a-11);--colors-teal-p3-a-12: var(--colors-teal-dark-p3-a-12);--colors-tomato-1: var(--colors-tomato-dark-1);--colors-tomato-2: var(--colors-tomato-dark-2);--colors-tomato-3: var(--colors-tomato-dark-3);--colors-tomato-4: var(--colors-tomato-dark-4);--colors-tomato-5: var(--colors-tomato-dark-5);--colors-tomato-6: var(--colors-tomato-dark-6);--colors-tomato-7: var(--colors-tomato-dark-7);--colors-tomato-8: var(--colors-tomato-dark-8);--colors-tomato-9: var(--colors-tomato-dark-9);--colors-tomato-10: var(--colors-tomato-dark-10);--colors-tomato-11: var(--colors-tomato-dark-11);--colors-tomato-12: var(--colors-tomato-dark-12);--colors-tomato-a-1: var(--colors-tomato-dark-a-1);--colors-tomato-a-2: var(--colors-tomato-dark-a-2);--colors-tomato-a-3: var(--colors-tomato-dark-a-3);--colors-tomato-a-4: var(--colors-tomato-dark-a-4);--colors-tomato-a-5: var(--colors-tomato-dark-a-5);--colors-tomato-a-6: var(--colors-tomato-dark-a-6);--colors-tomato-a-7: var(--colors-tomato-dark-a-7);--colors-tomato-a-8: var(--colors-tomato-dark-a-8);--colors-tomato-a-9: var(--colors-tomato-dark-a-9);--colors-tomato-a-10: var(--colors-tomato-dark-a-10);--colors-tomato-a-11: var(--colors-tomato-dark-a-11);--colors-tomato-a-12: var(--colors-tomato-dark-a-12);--colors-tomato-p3-1: var(--colors-tomato-dark-p3-1);--colors-tomato-p3-2: var(--colors-tomato-dark-p3-2);--colors-tomato-p3-3: var(--colors-tomato-dark-p3-3);--colors-tomato-p3-4: var(--colors-tomato-dark-p3-4);--colors-tomato-p3-5: var(--colors-tomato-dark-p3-5);--colors-tomato-p3-6: var(--colors-tomato-dark-p3-6);--colors-tomato-p3-7: var(--colors-tomato-dark-p3-7);--colors-tomato-p3-8: var(--colors-tomato-dark-p3-8);--colors-tomato-p3-9: var(--colors-tomato-dark-p3-9);--colors-tomato-p3-10: var(--colors-tomato-dark-p3-10);--colors-tomato-p3-11: var(--colors-tomato-dark-p3-11);--colors-tomato-p3-12: var(--colors-tomato-dark-p3-12);--colors-tomato-p3-a-1: var(--colors-tomato-dark-p3-a-1);--colors-tomato-p3-a-2: var(--colors-tomato-dark-p3-a-2);--colors-tomato-p3-a-3: var(--colors-tomato-dark-p3-a-3);--colors-tomato-p3-a-4: var(--colors-tomato-dark-p3-a-4);--colors-tomato-p3-a-5: var(--colors-tomato-dark-p3-a-5);--colors-tomato-p3-a-6: var(--colors-tomato-dark-p3-a-6);--colors-tomato-p3-a-7: var(--colors-tomato-dark-p3-a-7);--colors-tomato-p3-a-8: var(--colors-tomato-dark-p3-a-8);--colors-tomato-p3-a-9: var(--colors-tomato-dark-p3-a-9);--colors-tomato-p3-a-10: var(--colors-tomato-dark-p3-a-10);--colors-tomato-p3-a-11: var(--colors-tomato-dark-p3-a-11);--colors-tomato-p3-a-12: var(--colors-tomato-dark-p3-a-12);--colors-violet-1: var(--colors-violet-dark-1);--colors-violet-2: var(--colors-violet-dark-2);--colors-violet-3: var(--colors-violet-dark-3);--colors-violet-4: var(--colors-violet-dark-4);--colors-violet-5: var(--colors-violet-dark-5);--colors-violet-6: var(--colors-violet-dark-6);--colors-violet-7: var(--colors-violet-dark-7);--colors-violet-8: var(--colors-violet-dark-8);--colors-violet-9: var(--colors-violet-dark-9);--colors-violet-10: var(--colors-violet-dark-10);--colors-violet-11: var(--colors-violet-dark-11);--colors-violet-12: var(--colors-violet-dark-12);--colors-violet-a-1: var(--colors-violet-dark-a-1);--colors-violet-a-2: var(--colors-violet-dark-a-2);--colors-violet-a-3: var(--colors-violet-dark-a-3);--colors-violet-a-4: var(--colors-violet-dark-a-4);--colors-violet-a-5: var(--colors-violet-dark-a-5);--colors-violet-a-6: var(--colors-violet-dark-a-6);--colors-violet-a-7: var(--colors-violet-dark-a-7);--colors-violet-a-8: var(--colors-violet-dark-a-8);--colors-violet-a-9: var(--colors-violet-dark-a-9);--colors-violet-a-10: var(--colors-violet-dark-a-10);--colors-violet-a-11: var(--colors-violet-dark-a-11);--colors-violet-a-12: var(--colors-violet-dark-a-12);--colors-violet-p3-1: var(--colors-violet-dark-p3-1);--colors-violet-p3-2: var(--colors-violet-dark-p3-2);--colors-violet-p3-3: var(--colors-violet-dark-p3-3);--colors-violet-p3-4: var(--colors-violet-dark-p3-4);--colors-violet-p3-5: var(--colors-violet-dark-p3-5);--colors-violet-p3-6: var(--colors-violet-dark-p3-6);--colors-violet-p3-7: var(--colors-violet-dark-p3-7);--colors-violet-p3-8: var(--colors-violet-dark-p3-8);--colors-violet-p3-9: var(--colors-violet-dark-p3-9);--colors-violet-p3-10: var(--colors-violet-dark-p3-10);--colors-violet-p3-11: var(--colors-violet-dark-p3-11);--colors-violet-p3-12: var(--colors-violet-dark-p3-12);--colors-violet-p3-a-1: var(--colors-violet-dark-p3-a-1);--colors-violet-p3-a-2: var(--colors-violet-dark-p3-a-2);--colors-violet-p3-a-3: var(--colors-violet-dark-p3-a-3);--colors-violet-p3-a-4: var(--colors-violet-dark-p3-a-4);--colors-violet-p3-a-5: var(--colors-violet-dark-p3-a-5);--colors-violet-p3-a-6: var(--colors-violet-dark-p3-a-6);--colors-violet-p3-a-7: var(--colors-violet-dark-p3-a-7);--colors-violet-p3-a-8: var(--colors-violet-dark-p3-a-8);--colors-violet-p3-a-9: var(--colors-violet-dark-p3-a-9);--colors-violet-p3-a-10: var(--colors-violet-dark-p3-a-10);--colors-violet-p3-a-11: var(--colors-violet-dark-p3-a-11);--colors-violet-p3-a-12: var(--colors-violet-dark-p3-a-12);--colors-yellow-1: var(--colors-yellow-dark-1);--colors-yellow-2: var(--colors-yellow-dark-2);--colors-yellow-3: var(--colors-yellow-dark-3);--colors-yellow-4: var(--colors-yellow-dark-4);--colors-yellow-5: var(--colors-yellow-dark-5);--colors-yellow-6: var(--colors-yellow-dark-6);--colors-yellow-7: var(--colors-yellow-dark-7);--colors-yellow-8: var(--colors-yellow-dark-8);--colors-yellow-9: var(--colors-yellow-dark-9);--colors-yellow-10: var(--colors-yellow-dark-10);--colors-yellow-11: var(--colors-yellow-dark-11);--colors-yellow-12: var(--colors-yellow-dark-12);--colors-yellow-a-1: var(--colors-yellow-dark-a-1);--colors-yellow-a-2: var(--colors-yellow-dark-a-2);--colors-yellow-a-3: var(--colors-yellow-dark-a-3);--colors-yellow-a-4: var(--colors-yellow-dark-a-4);--colors-yellow-a-5: var(--colors-yellow-dark-a-5);--colors-yellow-a-6: var(--colors-yellow-dark-a-6);--colors-yellow-a-7: var(--colors-yellow-dark-a-7);--colors-yellow-a-8: var(--colors-yellow-dark-a-8);--colors-yellow-a-9: var(--colors-yellow-dark-a-9);--colors-yellow-a-10: var(--colors-yellow-dark-a-10);--colors-yellow-a-11: var(--colors-yellow-dark-a-11);--colors-yellow-a-12: var(--colors-yellow-dark-a-12);--colors-yellow-p3-1: var(--colors-yellow-dark-p3-1);--colors-yellow-p3-2: var(--colors-yellow-dark-p3-2);--colors-yellow-p3-3: var(--colors-yellow-dark-p3-3);--colors-yellow-p3-4: var(--colors-yellow-dark-p3-4);--colors-yellow-p3-5: var(--colors-yellow-dark-p3-5);--colors-yellow-p3-6: var(--colors-yellow-dark-p3-6);--colors-yellow-p3-7: var(--colors-yellow-dark-p3-7);--colors-yellow-p3-8: var(--colors-yellow-dark-p3-8);--colors-yellow-p3-9: var(--colors-yellow-dark-p3-9);--colors-yellow-p3-10: var(--colors-yellow-dark-p3-10);--colors-yellow-p3-11: var(--colors-yellow-dark-p3-11);--colors-yellow-p3-12: var(--colors-yellow-dark-p3-12);--colors-yellow-p3-a-1: var(--colors-yellow-dark-p3-a-1);--colors-yellow-p3-a-2: var(--colors-yellow-dark-p3-a-2);--colors-yellow-p3-a-3: var(--colors-yellow-dark-p3-a-3);--colors-yellow-p3-a-4: var(--colors-yellow-dark-p3-a-4);--colors-yellow-p3-a-5: var(--colors-yellow-dark-p3-a-5);--colors-yellow-p3-a-6: var(--colors-yellow-dark-p3-a-6);--colors-yellow-p3-a-7: var(--colors-yellow-dark-p3-a-7);--colors-yellow-p3-a-8: var(--colors-yellow-dark-p3-a-8);--colors-yellow-p3-a-9: var(--colors-yellow-dark-p3-a-9);--colors-yellow-p3-a-10: var(--colors-yellow-dark-p3-a-10);--colors-yellow-p3-a-11: var(--colors-yellow-dark-p3-a-11);--colors-yellow-p3-a-12: var(--colors-yellow-dark-p3-a-12);--colors-likec4-background-pattern: color-mix(in srgb, var(--colors-mantine-colors-dark\\[4\\]) 70%, transparent);--colors-likec4-mix-color: white;--colors-likec4-panel-bg: var(--colors-mantine-colors-dark\\[6\\]);--colors-likec4-panel-action-icon-bg: color-mix(in srgb, var(--colors-mantine-colors-dark\\[7\\]) 70%, transparent);--colors-likec4-panel-action-icon-bg-hover: var(--colors-mantine-colors-dark\\[8\\]);--colors-likec4-dropdown-bg: var(--colors-mantine-colors-dark\\[6\\]) }[data-mantine-color-scheme=light]{--colors-likec4-background-pattern: var(--colors-mantine-colors-gray\\[4\\]);--colors-likec4-mix-color: black;--colors-likec4-panel-border: color-mix(in srgb, var(--colors-mantine-colors-default-border) 30%, transparent);--colors-likec4-overlay-backdrop: rgb(15 15 15) }@keyframes indicatorOpacity{0%{opacity:.9;stroke-opacity:.8}to{opacity:.6;stroke-opacity:.4}}@keyframes xyedgeAnimated{0%{stroke-dashoffset:36}to{stroke-dashoffset:0}}}@layer recipes{@layer _base{.likec4-overlay{--_blur: 0px;--_level: 0;--_offset: 0px;--_inset: calc((1 + var(--_level) * .75) * var(--_offset));--_opacity: 0%;--_border-radius: 0px;margin:var(--spacing-0);background:var(--colors-likec4-overlay-border);border:var(--borders-transparent);inset:var(--spacing-0);padding:var(--spacing-0);outline:var(--borders-none);border-radius:var(--_border-radius);box-sizing:border-box;position:fixed;box-shadow:var(--shadows-xl);width:100vw;height:100vh;max-width:100vw;max-height:100vh}.likec4-overlay::backdrop{cursor:zoom-out}.likec4-overlay .likec4-overlay-body{border:var(--borders-transparent);background:var(--colors-likec4-overlay-body);overflow:hidden;position:relative;container-name:likec4-dialog;container-type:size;width:100%;height:100%}.likec4-markdown-block{--text-fz: 1rem;--text-fz-sm: calc(var(--text-fz) * var(--mantine-scale, 1) / 1.125);--text-fz-md: calc(var(--text-fz) * var(--mantine-scale, 1));--typography-spacing: calc(.75 * var(--text-fz-md));--text-fw-headings: 600;font-size:var(--text-fz-md);line-height:var(--mantine-line-height)}[data-mantine-color-scheme=light] .likec4-markdown-block{--code-background: var(--mantine-color-gray-2);--code-color: var(--mantine-color-black)}[data-mantine-color-scheme=dark] .likec4-markdown-block{--code-background: var(--mantine-color-dark-8);--code-color: var(--mantine-color-white)}.likec4-markdown-block :where(hr){border:var(--borders-none);border-bottom:1px solid;margin-top:calc(var(--typography-spacing) / 2);margin-bottom:calc(var(--typography-spacing) / 2)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(hr){border-color:var(--colors-mantine-colors-gray\\[3\\])}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(hr){border-color:var(--colors-mantine-colors-dark\\[3\\])}.likec4-markdown-block :where(pre){margin:var(--spacing-0);padding-inline:var(--spacing-3);padding-block:var(--spacing-2);border-radius:var(--radii-sm);line-height:var(--mantine-line-height-xs);font-family:var(--mantine-font-family-monospace);font-size:var(--text-fz-sm);background-color:var(--code-background);color:var(--code-color);margin-top:var(--typography-spacing);margin-bottom:var(--typography-spacing);overflow-x:auto}.likec4-markdown-block :where(code){padding:1px 4px;border-radius:var(--radii-xs);line-height:var(--line-heights-1);font-family:var(--mantine-font-family-monospace);font-size:var(--text-fz-sm);background-color:var(--code-background);color:var(--code-color)}.likec4-markdown-block :where(pre code){padding:var(--spacing-0);border:0;border-radius:var(--radii-0);background-color:var(--colors-transparent);color:inherit}.likec4-markdown-block :where(blockquote){margin:var(--spacing-0);padding:var(--spacing-xs);border-radius:var(--mantine-radius-sm);font-size:var(--text-fz-md)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(blockquote){background-color:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(blockquote){background-color:var(--mantine-color-dark-5)}.likec4-markdown-block :where(blockquote):not(:first-child){margin-top:var(--typography-spacing)}.likec4-markdown-block :where(h1,h2,h3,h4,h5,h6){text-wrap:var(--mantine-heading-text-wrap);line-height:1.5;font-family:var(--mantine-font-family-headings);margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(a){text-decoration:none;font-size:var(--text-fz-md);color:var(--mantine-color-anchor);font-weight:500}.likec4-markdown-block :where(a):is(:hover,[data-hover]){text-decoration:underline}.likec4-markdown-block :is(h1){font-size:calc(1.476 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h2){font-size:calc(1.383 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h3){font-size:calc(1.296 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h4){font-size:calc(1.215 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h5){font-size:calc(1.138 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h6){font-size:calc(1.067 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :where(p){font-size:var(--text-fz-md);margin-top:var(--spacing-0);margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(strong){font-weight:500}.likec4-markdown-block :where(mark){font-size:var(--text-fz-md)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(mark){background-color:var(--colors-mantine-colors-yellow\\[2\\]);color:inherit}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(mark){background-color:var(--colors-mantine-colors-yellow\\[5\\]);color:var(--mantine-color-black)}.likec4-markdown-block :where(ul,ol):not([data-type=taskList]){padding-inline-start:var(--typography-spacing);list-style-position:inside;margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(table){border-collapse:collapse;caption-side:bottom;width:100%;margin-bottom:var(--typography-spacing)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(table){--table-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(table){--table-border-color: var(--mantine-color-dark-4)}.likec4-markdown-block :where(table) :where(th){padding:var(--typography-spacing);text-align:left;font-weight:700;font-size:var(--text-fz-sm)}.likec4-markdown-block :where(table) :where(td){padding:var(--typography-spacing);border-bottom:1px solid;border-color:var(--table-border-color);font-size:var(--text-fz-sm)}.likec4-markdown-block :where(table) :where(thead th){border-bottom:1px solid;border-color:var(--table-border-color)}.likec4-markdown-block :where(table) :where(tfoot th){border-top:1px solid;border-color:var(--table-border-color)}.likec4-markdown-block :where(table) :where(tr:last-of-type td){border-bottom:0}.likec4-markdown-block :where(table) :where(caption){font-size:var(--text-fz-sm);color:var(--mantine-color-dimmed);margin-top:calc(.5 * var(--typography-spacing) + 1px)}.likec4-markdown-block :first-child{margin-top:var(--spacing-0)}.likec4-markdown-block :last-child{margin-bottom:var(--spacing-0)}.likec4-markdown-block :is(h1,h2,h3,h4,h5,h6):not(:first-child){margin-top:var(--typography-spacing)}.likec4-markdown-block :where(img){max-width:100%;margin-bottom:var(--typography-spacing)}.likec4-navigation-panel-icon{color:var(--colors-likec4-panel-action-icon-text)}.likec4-navigation-panel-icon:is(:disabled,[disabled],[data-disabled],[aria-disabled=true]){color:var(--colors-likec4-panel-action-icon-text-disabled);opacity:.5}.likec4-navigation-panel-icon:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-icon-text-hover)}.action-btn{--actionbtn-color: var(--likec4-palette-loContrast);--actionbtn-color-hovered: var(--likec4-palette-loContrast);--actionbtn-color-hovered-btn: var(--likec4-palette-hiContrast);--actionbtn-bg-idle: color-mix(in srgb , var(--likec4-palette-fill), transparent 99%);--actionbtn-bg-hovered: color-mix(in srgb , var(--likec4-palette-fill) 65%, var(--likec4-palette-stroke));--actionbtn-bg-hovered-btn: color-mix(in srgb , var(--likec4-palette-fill) 50%, var(--likec4-palette-stroke));--ai-bg: var(--actionbtn-bg-idle);background:var(--ai-bg);pointer-events:all;cursor:pointer;color:var(--actionbtn-color);opacity:.75}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .action-btn{--ai-bg: var(--actionbtn-bg-hovered);opacity:1;color:var(--actionbtn-color-hovered)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .action-btn{display:none}:where([data-likec4-zoom-small=true]) .action-btn{display:none}.action-btn *{pointer-events:none}.action-btn:is(:hover,[data-hover]){--ai-bg: var(--actionbtn-bg-hovered-btn);opacity:1;color:var(--actionbtn-color-hovered-btn)}.likec4-compound-node{--_border-width: 3px;--_border-radius: 6px;--_compound-transparency: 100%;--_border-transparency: 100%;--_indicator-spacing: calc(var(--_border-width) + 2px);--_compound-color: var(--likec4-palette-loContrast);padding:var(--spacing-0);margin:var(--spacing-0);border-style:solid;border-width:var(--_border-width);border-radius:var(--_border-radius);position:relative;pointer-events:none;background-clip:padding-box;-webkit-background-clip:padding-box;box-sizing:border-box;color:var(--_compound-color);width:100%;height:100%}[data-mantine-color-scheme=light] .likec4-compound-node{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 80%, var(--likec4-palette-hiContrast))}[data-mantine-color-scheme=dark] .likec4-compound-node{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 60%, var(--likec4-palette-hiContrast))}.likec4-compound-node:after{border-style:solid;border-width:calc(var(--_border-width) + 1px);border-radius:calc(var(--_border-radius) + 4px);border-color:var(--likec4-palette-outline);position:absolute;content:" ";pointer-events:none;display:none;animation-play-state:paused;top:calc(-1 * var(--_indicator-spacing));left:calc(-1 * var(--_indicator-spacing));width:calc(100% + 2 * var(--_indicator-spacing));height:calc(100% + 2 * var(--_indicator-spacing))}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-compound-node:after{display:block;animation-play-state:running}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node:after{display:block;animation-play-state:running}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-compound-node:after{animation-play-state:paused}.likec4-compound-node:has(.likec4-compound-navigation) .likec4-compound-title-container{padding-left:24px}.likec4-compound-node .action-btn{--actionbtn-color: var(--_compound-color);--actionbtn-color-hovered: var(--_compound-color);--actionbtn-color-hovered-btn: color-mix(in srgb, var(--_compound-color) 80%, #fff);opacity:.6}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-compound-node .action-btn{transition:all var(--durations-fast) var(--easings-in-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-compound-node .action-btn{opacity:.75}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node .action-btn{opacity:.75}.likec4-compound-node .action-btn:is(:hover,[data-hover]){opacity:1}.likec4-compound-node .likec4-compound-title-container{gap:var(--spacing-1\\.5);position:absolute;display:flex;align-items:center;left:var(--spacing-2\\.5);top:var(--spacing-0\\.5);right:30px;width:auto;min-height:30px}:where(.react-flow__node.draggable) .likec4-compound-node .likec4-compound-title-container{pointer-events:all;cursor:grab}.likec4-compound-node .likec4-compound-title{flex:1 1 0%;font-family:var(--fonts-likec4-compound);font-weight:600;font-size:15px;text-transform:uppercase;letter-spacing:.25px;line-height:var(--line-heights-1);color:var(--_compound-color)}.likec4-compound-node .likec4-compound-icon{flex:0 0 20px;display:flex;align-items:center;justify-content:center;mix-blend-mode:hard-light;height:20px;width:20px}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon{mix-blend-mode:normal}.likec4-compound-node .likec4-compound-icon svg,.likec4-compound-node .likec4-compound-icon img{pointer-events:none;filter:drop-shadow(0 0 3px rgb(0 0 0 / 12%)) drop-shadow(0 1px 8px rgb(0 0 0 / 8%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 3%));width:100%;height:auto;max-height:100%}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon svg,.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon img{filter:none}.likec4-compound-node .likec4-compound-icon img{object-fit:contain}.likec4-compound-node .likec4-compound-navigation{position:absolute;top:var(--spacing-1);left:var(--spacing-0\\.5)}:where([data-likec4-zoom-small=true]) .likec4-compound-node .likec4-compound-navigation{display:none}.likec4-compound-node .likec4-compound-details{position:absolute;top:var(--spacing-0\\.5);right:var(--spacing-0\\.5)}:where([data-likec4-zoom-small=true]) .likec4-compound-node .likec4-compound-details{display:none}.likec4-edge-action-btn{--ai-bg: transparent;--ai-hover: color-mix(in srgb , var(--xy-edge-label-background-color), var(--colors-likec4-mix-color) 10%);--ai-size: var(--ai-size-sm);--ai-radius: var(--radii-sm);transition:all var(--durations-fast) var(--easings-in-out);pointer-events:all;color:var(--xy-edge-label-color);cursor:pointer;opacity:.75;translate:var(--translate-x) var(--translate-y)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-edge-action-btn{--ai-bg: var(--xy-edge-label-background-color);opacity:1}.likec4-edge-action-btn .tabler-icon{stroke-width:2;width:80%;height:80%}.likec4-edge-action-btn:is(:hover,[data-hover]){--translate-y: 2px;scale:1.15}.likec4-edge-action-btn:is(:active,[data-active]){--translate-y: -1px;scale:.9}.likec4-element-node-data{margin:0 auto;flex:1 1 0%;overflow:hidden;gap:var(--spacing-3);position:relative;display:flex;align-items:center;justify-content:center;flex-direction:row;pointer-events:none;text-align:center;height:fit-content;width:fit-content;max-height:100%;max-width:100%;padding-top:var(--likec4-spacing);padding-bottom:var(--likec4-spacing);padding-left:calc(var(--likec4-spacing) + 8px);padding-right:calc(var(--likec4-spacing) + 8px)}:where([data-likec4-shape-size=xs]) .likec4-element-node-data{--likec4-icon-size: 24px}:where([data-likec4-shape-size=sm]) .likec4-element-node-data{--likec4-icon-size: 36px}:where([data-likec4-shape-size=md]) .likec4-element-node-data{--likec4-icon-size: 60px}:where([data-likec4-shape-size=lg]) .likec4-element-node-data{--likec4-icon-size: 82px;gap:var(--spacing-4)}:where([data-likec4-shape-size=xl]) .likec4-element-node-data{--likec4-icon-size: 90px;gap:var(--spacing-4)}.likec4-element-node-data:has([data-likec4-icon]){gap:var(--spacing-4);text-align:left}.likec4-element-node-data:has([data-likec4-icon]) .likec4-element-node-content{align-items:flex-start;min-width:calc(50% + var(--likec4-icon-size))}:where([data-likec4-shape=queue]) .likec4-element-node-data{padding-left:46px;padding-right:16px}:where([data-likec4-shape=mobile]) .likec4-element-node-data{padding-left:46px;padding-right:16px}:where([data-likec4-shape=cylinder]) .likec4-element-node-data{padding-top:30px}:where([data-likec4-shape=storage]) .likec4-element-node-data{padding-top:30px}:where([data-likec4-shape=browser]) .likec4-element-node-data{padding-top:32px;padding-bottom:28px}.likec4-element-node-data [data-likec4-icon]{flex:0 0 var(--likec4-icon-size, 48px);display:flex;align-self:flex-start;align-items:center;justify-content:center;mix-blend-mode:hard-light;height:var(--likec4-icon-size, 48px);width:var(--likec4-icon-size, 48px)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon]{mix-blend-mode:normal}.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{pointer-events:none;filter:drop-shadow(0 0 3px rgb(0 0 0 / 12%));width:100%;height:auto;max-height:100%}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon] svg,.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon] img{filter:none}.likec4-element-node-data [data-likec4-icon] img{object-fit:contain}.likec4-element-node-data .likec4-element-node-content{flex:0 1 auto;overflow:hidden;gap:var(--spacing-2);display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex-wrap:nowrap;height:fit-content;width:fit-content;max-height:100%;max-width:100%}.likec4-element-node-data .likec4-element-node-content:has([data-likec4-node-description]):has([data-likec4-node-technology]){gap:var(--spacing-1\\.5)}.likec4-element-node-data [data-likec4-node-title]{flex:0 0 auto;font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:500;font-size:var(--likec4-text-size);line-height:1.15;text-wrap-style:balance;white-space:preserve-breaks;text-align:var(__text-align);color:var(--likec4-palette-hiContrast)}.likec4-element-node-data [data-likec4-node-description]{overflow:hidden;flex-grow:0;flex-shrink:1;--text-fz: calc(var(--likec4-text-size) * .74);font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:400;font-size:calc(var(--likec4-text-size) * .74);line-height:1.3;text-wrap-style:pretty;color:var(--likec4-palette-loContrast);text-align:var(__text-align);text-overflow:ellipsis}:where([data-likec4-shape-size=xs]) .likec4-element-node-data [data-likec4-node-description]{display:none}:where([data-likec4-zoom-small=true]) .likec4-element-node-data [data-likec4-node-description]{display:none}.likec4-element-node-data [data-likec4-node-description] a{pointer-events:all}.likec4-element-node-data [data-likec4-node-technology]{flex:0 0 auto;text-wrap:balance;--text-fz: calc(var(--likec4-text-size) * .74);font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:400;font-size:calc(var(--likec4-text-size) * .635);line-height:1.125;text-wrap-style:pretty;color:var(--likec4-palette-loContrast);text-align:var(__text-align);opacity:.92}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-node-data [data-likec4-node-technology]{opacity:1}:where([data-likec4-shape-size=xs]) .likec4-element-node-data [data-likec4-node-technology]{display:none}:where([data-likec4-shape-size=sm]) .likec4-element-node-data [data-likec4-node-technology]{display:none}:where([data-likec4-zoom-small=true]) .likec4-element-node-data [data-likec4-node-technology]{display:none}.likec4-element-shape{overflow:visible;position:absolute;pointer-events:none;top:var(--spacing-0);left:var(--spacing-0);width:100%;height:100%}[data-mantine-color-scheme=light] .likec4-element-shape{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 60%, var(--likec4-palette-hiContrast))}[data-mantine-color-scheme=dark] .likec4-element-shape{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 30%, var(--likec4-palette-loContrast))}.likec4-element-shape .likec4-shape-outline{visibility:hidden;animation-play-state:paused;pointer-events:none}:where([data-likec4-zoom-small=true]) .likec4-element-shape .likec4-shape-outline{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}.group:is(:focus-visible,[data-focus-visible]) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape .likec4-shape-outline{animation-play-state:paused}.likec4-tag{transition:all var(--durations-fast) var(--easings-in-out);gap:1px;padding-inline:var(--spacing-1);padding-block:var(--spacing-0);pointer-events:all;display:inline-flex;align-items:center;justify-content:center;font-size:var(--font-sizes-xs);cursor:default;font-family:var(--fonts-likec4);font-weight:700;border:var(--borders-none);border-radius:3px;color:var(--colors-likec4-tag-text);background-color:var(--colors-likec4-tag-bg)}.likec4-tag:is(:hover,[data-hover]){background-color:var(--colors-likec4-tag-bg-hover)}.likec4-tag{white-space:nowrap;min-width:40px;width:min-content}@media screen and (min-width: 36rem){.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{filter:drop-shadow(0 1px 8px rgb(0 0 0 / 8%))}}@media screen and (min-width: 48rem){.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{filter:drop-shadow(1px 1px 16px rgb(0 0 0 / 3%))}}}.likec4-overlay--withBackdrop_true::backdrop{background:color-mix(in srgb,var(--colors-likec4-overlay-backdrop) var(--_opacity),transparent);backdrop-filter:blur(var(--_blur));-webkit-backdrop-filter:blur(var(--_blur))}.likec4-overlay--fullscreen_true{inset:var(--spacing-0);padding:var(--spacing-0)}.likec4-overlay--withBackdrop_false::backdrop{display:none}.likec4-markdown-block--value_plaintext :where(p){white-space:preserve-breaks}.likec4-markdown-block--uselikec4palette_true{--code-background: color-mix(in srgb , var(--likec4-palette-stroke) 70%, transparent);--code-color: var(--likec4-palette-loContrast);--typography-spacing: calc(.5 * var(--text-fz-md))}.likec4-markdown-block--uselikec4palette_true :where(blockquote){padding:var(--spacing-xxs);--mix-backgroundColor: color-mix(in srgb, var(--likec4-palette-stroke) 65%, transparent);background-color:var(--mix-backgroundColor, var(--likec4-palette-stroke))}.likec4-markdown-block--uselikec4palette_true :where(hr){--mix-borderColor: color-mix(in srgb, var(--likec4-palette-stroke) 85%, transparent);border-color:var(--mix-borderColor, var(--likec4-palette-stroke))}.likec4-markdown-block--uselikec4palette_true :where(a){--mix-color: color-mix(in srgb, var(--likec4-palette-fill) 45%, transparent);color:var(--mix-color, var(--likec4-palette-fill));mix-blend-mode:difference}.likec4-markdown-block--uselikec4palette_true :where(strong){color:color-mix(in srgb,var(--likec4-palette-hiContrast) 50%,var(--likec4-palette-loContrast))}.likec4-navigation-panel-icon--variant_default{background-color:var(--colors-transparent)}.likec4-navigation-panel-icon--variant_default:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-icon-bg-hover)}.likec4-navigation-panel-icon--variant_filled{background-color:var(--colors-likec4-panel-action-icon-bg)}.likec4-navigation-panel-icon--variant_filled:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-icon-bg-hover)}.action-btn--size_md{--ai-size: var(--ai-size-md)}.action-btn--radius_md{--ai-radius: var(--mantine-radius-md)}.action-btn--variant_transparent{--actionbtn-bg-hovered: var(--actionbtn-bg-idle)}.action-btn--variant_filled{box-shadow:1px 1px 3px 0 transparent}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .action-btn--variant_filled{box-shadow:1px 1px 3px #0003}.likec4-root:is([data-likec4-reduced-graphics]) .action-btn--variant_filled{box-shadow:var(--shadows-none)}.likec4-compound-node--borderStyle_dashed{border-style:dashed}.likec4-compound-node--borderStyle_none{--_indicator-spacing: calc(var(--_border-width) * 2);border-color:var(--colors-transparent)!important;background-clip:border-box!important;-webkit-background-clip:border-box!important}.likec4-compound-node--isTransparent_false{border-color:var(--likec4-palette-stroke);background-color:var(--likec4-palette-fill)}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-compound-node--isTransparent_false{box-shadow:0 4px 10px .5px #0000001a,0 2px 2px -1px #0006}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node--isTransparent_false{box-shadow:var(--shadows-none)}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-compound-node--isTransparent_false{box-shadow:var(--shadows-none)!important}.likec4-compound-node--isTransparent_true{border-color:color-mix(in srgb,var(--likec4-palette-stroke) var(--_border-transparency),transparent);background-color:color-mix(in srgb,var(--likec4-palette-fill) var(--_compound-transparency),transparent)}.likec4-compound-node--inverseColor_true{--_compound-color: var(--likec4-palette-stroke)}[data-mantine-color-scheme=dark] .likec4-compound-node--inverseColor_true{--_compound-color: color-mix(in srgb, var(--likec4-palette-loContrast) 60%, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .likec4-compound-node--inverseColor_true .action-btn{--actionbtn-color-hovered-btn: var(--likec4-palette-loContrast)}[data-mantine-color-scheme=light] .likec4-compound-node--inverseColor_true .action-btn{--actionbtn-color: var(--likec4-palette-stroke);--actionbtn-color-hovered: var(--likec4-palette-stroke);--actionbtn-color-hovered-btn: var(--likec4-palette-hiContrast);--actionbtn-bg-hovered: var(--likec4-palette-fill)/50;--actionbtn-bg-hovered-btn: var(--likec4-palette-fill)}.likec4-compound-node--borderStyle_solid{border-style:solid}.likec4-compound-node--borderStyle_dotted{border-style:dotted}.likec4-element-shape--shapetype_html{--likec4-outline-size: 4px;border-radius:6px;transition:background-color .12s linear,box-shadow .13s var(--easings-in-out);background-color:var(--likec4-palette-fill);box-shadow:0 2px 1px #00000036,0 1px 1px color-mix(in srgb,var(--likec4-palette-stroke) 40%,transparent),0 5px 3px #0000001a;transition-delay:0ms}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html{transition:none}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}[data-mantine-color-scheme=light] :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html{box-shadow:#26394df2 0 20px 30px -10px}[data-mantine-color-scheme=dark] :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html{box-shadow:#0a0b10e5 0 20px 30px -10px}.likec4-element-shape--shapetype_html .likec4-shape-multiple{border-radius:6px;transition:all var(--durations-fast) var(--easings-in-out);position:absolute;content:" ";background-color:var(--likec4-palette-fill);z-index:-1;filter:brightness(.5)!important;visibility:visible;top:16px;left:16px;width:calc(100% - 6px);height:calc(100% - 6px)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{transform:translate(-14px,-14px)}.likec4-element-shape--shapetype_html .likec4-shape-outline{border-style:solid;border-width:var(--likec4-outline-size);border-radius:10px;border-color:var(--likec4-palette-outline);position:absolute;content:" ";animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity;top:calc(-1 * var(--likec4-outline-size));left:calc(-1 * var(--likec4-outline-size));width:calc(100% + 2 * var(--likec4-outline-size));height:calc(100% + 2 * var(--likec4-outline-size))}.likec4-element-shape--shapetype_svg{transition:fill .12s linear,filter .13s var(--easings-in-out);fill:var(--likec4-palette-fill);stroke:var(--likec4-palette-stroke);transition-delay:0ms;filter:drop-shadow(0 2px 1px rgba(0,0,0,.21)) drop-shadow(0 1px 1px color-mix(in srgb,var(--likec4-palette-stroke) 40%,transparent)) drop-shadow(0 5px 3px rgba(0,0,0,.1))}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_svg{filter:drop-shadow(0 2px 1px rgba(0,0,0,.12)) drop-shadow(0px 4px 2px rgba(0,0,0,.12)) drop-shadow(0px 8px 4px rgba(0,0,0,.12)) drop-shadow(0px 16px 8px rgba(0,0,0,.1)) drop-shadow(0px 32px 16px rgba(0,0,0,.09))}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_svg{filter:none}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_svg{filter:none}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_svg{filter:none}.likec4-element-shape--shapetype_svg [data-likec4-fill=fill]{fill:var(--likec4-palette-fill)}.likec4-element-shape--shapetype_svg [data-likec4-fill=stroke]{fill:var(--likec4-palette-stroke)}.likec4-element-shape--shapetype_svg [data-likec4-fill=mix-stroke]{fill:color-mix(in srgb,var(--likec4-palette-stroke) 90%,var(--likec4-palette-fill))}.likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transition:all var(--durations-fast) var(--easings-in-out);transform-origin:50% 50%;transform:translate(14px,14px) perspective(200px) translateZ(-4px);filter:brightness(.5)!important;stroke:var(--colors-none)}:where([data-likec4-shape=queue]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:75% 25%}:where([data-likec4-shape=cylinder]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:50% 100%}:where([data-likec4-shape=storage]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:50% 100%}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform:translate(2px,2px) perspective(200px) translateZ(-4px)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}.likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]) [data-likec4-fill=mix-stroke]{fill:var(--likec4-palette-fill)}.likec4-element-shape--shapetype_svg .likec4-shape-outline{stroke:var(--likec4-palette-outline);fill:var(--colors-none);stroke-width:8;stroke-opacity:.8;animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity}.likec4-tag--autoTextColor_false>span{color:var(--colors-likec4-tag-text)}.likec4-tag--autoTextColor_false>span:first-child{opacity:.65}.likec4-tag--autoTextColor_true>span{background:inherit;color:var(--colors-transparent);filter:invert(1) grayscale(1) brightness(1.3) contrast(1000);background-clip:text;-webkit-background-clip:text;mix-blend-mode:plus-lighter}.hover\\:likec4-tag--autoTextColor_true:is(:hover,[data-hover])>span{background:inherit;color:var(--colors-transparent);filter:invert(1) grayscale(1) brightness(1.3) contrast(1000);background-clip:text;-webkit-background-clip:text;mix-blend-mode:plus-lighter}.hover\\:likec4-tag--autoTextColor_false:is(:hover,[data-hover])>span{color:var(--colors-likec4-tag-text)}.hover\\:likec4-tag--autoTextColor_false:is(:hover,[data-hover])>span:first-child{opacity:.65}@media screen and (min-width: 48rem){.likec4-overlay--fullscreen_false{--_border-radius: 6px;--_offset: 1rem;inset:var(--_inset) var(--_inset) var(--_offset) var(--_inset);padding:var(--spacing-1\\.5);border-radius:calc(var(--_border-radius) - 2px);width:calc(100vw - 2 * var(--_inset));height:calc(100vh - var(--_offset) - var(--_inset))}}@media screen and (min-width: 62rem){.likec4-overlay--fullscreen_false{--_offset: 1rem}}@media screen and (min-width: 75rem){.likec4-overlay--fullscreen_false{--_offset: 2rem}}@media screen and (min-width: 88rem){.likec4-overlay--fullscreen_false{--_offset: 4rem}}}@layer recipes.slots{@layer _base{.likec4-navlink__root{border-radius:var(--radii-sm);padding-inline:var(--spacing-xs);padding-block:var(--spacing-xxs)}.likec4-navlink__root:is(:hover,[data-hover]):not([data-active]){background-color:var(--colors-mantine-colors-gray\\[1\\])}[data-mantine-color-scheme=dark] .likec4-navlink__root:is(:hover,[data-hover]):not([data-active]){background-color:var(--colors-mantine-colors-dark\\[5\\])}.likec4-navlink__body{gap:var(--spacing-0\\.5);display:flex;flex-direction:column}.likec4-navlink__section:where([data-position=left]){margin-inline-end:var(--spacing-xxs)}.likec4-navlink__label{display:block;font-size:var(--font-sizes-sm);font-weight:500;line-height:1.2}.likec4-navlink__description{display:block;font-size:var(--font-sizes-xxs);line-height:1.2}.likec4-edge-label__root{background:var(--xy-edge-label-background-color);border:0px solid transparent;padding-block:var(--spacing-1);padding-inline:var(--spacing-1\\.5);gap:var(--spacing-0\\.5);border-radius:4px;pointer-events:all;font-family:var(--fonts-likec4-relation);display:flex;flex-direction:column;align-items:center;line-height:1.2;color:var(--xy-edge-label-color);width:max-content;max-width:100%}.likec4-edge-label__stepNumber{padding:var(--spacing-1);background:color-mix(in srgb,var(--likec4-palette-relation-label-bg),var(--colors-likec4-mix-color) 10%);flex:0 0 auto;align-self:stretch;font-weight:600;font-size:14px;text-align:center;font-variant-numeric:tabular-nums;min-width:22px;border-top-left-radius:4px;border-bottom-left-radius:4px}.likec4-edge-label__stepNumber:only-child{border-radius:4px;min-width:24px}[data-mantine-color-scheme=dark] :where([data-likec4-color=gray]) .likec4-edge-label__stepNumber{background:color-mix(in srgb,var(--likec4-palette-relation-label-bg),var(--colors-likec4-mix-color) 15%)}.likec4-edge-label__labelContents{display:contents}.likec4-edge-label__labelContents:is(:empty,[data-empty]){display:none!important}.likec4-edge-label__labelText{margin:var(--spacing-0);white-space-collapse:preserve-breaks;font-size:14px}.likec4-edge-label__labelTechnology{text-align:center;white-space-collapse:preserve-breaks;font-size:11px;line-height:var(--line-heights-1);opacity:.75}}.likec4-navlink__label--truncateLabel_true,.likec4-navlink__description--truncateLabel_true{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.likec4-edge-label__root--cursor_pointer{cursor:pointer}.likec4-edge-label__root--cursor_default{cursor:default}.likec4-edge-label__root--isStepEdge_true{padding:var(--spacing-0);gap:var(--spacing-1);flex-direction:row}.likec4-edge-label__labelContents--isStepEdge_true{gap:var(--spacing-0\\.5);display:flex;flex-direction:column;align-items:center;padding-top:var(--spacing-0\\.5);padding-right:var(--spacing-1);padding-bottom:var(--spacing-1)}.likec4-edge-label__labelText--isStepEdge_true{padding-block:var(--spacing-0\\.5);padding-right:var(--spacing-0\\.5)}}@layer utilities{@layer compositions{.layerStyle_likec4\\.panel{border:1px solid var(--colors-likec4-panel-border);padding-block:var(--spacing-1);padding-inline:var(--spacing-xs);border-radius:var(--radii-0);background-color:var(--colors-likec4-panel-bg)}.likec4-root:is([data-likec4-diagram-panning=true]) .layerStyle_likec4\\.panel{border-radius:var(--radii-0);box-shadow:var(--shadows-none)}.layerStyle_likec4\\.dropdown{padding:var(--spacing-xxs);border:1px solid var(--colors-likec4-dropdown-border);border-radius:var(--radii-md);background-color:var(--colors-likec4-dropdown-bg);box-shadow:var(--shadows-lg)}.likec4-root:is([data-likec4-diagram-panning=true]) .layerStyle_likec4\\.dropdown{border-radius:0;border-color:var(--colors-transparent);box-shadow:var(--shadows-none)}.layerStyle_likec4\\.tag{border:var(--borders-none);border-radius:3px;color:var(--colors-likec4-tag-text);background-color:var(--colors-likec4-tag-bg)}.layerStyle_likec4\\.tag:is(:hover,[data-hover]){background-color:var(--colors-likec4-tag-bg-hover)}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:animationStyle_xyedgeAnimated{animation-duration:.8s;animation-iteration-count:infinite;animation-timing-function:linear;animation-fill-mode:both;animation-name:xyedgeAnimated}@container (min-width: 40rem){.layerStyle_likec4\\.panel{padding:2xs;border-radius:var(--radii-md);box-shadow:var(--shadows-lg)}}}.--mantine-cursor-pointer_pointer{--mantine-cursor-pointer: pointer}.--thickness_1px{--thickness: 1px}.--bleed-x_token\\(spacing\\.2\\,_2\\){--bleed-x: var(--spacing-2, 2)}.--bleed-y_token\\(spacing\\.2\\,_2\\){--bleed-y: var(--spacing-2, 2)}.--text-fz_\\{fontSizes\\.sm\\}{--text-fz: var(--font-sizes-sm)}.--view-title-color_\\{colors\\.mantine\\.colors\\.dark\\[1\\]\\}{--view-title-color: var(--colors-mantine-colors-dark\\[1\\])}.--likec4-icon-size_24px{--likec4-icon-size: 24px}.--ti-size_var\\(--likec4-icon-size\\,_24px\\){--ti-size: var(--likec4-icon-size, 24px)}.--_color_var\\(--likec4-palette-stroke\\){--_color: var(--likec4-palette-stroke)}.--ai-radius_0px{--ai-radius: 0px}.--badge-radius_2px{--badge-radius: 2px}.--badge-fz_9\\.5px{--badge-fz: 9.5px}.--badge-padding-x_3px{--badge-padding-x: 3px}.--badge-height_13\\.5px{--badge-height: 13.5px}.--badge-lh_1{--badge-lh: 1}.--badge-bg_var\\(--likec4-palette-fill\\){--badge-bg: var(--likec4-palette-fill)}.--badge-color_var\\(--likec4-palette-hiContrast\\){--badge-color: var(--likec4-palette-hiContrast)}.bg_dots{background:dots}.bg_transparent{background:var(--colors-transparent)}.p_0{padding:var(--spacing-0)}.p_xl{padding:var(--spacing-xl)}.bd_1px_solid{border:1px solid}.bg_mantine\\.colors\\.default{background:var(--colors-mantine-colors-default)}.p_\\[4px_7px\\]{padding:4px 7px}.m_0{margin:var(--spacing-0)}.bg_\\[transparent\\]{background:var(--colors-transparent)}.p_1{padding:var(--spacing-1)}.p_4{padding:var(--spacing-4)}.p_0\\.5{padding:var(--spacing-0\\.5)}.m_xs{margin:var(--spacing-xs)}.p_md{padding:var(--spacing-md)}.p_8{padding:var(--spacing-8)}.p_xxs{padding:var(--spacing-xxs)}.bg_mantine\\.colors\\.orange\\.light{background:var(--colors-mantine-colors-orange-light)}.p_\\[4px_6px\\]{padding:4px 6px}.bg_mantine\\.colors\\.gray\\[2\\]{background:var(--colors-mantine-colors-gray\\[2\\])}.bg_mantine\\.colors\\.gray\\[3\\]{background:var(--colors-mantine-colors-gray\\[3\\])}.bd_2px_solid{border:2px solid}.inset_0{inset:var(--spacing-0)}.bd_transparent{border:var(--borders-transparent)}.bd_none{border:var(--borders-none)}.bg_mantine\\.colors\\.body{background:var(--colors-mantine-colors-body)}.p_\\[10px_8px\\]{padding:10px 8px}.bd_1px_dashed{border:1px dashed}.bg_mantine\\.colors\\.gray\\[1\\]{background:var(--colors-mantine-colors-gray\\[1\\])}.p_\\[6px_8px\\]{padding:6px 8px}.bd_3\\.5px_solid{border:3.5px solid}.p_\\[3px_6px\\]{padding:3px 6px}.bg_var\\(--likec4-palette-fill\\)\\/75{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 75%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}.bd_1px_solid_\\{colors\\.mantine\\.colors\\.defaultBorder\\}{border:1px solid var(--colors-mantine-colors-default-border)}.p_\\[1px_5px\\]{padding:1px 5px}.bg_mantine\\.colors\\.dark\\[7\\]{background:var(--colors-mantine-colors-dark\\[7\\])}.p_\\[6px_2px_0_2px\\]{padding:6px 2px 0}.p_\\[0_4px_5px_4px\\]{padding:0 4px 5px}.p_xs{padding:var(--spacing-xs)}.bg_mantine\\.colors\\.dark\\[9\\]\\/30{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[9\\]) 30%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[9\\]))}.bg_mantine\\.colors\\.primary\\[8\\]{background:var(--colors-mantine-colors-primary\\[8\\])}.p_\\[12px_8px_12px_14px\\]{padding:12px 8px 12px 14px}.bd_2px_dashed{border:2px dashed}.bd_default{border:var(--borders-default)}.p_2{padding:var(--spacing-2)}.bd_3px_dashed{border:3px dashed}.gap_20{gap:20px}.gap_xs{gap:var(--spacing-xs)}.transition_fast{transition:all var(--durations-fast) var(--easings-in-out)}.td_none{text-decoration:none}.bdr_sm{border-radius:var(--radii-sm)}.bd-c_mantine\\.colors\\.defaultBorder{border-color:var(--colors-mantine-colors-default-border)}.flex_1{flex:1 1 0%}.gap_xxs{gap:var(--spacing-xxs)}.gap_sm{gap:var(--spacing-sm)}.gap_1{gap:var(--spacing-1)}.ov_hidden{overflow:hidden}.gap_0\\.5{gap:var(--spacing-0\\.5)}.gap_\\[4px\\]{gap:4px}.px_xs{padding-inline:var(--spacing-xs)}.py_xxs{padding-block:var(--spacing-xxs)}.px_sm{padding-inline:var(--spacing-sm)}.gap_8px{gap:8px}.gap_1\\.5{gap:var(--spacing-1\\.5)}.bdr_\\[4px\\]{border-radius:4px}.px_1\\.5{padding-inline:var(--spacing-1\\.5)}.gap_3{gap:var(--spacing-3)}.mx_calc\\(var\\(--bleed-x\\,_0\\)_\\*_-1\\){margin-inline:calc(var(--bleed-x, 0) * -1)}.my_calc\\(var\\(--bleed-y\\,_0\\)_\\*_-1\\){margin-block:calc(var(--bleed-y, 0) * -1)}.py_2\\.5{padding-block:var(--spacing-2\\.5)}.px_2{padding-inline:var(--spacing-2)}.gap_2{gap:var(--spacing-2)}.offset_2{offset:2px}.py_1\\.5{padding-block:var(--spacing-1\\.5)}.bd-l_2px_dotted{border-left:2px dotted}.px_1{padding-inline:var(--spacing-1)}.py_0\\.5{padding-block:var(--spacing-0\\.5)}.bdr_\\[2px\\]{border-radius:2px}.px_xxs{padding-inline:var(--spacing-xxs)}.py_1{padding-block:var(--spacing-1)}.gap_\\[1px\\]{gap:1px}.gap_md{gap:var(--spacing-md)}.ov_auto{overflow:auto}.ovs-b_contain{overscroll-behavior:contain}.ov_visible{overflow:visible}.my_10{margin-block:var(--spacing-10)}.flex_1_1_40\\%{flex:1 1 40%}.bd-c_mantine\\.colors\\.gray\\[4\\]{border-color:var(--colors-mantine-colors-gray\\[4\\])}.bd-c_mantine\\.colors\\.gray\\[5\\]{border-color:var(--colors-mantine-colors-gray\\[5\\])}.bdr_3{border-radius:3px}.bd-c_mantine\\.colors\\.orange\\[6\\]{border-color:var(--colors-mantine-colors-orange\\[6\\])}.tw_pretty{text-wrap:pretty}.gap_lg{gap:var(--spacing-lg)}.flex_0{flex:0}.flex_0_0_40px{flex:0 0 40px}.gap_\\[24px_20px\\]{gap:24px 20px}.bd-c_mantine\\.colors\\.dark\\[3\\]{border-color:var(--colors-mantine-colors-dark\\[3\\])}.bd-t_none{border-top:var(--borders-none)}.bd-l_none{border-left:var(--borders-none)}.bdr_2px{border-radius:2px}.gap_4{gap:var(--spacing-4)}.gap_6{gap:var(--spacing-6)}.gap_\\[4px_4px\\]{gap:4px 4px}.ovs-b_none{overscroll-behavior:none}.flex_1_1_100\\%{flex:1 1 100%}.offset_0{offset:0}.py_4{padding-block:var(--spacing-4)}.gap_8{gap:var(--spacing-8)}.px_md{padding-inline:var(--spacing-md)}.py_xs{padding-block:var(--spacing-xs)}.grid-c_1{grid-column:1}.grid-c_2{grid-column:2}.grid-c_3{grid-column:3}.bd-b_1px_solid{border-bottom:1px solid}.gap_0{gap:var(--spacing-0)}.gap_\\[10px_12px\\]{gap:10px 12px}.py_3{padding-block:var(--spacing-3)}.offset_4{offset:4px}.flex_1_0_auto{flex:1 0 auto}.ring_none{outline:var(--borders-none)}.ring_none\\!{outline:var(--borders-none)!important}.bdr_4px{border-radius:4px}.mx_auto{margin-inline:auto}.px_4{padding-inline:var(--spacing-4)}.py_md{padding-block:var(--spacing-md)}.bd-c_mantine\\.colors\\.primary\\[9\\]{border-color:var(--colors-mantine-colors-primary\\[9\\])}.flex_0_0_var\\(--likec4-icon-size\\,_24px\\){flex:0 0 var(--likec4-icon-size, 24px)}.bdr_md{border-radius:var(--radii-md)}.py_xl{padding-block:var(--spacing-xl)}.bd-w_1{border-width:1px}.bd-c_\\[var\\(--_color\\)\\/30\\]{--mix-borderColor: color-mix(in srgb, var(--_color) 30%, transparent);border-color:var(--mix-borderColor, var(--_color))}.bdr_xs{border-radius:var(--radii-xs)}.transition_all_100ms_ease-in{transition:all .1s ease-in}.transition_all_150ms_ease-in-out{transition:all .15s ease-in-out}.py_sm{padding-block:var(--spacing-sm)}.flex_0_0_auto{flex:0 0 auto}.flex_0_0_70px{flex:0 0 70px}.bd-w_3px{border-width:3px}.border-style_dashed{border-style:dashed}.px_3{padding-inline:var(--spacing-3)}.px_5{padding-inline:var(--spacing-5)}.gap_6px{gap:6px}.px_4px{padding-inline:4px}.cursor_pointer{cursor:pointer}.pos_absolute{position:absolute}.c_gray{color:gray}.bkdp_blur\\(5px\\){backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.z_1000{z-index:1000}.c_red{color:red}.c_teal{color:teal}.op_1{opacity:1}.op_0\\.45{opacity:.45}.flex-wrap_nowrap{flex-wrap:nowrap}.us_all{-webkit-user-select:all;user-select:all}.bg-c_transparent{background-color:var(--colors-transparent)}.stk_2\\.5{stroke:2.5px}.op_0\\.7{opacity:.7}.fill_\\[\\#FCFBF7\\]{fill:#fcfbf7}.bx-sh_xs{box-shadow:var(--shadows-xs)}.fs_sm{font-size:var(--font-sizes-sm)}.fw_500{font-weight:500}.c_mantine\\.colors\\.placeholder{color:var(--colors-mantine-colors-placeholder)}.fs_11px{font-size:11px}.fw_600{font-weight:600}.lh_1{line-height:var(--line-heights-1)}.stk_2{stroke:2px}.ai_flex-start{align-items:flex-start}.pointer-events_none{pointer-events:none}.d_flex{display:flex}.ai_stretch{align-items:stretch}.flex-d_column{flex-direction:column}.main-axis_4{main-axis:4px}.pos_bottom-start{position:bottom-start}.ai_center{align-items:center}.flex-d_row{flex-direction:row}.pos_relative{position:relative}.pointer-events_all{pointer-events:all}.us_none{-webkit-user-select:none;user-select:none}.d_none{display:none}.flex-sh_1{flex-shrink:1}.flex-g_1{flex-grow:1}.flex-g_0{flex-grow:0}.op_0\\.3{opacity:.3}.bg-c_mantine\\.colors\\.gray\\[1\\]{background-color:var(--colors-mantine-colors-gray\\[1\\])}.stk_1\\.5{stroke:1.5px}.bd-e-w_var\\(--thickness\\){border-inline-end-width:var(--thickness)}.c_mantine\\.colors\\.gray\\[5\\]{color:var(--colors-mantine-colors-gray\\[5\\])}.c_mantine\\.colors\\.text\\/90{--mix-color: color-mix(in srgb, var(--colors-mantine-colors-text) 90%, transparent);color:var(--mix-color, var(--colors-mantine-colors-text))}.trunc_true{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c_mantine\\.colors\\.dimmed{color:var(--colors-mantine-colors-dimmed)}.bg-c_\\[rgb\\(34_34_34_\\/_var\\(--_opacity\\,_95\\%\\)\\)\\]{background-color:rgb(34 34 34 / var(--_opacity, 95%))}.bkdp_auto{backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, );-webkit-backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, )}.bkdp-blur_var\\(--_blur\\,_10px\\){--backdrop-blur: blur(var(--_blur, 10px))}.jc_stretch{justify-content:stretch}.cq-n_likec4-search-elements{container-name:likec4-search-elements}.cq-t_size{container-type:size}.d_contents{display:contents}.d_grid{display:grid}.order_6{order:6}.stk_1\\.8{stroke:1.8px}.trunc_end{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trs-dur_normal{--transition-duration: var(--durations-normal);transition-duration:var(--durations-normal)}.trs-dly_0\\.2s{transition-delay:.2s}.fill_none{fill:var(--colors-none)}.stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_2\\){stroke-width:calc(var(--xy-edge-stroke-width) + 2)}.stk-op_0\\.08{stroke-opacity:.08}.fill_\\[var\\(--xy-edge-stroke\\)\\]{fill:var(--xy-edge-stroke)}.stk_\\[var\\(--xy-edge-stroke\\)\\]{stroke:var(--xy-edge-stroke)}.stk-do_0{stroke-dashoffset:0}.jc_center{justify-content:center}.z_1{z-index:1}.ai_flex-end{align-items:flex-end}.justify-items_stretch{justify-items:stretch}.fs_lg{font-size:var(--font-sizes-lg)}.ai_baseline{align-items:baseline}.flex-wrap_wrap{flex-wrap:wrap}.translate_auto{translate:var(--translate-x) var(--translate-y)}.translate-x_\\[-8px\\]{--translate-x: -8px}.bd-be-w_var\\(--thickness\\){border-block-end-width:var(--thickness)}.cursor_default{cursor:default}.pos_top-start{position:top-start}.op_0\\.65{opacity:.65}.d_block{display:block}.fs_xxs{font-size:var(--font-sizes-xxs)}.lh_sm{line-height:var(--line-heights-sm)}.white-space_nowrap{white-space:nowrap}.white-space-collapse_preserve-breaks{white-space-collapse:preserve-breaks}.c_likec4\\.panel\\.action-icon\\.text{color:var(--colors-likec4-panel-action-icon-text)}.bg-c_likec4\\.panel\\.action-icon\\.bg{background-color:var(--colors-likec4-panel-action-icon-bg)}.op_0\\.8{opacity:.8}.pos_bottom-end{position:bottom-end}.bx-sh_xl{box-shadow:var(--shadows-xl)}.fs_xs{font-size:var(--font-sizes-xs)}.op_0\\.5{opacity:.5}.me_0\\.5{margin-inline-end:var(--spacing-0\\.5)}.fw_400{font-weight:400}.bx-sh_md{box-shadow:var(--shadows-md)}.main-axis_2{main-axis:2px}.lh_1\\.1{line-height:1.1}.pos_right-start{position:right-start}.bx-sh_lg{box-shadow:var(--shadows-lg)}.main-axis_10{main-axis:10px}.op_0\\.6{opacity:.6}.c_orange{color:orange}.pos_top{position:top}.pos_right{position:right}.main-axis_12{main-axis:12px}.ta_center{text-align:center}.bx-sh_inset_1px_1px_3px_0px_\\#00000024{box-shadow:inset 1px 1px 3px #00000024}.trf_translate\\(-50\\%\\,_-50\\%\\){transform:translate(-50%,-50%)}.flex-sh_0{flex-shrink:0}.ms_0{margin-inline-start:var(--spacing-0)}.z_9{z-index:9}.ta_left{text-align:left}.lh_1\\.25{line-height:1.25}.bx-s_border-box{box-sizing:border-box}.pos_fixed{position:fixed}.c_mantine\\.colors\\.text{color:var(--colors-mantine-colors-text)}.bg-c_mantine\\.colors\\.body{background-color:var(--colors-mantine-colors-body)}.bg-i_linear-gradient\\(180deg\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_60\\%\\,_transparent\\)\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_20\\%\\,_transparent\\)_8px\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_14\\%\\,_transparent\\)_20px\\,_transparent_80px_\\)\\,_linear-gradient\\(180deg\\,_var\\(--likec4-palette-fill\\)\\,_var\\(--likec4-palette-fill\\)_4px\\,_transparent_4px\\){background-image:linear-gradient(180deg,color-mix(in srgb,var(--likec4-palette-fill) 60%,transparent),color-mix(in srgb,var(--likec4-palette-fill) 20%,transparent) 8px,color-mix(in srgb,var(--likec4-palette-fill) 14%,transparent) 20px,transparent 80px),linear-gradient(180deg,var(--likec4-palette-fill),var(--likec4-palette-fill) 4px,transparent 4px)}.cursor_move{cursor:move}.ff_likec4\\.element{font-family:var(--fonts-likec4-element)}.font-optical-sizing_auto{font-optical-sizing:auto}.font-style_normal{font-style:normal}.fs_24px{font-size:24px}.lh_xs{line-height:var(--line-heights-xs)}.as_flex-start{align-self:flex-start}.c_\\[var\\(--view-title-color\\,_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}\\)\\]{color:var(--view-title-color, var(--colors-mantine-colors-gray\\[7\\]))}.fs_15px{font-size:15px}.lh_1\\.4{line-height:1.4}.c_mantine\\.colors\\.gray\\[7\\]{color:var(--colors-mantine-colors-gray\\[7\\])}.grid-tc_min-content_1fr{grid-template-columns:min-content 1fr}.grid-ar_min-content_max-content{grid-auto-rows:min-content max-content}.justify-self_end{justify-self:end}.ta_right{text-align:right}.cursor_se-resize{cursor:se-resize}.ai_start{align-items:start}.jc_space-between{justify-content:space-between}.stk_1\\.6{stroke:1.6px}.trs-prop_all{--transition-prop: all;transition-property:all}.trs-dur_fast{--transition-duration: var(--durations-fast);transition-duration:var(--durations-fast)}.trs-tmf_inOut{--transition-easing: var(--easings-in-out);transition-timing-function:var(--easings-in-out)}.c_mantine\\.colors\\.gray\\[8\\]{color:var(--colors-mantine-colors-gray\\[8\\])}.white-space_pre{white-space:pre}.ff_mono{font-family:var(--fonts-mono)}.ps_\\[16px\\]{padding-inline-start:16px}.pe_2\\.5{padding-inline-end:var(--spacing-2\\.5)}.stk_1\\.2{stroke:1.2px}.d_inline-block{display:inline-block}.lh_1\\.2{line-height:1.2}.c_var\\(--likec4-palette-hiContrast\\){color:var(--likec4-palette-hiContrast)}.fs_xl{font-size:var(--font-sizes-xl)}.c_mantine\\.colors\\.defaultColor{color:var(--colors-mantine-colors-default-color)}.bx-sh_none{box-shadow:var(--shadows-none)}.d_inline-flex{display:inline-flex}.pos_top-right{position:top-right}.pos_top-left{position:top-left}.grid-cs_1{grid-column-start:1}.grid-ce_4{grid-column-end:4}.grid-tc_1fr_30px_1fr{grid-template-columns:1fr 30px 1fr}.justify-items_start{justify-items:start}.c_dark{color:dark}.stk_3\\.5{stroke:3.5px}.cq-n_likec4-tree{container-name:likec4-tree}.cq-t_inline-size{container-type:inline-size}.fs_10px{font-size:10px}.lh_1\\.3{line-height:1.3}.order_2{order:2}.grayscale_0{--grayscale: grayscale(0)}.grayscale_0\\.9{--grayscale: grayscale(.9)}.filter_auto{filter:var(--blur, ) var(--brightness, ) var(--contrast, ) var(--grayscale, ) var(--hue-rotate, ) var(--invert, ) var(--saturate, ) var(--sepia, ) var(--drop-shadow, )}.cross-axis_50{cross-axis:50px}.sr_true{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fs_13px{font-size:13px}.fs_16px{font-size:16px}.c_mantine\\.colors\\.dark\\[1\\]{color:var(--colors-mantine-colors-dark\\[1\\])}.fs_12px{font-size:12px}.fs_md{font-size:var(--font-sizes-md)}.bg-c_\\[rgb\\(34_34_34_\\/_0\\.7\\)\\]{background-color:#222222b3}.z_902{z-index:902}.bkdp-blur_10px{--backdrop-blur: blur(10px)}.trf_translateX\\(-50\\%\\){transform:translate(-50%)}.z_903{z-index:903}.mix-bm_normal{mix-blend-mode:normal}.fill_var\\(--likec4-palette-relation-stroke\\){fill:var(--likec4-palette-relation-stroke)}.stk_var\\(--likec4-palette-relation-stroke\\){stroke:var(--likec4-palette-relation-stroke)}.fill-opacity_0\\.75{fill-opacity:.75}.stk-w_1{stroke-width:1}.cursor_grab{cursor:grab}.pointer-events_auto{pointer-events:auto}.vis_hidden{visibility:hidden}.cursor_grabbing{cursor:grabbing}.bg-c_var\\(--likec4-palette-fill\\)\\/15{--mix-backgroundColor: color-mix(in srgb, var(--likec4-palette-fill) 15%, transparent);background-color:var(--mix-backgroundColor, var(--likec4-palette-fill))}.fw_bold{font-weight:700}.ls_\\.75px{letter-spacing:.75px}.c_\\[var\\(--_color\\)\\/75\\]{--mix-color: color-mix(in srgb, var(--_color) 75%, transparent);color:var(--mix-color, var(--_color))}.bg-c_var\\(--likec4-palette-fill\\){background-color:var(--likec4-palette-fill)}.translate-x_-1\\/2{--translate-x: -50%}.translate-y_-1\\/2{--translate-y: -50%}.bg-c_mantine\\.colors\\.body\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-body) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-body))}.fill_var\\(--likec4-palette-fill\\){fill:var(--likec4-palette-fill)}.stk_var\\(--likec4-palette-stroke\\){stroke:var(--likec4-palette-stroke)}.filter_drop-shadow\\(0_2px_3px_rgb\\(0_0_0_\\/_22\\%\\)\\)_drop-shadow\\(0_1px_8px_rgb\\(0_0_0_\\/_10\\%\\)\\){filter:drop-shadow(0 2px 3px rgb(0 0 0 / 22%)) drop-shadow(0 1px 8px rgb(0 0 0 / 10%))}.ls_0\\.2px{letter-spacing:.2px}.tt_lowercase{text-transform:lowercase}.op_0\\.25{opacity:.25}.stk-w_5{stroke-width:5}.pos_right-end{position:right-end}.jc_flex-start{justify-content:flex-start}.pos_left-start{position:left-start}.tov_ellipsis{text-overflow:ellipsis}.top_1rem{top:1rem}.right_1rem{right:1rem}.top_0{top:var(--spacing-0)}.left_0{left:var(--spacing-0)}.w_100\\%{width:100%}.h_100\\%{height:100%}.mt_xl{margin-top:var(--spacing-xl)}.min-h_24{min-height:24px}.max-w_500{max-width:500px}.pr_0{padding-right:var(--spacing-0)}.h_12{height:12px}.w_12{width:12px}.h_30px{height:30px}.pl_sm{padding-left:var(--spacing-sm)}.pr_1{padding-right:var(--spacing-1)}.pr_2\\.5{padding-right:var(--spacing-2\\.5)}.max-w_calc\\(100vw\\){max-width:100vw}.pr_md{padding-right:var(--spacing-md)}.max-w_200px{max-width:200px}.max-w_calc\\(100vw_-_50px\\){max-width:calc(100vw - 50px)}.max-w_calc\\(100vw_-_250px\\){max-width:calc(100vw - 250px)}.max-h_calc\\(100vh_-_200px\\){max-height:calc(100vh - 200px)}.max-h_calc\\(100vh_-_160px\\){max-height:calc(100vh - 160px)}.mb_1{margin-bottom:var(--spacing-1)}.max-h_100vh{max-height:100vh}.pt_\\[20px\\]{padding-top:20px}.pl_md{padding-left:var(--spacing-md)}.pb_sm{padding-bottom:var(--spacing-sm)}.pr_xs{padding-right:var(--spacing-xs)}.lc_5{-webkit-line-clamp:5}.lc_5,.lc_2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.lc_2{-webkit-line-clamp:2}.lc_3{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.max-h_8rem{max-height:8rem}.top_0\\.5{top:var(--spacing-0\\.5)}.right_0\\.5{right:var(--spacing-0\\.5)}.bottom_0{bottom:var(--spacing-0)}.max-w_50{max-width:50px}.h_5{height:5px}.w_max-content{width:max-content}.pt_2{padding-top:var(--spacing-2)}.mt_2{margin-top:var(--spacing-2)}.mt_0{margin-top:var(--spacing-0)}.pl_2\\.5{padding-left:var(--spacing-2\\.5)}.bd-l-c_mantine\\.colors\\.gray\\[3\\]{border-left-color:var(--colors-mantine-colors-gray\\[3\\])}.w_\\[20px\\]{width:20px}.mt_1{margin-top:var(--spacing-1)}.mb_xxs{margin-bottom:var(--spacing-xxs)}.pb_lg{padding-bottom:var(--spacing-lg)}.max-w_calc\\(100cqw_-_52px\\){max-width:calc(100cqw - 52px)}.min-w_200px{min-width:200px}.max-h_calc\\(100cqh_-_100px\\){max-height:calc(100cqh - 100px)}.h_auto{height:auto}.pt_6{padding-top:var(--spacing-6)}.mb_10{margin-bottom:var(--spacing-10)}.pt_100\\%{padding-top:100%}.left_2{left:var(--spacing-2)}.bottom_2{bottom:var(--spacing-2)}.mt_xs{margin-top:var(--spacing-xs)}.top_md{top:var(--spacing-md)}.left_md{left:var(--spacing-md)}.w_8{width:8px}.h_8{height:8px}.mr_sm{margin-right:var(--spacing-sm)}.h_26{height:26px}.top_\\[1px\\]{top:1px}.right_\\[1px\\]{right:1px}.pt_xxs{padding-top:var(--spacing-xxs)}.max-w_calc\\(100cqw_-_32px\\){max-width:calc(100cqw - 32px)}.min-w_calc\\(100cqw_-_50px\\){min-width:calc(100cqw - 50px)}.w_100vw{width:100vw}.h_100vh{height:100vh}.max-w_100vw{max-width:100vw}.h_40px{height:40px}.w_40px{width:40px}.w_14px{width:14px}.h_14px{height:14px}.bottom_0\\.5{bottom:var(--spacing-0\\.5)}.mb_sm{margin-bottom:var(--spacing-sm)}.lc_1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.mt_6{margin-top:var(--spacing-6)}.pt_xs{padding-top:var(--spacing-xs)}.pr_xxs{padding-right:var(--spacing-xxs)}.mb_0{margin-bottom:var(--spacing-0)}.h_36px{height:36px}.min-w_24{min-width:24px}.mb_4{margin-bottom:var(--spacing-4)}.top_12{top:12px}.right_12{right:12px}.mt_sm{margin-top:var(--spacing-sm)}.ml_sm{margin-left:var(--spacing-sm)}.pl_1{padding-left:var(--spacing-1)}.bd-b-c_mantine\\.colors\\.defaultBorder{border-bottom-color:var(--colors-mantine-colors-default-border)}.max-h_70vh{max-height:70vh}.mb_2{margin-bottom:var(--spacing-2)}.max-w_8xl{max-width:8xl}.pl_\\[48px\\]{padding-left:48px}.mr_1{margin-right:var(--spacing-1)}.min-h_60px{min-height:60px}.h_var\\(--likec4-icon-size\\,_24px\\){height:var(--likec4-icon-size, 24px)}.w_var\\(--likec4-icon-size\\,_24px\\){width:var(--likec4-icon-size, 24px)}.top_\\[2rem\\]{top:2rem}.left_\\[50\\%\\]{left:50%}.max-w_600px{max-width:600px}.pl_2{padding-left:var(--spacing-2)}.pt_0\\.5{padding-top:var(--spacing-0\\.5)}.w_5px{width:5px}.top_1{top:var(--spacing-1)}.right_0{right:var(--spacing-0)}.w_min-content{width:min-content}.h_min-content{height:min-content}.min-w_200{min-width:200px}.max-w_calc\\(100vw_-_20px\\){max-width:calc(100vw - 20px)}.pt_0{padding-top:var(--spacing-0)}.pb_0{padding-bottom:var(--spacing-0)}.ml_2{margin-left:var(--spacing-2)}.h_xs{height:xs}.pb_8{padding-bottom:var(--spacing-8)}.pt_4{padding-top:var(--spacing-4)}.max-w_220px{max-width:220px}.\\[\\&_\\.action-icon\\]\\:--ai-size_2rem .action-icon{--ai-size: 2rem}[data-mantine-color-scheme=light] .light\\:--icon-color_\\{colors\\.mantine\\.colors\\.gray\\[6\\]\\}{--icon-color: var(--colors-mantine-colors-gray\\[6\\])}[data-mantine-color-scheme=light] .light\\:--view-title-color_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}{--view-title-color: var(--colors-mantine-colors-gray\\[7\\])}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:--ti-size_22px .mantine-ThemeIcon-root{--ti-size: 22px}[data-mantine-color-scheme=dark] .dark\\:--_color_\\[color-mix\\(in_srgb\\,_var\\(--likec4-palette-hiContrast\\)_40\\%\\,_var\\(--likec4-palette-fill\\)\\)\\]{--_color: color-mix(in srgb, var(--likec4-palette-hiContrast) 40%, var(--likec4-palette-fill))}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:--ai-radius_\\{radii\\.md\\}{--ai-radius: var(--radii-md)}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.white{background:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[6\\]{background:var(--colors-mantine-colors-dark\\[6\\])}.before\\:bg_\\[transparent\\]:before{background:var(--colors-transparent)}[data-mantine-color-scheme=light] .light\\:bg_var\\(--likec4-palette-fill\\)\\/90{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 90%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .dark\\:bg_var\\(--likec4-palette-fill\\)\\/60{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 60%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[5\\]{background:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[7\\]{background:var(--colors-mantine-colors-dark\\[7\\])}.\\[\\&\\[data-active\\]\\]\\:bg_mantine\\.colors\\.white[data-active]{background:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.gray\\[1\\]{background:var(--colors-mantine-colors-gray\\[1\\])}.\\[\\&\\[data-missing\\]\\]\\:bg_mantine\\.colors\\.orange\\[8\\]\\/15[data-missing]{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-orange\\[8\\]) 15%, transparent);background:var(--mix-background, var(--colors-mantine-colors-orange\\[8\\]))}.\\[\\&\\[data-missing\\]\\]\\:bg_mantine\\.colors\\.orange\\[8\\]\\/20[data-missing]{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-orange\\[8\\]) 20%, transparent);background:var(--mix-background, var(--colors-mantine-colors-orange\\[8\\]))}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.gray\\[3\\]\\/20{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[3\\]) 20%, transparent);background:var(--mix-background, var(--colors-mantine-colors-gray\\[3\\]))}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[6\\]\\/80{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[6\\]) 80%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[6\\]))}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.white\\/80{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-white) 80%, transparent);background:var(--mix-background, var(--colors-mantine-colors-white))}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[4\\]{border-color:var(--colors-mantine-colors-gray\\[4\\])}[data-mantine-color-scheme=dark] .dark\\:bd-c_mantine\\.colors\\.dark\\[4\\]{border-color:var(--colors-mantine-colors-dark\\[4\\])}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:transition_none\\!{transition:none!important}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[2\\]{border-color:var(--colors-mantine-colors-gray\\[2\\])}[data-mantine-color-scheme=dark] .dark\\:bd-c_mantine\\.colors\\.dark\\[7\\]{border-color:var(--colors-mantine-colors-dark\\[7\\])}.likec4-root:is([data-likec4-reduced-graphics]) .reduceGraphics\\:transition_none{transition:none}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:transition_stroke_130ms_ease-out\\,stroke-width_130ms_ease-out{transition:stroke .13s ease-out,stroke-width .13s ease-out}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:bdr_4{border-radius:4px}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:transition_fast .mantine-ThemeIcon-root{transition:all var(--durations-fast) var(--easings-in-out)}.\\[\\&_\\>_\\*\\]\\:transition_all_130ms_\\{easings\\.inOut\\}>*{transition:all .13s var(--easings-in-out)}.\\[\\&\\[data-active\\]\\]\\:transition_none[data-active]{transition:none}.\\[\\&_\\>_\\*\\]\\:transition_fast>*,.\\[\\&_\\.tabler-icon\\]\\:transition_fast .tabler-icon{transition:all var(--durations-fast) var(--easings-in-out)}.\\[\\&\\[data-missing\\]\\]\\:bd-c_mantine\\.colors\\.orange\\[5\\]\\/20[data-missing]{--mix-borderColor: color-mix(in srgb, var(--colors-mantine-colors-orange\\[5\\]) 20%, transparent);border-color:var(--mix-borderColor, var(--colors-mantine-colors-orange\\[5\\]))}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[3\\]{border-color:var(--colors-mantine-colors-gray\\[3\\])}.\\[\\&\\:last-child_\\.likec4-edge-label\\]\\:bd-b_none:last-child .likec4-edge-label{border-bottom:var(--borders-none)}.\\[\\&_\\>_\\*\\]\\:transition_all_0\\.15s_ease-in>*{transition:all .15s ease-in}[data-mantine-color-scheme=dark] .dark\\:bd-c_transparent{border-color:var(--colors-transparent)}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:transition_fill-opacity_150ms_ease-out\\,_stroke_150ms_ease-out\\,_stroke-width_150ms_ease-out{transition:fill-opacity .15s ease-out,stroke .15s ease-out,stroke-width .15s ease-out}.\\[\\&_\\:where\\(\\.likec4-diagram\\,_\\.likec4-compound-node\\,_\\.likec4-element-node\\)\\]\\:cursor_pointer :where(.likec4-diagram,.likec4-compound-node,.likec4-element-node){cursor:pointer}[data-mantine-color-scheme=dark] .dark\\:bg-c_\\[rgb\\(34_34_34_\\/_10\\%\\)\\]{background-color:#2222221a}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(15_15_15\\/_20\\%\\)\\]{background-color:#0f0f0f33}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:c_mantine\\.colors\\.dimmed:is([data-position=left]){color:var(--colors-mantine-colors-dimmed)}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:us_none:is([data-position=left]){-webkit-user-select:none;user-select:none}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:pointer-events_none:is([data-position=left]){pointer-events:none}[data-mantine-color-scheme=light] .light\\:fill_\\[\\#222221\\]{fill:#222221}.\\[\\&_\\.tabler-icon\\]\\:c_mantine\\.colors\\.text .tabler-icon{color:var(--colors-mantine-colors-text)}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:bx-sh_none\\!{box-shadow:var(--shadows-none)!important}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[7\\]{color:var(--colors-mantine-colors-gray\\[7\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[0\\]{color:var(--colors-mantine-colors-dark\\[0\\])}[data-mantine-color-scheme=light] .light\\:bg-c_mantine\\.colors\\.gray\\[2\\]\\/70{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-gray\\[2\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-gray\\[2\\]))}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[8\\]\\/70{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[8\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[8\\]))}.empty\\:d_none:is(:empty,[data-empty]){display:none}.\\[\\&_\\>_mark\\]\\:bg-c_mantine\\.colors\\.yellow\\[2\\]\\/90>mark{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-yellow\\[2\\]) 90%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-yellow\\[2\\]))}[data-mantine-color-scheme=dark] .dark\\:op_0\\.5{opacity:.5}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[5\\]))}.placeholder\\:c_mantine\\.colors\\.dimmed::placeholder,.placeholder\\:c_mantine\\.colors\\.dimmed[data-placeholder]{color:var(--colors-mantine-colors-dimmed)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[3\\]{color:var(--colors-mantine-colors-dark\\[3\\])}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(250_250_250_\\/_var\\(--_opacity\\,_95\\%\\)\\)\\]{background-color:rgb(250 250 250 / var(--_opacity, 95%))}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-prop_stroke-width\\,_stroke-opacity{--transition-prop: stroke-width, stroke-opacity;transition-property:stroke-width,stroke-opacity}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-dur_fast{--transition-duration: var(--durations-fast);transition-duration:var(--durations-fast)}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-tmf_inOut{--transition-easing: var(--easings-in-out);transition-timing-function:var(--easings-in-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:trs-tmf_out{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_4\\){stroke-width:calc(var(--xy-edge-stroke-width) + 4)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:stk-op_0\\.2{stroke-opacity:.2}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_6\\){stroke-width:calc(var(--xy-edge-stroke-width) + 6)}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:stk-op_0\\.25{stroke-opacity:.25}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:anim-ps_paused{animation-play-state:paused}:where([data-edge-dir=back]) .\\[\\:where\\(\\[data-edge-dir\\=\\'back\\'\\]\\)_\\&\\]\\:anim-dir_reverse{animation-direction:reverse}:where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]) .whenDimmed\\:anim-ps_paused{animation-play-state:paused}:where([data-likec4-zoom-small=true]) .smallZoom\\:anim-n_none{animation-name:none}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:stk-dsh_none\\!{stroke-dasharray:none!important}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:anim-ps_paused{animation-play-state:paused}:where([data-likec4-zoom-small=true]) .smallZoom\\:d_none{display:none}.before\\:content_\\"_\\":before{content:" "}.before\\:pos_absolute:before{position:absolute}.before\\:pointer-events_all:before{pointer-events:all}:where(.react-flow__node.selectable:not(.dragging)) .\\[\\:where\\(\\.react-flow__node\\.selectable\\:not\\(\\.dragging\\)\\)_\\&\\]\\:cursor_pointer{cursor:pointer}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:trs-dly_\\.08s{transition-delay:.08s}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:pointer-events_none{pointer-events:none}[data-mantine-color-scheme=light] .light\\:c_var\\(--likec4-palette-hiContrast\\){color:var(--likec4-palette-hiContrast)}[data-mantine-color-scheme=dark] .dark\\:c_var\\(--likec4-palette-loContrast\\){color:var(--likec4-palette-loContrast)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.gray\\[4\\]{color:var(--colors-mantine-colors-gray\\[4\\])}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[8\\]{color:var(--colors-mantine-colors-gray\\[8\\])}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[9\\]{color:var(--colors-mantine-colors-gray\\[9\\])}.\\[\\&\\:is\\(\\[data-position\\=\\"right\\"\\]\\)\\]\\:ms_1:is([data-position=right]){margin-inline-start:var(--spacing-1)}.\\[\\&_\\:where\\(button\\,_\\.action-icon\\,_\\[role\\=\\'dialog\\'\\]\\)\\]\\:pointer-events_all :where(button,.action-icon,[role=dialog]){pointer-events:all}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:bx-sh_none{box-shadow:var(--shadows-none)}.backdrop\\:bkdp_auto::backdrop{backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, );-webkit-backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, )}.backdrop\\:bkdp-blur_var\\(--_blur\\)::backdrop{--backdrop-blur: blur(var(--_blur))}.backdrop\\:bg-c_\\[rgb\\(36_36_36_\\/_var\\(--_opacity\\,_5\\%\\)\\)\\]::backdrop{background-color:rgb(36 36 36 / var(--_opacity, 5%))}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[6\\]{background-color:var(--colors-mantine-colors-dark\\[6\\])}.\\[\\&_\\.react-flow__attribution\\]\\:d_none .react-flow__attribution{display:none}[data-mantine-color-scheme=dark] .dark\\:mix-bm_hard-light{mix-blend-mode:hard-light}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:pointer-events_none :where(svg,img){pointer-events:none}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:filter_drop-shadow\\(0_0_3px_rgb\\(0_0_0_\\/_10\\%\\)\\)_drop-shadow\\(0_1px_8px_rgb\\(0_0_0_\\/_5\\%\\)\\)_drop-shadow\\(1px_1px_16px_rgb\\(0_0_0_\\/_2\\%\\)\\) :where(svg,img){filter:drop-shadow(0 0 3px rgb(0 0 0 / 10%)) drop-shadow(0 1px 8px rgb(0 0 0 / 5%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 2%))}.\\[\\&_img\\]\\:obj-f_contain img{object-fit:contain}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:c_\\[var\\(--icon-color\\,_\\{colors\\.mantine\\.colors\\.dark\\[2\\]\\}\\)\\] .mantine-ThemeIcon-root{color:var(--icon-color, var(--colors-mantine-colors-dark\\[2\\]))}.\\[\\&\\[data-active\\]\\]\\:bx-sh_xs[data-active]{box-shadow:var(--shadows-xs)}.\\[\\&\\[data-active\\]\\]\\:c_mantine\\.colors\\.defaultColor[data-active]{color:var(--colors-mantine-colors-default-color)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[1\\]{color:var(--colors-mantine-colors-dark\\[1\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.gray\\.lightColor{color:var(--colors-mantine-colors-gray-light-color)}.\\[\\&_\\.tabler-icon\\]\\:op_0\\.65 .tabler-icon{opacity:.65}.\\[\\&\\[data-missing\\]\\]\\:c_mantine\\.colors\\.orange\\[4\\][data-missing]{color:var(--colors-mantine-colors-orange\\[4\\])}.before\\:content_\\"scope\\:\\":before{content:"scope:"}.before\\:fs_xxs:before{font-size:var(--font-sizes-xxs)}.before\\:fw_500:before{font-weight:500}.before\\:lh_1:before{line-height:var(--line-heights-1)}.before\\:c_mantine\\.colors\\.dimmed:before{color:var(--colors-mantine-colors-dimmed)}.before\\:op_0\\.85:before{opacity:.85}.before\\:trf_translateY\\(-100\\%\\)_translateY\\(-2px\\):before{transform:translateY(-100%) translateY(-2px)}.\\[\\&\\[data-zero\\]\\]\\:c_mantine\\.colors\\.dimmed[data-zero]{color:var(--colors-mantine-colors-dimmed)}.\\[\\&_\\.mantine-Text-root\\]\\:c_mantine\\.colors\\.text\\/90 .mantine-Text-root{--mix-color: color-mix(in srgb, var(--colors-mantine-colors-text) 90%, transparent);color:var(--mix-color, var(--colors-mantine-colors-text))}.\\[\\&_\\.mantine-Text-root\\]\\:fs_xs .mantine-Text-root{font-size:var(--font-sizes-xs)}.\\[\\&_\\.mantine-Text-root\\]\\:fw_500 .mantine-Text-root{font-weight:500}.\\[\\&_\\.mantine-Text-root\\]\\:lh_1\\.2 .mantine-Text-root{line-height:1.2}.\\[\\&_\\.mantine-Text-root\\]\\:fs_xxs .mantine-Text-root{font-size:var(--font-sizes-xxs)}.\\[\\&_\\.mantine-Text-root\\]\\:fw_400 .mantine-Text-root{font-weight:400}.\\[\\&_\\.mantine-Text-root\\]\\:lh_xs .mantine-Text-root{line-height:var(--line-heights-xs)}.\\[\\&_\\.mantine-Text-root\\]\\:c_mantine\\.colors\\.dimmed .mantine-Text-root{color:var(--colors-mantine-colors-dimmed)}.\\[\\&\\[data-disabled\\]_\\.mantine-ThemeIcon-root\\]\\:op_0\\.45[data-disabled] .mantine-ThemeIcon-root{opacity:.45}:where(.likec4-view-btn[data-disabled]) .\\[\\:where\\(\\.likec4-view-btn\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.85{opacity:.85}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[5\\]{color:var(--colors-mantine-colors-gray\\[5\\])}.\\[\\&_svg\\,_\\&_img\\]\\:pointer-events_none svg,.\\[\\&_svg\\,_\\&_img\\]\\:pointer-events_none img{pointer-events:none}.\\[\\&\\.likec4-shape-icon_svg\\]\\:stk-w_1\\.5.likec4-shape-icon svg{stroke-width:1.5}:where([data-disabled]) .\\[\\:where\\(\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.4{opacity:.4}:where([data-disabled]) .\\[\\:where\\(\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.85{opacity:.85}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(255_255_255_\\/_0\\.6\\)\\]{background-color:#fff9}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:vis_visible{visibility:visible}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:trs-dly_50ms{transition-delay:50ms}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:fill-opacity_1{fill-opacity:1}:where(.react-flow__edge.selected,[data-likec4-hovered=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:stk-w_5{stroke-width:5}.\\[\\&_\\*\\]\\:cursor_grabbing\\! *,.\\[\\&_\\.react-flow__edge-interaction\\]\\:cursor_grabbing\\! .react-flow__edge-interaction{cursor:grabbing!important}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[6\\]\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[6\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[6\\]))}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:min-h_100\\% .mantine-ScrollArea-viewport{min-height:100%}:where([data-likec4-shape=browser]) .shapeBrowser\\:right_\\[5px\\]{right:5px}:where([data-likec4-shape=cylinder]) .shapeCylinder\\:top_\\[14px\\]{top:14px}:where([data-likec4-shape=storage]) .shapeStorage\\:top_\\[14px\\]{top:14px}:where([data-likec4-shape=queue]) .shapeQueue\\:top_\\[1px\\]{top:1px}:where([data-likec4-shape=queue]) .shapeQueue\\:right_3{right:var(--spacing-3)}.before\\:top_\\[calc\\(100\\%_-_4px\\)\\]:before{top:calc(100% - 4px)}.before\\:left_0:before{left:var(--spacing-0)}.before\\:w_100\\%:before{width:100%}.before\\:h_24px:before{height:24px}:where([data-likec4-shape=cylinder]) .shapeCylinder\\:bottom_\\[5px\\]{bottom:5px}:where([data-likec4-shape=storage]) .shapeStorage\\:bottom_\\[5px\\]{bottom:5px}:where([data-likec4-shape=queue]) .shapeQueue\\:bottom_0{bottom:var(--spacing-0)}:where([data-likec4-shape=queue]) .shapeQueue\\:pl_\\[14px\\]{padding-left:14px}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:h_12{height:12px}[data-mantine-color-scheme=dark] .dark\\:bd-l-c_mantine\\.colors\\.dark\\[4\\]{border-left-color:var(--colors-mantine-colors-dark\\[4\\])}.\\[\\&_\\>_svg\\]\\:w_70\\%>svg{width:70%}.\\[\\&_\\>_svg\\]\\:h_70\\%>svg{height:70%}.\\[\\&_\\.tabler-icon\\]\\:w_65\\% .tabler-icon{width:65%}.\\[\\&_\\.tabler-icon\\]\\:h_65\\% .tabler-icon{height:65%}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:w_100\\% :where(svg,img){width:100%}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:h_auto :where(svg,img){height:auto}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:max-h_100\\% :where(svg,img){max-height:100%}.\\[\\&\\:not\\(\\:has\\(\\.mantine-ScrollArea-root\\)\\)\\]\\:pl_1:not(:has(.mantine-ScrollArea-root)){padding-left:var(--spacing-1)}.\\[\\&\\:not\\(\\:has\\(\\.mantine-ScrollArea-root\\)\\)\\]\\:pr_1:not(:has(.mantine-ScrollArea-root)){padding-right:var(--spacing-1)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:w_100\\% .mantine-ScrollArea-root{width:100%}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:h_100\\% .mantine-ScrollArea-root{height:100%}.\\[\\&\\[data-level\\=\\'1\\'\\]\\]\\:mb_sm[data-level="1"]{margin-bottom:var(--spacing-sm)}.\\[\\&_\\.tabler-icon\\]\\:w_90\\% .tabler-icon{width:90%}.before\\:top_0:before{top:var(--spacing-0)}.before\\:left_2:before{left:var(--spacing-2)}.\\[\\&\\:last-child_\\.likec4-edge-label\\]\\:mb_0:last-child .likec4-edge-label{margin-bottom:var(--spacing-0)}.\\[\\&_svg\\,_\\&_img\\]\\:w_100\\% svg,.\\[\\&_svg\\,_\\&_img\\]\\:w_100\\% img{width:100%}.\\[\\&_svg\\,_\\&_img\\]\\:h_auto svg,.\\[\\&_svg\\,_\\&_img\\]\\:h_auto img{height:auto}.\\[\\&_svg\\,_\\&_img\\]\\:max-h_100\\% svg,.\\[\\&_svg\\,_\\&_img\\]\\:max-h_100\\% img{max-height:100%}:is(.\\[\\&_\\+_\\&\\]\\:mt_\\[32px\\])+:is(.\\[\\&_\\+_\\&\\]\\:mt_\\[32px\\]){margin-top:32px}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:w_7px{width:7px}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:w_7px{width:7px}.focusWithin\\:bg_mantine\\.colors\\.gray\\[4\\]\\/55\\!:focus-within{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[4\\]) 55%, transparent) !important;background:var(--mix-background, var(--colors-mantine-colors-gray\\[4\\]))!important}.group:focus-within .groupFocusWithin\\:op_1{opacity:1}.group:focus-within .groupFocusWithin\\:grayscale_0{--grayscale: grayscale(0)}.focus\\:bg_mantine\\.colors\\.primary\\[8\\]:is(:focus,[data-focus]){background:var(--colors-mantine-colors-primary\\[8\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:bg_mantine\\.colors\\.primary\\[8\\]{background:var(--colors-mantine-colors-primary\\[8\\])}.group:is(:focus,[data-focus]) .groupFocus\\:transition_none{transition:none}.focus\\:ring_none:is(:focus,[data-focus]){outline:var(--borders-none)}.focusVisible\\:ring_none:is(:focus-visible,[data-focus-visible]){outline:var(--borders-none)}.focus\\:bd-c_mantine\\.colors\\.primary\\[9\\]:is(:focus,[data-focus]){border-color:var(--colors-mantine-colors-primary\\[9\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:ring_none{outline:var(--borders-none)}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:bd-c_mantine\\.colors\\.primary\\[9\\]{border-color:var(--colors-mantine-colors-primary\\[9\\])}.group:is(:focus,[data-focus]) .groupFocus\\:c_\\[inherit\\]\\!{color:inherit!important}.group:is(:focus,[data-focus]) .groupFocus\\:op_0\\.5{opacity:.5}.group:is(:focus,[data-focus]) .groupFocus\\:op_0\\.8{opacity:.8}.focus\\:bg-c_mantine\\.colors\\.gray\\[2\\]:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-gray\\[2\\])}.focus\\:c_mantine\\.colors\\.primary\\.lightColor\\!:is(:focus,[data-focus]){color:var(--colors-mantine-colors-primary-light-color)!important}.focus\\:bg-c_mantine\\.colors\\.primary\\.lightHover\\!:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-primary-light-hover)!important}.group:is(:focus,[data-focus]) .groupFocus\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.group:is(:focus,[data-focus]) .groupFocus\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.hover\\:--icon-color_\\{colors\\.mantine\\.colors\\.dark\\[1\\]\\}:is(:hover,[data-hover]){--icon-color: var(--colors-mantine-colors-dark\\[1\\])}.hover\\:--view-title-color_\\{colors\\.mantine\\.colors\\.defaultColor\\}:is(:hover,[data-hover]){--view-title-color: var(--colors-mantine-colors-default-color)}.hover\\:bg_mantine\\.colors\\.defaultHover:is(:hover,[data-hover]){background:var(--colors-mantine-colors-default-hover)}.hover\\:bg_mantine\\.colors\\.gray\\[3\\]:is(:hover,[data-hover]){background:var(--colors-mantine-colors-gray\\[3\\])}.group:is(:hover,[data-hover]) .groupHover\\:bg_mantine\\.colors\\.defaultHover{background:var(--colors-mantine-colors-default-hover)}.hover\\:bg_mantine\\.colors\\.gray\\.lightHover:is(:hover,[data-hover]){background:var(--colors-mantine-colors-gray-light-hover)}.hover\\:bg_mantine\\.colors\\.primary\\[8\\]\\/60:is(:hover,[data-hover]){--mix-background: color-mix(in srgb, var(--colors-mantine-colors-primary\\[8\\]) 60%, transparent);background:var(--mix-background, var(--colors-mantine-colors-primary\\[8\\]))}.group:is(:hover,[data-hover]) .groupHover\\:bg_mantine\\.colors\\.gray\\[3\\]\\/35{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[3\\]) 35%, transparent);background:var(--mix-background, var(--colors-mantine-colors-gray\\[3\\]))}.hover\\:td_underline:is(:hover,[data-hover]){text-decoration:underline}.hover\\:bd-c_mantine\\.colors\\.defaultBorder:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-default-border)}.hover\\:bd-w_4px:is(:hover,[data-hover]){border-width:4px}.hover\\:bd-c_mantine\\.colors\\.dark\\[1\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-dark\\[1\\])}.hover\\:border-style_solid:is(:hover,[data-hover]){border-style:solid}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:transition_all_0\\.15s_ease-out:is(:hover,[data-selected=true])>*{transition:all .15s ease-out}.hover\\:ring_none:is(:hover,[data-hover]){outline:var(--borders-none)}.hover\\:bd-c_mantine\\.colors\\.primary\\[9\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-primary\\[9\\])}.hover\\:transition_stroke_100ms_ease-out\\,_stroke-width_100ms_ease-out:is(:hover,[data-hover]){transition:stroke .1s ease-out,stroke-width .1s ease-out}.hover\\:transition_all_120ms_ease-out:is(:hover,[data-hover]){transition:all .12s ease-out}.hover\\:op_1:is(:hover,[data-hover]){opacity:1}.hover\\:bg-c_mantine\\.colors\\.gray\\[1\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[1\\])}.hover\\:bx-sh_sm:is(:hover,[data-hover]){box-shadow:var(--shadows-sm)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.dimmed{color:var(--colors-mantine-colors-dimmed)}.group:is(:hover,[data-hover]) .groupHover\\:op_0\\.5{opacity:.5}.group:is(:hover,[data-hover]) .groupHover\\:op_0\\.8{opacity:.8}.hover\\:bg-c_mantine\\.colors\\.gray\\[2\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[2\\])}.hover\\:c_\\[var\\(--mantine-color-bright\\)\\]:is(:hover,[data-hover]){color:var(--mantine-color-bright)}.hover\\:c_mantine\\.colors\\.text:is(:hover,[data-hover]){color:var(--colors-mantine-colors-text)}.hover\\:trs-dly_0s:is(:hover,[data-hover]){transition-delay:0s}.hover\\:c_likec4\\.panel\\.action-icon\\.text\\.hover:is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-icon-text-hover)}.hover\\:bg-c_likec4\\.panel\\.action-icon\\.bg\\.hover:is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-icon-bg-hover)}.\\[\\&\\:hover_\\>_\\*\\]\\:trs-tmf_out:hover>*{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.\\[\\&\\:hover_\\>_\\*\\]\\:trf_translateX\\(1\\.6px\\):hover>*{transform:translate(1.6px)}.hover\\:trs-tmf_out:is(:hover,[data-hover]){--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:c_mantine\\.colors\\.defaultColor:is(:hover,[data-hover]){color:var(--colors-mantine-colors-default-color)}.group:is(:hover,[data-hover]) .groupHover\\:trs-tmf_out{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.defaultColor{color:var(--colors-mantine-colors-default-color)}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:cursor_pointer:is(:hover,[data-selected=true])>*{cursor:pointer}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:bg-c_mantine\\.colors\\.defaultHover:is(:hover,[data-selected=true])>*{background-color:var(--colors-mantine-colors-default-hover)}.hover\\:bg-c_mantine\\.colors\\.gray\\[0\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[0\\])}.group:is(:hover,[data-hover]) .groupHover\\:op_1{opacity:1}.group:is(:hover,[data-hover]) .groupHover\\:grayscale_0{--grayscale: grayscale(0)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.hover\\:fill-opacity_1:is(:hover,[data-hover]){fill-opacity:1}.hover\\:stk_mantine\\.colors\\.primary\\.filledHover:is(:hover,[data-hover]){stroke:var(--colors-mantine-colors-primary-filled-hover)}.hover\\:stk-w_10:is(:hover,[data-hover]){stroke-width:10}.hover\\:bg-c_mantine\\.colors\\.primary\\[2\\]\\/50:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-primary\\[2\\]) 50%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-primary\\[2\\]))}.group:is(:active,[data-active]) .groupActive\\:op_0\\.5{opacity:.5}.group:is(:active,[data-active]) .groupActive\\:op_0\\.8{opacity:.8}.likec4-root:is([data-likec4-reduced-graphics]) .reduceGraphics\\:\\[\\&_\\.action-icon\\]\\:--ai-radius_0px .action-icon{--ai-radius: 0px}[data-mantine-color-scheme=dark] .dark\\:\\[\\&\\:is\\(\\[data-active\\]\\)\\]\\:bg_mantine\\.colors\\.dark\\[5\\]:is([data-active]){background:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=light] .light\\:\\[\\&_\\.mantine-SegmentedControl-root\\]\\:bg_mantine\\.colors\\.gray\\[3\\] .mantine-SegmentedControl-root{background:var(--colors-mantine-colors-gray\\[3\\])}.group:is(:hover,[data-hover]) .\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:groupHover\\:c_\\[var\\(--badge-color\\)\\]:is([data-position=left]){color:var(--badge-color)}.group:is(:hover,[data-hover]) .\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:groupHover\\:op_0\\.7:is([data-position=left]){opacity:.7}[data-mantine-color-scheme=dark] .\\[\\&_\\>_mark\\]\\:dark\\:bg-c_mantine\\.colors\\.yellow\\[5\\]\\/80>mark{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-yellow\\[5\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-yellow\\[5\\]))}.group:is(:focus,[data-focus]) .\\[\\&_\\>_mark\\]\\:groupFocus\\:bg-c_\\[transparent\\]>mark{background-color:var(--colors-transparent)}.group:is(:focus,[data-focus]) .\\[\\&_\\>_mark\\]\\:groupFocus\\:c_\\[inherit\\]\\!>mark{color:inherit!important}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) :where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:whenHovered\\:stk-op_0\\.4{stroke-opacity:.4}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:noReduceGraphics\\:anim-ps_running{animation-play-state:running}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:noReduceGraphics\\:anim-dly_450ms{animation-delay:.45s}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edge.selected,[data-edge-active=true],[data-edge-animated=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-edge-active\\=\\'true\\'\\]\\,_\\[data-edge-animated\\=\\'true\\'\\]\\)_\\&\\]\\:noReduceGraphics\\:anim-ps_running{animation-play-state:running}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edge.selected,[data-edge-active=true],[data-edge-animated=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-edge-active\\=\\'true\\'\\]\\,_\\[data-edge-animated\\=\\'true\\'\\]\\)_\\&\\]\\:noReduceGraphics\\:anim-dly_0ms{animation-delay:0ms}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .reduceGraphicsOnPan\\:before\\:d_none:before{display:none}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:hover\\:c_mantine\\.colors\\.defaultColor .mantine-ThemeIcon-root:is(:hover,[data-hover]){color:var(--colors-mantine-colors-default-color)}[data-mantine-color-scheme=dark] .dark\\:\\[\\&\\:is\\(\\[data-active\\]\\)\\]\\:c_mantine\\.colors\\.white:is([data-active]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .\\[\\&\\[data-missing\\]\\]\\:light\\:c_mantine\\.colors\\.orange\\[8\\][data-missing]{color:var(--colors-mantine-colors-orange\\[8\\])}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:\\[\\&_\\>_div\\]\\:min-h_100\\% .mantine-ScrollArea-viewport>div{min-height:100%}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:\\[\\&_\\>_div\\]\\:h_100\\% .mantine-ScrollArea-viewport>div{height:100%}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:\\[\\&_\\>_div\\]\\:pl_1 .mantine-ScrollArea-root>div{padding-left:var(--spacing-1)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:\\[\\&_\\>_div\\]\\:pr_1 .mantine-ScrollArea-root>div{padding-right:var(--spacing-1)}[data-mantine-color-scheme=dark] .focusWithin\\:dark\\:bg_mantine\\.colors\\.dark\\[5\\]\\/55\\!:focus-within{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 55%, transparent) !important;background:var(--mix-background, var(--colors-mantine-colors-dark\\[5\\]))!important}[data-mantine-color-scheme=dark] .focus\\:dark\\:bg-c_mantine\\.colors\\.dark\\[4\\]:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-dark\\[4\\])}[data-mantine-color-scheme=light] .group:is(:focus,[data-focus]) .groupFocus\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:hover\\:--icon-color_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}:is(:hover,[data-hover]){--icon-color: var(--colors-mantine-colors-gray\\[7\\])}[data-mantine-color-scheme=dark] .dark\\:hover\\:bg_mantine\\.colors\\.dark\\[6\\]:is(:hover,[data-hover]){background:var(--colors-mantine-colors-dark\\[6\\])}[data-mantine-color-scheme=dark] .group:is(:hover,[data-hover]) .groupHover\\:dark\\:bg_mantine\\.colors\\.dark\\[5\\]\\/35{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 35%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[5\\]))}[data-mantine-color-scheme=light] .light\\:hover\\:bd-c_mantine\\.colors\\.primary\\[6\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-primary\\[6\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:bg-c_mantine\\.colors\\.gray\\[2\\]{background-color:var(--colors-mantine-colors-gray\\[2\\])}[data-mantine-color-scheme=dark] .group:is(:hover,[data-hover]) .groupHover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[8\\]{background-color:var(--colors-mantine-colors-dark\\[8\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[4\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[4\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]\\/70:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[5\\]))}[data-mantine-color-scheme=dark] .dark\\:hover\\:c_mantine\\.colors\\.white:is(:hover,[data-hover]){color:var(--colors-mantine-colors-white)}.hover\\:\\[\\&_\\>_\\:not\\(\\[data-no-transform\\]\\)\\]\\:trs-tmf_out:is(:hover,[data-hover])>:not([data-no-transform]){--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:\\[\\&_\\>_\\:not\\(\\[data-no-transform\\]\\)\\]\\:trf_translateX\\(1px\\):is(:hover,[data-hover])>:not([data-no-transform]){transform:translate(1px)}.hover\\:\\[\\&_\\>_\\*\\]\\:trs-tmf_out:is(:hover,[data-hover])>*{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:\\[\\&_\\>_\\*\\]\\:trf_translateX\\(1px\\):is(:hover,[data-hover])>*{transform:translate(1px)}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.defaultHover:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-default-hover)}[data-mantine-color-scheme=dark] .hover\\:dark\\:c_mantine\\.colors\\.white:is(:hover,[data-hover]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:hover\\:bg-c_mantine\\.colors\\.primary\\[5\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-primary\\[5\\])}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}[data-mantine-color-scheme=dark] .dark\\:hover\\:bg-c_mantine\\.colors\\.dark\\[3\\]\\/40:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[3\\]) 40%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[3\\]))}@container (min-width: 24rem){.\\@\\/xs\\:d_flex{display:flex}}@media screen and (min-width: 36rem){.xs\\:max-w_calc\\(100cqw\\){max-width:100cqw}.xs\\:max-w_calc\\(100cqw_-_50px\\){max-width:calc(100cqw - 50px)}.xs\\:max-w_calc\\(100cqw_-_250px\\){max-width:calc(100cqw - 250px)}.xs\\:max-h_calc\\(100cqh_-_200px\\){max-height:calc(100cqh - 200px)}.xs\\:max-h_calc\\(100cqh_-_160px\\){max-height:calc(100cqh - 160px)}.xs\\:h_100cqh{height:100cqh}.xs\\:max-h_calc\\(100cqh_-_70px\\){max-height:calc(100cqh - 70px)}}@container (min-width: 40rem){.\\@\\/sm\\:m_xs{margin:var(--spacing-xs)}.\\@\\/sm\\:gap_xs{gap:var(--spacing-xs)}.\\@\\/sm\\:w_max-content{width:max-content}.\\@\\/sm\\:max-w_calc\\(100vw_-_2_\\*_\\{spacing\\.md\\}\\){max-width:calc(100vw - 2 * var(--spacing-md))}.\\@\\/sm\\:min-w_400{min-width:400px}.\\@\\/sm\\:max-w_550{max-width:550px}}@container (min-width: 40rem){@media screen and (min-width: 36rem){.\\@\\/sm\\:xs\\:max-w_calc\\(100cqw_-_2_\\*_\\{spacing\\.md\\}\\){max-width:calc(100cqw - 2 * var(--spacing-md))}}}@container (min-width: 48rem){.\\@\\/md\\:d_block{display:block}.\\@\\/md\\:d_flex{display:flex}.\\@\\/md\\:d_none{display:none}.\\@\\/md\\:d_\\[inherit\\]{display:inherit}.\\@\\/md\\:ms_2{margin-inline-start:var(--spacing-2)}.\\@\\/md\\:w_\\[64px\\]{width:64px}}@media screen and (min-width: 48rem){.sm\\:pr_\\[30px\\]{padding-right:30px}.sm\\:min-w_300{min-width:300px}.sm\\:max-w_65vw{max-width:65vw}}@media screen and (min-width: 62rem){.md\\:--text-fz_\\{fontSizes\\.md\\}{--text-fz: var(--font-sizes-md)}.md\\:bd-w_4{border-width:4px}.md\\:px_6{padding-inline:var(--spacing-6)}.md\\:pr_\\[50px\\]{padding-right:50px}.md\\:max-w_40vw{max-width:40vw}}@container (min-width: 64rem){.\\@\\/lg\\:max-w_700{max-width:700px}}@media screen and (min-width: 75rem){.lg\\:px_8{padding-inline:var(--spacing-8)}}@container likec4-tree (max-width: 450px){.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:--likec4-icon-size_18px{--likec4-icon-size: 18px}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:gap_0\\.5{gap:var(--spacing-0\\.5)}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:flex-d_column-reverse{flex-direction:column-reverse}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:ai_flex-start{align-items:flex-start}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:d_none{display:none}}}`,Yet={autoContrast:!0,primaryColor:"indigo",cursorType:"pointer",defaultRadius:"sm",fontFamily:"var(--likec4-app-font, var(--likec4-app-font-default))",headings:{fontWeight:"500",sizes:{h1:{fontWeight:"600"},h2:{fontWeight:"500"}}},components:{Portal:D1.extend({defaultProps:{reuseTargetNode:!0}})}};ye({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function Wet(e,r){const[n,o]=E.useState([]);return QS(()=>{if(e&&!document.querySelector("style[data-likec4-font]")){const a=document.createElement("style");a.setAttribute("type","text/css"),a.setAttribute("data-likec4-font",""),V6(r)&&a.setAttribute("nonce",r),_1(r)&&a.setAttribute("nonce",r()),a.appendChild(document.createTextNode(qet)),document.head.appendChild(a)}},[e]),QS(()=>{const a=new CSSStyleSheet;return a.replaceSync(Yte.replaceAll(":where(:root,:host)",".likec4-shadow-root").replaceAll(":root",".likec4-shadow-root").replaceAll(new RegExp("(?{a.replaceSync("")}},[Yte]),n}const Wte=()=>{try{const e=window.getComputedStyle(document.documentElement).colorScheme??"",r=hp(e.split(" "));if(r==="light"||r==="dark")return r}catch{}return null};function Xet(e){const r=MV(),[n,o]=E.useState(Wte);return qV(vp(()=>o(Wte),100),{attributes:!0,childList:!1,subtree:!1},()=>document.documentElement),e??n??r}function Get(e,r=!1){if(r===!1)return` +:where([data-likec4-instance="${e}"]) { + display: block; + box-sizing: border-box; + border: 0 solid transparent; + background: transparent; + padding: 0; + margin: 0; + overflow: hidden; + width: 100%; + height: 100%; + min-width: 80px; + min-height: 80px; +} + `.trim();const{width:n,height:o}=r,a=n>o;return` +:where([data-likec4-instance="${e}"]) { + display: block; + box-sizing: border-box; + border: 0 solid transparent; + background: transparent; + padding: 0; + overflow: hidden; + aspect-ratio: ${Math.ceil(n)} / ${Math.ceil(o)}; + ${a?"":` + max-width: min(100%, var(--likec4-view-max-width, ${Math.ceil(n)}px)); + margin-left: auto; + margin-right: auto;`} + width: ${a?"100%":"auto"}; + height: ${a?"auto":"100%"}; + ${a?"min-width: 80px;":"min-height: 80px;"} + max-height: min(100%, var(--likec4-view-max-height, ${Math.ceil(o)}px)); +} +`.trim()}const Ket=Vet.div;function Zet({children:e,theme:r=Yet,injectFontCss:n=!0,styleNonce:o,colorScheme:a,keepAspectRatio:i=!1,...s}){const l=Xet(a),c=ZW(),u=Get(c,i),d=E.useRef(null),h=Wet(n,o),p=E.useCallback(()=>d.current??void 0,[d]);let g,y;return H6(o)&&(typeof o=="string"?(y=o,g=()=>o):typeof o=="function"&&(y=o(),g=o)),b.jsxs(b.Fragment,{children:[b.jsx("style",{type:"text/css",nonce:y,dangerouslySetInnerHTML:{__html:u}}),b.jsx(Ket,{ssr:!1,...s,styleSheets:h,"data-likec4-instance":c,children:b.jsx("div",{ref:d,"data-mantine-color-scheme":l,className:"likec4-shadow-root",children:b.jsx(gC,{...a&&{forceColorScheme:a},defaultColorScheme:l,getRootElement:p,...g&&{getStyleNonce:g},cssVariablesSelector:".likec4-shadow-root",theme:r,children:b.jsx(m7,{children:e})})})})]})}const Qet=ye({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function Jet({viewId:e,className:r,pannable:n=!1,zoomable:o=!1,keepAspectRatio:a=!0,colorScheme:i,injectFontCss:s=!0,controls:l=!1,background:c="transparent",browser:u=!0,showNavigationButtons:d=!1,showNotations:h,enableFocusMode:p=!1,enableDynamicViewWalkthrough:g=!1,enableElementDetails:y=!1,enableRelationshipDetails:x=!1,enableRelationshipBrowser:w=x,reduceGraphics:k="auto",mantineTheme:C,styleNonce:_,style:T,reactFlowProps:A,renderNodes:N,children:$,...R}){const M=Aze(),[O,B]=E.useState(null),I=it(()=>{B(e)});if(!M)return b.jsx(g7,{children:"LikeC4Model not found. Make sure you provided LikeC4ModelProvider."});const Y=M.findView(e)?.$view;if(!Y)return b.jsx(Tet,{viewId:e});if(Y._stage!=="layouted")return b.jsxs(g7,{children:['LikeC4 View "$',e,'" is not layouted. Make sure you have LikeC4ModelProvider with layouted model.']});const D=O?M.findView(O)?.$view:null,V=(Y.notation?.nodes??[]).length>0;h??=V;const L=u!==!1,U=eV(u)?{}:u,q=Pte(Y,R.dynamicViewVariant);return b.jsx(Zet,{injectFontCss:s,theme:C,colorScheme:i,styleNonce:_,keepAspectRatio:a?q:!1,className:Je("likec4-view",r),style:T,children:b.jsxs(m7,{children:[b.jsx(Ote,{view:Y,readonly:!0,pannable:n,zoomable:o,background:c,fitView:!0,fitViewPadding:Mk.default,showNotations:h,enableDynamicViewWalkthrough:g,showNavigationButtons:d,experimentalEdgeEditing:!1,enableFocusMode:p,enableRelationshipDetails:x,enableElementDetails:y,enableRelationshipBrowser:w,enableElementTags:!1,controls:l,nodesDraggable:!1,reduceGraphics:k,className:Je("likec4-static-view",L&&Qet),enableSearch:!1,...L&&{onCanvasClick:I,onNodeClick:I},reactFlowProps:A,renderNodes:N,children:$,...R}),D&&b.jsxs(Oy,{openDelay:0,onClose:()=>B(null),children:[b.jsx(Ote,{view:D,pannable:!0,zoomable:!0,background:"dots",onNavigateTo:B,showNavigationButtons:!0,enableDynamicViewWalkthrough:!0,enableFocusMode:!0,enableRelationshipBrowser:!0,enableElementDetails:!0,enableRelationshipDetails:!0,enableSearch:!0,enableElementTags:!0,controls:!0,readonly:!0,fitView:!0,...R,fitViewPadding:Mk.withControls,...U,showNotations:U.showNotations??h,renderNodes:N}),b.jsx(Se,{pos:"absolute",top:"1rem",right:"1rem",children:b.jsx(or,{variant:"default",color:"gray",onClick:X=>{X.stopPropagation(),B(null)},children:b.jsx(Hp,{})})})]})]})})}const ett={};function ttt(e){const r=ett[e.node.icon??""];return r?b.jsx(r,e):null}function rtt(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function Xte(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return rtt(e,r,n);throw Error("Wrong number of arguments")}function ntt(...e){return Xte(ott,e)}function ott(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function Gte(...e){return Xte(By,e)}function By(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return att(e,r);if(e instanceof Map)return itt(e,r);if(e instanceof Set)return stt(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!By(o,r[n]))return!1;return!0}function att(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!By(o,r[n]))return!1;return!0}function itt(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!By(o,r.get(n)))return!1;return!0}function stt(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,s]of n.entries())if(By(o,s)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}let vs=[],Au=0;const f_=4;let p_=0,Kte=e=>{let r=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=r.push(o),()=>{for(let i=Au+f_;i(e.events=e.events||{},e.events[n+g_]||(e.events[n+g_]=o(a=>{e.events[n].reduceRight((i,s)=>(s(i),i),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(r),()=>{let a=e.events[n],i=a.indexOf(r);a.splice(i,1),a.length||(delete e.events[n],e.events[n+g_](),delete e.events[n+g_])}),utt=1e3,dtt=(e,r)=>ctt(e,n=>{let o=r(n);o&&e.events[m_].push(o)},ltt,n=>{let o=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,n()),o(...i));let a=e.off;return e.events[m_]=[],e.off=()=>{a(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[m_])i();e.events[m_]=[]}},utt)},()=>{e.listen=o,e.off=a}}),htt=(e,r,n)=>{Array.isArray(e)||(e=[e]);let o,a,i=()=>{if(a===p_)return;a=p_;let u=e.map(d=>d.get());if(!o||u.some((d,h)=>d!==o[h])){o=u;let d=r(...u);d&&d.then&&d.t?d.then(h=>{o===u&&s.set(h)}):(s.set(d),a=p_)}},s=Kte(void 0),l=s.get;s.get=()=>(i(),l());let c=i;return dtt(s,()=>{let u=e.map(d=>d.listen(c));return i(),()=>{for(let d of u)d()}}),s},Zte=(e,r)=>htt(e,r);function ftt(e,r,n){let o=new Set(r).add(void 0);return e.listen((a,i,s)=>{o.has(s)&&n(a,i,s)})}let x7=(e,r)=>n=>{e.current!==n&&(e.current=n,r())};function Qte(e,{keys:r,deps:n=[e,r]}={}){let o=E.useRef();o.current=e.get();let a=E.useCallback(s=>(x7(o,s)(e.value),r?.length>0?ftt(e,r,x7(o,s)):e.listen(x7(o,s))),n),i=()=>o.current;return E.useSyncExternalStore(a,i,i)}const ptt=e=>{const r=Zte(e,l=>$d.create(l));function n(l){const c=e.get();if(Gte(c,l))return;const u={...l,views:ntt(l.views,d=>{const h=c.views[d.id];return Gte(h,d)?h:d})};e.set(u)}const o=Zte(e,l=>Object.values(l.views));function a(){return Qte(r)}function i(){return Qte(o)}function s(l){const[c,u]=E.useState(e.value?.views[l]??null);return E.useEffect(()=>e.subscribe(d=>{u(d.views[l]??null)}),[l]),c}return{updateModel:n,$likec4model:r,useLikeC4Model:a,useLikeC4Views:i,useLikeC4View:s}},mtt=Kte({_stage:"layouted",projectId:"documentation-platform",project:{id:"documentation-platform",title:"documentation-platform"},specification:{tags:{},elements:{person:{style:{shape:"person"}},system:{style:{shape:"rectangle"}},tool:{style:{shape:"rectangle"}},component:{style:{shape:"rectangle"}},process:{style:{shape:"rectangle"}},environment:{style:{shape:"cylinder"}},repository:{style:{shape:"storage"}}},relationships:{},deployments:{},customColors:{}},elements:{documentor:{style:{shape:"person"},technology:"Hugo, Markdown, LikeC4",description:{txt:"Content creator and maintainer of the developer platform documentation"},title:"Documentor",kind:"person",id:"documentor"},docPlatform:{style:{shape:"rectangle"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},title:"Documentation Platform",kind:"system",id:"docPlatform"},cicdPipeline:{style:{shape:"rectangle"},description:{txt:"Automated testing and deployment pipeline"},title:"CI/CD Pipeline",kind:"system",id:"cicdPipeline"},deploymentEnv:{style:{shape:"rectangle"},description:{txt:"Edge deployment infrastructure"},title:"Deployment Environment",kind:"system",id:"deploymentEnv"},"docPlatform.hugoSite":{style:{shape:"rectangle"},technology:"Hugo Extended, Docsy",description:{txt:"Static site generator based on Hugo with Docsy theme"},title:"Hugo Site",kind:"component",id:"docPlatform.hugoSite"},"docPlatform.contentRepo":{style:{shape:"storage"},technology:"Git, Markdown",description:{txt:"Markdown files, images, and configuration"},title:"Content Repository",kind:"repository",id:"docPlatform.contentRepo"},"docPlatform.likec4Integration":{style:{shape:"rectangle"},technology:"LikeC4, Web Components",description:{txt:"Architecture diagram visualization embedded in documentation"},title:"LikeC4 Integration",kind:"component",id:"docPlatform.likec4Integration"},"docPlatform.taskfile":{style:{shape:"rectangle"},technology:"Task (go-task)",description:{txt:"Task automation for local development, build, and testing"},title:"Taskfile",kind:"tool",id:"docPlatform.taskfile"},"docPlatform.devServer":{style:{shape:"rectangle"},technology:"Hugo Server",description:{txt:"Local Hugo server with hot reload for content development"},title:"Development Server",kind:"process",id:"docPlatform.devServer"},"cicdPipeline.githubActions":{style:{shape:"rectangle"},technology:"GitHub Actions",description:{txt:"Automated testing workflow on push/PR"},title:"GitHub Actions",kind:"process",id:"cicdPipeline.githubActions"},"cicdPipeline.containerBuild":{style:{shape:"rectangle"},technology:"Docker",description:{txt:"OCI/Docker image creation with Hugo site"},title:"Container Build",kind:"process",id:"cicdPipeline.containerBuild"},"deploymentEnv.edgeConnect":{style:{shape:"cylinder"},technology:"EdgeConnect",description:{txt:"Edge deployment orchestration platform"},title:"Edge Connect",kind:"environment",id:"deploymentEnv.edgeConnect"},"deploymentEnv.k8sCluster":{style:{shape:"cylinder"},technology:"Kubernetes",description:{txt:"K8s cluster on edge cloudlet (Munich)"},title:"Kubernetes Cluster",kind:"environment",id:"deploymentEnv.k8sCluster"},"docPlatform.contentRepo.contentPages":{style:{shape:"rectangle"},technology:"Markdown",description:{txt:"Documentation pages in Markdown format"},title:"Content Pages",kind:"component",id:"docPlatform.contentRepo.contentPages"},"docPlatform.contentRepo.archModels":{style:{shape:"rectangle"},technology:"LikeC4 DSL",description:{txt:"LikeC4 architecture models and views"},title:"Architecture Models",kind:"component",id:"docPlatform.contentRepo.archModels"},"docPlatform.contentRepo.assets":{style:{shape:"rectangle"},technology:"CSS, JavaScript",description:{txt:"CSS, JavaScript, images, fonts"},title:"Static Assets",kind:"component",id:"docPlatform.contentRepo.assets"},"cicdPipeline.githubActions.testBuild":{style:{shape:"rectangle"},technology:"Hugo",description:{txt:"Hugo build validation"},title:"Build Test",kind:"component",id:"cicdPipeline.githubActions.testBuild"},"cicdPipeline.githubActions.testMarkdown":{style:{shape:"rectangle"},technology:"markdownlint",description:{txt:"Markdown syntax and style checking"},title:"Markdown Lint",kind:"component",id:"cicdPipeline.githubActions.testMarkdown"},"cicdPipeline.githubActions.testHtml":{style:{shape:"rectangle"},technology:"htmlvalidate",description:{txt:"Generated HTML validation"},title:"HTML Validation",kind:"component",id:"cicdPipeline.githubActions.testHtml"},"cicdPipeline.githubActions.testLinks":{style:{shape:"rectangle"},technology:"htmltest",description:{txt:"Broken link detection"},title:"Link Checker",kind:"component",id:"cicdPipeline.githubActions.testLinks"},"deploymentEnv.k8sCluster.docService":{style:{shape:"rectangle"},technology:"K8s Service",description:{txt:"LoadBalancer service exposing docs on port 80"},title:"Documentation Service",kind:"component",id:"deploymentEnv.k8sCluster.docService"},"deploymentEnv.k8sCluster.docDeployment":{style:{shape:"rectangle"},technology:"K8s Deployment, Nginx",description:{txt:"Pod running Hugo-generated static site"},title:"Documentation Deployment",kind:"component",id:"deploymentEnv.k8sCluster.docDeployment"}},relations:{"1ouysrh":{title:"writes documentation",description:{txt:"Creates and updates Markdown content"},source:{model:"documentor"},target:{model:"docPlatform.contentRepo.contentPages"},id:"1ouysrh"},fmzkfl:{title:"creates architecture models",description:{txt:"Defines C4 models with LikeC4 DSL"},source:{model:"documentor"},target:{model:"docPlatform.contentRepo.archModels"},id:"fmzkfl"},"1iop8z6":{title:"executes local tasks",description:{txt:"task serve, task build, task test"},source:{model:"documentor"},target:{model:"docPlatform.taskfile"},id:"1iop8z6"},"1h50i3u":{title:"starts",description:{txt:"task serve"},source:{model:"docPlatform.taskfile"},target:{model:"docPlatform.devServer"},id:"1h50i3u"},dg5rzk:{title:"renders",description:{txt:"Live reload on content changes"},source:{model:"docPlatform.devServer"},target:{model:"docPlatform.hugoSite"},id:"dg5rzk"},"1qbbmxu":{title:"reads content from",description:{txt:"Processes Markdown and templates"},source:{model:"docPlatform.hugoSite"},target:{model:"docPlatform.contentRepo"},id:"1qbbmxu"},"1oh42mx":{title:"integrates",description:{txt:"Embeds architecture diagrams"},source:{model:"docPlatform.hugoSite"},target:{model:"docPlatform.likec4Integration"},id:"1oh42mx"},"1a8c499":{title:"visualizes",description:{txt:"Renders C4 models as interactive diagrams"},source:{model:"docPlatform.likec4Integration"},target:{model:"docPlatform.contentRepo.archModels"},id:"1a8c499"},"1dzhdhu":{title:"can run locally",description:{txt:"task test:build"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testBuild"},id:"1dzhdhu"},"14ls3qa":{title:"can run locally",description:{txt:"task test:markdown"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testMarkdown"},id:"14ls3qa"},htx1q7:{title:"can run locally",description:{txt:"task test:html"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testHtml"},id:"htx1q7"},"1vqq9gw":{title:"can run locally",description:{txt:"task test:links"},source:{model:"docPlatform.taskfile"},target:{model:"cicdPipeline.githubActions.testLinks"},id:"1vqq9gw"},"8hsu7m":{title:"triggers on push/PR",description:{txt:"Webhook on main branch"},source:{model:"docPlatform.contentRepo"},target:{model:"cicdPipeline.githubActions"},id:"8hsu7m"},omluoy:{title:"builds",description:{txt:"hugo --gc --minify"},source:{model:"cicdPipeline.githubActions.testBuild"},target:{model:"docPlatform.hugoSite"},id:"omluoy"},"11hmyp0":{title:"validates",description:{txt:"Lints Markdown files"},source:{model:"cicdPipeline.githubActions.testMarkdown"},target:{model:"docPlatform.contentRepo.contentPages"},id:"11hmyp0"},"1bziuh3":{title:"validates output",description:{txt:"Checks generated HTML"},source:{model:"cicdPipeline.githubActions.testHtml"},target:{model:"docPlatform.hugoSite"},id:"1bziuh3"},"9nq85f":{title:"checks links in",description:{txt:"Detects broken links"},source:{model:"cicdPipeline.githubActions.testLinks"},target:{model:"docPlatform.hugoSite"},id:"9nq85f"},"1knexmm":{title:"triggers on success",description:{txt:"Builds Docker image with Hugo output"},source:{model:"cicdPipeline.githubActions"},target:{model:"cicdPipeline.containerBuild"},id:"1knexmm"},"1nifn":{title:"packages",description:{txt:"public/ directory served by Nginx"},source:{model:"cicdPipeline.containerBuild"},target:{model:"docPlatform.hugoSite"},id:"1nifn"},"1hae5vm":{title:"pushes image to",description:{txt:"Tagged container image"},source:{model:"cicdPipeline.containerBuild"},target:{model:"deploymentEnv.edgeConnect"},id:"1hae5vm"},"3gelf9":{title:"deploys to",description:{txt:"Via edgeconnectdeployment.yaml"},source:{model:"deploymentEnv.edgeConnect"},target:{model:"deploymentEnv.k8sCluster"},id:"3gelf9"},"164u7gn":{title:"exposed by",description:{txt:"Port 80"},source:{model:"deploymentEnv.k8sCluster.docDeployment"},target:{model:"deploymentEnv.k8sCluster.docService"},id:"164u7gn"},otinu1:{title:"views published docs",description:{txt:"HTTPS access to live documentation"},source:{model:"documentor"},target:{model:"deploymentEnv.k8sCluster.docService"},id:"otinu1"}},globals:{predicates:{},dynamicPredicates:{},styles:{}},views:{index:{_stage:"layouted",_type:"element",id:"index",title:"Landscape view",description:null,autoLayout:{direction:"TB"},hash:"d9b3559595eeba5234c915991564d6eb05a128a5",bounds:{x:0,y:0,width:550,height:1148},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1ndqohb","1t1nq4"],title:"Documentor",modelRef:"documentor",shape:"person",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:171,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"docPlatform",parent:null,level:0,children:[],inEdges:["1ndqohb","8lbghe"],outEdges:["jw1mqa"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",navigateTo:"overview",x:8,y:323,width:320,height:180,labelBBox:{x:25,y:54,width:271,height:65}},{id:"cicdPipeline",parent:null,level:0,children:[],inEdges:["jw1mqa"],outEdges:["8lbghe","1d6ysxt"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",navigateTo:"cicdPipeline",x:0,y:646,width:327,height:180,labelBBox:{x:18,y:63,width:292,height:47}},{id:"deploymentEnv",parent:null,level:0,children:[],inEdges:["1t1nq4","1d6ysxt"],outEdges:[],title:"Deployment Environment",modelRef:"deploymentEnv",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment infrastructure"},tags:[],kind:"system",x:169,y:968,width:320,height:180,labelBBox:{x:46,y:63,width:229,height:48}}],edges:[{id:"1ndqohb",source:"documentor",target:"docPlatform",label:"[...]",dotpos:"e,213.04,322.97 285.72,179.93 264.61,221.48 239.41,271.07 217.75,313.7",points:[[286,180],[265,221],[239,271],[218,314]],labelBBox:{x:255,y:239,width:25,height:18},parent:null,relations:["1ouysrh","fmzkfl","1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"1t1nq4",source:"documentor",target:"deploymentEnv",label:"views published docs",description:{txt:"HTTPS access to live documentation"},dotpos:"e,369.57,968.77 355.53,179.95 366.18,222.77 377.44,275.06 382.9,322.8 412.48,581.39 434.94,652.6 386.9,908.4 383.76,925.16 378.78,942.46 373.03,959.07",points:[[356,180],[366,223],[377,275],[383,323],[412,581],[435,653],[387,908],[384,925],[379,942],[373,959]],labelBBox:{x:413,y:562,width:136,height:18},parent:null,relations:["otinu1"],color:"gray",line:"dashed",head:"normal"},{id:"jw1mqa",source:"docPlatform",target:"cicdPipeline",label:"[...]",dotpos:"e,91.003,645.83 103.63,502.79 93.021,521.76 83.628,542.28 77.91,562.8 70.997,587.62 76.085,613.1 86.561,636.59",points:[[104,503],[93,522],[84,542],[78,563],[71,588],[76,613],[87,637]],labelBBox:{x:79,y:561,width:25,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw","8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"8lbghe",source:"cicdPipeline",target:"docPlatform",label:"[...]",dotpos:"e,166.79,502.73 165.01,645.77 165.52,604.59 166.14,555.48 166.67,513.08",points:[[165,646],[166,605],[166,555],[167,513]],labelBBox:{x:167,y:561,width:25,height:18},parent:null,relations:["omluoy","11hmyp0","1bziuh3","9nq85f","1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"1d6ysxt",source:"cicdPipeline",target:"deploymentEnv",label:"pushes image to",description:{txt:"Tagged container image"},dotpos:"e,283.22,968.57 209.65,825.53 231.02,867.08 256.52,916.67 278.45,959.3",points:[[210,826],[231,867],[257,917],[278,959]],labelBBox:{x:252,y:885,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"}]},overview:{_type:"element",tags:null,links:null,viewOf:"docPlatform",_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"High-level overview of the Hugo-based documentation platform for documentors"},title:"Documentation Platform Overview",id:"overview",autoLayout:{direction:"TB"},hash:"ee38e18e93593defec5a01081b1c1cb8614e9734",bounds:{x:0,y:0,width:1362,height:1851},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1it4ty8","1xegqy"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:788,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"cicdPipeline",parent:null,level:0,children:[],inEdges:["11swhvh","1yjnj9z"],outEdges:["1y7uioy","zvvnul"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",navigateTo:"cicdPipeline",x:841,y:1300,width:327,height:180,labelBBox:{x:18,y:63,width:292,height:48}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.taskfile","docPlatform.devServer","docPlatform.hugoSite","docPlatform.likec4Integration","docPlatform.contentRepo"],inEdges:["1it4ty8","1xegqy","1y7uioy","zvvnul"],outEdges:["11swhvh","1yjnj9z"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"localDevelopment",x:8,y:271,width:763,height:1572,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:["1xegqy"],outEdges:["1055tf","1yjnj9z"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:389,y:332,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:85}},{id:"docPlatform.devServer",parent:"docPlatform",level:1,children:[],inEdges:["1055tf"],outEdges:["zrlo7a"],title:"Development Server",modelRef:"docPlatform.devServer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Local Hugo server with hot reload for content development"},tags:[],technology:"Hugo Server",kind:"process",x:391,y:655,width:338,height:180,labelBBox:{x:18,y:44,width:303,height:85}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["1y7uioy","zrlo7a"],outEdges:["blbbud","o4y09i"],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:400,y:978,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:85}},{id:"docPlatform.likec4Integration",parent:"docPlatform",level:1,children:[],inEdges:["o4y09i"],outEdges:["ga3up5"],title:"LikeC4 Integration",modelRef:"docPlatform.likec4Integration",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Architecture diagram visualization embedded in documentation"},tags:[],technology:"LikeC4, Web Components",kind:"component",x:48,y:1300,width:339,height:180,labelBBox:{x:18,y:45,width:303,height:85}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["1it4ty8","zvvnul","blbbud","ga3up5"],outEdges:["11swhvh"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:411,y:1623,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:68}}],edges:[{id:"1it4ty8",source:"documentor",target:"docPlatform.contentRepo",label:"[...]",dotpos:"e,732.09,1678.6 1107.9,153.46 1214.5,206.72 1335,294.84 1335,421 1335,421 1335,421 1335,1391.4 1335,1519.2 967.26,1624.1 742.04,1676.3",points:[[1108,153],[1214,207],[1335,295],[1335,421],[1335,421],[1335,421],[1335,1391],[1335,1519],[967,1624],[742,1676]],labelBBox:{x:1336,y:893,width:25,height:18},parent:null,relations:["1ouysrh","fmzkfl"],color:"gray",line:"dashed",head:"normal"},{id:"1xegqy",source:"documentor",target:"docPlatform.taskfile",label:"executes local tasks",description:{txt:"task serve, task build, task test"},dotpos:"e,664.34,332.26 843.51,179.87 790.56,224.9 726.22,279.62 672.23,325.55",points:[[844,180],[791,225],[726,280],[672,326]],labelBBox:{x:767,y:240,width:129,height:18},parent:null,relations:["1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"1y7uioy",source:"cicdPipeline",target:"docPlatform.hugoSite",label:"[...]",dotpos:"e,683.37,1157.5 881.78,1300.6 822.72,1258 751.91,1207 691.78,1163.6",points:[[882,1301],[823,1258],[752,1207],[692,1164]],labelBBox:{x:797,y:1216,width:25,height:18},parent:null,relations:["omluoy","1bziuh3","9nq85f","1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"zvvnul",source:"cicdPipeline",target:"docPlatform.contentRepo",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,732.04,1649.5 948.79,1480.2 927.52,1509.2 901.5,1539.8 873,1563.2 833.88,1595.3 786.7,1622.7 741.38,1644.9",points:[[949,1480],[928,1509],[902,1540],[873,1563],[834,1595],[787,1623],[741,1645]],labelBBox:{x:896,y:1540,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"blbbud",source:"docPlatform.hugoSite",target:"docPlatform.contentRepo",label:"reads content from",description:{txt:"Processes Markdown and templates"},dotpos:"e,569.46,1622.2 561.52,1157.4 563.55,1276.5 567.16,1487.3 569.29,1611.9",points:[[562,1157],[564,1276],[567,1487],[569,1612]],labelBBox:{x:568,y:1379,width:121,height:18},parent:"docPlatform",relations:["1qbbmxu"],color:"gray",line:"dashed",head:"normal"},{id:"o4y09i",source:"docPlatform.hugoSite",target:"docPlatform.likec4Integration",label:"integrates",description:{txt:"Embeds architecture diagrams"},dotpos:"e,312.7,1300.6 465.19,1157.5 420.15,1199.8 366.26,1250.3 320.3,1293.4",points:[[465,1158],[420,1200],[366,1250],[320,1293]],labelBBox:{x:400,y:1217,width:65,height:18},parent:"docPlatform",relations:["1oh42mx"],color:"gray",line:"dashed",head:"normal"},{id:"zrlo7a",source:"docPlatform.devServer",target:"docPlatform.hugoSite",label:"renders",description:{txt:"Live reload on content changes"},dotpos:"e,560,977.77 560,834.73 560,875.93 560,925.04 560,967.43",points:[[560,835],[560,876],[560,925],[560,967]],labelBBox:{x:561,y:894,width:51,height:18},parent:"docPlatform",relations:["dg5rzk"],color:"gray",line:"dashed",head:"normal"},{id:"ga3up5",source:"docPlatform.likec4Integration",target:"docPlatform.contentRepo",label:"visualizes",description:{txt:"Renders C4 models as interactive diagrams"},dotpos:"e,473.25,1623.4 315.86,1480.3 362.44,1522.7 418.21,1573.3 465.7,1616.5",points:[[316,1480],[362,1523],[418,1573],[466,1617]],labelBBox:{x:406,y:1540,width:65,height:18},parent:"docPlatform",relations:["1a8c499"],color:"gray",line:"dashed",head:"normal"},{id:"1055tf",source:"docPlatform.taskfile",target:"docPlatform.devServer",label:"starts",description:{txt:"task serve"},dotpos:"e,560,654.97 560,511.93 560,553.13 560,602.24 560,644.63",points:[[560,512],[560,553],[560,602],[560,645]],labelBBox:{x:561,y:572,width:38,height:18},parent:"docPlatform",relations:["1h50i3u"],color:"gray",line:"dashed",head:"normal"},{id:"11swhvh",source:"docPlatform.contentRepo",target:"cicdPipeline",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,841.2,1461.8 635.57,1622.6 658.89,1594.1 686.79,1563.9 716.27,1540.4 751.16,1512.6 792.06,1487.8 831.91,1466.7",points:[[636,1623],[659,1594],[687,1564],[716,1540],[751,1513],[792,1488],[832,1467]],labelBBox:{x:717,y:1540,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"1yjnj9z",source:"docPlatform.taskfile",target:"cicdPipeline",label:"can run locally",dotpos:"e,992.23,1300.6 665.66,511.91 707.55,551.89 753.01,601.94 784,654.8 905.77,862.51 965.77,1143.2 990.51,1290.2",points:[[666,512],[708,552],[753,602],[784,655],[906,863],[966,1143],[991,1290]],labelBBox:{x:899,y:894,width:93,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw"],color:"gray",line:"dashed",head:"normal"}]},localDevelopment:{_type:"element",tags:null,links:null,viewOf:"docPlatform",_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"How a documentor works locally with the documentation"},title:"Local Development Workflow",id:"localDevelopment",autoLayout:{direction:"TB"},hash:"26dc23444be44f6f2c03474a6c59133abd4e74b2",bounds:{x:0,y:0,width:1138,height:1851},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1xegqy"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:371,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.contentRepo","docPlatform.taskfile","docPlatform.devServer","docPlatform.hugoSite","docPlatform.likec4Integration"],inEdges:["1y7uioy","1xegqy"],outEdges:["11swhvh","1yjnj9z"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:8,y:271,width:762,height:1572,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["blbbud","ga3up5"],outEdges:["11swhvh"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:400,y:1623,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:68}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:["1xegqy"],outEdges:["1yjnj9z","1055tf"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:360,y:332,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:85}},{id:"cicdPipeline",parent:null,level:0,children:[],inEdges:["11swhvh","1yjnj9z"],outEdges:["1y7uioy"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",navigateTo:"cicdPipeline",x:810,y:655,width:327,height:180,labelBBox:{x:18,y:63,width:292,height:47}},{id:"docPlatform.devServer",parent:"docPlatform",level:1,children:[],inEdges:["1055tf"],outEdges:["zrlo7a"],title:"Development Server",modelRef:"docPlatform.devServer",shape:"rectangle",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Local Hugo server with hot reload for content development"},tags:[],technology:"Hugo Server",kind:"process",x:362,y:655,width:338,height:180,labelBBox:{x:18,y:44,width:303,height:85}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["1y7uioy","zrlo7a"],outEdges:["blbbud","o4y09i"],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:371,y:978,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:85}},{id:"docPlatform.likec4Integration",parent:"docPlatform",level:1,children:[],inEdges:["o4y09i"],outEdges:["ga3up5"],title:"LikeC4 Integration",modelRef:"docPlatform.likec4Integration",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Architecture diagram visualization embedded in documentation"},tags:[],technology:"LikeC4, Web Components",kind:"component",x:390,y:1300,width:339,height:180,labelBBox:{x:18,y:45,width:303,height:85}}],edges:[{id:"11swhvh",source:"docPlatform.contentRepo",target:"cicdPipeline",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,965.98,834.65 666.92,1624.2 709.24,1584.3 754.89,1534.1 785,1480.4 901.46,1272.8 947.69,992.03 964.8,845",points:[[667,1624],[709,1584],[755,1534],[785,1480],[901,1273],[948,992],[965,845]],labelBBox:{x:891,y:1217,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"1y7uioy",source:"cicdPipeline",target:"docPlatform.hugoSite",label:"[...]",dotpos:"e,653.67,977.77 851.19,834.73 792.37,877.33 721.89,928.37 662.04,971.71",points:[[851,835],[792,877],[722,928],[662,972]],labelBBox:{x:767,y:893,width:25,height:18},parent:null,relations:["omluoy","1bziuh3","9nq85f","1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"blbbud",source:"docPlatform.hugoSite",target:"docPlatform.contentRepo",label:"reads content from",description:{txt:"Processes Markdown and templates"},dotpos:"e,399.21,1647.6 371.15,1143.6 309.79,1181.3 246.35,1233.5 212.28,1300.4 175.97,1371.7 174.53,1409.9 212.28,1480.4 250.61,1552 321.93,1605.3 390.06,1642.7",points:[[371,1144],[310,1181],[246,1233],[212,1300],[176,1372],[175,1410],[212,1480],[251,1552],[322,1605],[390,1643]],labelBBox:{x:213,y:1379,width:121,height:18},parent:"docPlatform",relations:["1qbbmxu"],color:"gray",line:"dashed",head:"normal"},{id:"o4y09i",source:"docPlatform.hugoSite",target:"docPlatform.likec4Integration",label:"integrates",description:{txt:"Embeds architecture diagrams"},dotpos:"e,551.97,1300.6 539.04,1157.5 542.76,1198.7 547.2,1247.8 551.04,1290.2",points:[[539,1158],[543,1199],[547,1248],[551,1290]],labelBBox:{x:547,y:1217,width:65,height:18},parent:"docPlatform",relations:["1oh42mx"],color:"gray",line:"dashed",head:"normal"},{id:"ga3up5",source:"docPlatform.likec4Integration",target:"docPlatform.contentRepo",label:"visualizes",description:{txt:"Renders C4 models as interactive diagrams"},dotpos:"e,560,1622.3 560,1480.3 560,1521.2 560,1569.8 560,1612",points:[[560,1480],[560,1521],[560,1570],[560,1612]],labelBBox:{x:561,y:1540,width:65,height:18},parent:"docPlatform",relations:["1a8c499"],color:"gray",line:"dashed",head:"normal"},{id:"1xegqy",source:"documentor",target:"docPlatform.taskfile",label:"executes local tasks",description:{txt:"task serve, task build, task test"},dotpos:"e,531,332.26 531,179.87 531,223.7 531,276.72 531,321.86",points:[[531,180],[531,224],[531,277],[531,322]],labelBBox:{x:532,y:240,width:129,height:18},parent:null,relations:["1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"1yjnj9z",source:"docPlatform.taskfile",target:"cicdPipeline",label:"can run locally",dotpos:"e,851.33,654.97 653.81,511.93 712.63,554.53 783.11,605.57 842.96,648.91",points:[[654,512],[713,555],[783,606],[843,649]],labelBBox:{x:767,y:572,width:93,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw"],color:"gray",line:"dashed",head:"normal"},{id:"1055tf",source:"docPlatform.taskfile",target:"docPlatform.devServer",label:"starts",description:{txt:"task serve"},dotpos:"e,531,654.97 531,511.93 531,553.13 531,602.24 531,644.63",points:[[531,512],[531,553],[531,602],[531,645]],labelBBox:{x:532,y:572,width:38,height:18},parent:"docPlatform",relations:["1h50i3u"],color:"gray",line:"dashed",head:"normal"},{id:"zrlo7a",source:"docPlatform.devServer",target:"docPlatform.hugoSite",label:"renders",description:{txt:"Live reload on content changes"},dotpos:"e,531,977.77 531,834.73 531,875.93 531,925.04 531,967.43",points:[[531,835],[531,876],[531,925],[531,967]],labelBBox:{x:532,y:894,width:51,height:18},parent:"docPlatform",relations:["dg5rzk"],color:"gray",line:"dashed",head:"normal"}]},cicdPipeline:{_type:"element",tags:null,links:null,viewOf:"cicdPipeline",_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"Automated testing and container build process"},title:"CI/CD Pipeline",id:"cicdPipeline",autoLayout:{direction:"TB"},hash:"150f9cc9e37c97380e3d5645a52229bf2e7cc7ae",bounds:{x:0,y:0,width:994,height:629},nodes:[{id:"cicdPipeline",parent:null,level:0,children:["cicdPipeline.githubActions","cicdPipeline.containerBuild"],inEdges:["cptcjf"],outEdges:["q5uigr","z85qw4","1n4aj6l"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",depth:1,x:29,y:8,width:957,height:281,labelBBox:{x:6,y:0,width:87,height:15}},{id:"cicdPipeline.githubActions",parent:"cicdPipeline",level:1,children:[],inEdges:["cptcjf"],outEdges:["hh1y8j","q5uigr","z85qw4"],title:"GitHub Actions",modelRef:"cicdPipeline.githubActions",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Automated testing workflow on push/PR"},tags:[],technology:"GitHub Actions",kind:"process",navigateTo:"testingCapabilities",x:69,y:69,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:68}},{id:"cicdPipeline.containerBuild",parent:"cicdPipeline",level:1,children:[],inEdges:["hh1y8j"],outEdges:["1n4aj6l"],title:"Container Build",modelRef:"cicdPipeline.containerBuild",shape:"rectangle",color:"indigo",style:{opacity:15,size:"md"},description:{txt:"OCI/Docker image creation with Hugo site"},tags:[],technology:"Docker",kind:"process",x:626,y:69,width:320,height:180,labelBBox:{x:18,y:53,width:283,height:68}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.hugoSite","docPlatform.contentRepo"],inEdges:["q5uigr","z85qw4","1n4aj6l"],outEdges:["cptcjf"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:8,y:340,width:953,height:281,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["z85qw4","1n4aj6l"],outEdges:["blbbud"],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:601,y:401,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:86}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["q5uigr","blbbud"],outEdges:["cptcjf"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:48,y:401,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:68}}],edges:[{id:"hh1y8j",source:"cicdPipeline.githubActions",target:"cicdPipeline.containerBuild",label:"triggers on success",description:{txt:"Builds Docker image with Hugo output"},dotpos:"e,626.08,159.2 388.99,159.2 460.05,159.2 543.78,159.2 615.98,159.2",points:[[389,159],[460,159],[544,159],[616,159]],labelBBox:{x:445,y:133,width:125,height:18},parent:"cicdPipeline",relations:["1knexmm"],color:"gray",line:"dashed",head:"normal"},{id:"q5uigr",source:"cicdPipeline.githubActions",target:"docPlatform.contentRepo",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,76.672,404.78 94.421,249.05 76.739,266.78 61.164,286.91 50.745,309.2 36.065,340.6 47.577,370.73 69.795,397.09",points:[[94,249],[77,267],[61,287],[51,309],[36,341],[48,371],[70,397]],labelBBox:{x:52,y:309,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"cptcjf",source:"docPlatform.contentRepo",target:"cicdPipeline.githubActions",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,223.34,249.07 213.72,400.31 216.5,356.69 219.84,304.17 222.69,259.39",points:[[214,400],[217,357],[220,304],[223,259]],labelBBox:{x:220,y:309,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"z85qw4",source:"cicdPipeline.githubActions",target:"docPlatform.hugoSite",label:"[...]",dotpos:"e,617.94,401.46 372.27,249.07 445.61,294.56 534.9,349.95 609.39,396.16",points:[[372,249],[446,295],[535,350],[609,396]],labelBBox:{x:496,y:308,width:25,height:18},parent:null,relations:["omluoy","1bziuh3","9nq85f"],color:"gray",line:"dashed",head:"normal"},{id:"1n4aj6l",source:"cicdPipeline.containerBuild",target:"docPlatform.hugoSite",label:"packages",description:{txt:"public/ directory served by Nginx"},dotpos:"e,767.72,401.46 779.27,249.07 775.95,292.9 771.93,345.92 768.51,391.06",points:[[779,249],[776,293],[772,346],[769,391]],labelBBox:{x:775,y:309,width:64,height:18},parent:null,relations:["1nifn"],color:"gray",line:"dashed",head:"normal"},{id:"blbbud",source:"docPlatform.hugoSite",target:"docPlatform.contentRepo",label:"reads content from",description:{txt:"Processes Markdown and templates"},dotpos:"e,369.07,491.2 601.07,491.2 531.6,491.2 450.12,491.2 379.42,491.2",points:[[601,491],[532,491],[450,491],[379,491]],labelBBox:{x:424,y:465,width:121,height:18},parent:"docPlatform",relations:["1qbbmxu"],color:"gray",line:"dashed",head:"normal"}]},deploymentFlow:{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"How the documentation is deployed to the edge infrastructure"},title:"Deployment to Edge Environment",id:"deploymentFlow",autoLayout:{direction:"TB"},hash:"63aa89007e7f2a0dcea28126ee3ecfb9ff4dd55e",bounds:{x:0,y:0,width:790,height:605},nodes:[{id:"cicdPipeline",parent:null,level:0,children:["cicdPipeline.containerBuild"],inEdges:[],outEdges:["l7mlxp"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",depth:1,navigateTo:"cicdPipeline",x:8,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:87,height:15}},{id:"cicdPipeline.containerBuild",parent:"cicdPipeline",level:1,children:[],inEdges:[],outEdges:["l7mlxp"],title:"Container Build",modelRef:"cicdPipeline.containerBuild",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"OCI/Docker image creation with Hugo site"},tags:[],technology:"Docker",kind:"process",x:40,y:61,width:320,height:180,labelBBox:{x:18,y:53,width:283,height:68}},{id:"deploymentEnv",parent:null,level:0,children:["deploymentEnv.edgeConnect"],inEdges:["l7mlxp"],outEdges:[],title:"Deployment Environment",modelRef:"deploymentEnv",shape:"rectangle",color:"muted",style:{opacity:15,size:"md"},description:{txt:"Edge deployment infrastructure"},tags:[],kind:"system",depth:1,x:8,y:332,width:384,height:265,labelBBox:{x:6,y:0,width:165,height:15}},{id:"deploymentEnv.edgeConnect",parent:"deploymentEnv",level:1,children:[],inEdges:["l7mlxp"],outEdges:[],title:"Edge Connect",modelRef:"deploymentEnv.edgeConnect",shape:"cylinder",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment orchestration platform"},tags:[],technology:"EdgeConnect",kind:"environment",x:40,y:385,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:68}},{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Documentor",modelRef:"documentor",shape:"person",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:470,y:61,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:86}}],edges:[{id:"l7mlxp",source:"cicdPipeline.containerBuild",target:"deploymentEnv.edgeConnect",label:"pushes image to",description:{txt:"Tagged container image"},dotpos:"e,200,384.25 200,241.04 200,282.23 200,331.36 200,373.88",points:[[200,241],[200,282],[200,331],[200,374]],labelBBox:{x:201,y:301,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"}]},fullWorkflow:{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"End-to-end view from content creation to published documentation"},title:"Complete Documentor Workflow",id:"fullWorkflow",autoLayout:{direction:"TB"},hash:"4633688809238a94b2ca062c87b9517f5ebd45c5",bounds:{x:0,y:0,width:1364,height:1224},nodes:[{id:"documentor",parent:null,level:0,children:[],inEdges:[],outEdges:["1it4ty8","1xegqy","tvlbdk"],title:"Documentor",modelRef:"documentor",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Content creator and maintainer of the developer platform documentation"},tags:[],technology:"Hugo, Markdown, LikeC4",kind:"person",x:563,y:0,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{id:"docPlatform",parent:null,level:0,children:["docPlatform.contentRepo","docPlatform.taskfile"],inEdges:["1it4ty8","1xegqy","q5uigr"],outEdges:["cptcjf","1r2t3dd"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:82,y:271,width:852,height:281,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.contentRepo",parent:"docPlatform",level:1,children:[],inEdges:["1it4ty8","q5uigr"],outEdges:["cptcjf"],title:"Content Repository",modelRef:"docPlatform.contentRepo",shape:"storage",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown files, images, and configuration"},tags:[],technology:"Git, Markdown",kind:"repository",x:122,y:332,width:320,height:180,labelBBox:{x:18,y:53,width:284,height:67}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:["1xegqy"],outEdges:["1r2t3dd"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:552,y:332,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:85}},{id:"cicdPipeline",parent:null,level:0,children:["cicdPipeline.githubActions","cicdPipeline.containerBuild"],inEdges:["cptcjf","1r2t3dd"],outEdges:["q5uigr","l7mlxp"],title:"CI/CD Pipeline",modelRef:"cicdPipeline",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Automated testing and deployment pipeline"},tags:[],kind:"system",depth:1,navigateTo:"cicdPipeline",x:8,y:603,width:957,height:281,labelBBox:{x:6,y:0,width:87,height:15}},{id:"cicdPipeline.githubActions",parent:"cicdPipeline",level:1,children:[],inEdges:["cptcjf","1r2t3dd"],outEdges:["q5uigr","hh1y8j"],title:"GitHub Actions",modelRef:"cicdPipeline.githubActions",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Automated testing workflow on push/PR"},tags:[],technology:"GitHub Actions",kind:"process",navigateTo:"testingCapabilities",x:48,y:664,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:67}},{id:"cicdPipeline.containerBuild",parent:"cicdPipeline",level:1,children:[],inEdges:["hh1y8j"],outEdges:["l7mlxp"],title:"Container Build",modelRef:"cicdPipeline.containerBuild",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"OCI/Docker image creation with Hugo site"},tags:[],technology:"Docker",kind:"process",x:605,y:664,width:320,height:180,labelBBox:{x:18,y:53,width:283,height:67}},{id:"deploymentEnv",parent:null,level:0,children:["deploymentEnv.edgeConnect","deploymentEnv.k8sCluster"],inEdges:["l7mlxp","tvlbdk"],outEdges:[],title:"Deployment Environment",modelRef:"deploymentEnv",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment infrastructure"},tags:[],kind:"system",depth:1,x:456,y:935,width:900,height:281,labelBBox:{x:6,y:0,width:165,height:15}},{id:"deploymentEnv.edgeConnect",parent:"deploymentEnv",level:1,children:[],inEdges:["l7mlxp"],outEdges:["11aayil"],title:"Edge Connect",modelRef:"deploymentEnv.edgeConnect",shape:"cylinder",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Edge deployment orchestration platform"},tags:[],technology:"EdgeConnect",kind:"environment",x:496,y:996,width:320,height:180,labelBBox:{x:25,y:53,width:270,height:67}},{id:"deploymentEnv.k8sCluster",parent:"deploymentEnv",level:1,children:[],inEdges:["tvlbdk","11aayil"],outEdges:[],title:"Kubernetes Cluster",modelRef:"deploymentEnv.k8sCluster",shape:"cylinder",color:"secondary",style:{opacity:15,size:"md"},description:{txt:"K8s cluster on edge cloudlet (Munich)"},tags:[],technology:"Kubernetes",kind:"environment",x:996,y:996,width:320,height:180,labelBBox:{x:33,y:53,width:255,height:67}}],edges:[{id:"1it4ty8",source:"documentor",target:"docPlatform.contentRepo",label:"[...]",dotpos:"e,398.3,333.97 604.24,179.87 543.08,225.63 468.55,281.41 406.57,327.78",points:[[604,180],[543,226],[469,281],[407,328]],labelBBox:{x:517,y:239,width:25,height:18},parent:null,relations:["1ouysrh","fmzkfl"],color:"gray",line:"dashed",head:"normal"},{id:"1xegqy",source:"documentor",target:"docPlatform.taskfile",label:"executes local tasks",description:{txt:"task serve, task build, task test"},dotpos:"e,723,332.26 723,179.87 723,223.7 723,276.72 723,321.86",points:[[723,180],[723,224],[723,277],[723,322]],labelBBox:{x:724,y:240,width:129,height:18},parent:null,relations:["1iop8z6"],color:"gray",line:"dashed",head:"normal"},{id:"cptcjf",source:"docPlatform.contentRepo",target:"cicdPipeline.githubActions",label:"triggers on push/PR",description:{txt:"Webhook on main branch"},dotpos:"e,227.93,664.14 261.88,512.74 252.07,556.48 240.25,609.2 230.18,654.09",points:[[262,513],[252,556],[240,609],[230,654]],labelBBox:{x:248,y:572,width:128,height:18},parent:null,relations:["8hsu7m"],color:"gray",line:"dashed",head:"normal"},{id:"1r2t3dd",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions",label:"can run locally",dotpos:"e,346.49,664.26 584.31,511.87 513.46,557.27 427.23,612.52 355.2,658.68",points:[[584,512],[513,557],[427,613],[355,659]],labelBBox:{x:482,y:572,width:93,height:18},parent:null,relations:["1dzhdhu","14ls3qa","htx1q7","1vqq9gw"],color:"gray",line:"dashed",head:"normal"},{id:"q5uigr",source:"cicdPipeline.githubActions",target:"docPlatform.contentRepo",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,190.36,512.35 160.53,664.25 150.58,634.62 145.95,601.61 156.75,572 163.3,554.02 173.08,536.7 184.34,520.64",points:[[161,664],[151,635],[146,602],[157,572],[163,554],[173,537],[184,521]],labelBBox:{x:158,y:572,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"hh1y8j",source:"cicdPipeline.githubActions",target:"cicdPipeline.containerBuild",label:"triggers on success",description:{txt:"Builds Docker image with Hugo output"},dotpos:"e,605.08,754 367.99,754 439.05,754 522.78,754 594.98,754",points:[[368,754],[439,754],[523,754],[595,754]],labelBBox:{x:424,y:728,width:125,height:18},parent:"cicdPipeline",relations:["1knexmm"],color:"gray",line:"dashed",head:"normal"},{id:"l7mlxp",source:"cicdPipeline.containerBuild",target:"deploymentEnv.edgeConnect",label:"pushes image to",description:{txt:"Tagged container image"},dotpos:"e,685.69,995.11 735.65,843.87 721.22,887.53 703.79,940.3 688.92,985.33",points:[[736,844],[721,888],[704,940],[689,985]],labelBBox:{x:715,y:904,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"},{id:"tvlbdk",source:"documentor",target:"deploymentEnv.k8sCluster",label:"views published docs",description:{txt:"HTTPS access to live documentation"},dotpos:"e,1153.9,995.06 873.63,179.94 906.57,205.58 938.32,236.13 961,270.8 1108.5,496.18 1144.6,821.89 1153.3,984.59",points:[[874,180],[907,206],[938,236],[961,271],[1108,496],[1145,822],[1153,985]],labelBBox:{x:1096,y:572,width:136,height:18},parent:null,relations:["otinu1"],color:"gray",line:"dashed",head:"normal"},{id:"11aayil",source:"deploymentEnv.edgeConnect",target:"deploymentEnv.k8sCluster",label:"deploys to",description:{txt:"Via edgeconnectdeployment.yaml"},dotpos:"e,995.35,1086 816.96,1086 870.59,1086 930.52,1086 984.9,1086",points:[[817,1086],[871,1086],[931,1086],[985,1086]],labelBBox:{x:872,y:1060,width:68,height:18},parent:"deploymentEnv",relations:["3gelf9"],color:"gray",line:"dashed",head:"normal"}]},testingCapabilities:{_type:"element",tags:null,links:null,viewOf:"cicdPipeline.githubActions",_stage:"layouted",sourcePath:"documentation-platform.c4",description:{txt:"All automated tests that ensure documentation quality"},title:"Testing Capabilities",id:"testingCapabilities",autoLayout:{direction:"TB"},hash:"76ca10e2d3f66b60e0e770ed653c00e8c3dff101",bounds:{x:0,y:0,width:1845,height:629},nodes:[{id:"docPlatform",parent:null,level:0,children:["docPlatform.taskfile","docPlatform.hugoSite","docPlatform.contentRepo.contentPages"],inEdges:["4wakcq","ln4mn5","iktojz","1lhijkz"],outEdges:["1eaxawv","hv4xce","efibas","1e3oxi2"],title:"Documentation Platform",modelRef:"docPlatform",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo-based documentation system with integrated architecture visualization"},tags:[],kind:"system",depth:1,navigateTo:"overview",x:553,y:8,width:1284,height:281,labelBBox:{x:6,y:0,width:166,height:15}},{id:"docPlatform.taskfile",parent:"docPlatform",level:1,children:[],inEdges:[],outEdges:["1eaxawv","hv4xce","efibas","1e3oxi2"],title:"Taskfile",modelRef:"docPlatform.taskfile",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Task automation for local development, build, and testing"},tags:[],technology:"Task (go-task)",kind:"tool",x:1023,y:69,width:341,height:180,labelBBox:{x:18,y:44,width:306,height:86}},{id:"cicdPipeline.githubActions",parent:null,level:0,children:["cicdPipeline.githubActions.testBuild","cicdPipeline.githubActions.testHtml","cicdPipeline.githubActions.testLinks","cicdPipeline.githubActions.testMarkdown"],inEdges:["1eaxawv","hv4xce","efibas","1e3oxi2"],outEdges:["4wakcq","ln4mn5","iktojz","1lhijkz"],title:"GitHub Actions",modelRef:"cicdPipeline.githubActions",shape:"rectangle",color:"blue",style:{opacity:15,size:"md"},description:{txt:"Automated testing workflow on push/PR"},tags:[],technology:"GitHub Actions",kind:"process",depth:1,x:8,y:340,width:1690,height:281,labelBBox:{x:6,y:0,width:99,height:15}},{id:"cicdPipeline.githubActions.testBuild",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["1eaxawv"],outEdges:["4wakcq"],title:"Build Test",modelRef:"cicdPipeline.githubActions.testBuild",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Hugo build validation"},tags:[],technology:"Hugo",kind:"component",x:48,y:401,width:320,height:180,labelBBox:{x:88,y:53,width:143,height:68}},{id:"cicdPipeline.githubActions.testHtml",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["efibas"],outEdges:["ln4mn5"],title:"HTML Validation",modelRef:"cicdPipeline.githubActions.testHtml",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Generated HTML validation"},tags:[],technology:"htmlvalidate",kind:"component",x:908,y:401,width:320,height:180,labelBBox:{x:66,y:53,width:187,height:68}},{id:"cicdPipeline.githubActions.testLinks",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["1e3oxi2"],outEdges:["iktojz"],title:"Link Checker",modelRef:"cicdPipeline.githubActions.testLinks",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Broken link detection"},tags:[],technology:"htmltest",kind:"component",x:478,y:401,width:320,height:180,labelBBox:{x:88,y:53,width:143,height:68}},{id:"cicdPipeline.githubActions.testMarkdown",parent:"cicdPipeline.githubActions",level:1,children:[],inEdges:["hv4xce"],outEdges:["1lhijkz"],title:"Markdown Lint",modelRef:"cicdPipeline.githubActions.testMarkdown",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Markdown syntax and style checking"},tags:[],technology:"markdownlint",kind:"component",x:1338,y:401,width:320,height:180,labelBBox:{x:36,y:53,width:248,height:68}},{id:"docPlatform.hugoSite",parent:"docPlatform",level:1,children:[],inEdges:["4wakcq","ln4mn5","iktojz"],outEdges:[],title:"Hugo Site",modelRef:"docPlatform.hugoSite",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Static site generator based on Hugo with Docsy theme"},tags:[],technology:"Hugo Extended, Docsy",kind:"component",x:593,y:69,width:320,height:180,labelBBox:{x:23,y:44,width:274,height:86}},{id:"docPlatform.contentRepo.contentPages",parent:"docPlatform",level:1,children:[],inEdges:["1lhijkz"],outEdges:[],title:"Content Pages",modelRef:"docPlatform.contentRepo.contentPages",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Documentation pages in Markdown format"},tags:[],technology:"Markdown",kind:"component",x:1475,y:69,width:321,height:180,labelBBox:{x:18,y:53,width:286,height:68}}],edges:[{id:"4wakcq",source:"cicdPipeline.githubActions.testBuild",target:"docPlatform.hugoSite",label:"builds",description:{txt:"hugo --gc --minify"},dotpos:"e,593.29,180.37 172.86,401.65 166.12,369.69 166.42,335.14 186.42,309.2 234.84,246.41 434.45,204.83 583.12,181.92",points:[[173,402],[166,370],[166,335],[186,309],[235,246],[434,205],[583,182]],labelBBox:{x:187,y:309,width:41,height:18},parent:null,relations:["omluoy"],color:"gray",line:"dashed",head:"normal"},{id:"ln4mn5",source:"cicdPipeline.githubActions.testHtml",target:"docPlatform.hugoSite",label:"validates output",description:{txt:"Checks generated HTML"},dotpos:"e,837.83,249.07 983.29,401.46 940.59,356.72 888.73,302.39 845.05,256.63",points:[[983,401],[941,357],[889,302],[845,257]],labelBBox:{x:912,y:309,width:102,height:18},parent:null,relations:["1bziuh3"],color:"gray",line:"dashed",head:"normal"},{id:"iktojz",source:"cicdPipeline.githubActions.testLinks",target:"docPlatform.hugoSite",label:"checks links in",description:{txt:"Detects broken links"},dotpos:"e,600.41,249.07 562.94,401.33 546.97,371.84 538.84,338.95 553.75,309.2 563.56,289.61 577.31,271.93 593.05,256.17",points:[[563,401],[547,372],[539,339],[554,309],[564,290],[577,272],[593,256]],labelBBox:{x:555,y:309,width:94,height:18},parent:null,relations:["9nq85f"],color:"gray",line:"dashed",head:"normal"},{id:"1lhijkz",source:"cicdPipeline.githubActions.testMarkdown",target:"docPlatform.contentRepo.contentPages",label:"validates",description:{txt:"Lints Markdown files"},dotpos:"e,1598.8,249.07 1535.1,401.46 1553.5,357.37 1575.9,303.96 1594.8,258.62",points:[[1535,401],[1554,357],[1576,304],[1595,259]],labelBBox:{x:1572,y:309,width:59,height:18},parent:null,relations:["11hmyp0"],color:"gray",line:"dashed",head:"normal"},{id:"1eaxawv",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testBuild",label:"can run locally",description:{txt:"task test:build"},dotpos:"e,288.07,401.25 1062.5,249.2 1032.6,265.39 1000.2,280.03 968,289.2 851.77,322.34 537.34,265.89 424.51,309.2 376.79,327.52 332.01,360.97 295.69,394.17",points:[[1062,249],[1033,265],[1e3,280],[968,289],[852,322],[537,266],[425,309],[377,328],[332,361],[296,394]],labelBBox:{x:426,y:309,width:93,height:18},parent:null,relations:["1dzhdhu"],color:"gray",line:"dashed",head:"normal"},{id:"hv4xce",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testMarkdown",label:"can run locally",description:{txt:"task test:markdown"},dotpos:"e,1416.3,401.46 1275.9,249.07 1317.1,293.82 1367.1,348.15 1409.3,393.9",points:[[1276,249],[1317,294],[1367,348],[1409,394]],labelBBox:{x:1347,y:309,width:93,height:18},parent:null,relations:["14ls3qa"],color:"gray",line:"dashed",head:"normal"},{id:"efibas",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testHtml",label:"can run locally",description:{txt:"task test:html"},dotpos:"e,1101.9,401.46 1160.1,249.07 1143.3,293.09 1122.9,346.36 1105.6,391.63",points:[[1160,249],[1143,293],[1123,346],[1106,392]],labelBBox:{x:1136,y:309,width:93,height:18},parent:null,relations:["htx1q7"],color:"gray",line:"dashed",head:"normal"},{id:"1e3oxi2",source:"docPlatform.taskfile",target:"cicdPipeline.githubActions.testLinks",label:"can run locally",description:{txt:"task test:links"},dotpos:"e,685.67,401.5 1058.9,249.19 1029.9,264.85 998.74,279.29 968,289.2 887.4,315.19 852.51,268.01 778.51,309.2 743.41,328.74 714.14,361.02 691.56,392.96",points:[[1059,249],[1030,265],[999,279],[968,289],[887,315],[853,268],[779,309],[743,329],[714,361],[692,393]],labelBBox:{x:780,y:309,width:93,height:18},parent:null,relations:["1vqq9gw"],color:"gray",line:"dashed",head:"normal"}]}},deployments:{elements:{},relations:{}},imports:{}}),{useLikeC4Model:gtt}=ptt(mtt);function ytt({children:e}){const r=gtt();return b.jsx(Cet,{likec4model:r,children:e})}function btt(e){return b.jsx(ytt,{children:b.jsx(Jet,{renderIcon:ttt,...e})})}var w7={exports:{}},Fy={},k7={exports:{}},_7={};/** +* @license React +* scheduler.production.js +* +* Copyright (c) Meta Platforms, Inc. and affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var Jte;function vtt(){return Jte||(Jte=1,(function(e){function r(L,U){var q=L.length;L.push(U);e:for(;0>>1,F=L[X];if(0>>1;Xa(z,q))Wa(G,z)?(L[X]=G,L[W]=q,X=W):(L[X]=z,L[Q]=q,X=Q);else if(Wa(G,q))L[X]=G,L[W]=q,X=W;else break e}}return U}function a(L,U){var q=L.sortIndex-U.sortIndex;return q!==0?q:L.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,h=null,p=3,g=!1,y=!1,x=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function T(L){for(var U=n(u);U!==null;){if(U.callback===null)o(u);else if(U.startTime<=L)o(u),U.sortIndex=U.expirationTime,r(c,U);else break;U=n(u)}}function A(L){if(x=!1,T(L),!y)if(n(c)!==null)y=!0,N||(N=!0,I());else{var U=n(u);U!==null&&V(A,U.startTime-L)}}var N=!1,$=-1,R=5,M=-1;function O(){return w?!0:!(e.unstable_now()-ML&&O());){var X=h.callback;if(typeof X=="function"){h.callback=null,p=h.priorityLevel;var F=X(h.expirationTime<=L);if(L=e.unstable_now(),typeof F=="function"){h.callback=F,T(L),U=!0;break t}h===n(c)&&o(c),T(L)}else o(c);h=n(c)}if(h!==null)U=!0;else{var J=n(u);J!==null&&V(A,J.startTime-L),U=!1}}break e}finally{h=null,p=q,g=!1}U=void 0}}finally{U?I():N=!1}}}var I;if(typeof _=="function")I=function(){_(B)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,D=Y.port2;Y.port1.onmessage=B,I=function(){D.postMessage(null)}}else I=function(){k(B,0)};function V(L,U){$=k(function(){L(e.unstable_now())},U)}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(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125X?(L.sortIndex=q,r(u,L),n(c)===null&&L===n(u)&&(x?(C($),$=-1):x=!0,V(A,q-X))):(L.sortIndex=F,r(c,L),y||g||(y=!0,N||(N=!0,I()))),L},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(L){var U=p;return function(){var q=p;p=U;try{return L.apply(this,arguments)}finally{p=q}}}})(_7)),_7}var ere;function xtt(){return ere||(ere=1,k7.exports=vtt()),k7.exports}/** +* @license React +* react-dom-client.production.js +* +* Copyright (c) Meta Platforms, Inc. and affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var tre;function wtt(){if(tre)return Fy;tre=1;var e=xtt(),r=V2(),n=CD();function o(f){var m="https://react.dev/errors/"+f;if(1F||(f.current=X[F],X[F]=null,F--)}function z(f,m){F++,X[F]=f.current,f.current=m}var W=J(null),G=J(null),Z=J(null),oe=J(null);function ee(f,m){switch(z(Z,m),z(G,f),z(W,null),m.nodeType){case 9:case 11:f=(f=m.documentElement)&&(f=f.namespaceURI)?Xge(f):0;break;default:if(f=m.tagName,m=m.namespaceURI)m=Xge(m),f=Gge(m,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}Q(W),z(W,f)}function re(){Q(W),Q(G),Q(Z)}function he(f){f.memoizedState!==null&&z(oe,f);var m=W.current,v=Gge(m,f.type);m!==v&&(z(G,f),z(W,v))}function Ce(f){G.current===f&&(Q(W),Q(G)),oe.current===f&&(Q(oe),jv._currentValue=q)}var ce=Object.prototype.hasOwnProperty,de=e.unstable_scheduleCallback,be=e.unstable_cancelCallback,De=e.unstable_shouldYield,Ge=e.unstable_requestPaint,Xe=e.unstable_now,_t=e.unstable_getCurrentPriorityLevel,Qe=e.unstable_ImmediatePriority,St=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,We=e.unstable_LowPriority,lt=e.unstable_IdlePriority,Et=e.log,Pn=e.unstable_setDisableYieldValue,_e=null,we=null;function rt(f){if(typeof Et=="function"&&Pn(f),we&&typeof we.setStrictMode=="function")try{we.setStrictMode(_e,f)}catch{}}var at=Math.clz32?Math.clz32:Pt,$t=Math.log,Wr=Math.LN2;function Pt(f){return f>>>=0,f===0?32:31-($t(f)/Wr|0)|0}var Tr=256,vo=4194304;function Mn(f){var m=f&42;if(m!==0)return m;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function Fr(f,m,v){var S=f.pendingLanes;if(S===0)return 0;var P=0,j=f.suspendedLanes,K=f.pingedLanes;f=f.warmLanes;var te=S&134217727;return te!==0?(S=te&~j,S!==0?P=Mn(S):(K&=te,K!==0?P=Mn(K):v||(v=te&~f,v!==0&&(P=Mn(v))))):(te=S&~j,te!==0?P=Mn(te):K!==0?P=Mn(K):v||(v=S&~f,v!==0&&(P=Mn(v)))),P===0?0:m!==0&&m!==P&&(m&j)===0&&(j=P&-P,v=m&-m,j>=v||j===32&&(v&4194048)!==0)?m:P}function no(f,m){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&m)===0}function ur(f,m){switch(f){case 1:case 2:case 4:case 8:case 64:return m+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fa(){var f=Tr;return Tr<<=1,(Tr&4194048)===0&&(Tr=256),f}function _l(){var f=vo;return vo<<=1,(vo&62914560)===0&&(vo=4194304),f}function Qh(f){for(var m=[],v=0;31>v;v++)m.push(f);return m}function Cc(f,m){f.pendingLanes|=m,m!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function Ub(f,m,v,S,P,j){var K=f.pendingLanes;f.pendingLanes=v,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=v,f.entangledLanes&=v,f.errorRecoveryDisabledLanes&=v,f.shellSuspendCounter=0;var te=f.entanglements,le=f.expirationTimes,ge=f.hiddenUpdates;for(v=K&~v;0)":-1P||le[S]!==ge[P]){var Te=` +`+le[S].replace(" at new "," at ");return f.displayName&&Te.includes("")&&(Te=Te.replace("",f.displayName)),Te}while(1<=S&&0<=P);break}}}finally{of=!1,Error.prepareStackTrace=v}return(v=f?f.displayName||f.name:"")?Ri(v):""}function Gb(f){switch(f.tag){case 26:case 27:case 5:return Ri(f.type);case 16:return Ri("Lazy");case 13:return Ri("Suspense");case 19:return Ri("SuspenseList");case 0:case 15:return af(f.type,!1);case 11:return af(f.type.render,!1);case 1:return af(f.type,!0);case 31:return Ri("Activity");default:return""}}function Pg(f){try{var m="";do m+=Gb(f),f=f.return;while(f);return m}catch(v){return` +Error generating stack: `+v.message+` +`+v.stack}}function Io(f){switch(typeof f){case"bigint":case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function Mg(f){var m=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function Kb(f){var m=Mg(f)?"checked":"value",v=Object.getOwnPropertyDescriptor(f.constructor.prototype,m),S=""+f[m];if(!f.hasOwnProperty(m)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var P=v.get,j=v.set;return Object.defineProperty(f,m,{configurable:!0,get:function(){return P.call(this)},set:function(K){S=""+K,j.call(this,K)}}),Object.defineProperty(f,m,{enumerable:v.enumerable}),{getValue:function(){return S},setValue:function(K){S=""+K},stopTracking:function(){f._valueTracker=null,delete f[m]}}}}function Yu(f){f._valueTracker||(f._valueTracker=Kb(f))}function Wu(f){if(!f)return!1;var m=f._valueTracker;if(!m)return!0;var v=m.getValue(),S="";return f&&(S=Mg(f)?f.checked?"true":"false":f.value),f=S,f!==v?(m.setValue(f),!0):!1}function Xu(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}var Zb=/[\n"\\]/g;function zo(f){return f.replace(Zb,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function Bs(f,m,v,S,P,j,K,te){f.name="",K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?f.type=K:f.removeAttribute("type"),m!=null?K==="number"?(m===0&&f.value===""||f.value!=m)&&(f.value=""+Io(m)):f.value!==""+Io(m)&&(f.value=""+Io(m)):K!=="submit"&&K!=="reset"||f.removeAttribute("value"),m!=null?sf(f,K,Io(m)):v!=null?sf(f,K,Io(v)):S!=null&&f.removeAttribute("value"),P==null&&j!=null&&(f.defaultChecked=!!j),P!=null&&(f.checked=P&&typeof P!="function"&&typeof P!="symbol"),te!=null&&typeof te!="function"&&typeof te!="symbol"&&typeof te!="boolean"?f.name=""+Io(te):f.removeAttribute("name")}function Og(f,m,v,S,P,j,K,te){if(j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(f.type=j),m!=null||v!=null){if(!(j!=="submit"&&j!=="reset"||m!=null))return;v=v!=null?""+Io(v):"",m=m!=null?""+Io(m):v,te||m===f.value||(f.value=m),f.defaultValue=m}S=S??P,S=typeof S!="function"&&typeof S!="symbol"&&!!S,f.checked=te?f.checked:!!S,f.defaultChecked=!!S,K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"&&(f.name=K)}function sf(f,m,v){m==="number"&&Xu(f.ownerDocument)===f||f.defaultValue===""+v||(f.defaultValue=""+v)}function $i(f,m,v,S){if(f=f.options,m){m={};for(var P=0;P"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wM=!1;if(Ac)try{var Jb={};Object.defineProperty(Jb,"passive",{get:function(){wM=!0}}),window.addEventListener("test",Jb,Jb),window.removeEventListener("test",Jb,Jb)}catch{wM=!1}var Gu=null,kM=null,L5=null;function Qfe(){if(L5)return L5;var f,m=kM,v=m.length,S,P="value"in Gu?Gu.value:Gu.textContent,j=P.length;for(f=0;f=rv),ope=" ",ape=!1;function ipe(f,m){switch(f){case"keyup":return xEt.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function spe(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var zg=!1;function kEt(f,m){switch(f){case"compositionend":return spe(m);case"keypress":return m.which!==32?null:(ape=!0,ope);case"textInput":return f=m.data,f===ope&&ape?null:f;default:return null}}function _Et(f,m){if(zg)return f==="compositionend"||!TM&&ipe(f,m)?(f=Qfe(),L5=kM=Gu=null,zg=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1=m)return{node:v,offset:m-f};f=S}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=mpe(v)}}function ype(f,m){return f&&m?f===m?!0:f&&f.nodeType===3?!1:m&&m.nodeType===3?ype(f,m.parentNode):"contains"in f?f.contains(m):f.compareDocumentPosition?!!(f.compareDocumentPosition(m)&16):!1:!1}function bpe(f){f=f!=null&&f.ownerDocument!=null&&f.ownerDocument.defaultView!=null?f.ownerDocument.defaultView:window;for(var m=Xu(f.document);m instanceof f.HTMLIFrameElement;){try{var v=typeof m.contentWindow.location.href=="string"}catch{v=!1}if(v)f=m.contentWindow;else break;m=Xu(f.document)}return m}function RM(f){var m=f&&f.nodeName&&f.nodeName.toLowerCase();return m&&(m==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||m==="textarea"||f.contentEditable==="true")}var $Et=Ac&&"documentMode"in document&&11>=document.documentMode,jg=null,$M=null,iv=null,PM=!1;function vpe(f,m,v){var S=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;PM||jg==null||jg!==Xu(S)||(S=jg,"selectionStart"in S&&RM(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),iv&&av(iv,S)||(iv=S,S=C2($M,"onSelect"),0>=K,P-=K,Rc=1<<32-at(m)+P|v<j?j:8;var K=L.T,te={};L.T=te,yO(f,!1,m,v);try{var le=P(),ge=L.S;if(ge!==null&&ge(te,le),le!==null&&typeof le=="object"&&typeof le.then=="function"){var Te=BEt(le,S);wv(f,m,Te,Wa(f))}else wv(f,m,S,Wa(f))}catch(Re){wv(f,m,{then:function(){},status:"rejected",reason:Re},Wa())}finally{U.p=j,L.T=K}}function qEt(){}function mO(f,m,v,S){if(f.tag!==5)throw Error(o(476));var P=xme(f).queue;vme(f,P,m,q,v===null?qEt:function(){return wme(f),v(S)})}function xme(f){var m=f.memoizedState;if(m!==null)return m;m={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oc,lastRenderedState:q},next:null};var v={};return m.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oc,lastRenderedState:v},next:null},f.memoizedState=m,f=f.alternate,f!==null&&(f.memoizedState=m),m}function wme(f){var m=xme(f).next.queue;wv(f,m,{},Wa())}function gO(){return jo(jv)}function kme(){return Ln().memoizedState}function _me(){return Ln().memoizedState}function YEt(f){for(var m=f.return;m!==null;){switch(m.tag){case 24:case 3:var v=Wa();f=Qu(v);var S=Ju(m,f,v);S!==null&&(Xa(S,m,v),mv(S,m,v)),m={cache:YM()},f.payload=m;return}m=m.return}}function WEt(f,m,v){var S=Wa();v={lane:S,revertLane:0,action:v,hasEagerState:!1,eagerState:null,next:null},i2(f)?Sme(m,v):(v=LM(f,m,v,S),v!==null&&(Xa(v,f,S),Cme(v,m,S)))}function Eme(f,m,v){var S=Wa();wv(f,m,v,S)}function wv(f,m,v,S){var P={lane:S,revertLane:0,action:v,hasEagerState:!1,eagerState:null,next:null};if(i2(f))Sme(m,P);else{var j=f.alternate;if(f.lanes===0&&(j===null||j.lanes===0)&&(j=m.lastRenderedReducer,j!==null))try{var K=m.lastRenderedState,te=j(K,v);if(P.hasEagerState=!0,P.eagerState=te,Ha(te,K))return U5(f,m,P,0),Ar===null&&H5(),!1}catch{}finally{}if(v=LM(f,m,P,S),v!==null)return Xa(v,f,S),Cme(v,m,S),!0}return!1}function yO(f,m,v,S){if(S={lane:2,revertLane:GO(),action:S,hasEagerState:!1,eagerState:null,next:null},i2(f)){if(m)throw Error(o(479))}else m=LM(f,v,S,2),m!==null&&Xa(m,f,2)}function i2(f){var m=f.alternate;return f===Bt||m!==null&&m===Bt}function Sme(f,m){Gg=e2=!0;var v=f.pending;v===null?m.next=m:(m.next=v.next,v.next=m),f.pending=m}function Cme(f,m,v){if((v&4194048)!==0){var S=m.lanes;S&=f.pendingLanes,v|=S,m.lanes=v,Hu(f,v)}}var s2={readContext:jo,use:r2,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useLayoutEffect:dn,useInsertionEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useSyncExternalStore:dn,useId:dn,useHostTransitionStatus:dn,useFormState:dn,useActionState:dn,useOptimistic:dn,useMemoCache:dn,useCacheRefresh:dn},Tme={readContext:jo,use:r2,useCallback:function(f,m){return ma().memoizedState=[f,m===void 0?null:m],f},useContext:jo,useEffect:ume,useImperativeHandle:function(f,m,v){v=v!=null?v.concat([f]):null,a2(4194308,4,pme.bind(null,m,f),v)},useLayoutEffect:function(f,m){return a2(4194308,4,f,m)},useInsertionEffect:function(f,m){a2(4,2,f,m)},useMemo:function(f,m){var v=ma();m=m===void 0?null:m;var S=f();if(vf){rt(!0);try{f()}finally{rt(!1)}}return v.memoizedState=[S,m],S},useReducer:function(f,m,v){var S=ma();if(v!==void 0){var P=v(m);if(vf){rt(!0);try{v(m)}finally{rt(!1)}}}else P=m;return S.memoizedState=S.baseState=P,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:P},S.queue=f,f=f.dispatch=WEt.bind(null,Bt,f),[S.memoizedState,f]},useRef:function(f){var m=ma();return f={current:f},m.memoizedState=f},useState:function(f){f=dO(f);var m=f.queue,v=Eme.bind(null,Bt,m);return m.dispatch=v,[f.memoizedState,v]},useDebugValue:fO,useDeferredValue:function(f,m){var v=ma();return pO(v,f,m)},useTransition:function(){var f=dO(!1);return f=vme.bind(null,Bt,f.queue,!0,!1),ma().memoizedState=f,[!1,f]},useSyncExternalStore:function(f,m,v){var S=Bt,P=ma();if(ir){if(v===void 0)throw Error(o(407));v=v()}else{if(v=m(),Ar===null)throw Error(o(349));(rr&124)!==0||Xpe(S,m,v)}P.memoizedState=v;var j={value:v,getSnapshot:m};return P.queue=j,ume(Kpe.bind(null,S,j,f),[f]),S.flags|=2048,Zg(9,o2(),Gpe.bind(null,S,j,v,m),null),v},useId:function(){var f=ma(),m=Ar.identifierPrefix;if(ir){var v=$c,S=Rc;v=(S&~(1<<32-at(S)-1)).toString(32)+v,m="«"+m+"R"+v,v=t2++,0gt?(so=ct,ct=null):so=ct.sibling;var ar=ve(fe,ct,pe[gt],Ae);if(ar===null){ct===null&&(ct=so);break}f&&ct&&ar.alternate===null&&m(fe,ct),ue=j(ar,ue,gt),qt===null?ot=ar:qt.sibling=ar,qt=ar,ct=so}if(gt===pe.length)return v(fe,ct),ir&&ff(fe,gt),ot;if(ct===null){for(;gtgt?(so=ct,ct=null):so=ct.sibling;var gd=ve(fe,ct,ar.value,Ae);if(gd===null){ct===null&&(ct=so);break}f&&ct&&gd.alternate===null&&m(fe,ct),ue=j(gd,ue,gt),qt===null?ot=gd:qt.sibling=gd,qt=gd,ct=so}if(ar.done)return v(fe,ct),ir&&ff(fe,gt),ot;if(ct===null){for(;!ar.done;gt++,ar=pe.next())ar=Re(fe,ar.value,Ae),ar!==null&&(ue=j(ar,ue,gt),qt===null?ot=ar:qt.sibling=ar,qt=ar);return ir&&ff(fe,gt),ot}for(ct=S(ct);!ar.done;gt++,ar=pe.next())ar=ke(ct,fe,gt,ar.value,Ae),ar!==null&&(f&&ar.alternate!==null&&ct.delete(ar.key===null?gt:ar.key),ue=j(ar,ue,gt),qt===null?ot=ar:qt.sibling=ar,qt=ar);return f&&ct.forEach(function(G5t){return m(fe,G5t)}),ir&&ff(fe,gt),ot}function vr(fe,ue,pe,Ae){if(typeof pe=="object"&&pe!==null&&pe.type===y&&pe.key===null&&(pe=pe.props.children),typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case p:e:{for(var ot=pe.key;ue!==null;){if(ue.key===ot){if(ot=pe.type,ot===y){if(ue.tag===7){v(fe,ue.sibling),Ae=P(ue,pe.props.children),Ae.return=fe,fe=Ae;break e}}else if(ue.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===R&&Nme(ot)===ue.type){v(fe,ue.sibling),Ae=P(ue,pe.props),_v(Ae,pe),Ae.return=fe,fe=Ae;break e}v(fe,ue);break}else m(fe,ue);ue=ue.sibling}pe.type===y?(Ae=df(pe.props.children,fe.mode,Ae,pe.key),Ae.return=fe,fe=Ae):(Ae=q5(pe.type,pe.key,pe.props,null,fe.mode,Ae),_v(Ae,pe),Ae.return=fe,fe=Ae)}return K(fe);case g:e:{for(ot=pe.key;ue!==null;){if(ue.key===ot)if(ue.tag===4&&ue.stateNode.containerInfo===pe.containerInfo&&ue.stateNode.implementation===pe.implementation){v(fe,ue.sibling),Ae=P(ue,pe.children||[]),Ae.return=fe,fe=Ae;break e}else{v(fe,ue);break}else m(fe,ue);ue=ue.sibling}Ae=jM(pe,fe.mode,Ae),Ae.return=fe,fe=Ae}return K(fe);case R:return ot=pe._init,pe=ot(pe._payload),vr(fe,ue,pe,Ae)}if(V(pe))return xt(fe,ue,pe,Ae);if(I(pe)){if(ot=I(pe),typeof ot!="function")throw Error(o(150));return pe=ot.call(pe),pt(fe,ue,pe,Ae)}if(typeof pe.then=="function")return vr(fe,ue,l2(pe),Ae);if(pe.$$typeof===_)return vr(fe,ue,G5(fe,pe),Ae);c2(fe,pe)}return typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint"?(pe=""+pe,ue!==null&&ue.tag===6?(v(fe,ue.sibling),Ae=P(ue,pe),Ae.return=fe,fe=Ae):(v(fe,ue),Ae=zM(pe,fe.mode,Ae),Ae.return=fe,fe=Ae),K(fe)):v(fe,ue)}return function(fe,ue,pe,Ae){try{kv=0;var ot=vr(fe,ue,pe,Ae);return Qg=null,ot}catch(ct){if(ct===fv||ct===Z5)throw ct;var qt=Ua(29,ct,null,fe.mode);return qt.lanes=Ae,qt.return=fe,qt}finally{}}}var Jg=Rme(!0),$me=Rme(!1),Li=J(null),Al=null;function td(f){var m=f.alternate;z(Hn,Hn.current&1),z(Li,f),Al===null&&(m===null||Xg.current!==null||m.memoizedState!==null)&&(Al=f)}function Pme(f){if(f.tag===22){if(z(Hn,Hn.current),z(Li,f),Al===null){var m=f.alternate;m!==null&&m.memoizedState!==null&&(Al=f)}}else rd()}function rd(){z(Hn,Hn.current),z(Li,Li.current)}function Dc(f){Q(Li),Al===f&&(Al=null),Q(Hn)}var Hn=J(0);function u2(f){for(var m=f;m!==null;){if(m.tag===13){var v=m.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||sD(v)))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){if((m.flags&128)!==0)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===f)break;for(;m.sibling===null;){if(m.return===null||m.return===f)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}function bO(f,m,v,S){m=f.memoizedState,v=v(S,m),v=v==null?m:d({},m,v),f.memoizedState=v,f.lanes===0&&(f.updateQueue.baseState=v)}var vO={enqueueSetState:function(f,m,v){f=f._reactInternals;var S=Wa(),P=Qu(S);P.payload=m,v!=null&&(P.callback=v),m=Ju(f,P,S),m!==null&&(Xa(m,f,S),mv(m,f,S))},enqueueReplaceState:function(f,m,v){f=f._reactInternals;var S=Wa(),P=Qu(S);P.tag=1,P.payload=m,v!=null&&(P.callback=v),m=Ju(f,P,S),m!==null&&(Xa(m,f,S),mv(m,f,S))},enqueueForceUpdate:function(f,m){f=f._reactInternals;var v=Wa(),S=Qu(v);S.tag=2,m!=null&&(S.callback=m),m=Ju(f,S,v),m!==null&&(Xa(m,f,v),mv(m,f,v))}};function Mme(f,m,v,S,P,j,K){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(S,j,K):m.prototype&&m.prototype.isPureReactComponent?!av(v,S)||!av(P,j):!0}function Ome(f,m,v,S){f=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(v,S),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(v,S),m.state!==f&&vO.enqueueReplaceState(m,m.state,null)}function xf(f,m){var v=m;if("ref"in m){v={};for(var S in m)S!=="ref"&&(v[S]=m[S])}if(f=f.defaultProps){v===m&&(v=d({},v));for(var P in f)v[P]===void 0&&(v[P]=f[P])}return v}var d2=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var m=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f!==null&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent(m))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",f);return}console.error(f)};function Dme(f){d2(f)}function Lme(f){console.error(f)}function Ime(f){d2(f)}function h2(f,m){try{var v=f.onUncaughtError;v(m.value,{componentStack:m.stack})}catch(S){setTimeout(function(){throw S})}}function zme(f,m,v){try{var S=f.onCaughtError;S(v.value,{componentStack:v.stack,errorBoundary:m.tag===1?m.stateNode:null})}catch(P){setTimeout(function(){throw P})}}function xO(f,m,v){return v=Qu(v),v.tag=3,v.payload={element:null},v.callback=function(){h2(f,m)},v}function jme(f){return f=Qu(f),f.tag=3,f}function Bme(f,m,v,S){var P=v.type.getDerivedStateFromError;if(typeof P=="function"){var j=S.value;f.payload=function(){return P(j)},f.callback=function(){zme(m,v,S)}}var K=v.stateNode;K!==null&&typeof K.componentDidCatch=="function"&&(f.callback=function(){zme(m,v,S),typeof P!="function"&&(ld===null?ld=new Set([this]):ld.add(this));var te=S.stack;this.componentDidCatch(S.value,{componentStack:te!==null?te:""})})}function GEt(f,m,v,S,P){if(v.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){if(m=v.alternate,m!==null&&uv(m,v,P,!0),v=Li.current,v!==null){switch(v.tag){case 13:return Al===null?VO():v.alternate===null&&nn===0&&(nn=3),v.flags&=-257,v.flags|=65536,v.lanes=P,S===GM?v.flags|=16384:(m=v.updateQueue,m===null?v.updateQueue=new Set([S]):m.add(S),YO(f,S,P)),!1;case 22:return v.flags|=65536,S===GM?v.flags|=16384:(m=v.updateQueue,m===null?(m={transitions:null,markerInstances:null,retryQueue:new Set([S])},v.updateQueue=m):(v=m.retryQueue,v===null?m.retryQueue=new Set([S]):v.add(S)),YO(f,S,P)),!1}throw Error(o(435,v.tag))}return YO(f,S,P),VO(),!1}if(ir)return m=Li.current,m!==null?((m.flags&65536)===0&&(m.flags|=256),m.flags|=65536,m.lanes=P,S!==HM&&(f=Error(o(422),{cause:S}),cv(Pi(f,v)))):(S!==HM&&(m=Error(o(423),{cause:S}),cv(Pi(m,v))),f=f.current.alternate,f.flags|=65536,P&=-P,f.lanes|=P,S=Pi(S,v),P=xO(f.stateNode,S,P),QM(f,P),nn!==4&&(nn=2)),!1;var j=Error(o(520),{cause:S});if(j=Pi(j,v),Rv===null?Rv=[j]:Rv.push(j),nn!==4&&(nn=2),m===null)return!0;S=Pi(S,v),v=m;do{switch(v.tag){case 3:return v.flags|=65536,f=P&-P,v.lanes|=f,f=xO(v.stateNode,S,f),QM(v,f),!1;case 1:if(m=v.type,j=v.stateNode,(v.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&(ld===null||!ld.has(j))))return v.flags|=65536,P&=-P,v.lanes|=P,P=jme(P),Bme(P,f,v,S),QM(v,P),!1}v=v.return}while(v!==null);return!1}var Fme=Error(o(461)),ao=!1;function xo(f,m,v,S){m.child=f===null?$me(m,null,v,S):Jg(m,f.child,v,S)}function Hme(f,m,v,S,P){v=v.render;var j=m.ref;if("ref"in S){var K={};for(var te in S)te!=="ref"&&(K[te]=S[te])}else K=S;return yf(m),S=nO(f,m,v,K,j,P),te=oO(),f!==null&&!ao?(aO(f,m,P),Lc(f,m,P)):(ir&&te&&BM(m),m.flags|=1,xo(f,m,S,P),m.child)}function Ume(f,m,v,S,P){if(f===null){var j=v.type;return typeof j=="function"&&!IM(j)&&j.defaultProps===void 0&&v.compare===null?(m.tag=15,m.type=j,Vme(f,m,j,S,P)):(f=q5(v.type,null,S,m,m.mode,P),f.ref=m.ref,f.return=m,m.child=f)}if(j=f.child,!AO(f,P)){var K=j.memoizedProps;if(v=v.compare,v=v!==null?v:av,v(K,S)&&f.ref===m.ref)return Lc(f,m,P)}return m.flags|=1,f=Nc(j,S),f.ref=m.ref,f.return=m,m.child=f}function Vme(f,m,v,S,P){if(f!==null){var j=f.memoizedProps;if(av(j,S)&&f.ref===m.ref)if(ao=!1,m.pendingProps=S=j,AO(f,P))(f.flags&131072)!==0&&(ao=!0);else return m.lanes=f.lanes,Lc(f,m,P)}return wO(f,m,v,S,P)}function qme(f,m,v){var S=m.pendingProps,P=S.children,j=f!==null?f.memoizedState:null;if(S.mode==="hidden"){if((m.flags&128)!==0){if(S=j!==null?j.baseLanes|v:v,f!==null){for(P=m.child=f.child,j=0;P!==null;)j=j|P.lanes|P.childLanes,P=P.sibling;m.childLanes=j&~S}else m.childLanes=0,m.child=null;return Yme(f,m,S,v)}if((v&536870912)!==0)m.memoizedState={baseLanes:0,cachePool:null},f!==null&&K5(m,j!==null?j.cachePool:null),j!==null?Vpe(m,j):eO(),Pme(m);else return m.lanes=m.childLanes=536870912,Yme(f,m,j!==null?j.baseLanes|v:v,v)}else j!==null?(K5(m,j.cachePool),Vpe(m,j),rd(),m.memoizedState=null):(f!==null&&K5(m,null),eO(),rd());return xo(f,m,P,v),m.child}function Yme(f,m,v,S){var P=XM();return P=P===null?null:{parent:Fn._currentValue,pool:P},m.memoizedState={baseLanes:v,cachePool:P},f!==null&&K5(m,null),eO(),Pme(m),f!==null&&uv(f,m,S,!0),null}function f2(f,m){var v=m.ref;if(v===null)f!==null&&f.ref!==null&&(m.flags|=4194816);else{if(typeof v!="function"&&typeof v!="object")throw Error(o(284));(f===null||f.ref!==v)&&(m.flags|=4194816)}}function wO(f,m,v,S,P){return yf(m),v=nO(f,m,v,S,void 0,P),S=oO(),f!==null&&!ao?(aO(f,m,P),Lc(f,m,P)):(ir&&S&&BM(m),m.flags|=1,xo(f,m,v,P),m.child)}function Wme(f,m,v,S,P,j){return yf(m),m.updateQueue=null,v=Ype(m,S,v,P),qpe(f),S=oO(),f!==null&&!ao?(aO(f,m,j),Lc(f,m,j)):(ir&&S&&BM(m),m.flags|=1,xo(f,m,v,j),m.child)}function Xme(f,m,v,S,P){if(yf(m),m.stateNode===null){var j=Ug,K=v.contextType;typeof K=="object"&&K!==null&&(j=jo(K)),j=new v(S,j),m.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,j.updater=vO,m.stateNode=j,j._reactInternals=m,j=m.stateNode,j.props=S,j.state=m.memoizedState,j.refs={},KM(m),K=v.contextType,j.context=typeof K=="object"&&K!==null?jo(K):Ug,j.state=m.memoizedState,K=v.getDerivedStateFromProps,typeof K=="function"&&(bO(m,v,K,S),j.state=m.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof j.getSnapshotBeforeUpdate=="function"||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(K=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),K!==j.state&&vO.enqueueReplaceState(j,j.state,null),yv(m,S,j,P),gv(),j.state=m.memoizedState),typeof j.componentDidMount=="function"&&(m.flags|=4194308),S=!0}else if(f===null){j=m.stateNode;var te=m.memoizedProps,le=xf(v,te);j.props=le;var ge=j.context,Te=v.contextType;K=Ug,typeof Te=="object"&&Te!==null&&(K=jo(Te));var Re=v.getDerivedStateFromProps;Te=typeof Re=="function"||typeof j.getSnapshotBeforeUpdate=="function",te=m.pendingProps!==te,Te||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(te||ge!==K)&&Ome(m,j,S,K),Zu=!1;var ve=m.memoizedState;j.state=ve,yv(m,S,j,P),gv(),ge=m.memoizedState,te||ve!==ge||Zu?(typeof Re=="function"&&(bO(m,v,Re,S),ge=m.memoizedState),(le=Zu||Mme(m,v,le,S,ve,ge,K))?(Te||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(m.flags|=4194308)):(typeof j.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=S,m.memoizedState=ge),j.props=S,j.state=ge,j.context=K,S=le):(typeof j.componentDidMount=="function"&&(m.flags|=4194308),S=!1)}else{j=m.stateNode,ZM(f,m),K=m.memoizedProps,Te=xf(v,K),j.props=Te,Re=m.pendingProps,ve=j.context,ge=v.contextType,le=Ug,typeof ge=="object"&&ge!==null&&(le=jo(ge)),te=v.getDerivedStateFromProps,(ge=typeof te=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(K!==Re||ve!==le)&&Ome(m,j,S,le),Zu=!1,ve=m.memoizedState,j.state=ve,yv(m,S,j,P),gv();var ke=m.memoizedState;K!==Re||ve!==ke||Zu||f!==null&&f.dependencies!==null&&X5(f.dependencies)?(typeof te=="function"&&(bO(m,v,te,S),ke=m.memoizedState),(Te=Zu||Mme(m,v,Te,S,ve,ke,le)||f!==null&&f.dependencies!==null&&X5(f.dependencies))?(ge||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(S,ke,le),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(S,ke,le)),typeof j.componentDidUpdate=="function"&&(m.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof j.componentDidUpdate!="function"||K===f.memoizedProps&&ve===f.memoizedState||(m.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||K===f.memoizedProps&&ve===f.memoizedState||(m.flags|=1024),m.memoizedProps=S,m.memoizedState=ke),j.props=S,j.state=ke,j.context=le,S=Te):(typeof j.componentDidUpdate!="function"||K===f.memoizedProps&&ve===f.memoizedState||(m.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||K===f.memoizedProps&&ve===f.memoizedState||(m.flags|=1024),S=!1)}return j=S,f2(f,m),S=(m.flags&128)!==0,j||S?(j=m.stateNode,v=S&&typeof v.getDerivedStateFromError!="function"?null:j.render(),m.flags|=1,f!==null&&S?(m.child=Jg(m,f.child,null,P),m.child=Jg(m,null,v,P)):xo(f,m,v,P),m.memoizedState=j.state,f=m.child):f=Lc(f,m,P),f}function Gme(f,m,v,S){return lv(),m.flags|=256,xo(f,m,v,S),m.child}var kO={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _O(f){return{baseLanes:f,cachePool:Lpe()}}function EO(f,m,v){return f=f!==null?f.childLanes&~v:0,m&&(f|=Ii),f}function Kme(f,m,v){var S=m.pendingProps,P=!1,j=(m.flags&128)!==0,K;if((K=j)||(K=f!==null&&f.memoizedState===null?!1:(Hn.current&2)!==0),K&&(P=!0,m.flags&=-129),K=(m.flags&32)!==0,m.flags&=-33,f===null){if(ir){if(P?td(m):rd(),ir){var te=rn,le;if(le=te){e:{for(le=te,te=Tl;le.nodeType!==8;){if(!te){te=null;break e}if(le=Us(le.nextSibling),le===null){te=null;break e}}te=le}te!==null?(m.memoizedState={dehydrated:te,treeContext:hf!==null?{id:Rc,overflow:$c}:null,retryLane:536870912,hydrationErrors:null},le=Ua(18,null,null,0),le.stateNode=te,le.return=m,m.child=le,Wo=m,rn=null,le=!0):le=!1}le||mf(m)}if(te=m.memoizedState,te!==null&&(te=te.dehydrated,te!==null))return sD(te)?m.lanes=32:m.lanes=536870912,null;Dc(m)}return te=S.children,S=S.fallback,P?(rd(),P=m.mode,te=p2({mode:"hidden",children:te},P),S=df(S,P,v,null),te.return=m,S.return=m,te.sibling=S,m.child=te,P=m.child,P.memoizedState=_O(v),P.childLanes=EO(f,K,v),m.memoizedState=kO,S):(td(m),SO(m,te))}if(le=f.memoizedState,le!==null&&(te=le.dehydrated,te!==null)){if(j)m.flags&256?(td(m),m.flags&=-257,m=CO(f,m,v)):m.memoizedState!==null?(rd(),m.child=f.child,m.flags|=128,m=null):(rd(),P=S.fallback,te=m.mode,S=p2({mode:"visible",children:S.children},te),P=df(P,te,v,null),P.flags|=2,S.return=m,P.return=m,S.sibling=P,m.child=S,Jg(m,f.child,null,v),S=m.child,S.memoizedState=_O(v),S.childLanes=EO(f,K,v),m.memoizedState=kO,m=P);else if(td(m),sD(te)){if(K=te.nextSibling&&te.nextSibling.dataset,K)var ge=K.dgst;K=ge,S=Error(o(419)),S.stack="",S.digest=K,cv({value:S,source:null,stack:null}),m=CO(f,m,v)}else if(ao||uv(f,m,v,!1),K=(v&f.childLanes)!==0,ao||K){if(K=Ar,K!==null&&(S=v&-v,S=(S&42)!==0?1:Jh(S),S=(S&(K.suspendedLanes|v))!==0?0:S,S!==0&&S!==le.retryLane))throw le.retryLane=S,Hg(f,S),Xa(K,f,S),Fme;te.data==="$?"||VO(),m=CO(f,m,v)}else te.data==="$?"?(m.flags|=192,m.child=f.child,m=null):(f=le.treeContext,rn=Us(te.nextSibling),Wo=m,ir=!0,pf=null,Tl=!1,f!==null&&(Oi[Di++]=Rc,Oi[Di++]=$c,Oi[Di++]=hf,Rc=f.id,$c=f.overflow,hf=m),m=SO(m,S.children),m.flags|=4096);return m}return P?(rd(),P=S.fallback,te=m.mode,le=f.child,ge=le.sibling,S=Nc(le,{mode:"hidden",children:S.children}),S.subtreeFlags=le.subtreeFlags&65011712,ge!==null?P=Nc(ge,P):(P=df(P,te,v,null),P.flags|=2),P.return=m,S.return=m,S.sibling=P,m.child=S,S=P,P=m.child,te=f.child.memoizedState,te===null?te=_O(v):(le=te.cachePool,le!==null?(ge=Fn._currentValue,le=le.parent!==ge?{parent:ge,pool:ge}:le):le=Lpe(),te={baseLanes:te.baseLanes|v,cachePool:le}),P.memoizedState=te,P.childLanes=EO(f,K,v),m.memoizedState=kO,S):(td(m),v=f.child,f=v.sibling,v=Nc(v,{mode:"visible",children:S.children}),v.return=m,v.sibling=null,f!==null&&(K=m.deletions,K===null?(m.deletions=[f],m.flags|=16):K.push(f)),m.child=v,m.memoizedState=null,v)}function SO(f,m){return m=p2({mode:"visible",children:m},f.mode),m.return=f,f.child=m}function p2(f,m){return f=Ua(22,f,null,m),f.lanes=0,f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},f}function CO(f,m,v){return Jg(m,f.child,null,v),f=SO(m,m.pendingProps.children),f.flags|=2,m.memoizedState=null,f}function Zme(f,m,v){f.lanes|=m;var S=f.alternate;S!==null&&(S.lanes|=m),VM(f.return,m,v)}function TO(f,m,v,S,P){var j=f.memoizedState;j===null?f.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:S,tail:v,tailMode:P}:(j.isBackwards=m,j.rendering=null,j.renderingStartTime=0,j.last=S,j.tail=v,j.tailMode=P)}function Qme(f,m,v){var S=m.pendingProps,P=S.revealOrder,j=S.tail;if(xo(f,m,S.children,v),S=Hn.current,(S&2)!==0)S=S&1|2,m.flags|=128;else{if(f!==null&&(f.flags&128)!==0)e:for(f=m.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&Zme(f,v,m);else if(f.tag===19)Zme(f,v,m);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===m)break e;for(;f.sibling===null;){if(f.return===null||f.return===m)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}S&=1}switch(z(Hn,S),P){case"forwards":for(v=m.child,P=null;v!==null;)f=v.alternate,f!==null&&u2(f)===null&&(P=v),v=v.sibling;v=P,v===null?(P=m.child,m.child=null):(P=v.sibling,v.sibling=null),TO(m,!1,P,v,j);break;case"backwards":for(v=null,P=m.child,m.child=null;P!==null;){if(f=P.alternate,f!==null&&u2(f)===null){m.child=P;break}f=P.sibling,P.sibling=v,v=P,P=f}TO(m,!0,v,null,j);break;case"together":TO(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function Lc(f,m,v){if(f!==null&&(m.dependencies=f.dependencies),sd|=m.lanes,(v&m.childLanes)===0)if(f!==null){if(uv(f,m,v,!1),(v&m.childLanes)===0)return null}else return null;if(f!==null&&m.child!==f.child)throw Error(o(153));if(m.child!==null){for(f=m.child,v=Nc(f,f.pendingProps),m.child=v,v.return=m;f.sibling!==null;)f=f.sibling,v=v.sibling=Nc(f,f.pendingProps),v.return=m;v.sibling=null}return m.child}function AO(f,m){return(f.lanes&m)!==0?!0:(f=f.dependencies,!!(f!==null&&X5(f)))}function KEt(f,m,v){switch(m.tag){case 3:ee(m,m.stateNode.containerInfo),Ku(m,Fn,f.memoizedState.cache),lv();break;case 27:case 5:he(m);break;case 4:ee(m,m.stateNode.containerInfo);break;case 10:Ku(m,m.type,m.memoizedProps.value);break;case 13:var S=m.memoizedState;if(S!==null)return S.dehydrated!==null?(td(m),m.flags|=128,null):(v&m.child.childLanes)!==0?Kme(f,m,v):(td(m),f=Lc(f,m,v),f!==null?f.sibling:null);td(m);break;case 19:var P=(f.flags&128)!==0;if(S=(v&m.childLanes)!==0,S||(uv(f,m,v,!1),S=(v&m.childLanes)!==0),P){if(S)return Qme(f,m,v);m.flags|=128}if(P=m.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),z(Hn,Hn.current),S)break;return null;case 22:case 23:return m.lanes=0,qme(f,m,v);case 24:Ku(m,Fn,f.memoizedState.cache)}return Lc(f,m,v)}function Jme(f,m,v){if(f!==null)if(f.memoizedProps!==m.pendingProps)ao=!0;else{if(!AO(f,v)&&(m.flags&128)===0)return ao=!1,KEt(f,m,v);ao=(f.flags&131072)!==0}else ao=!1,ir&&(m.flags&1048576)!==0&&Npe(m,W5,m.index);switch(m.lanes=0,m.tag){case 16:e:{f=m.pendingProps;var S=m.elementType,P=S._init;if(S=P(S._payload),m.type=S,typeof S=="function")IM(S)?(f=xf(S,f),m.tag=1,m=Xme(null,m,S,f,v)):(m.tag=0,m=wO(null,m,S,f,v));else{if(S!=null){if(P=S.$$typeof,P===T){m.tag=11,m=Hme(null,m,S,f,v);break e}else if(P===$){m.tag=14,m=Ume(null,m,S,f,v);break e}}throw m=D(S)||S,Error(o(306,m,""))}}return m;case 0:return wO(f,m,m.type,m.pendingProps,v);case 1:return S=m.type,P=xf(S,m.pendingProps),Xme(f,m,S,P,v);case 3:e:{if(ee(m,m.stateNode.containerInfo),f===null)throw Error(o(387));S=m.pendingProps;var j=m.memoizedState;P=j.element,ZM(f,m),yv(m,S,null,v);var K=m.memoizedState;if(S=K.cache,Ku(m,Fn,S),S!==j.cache&&qM(m,[Fn],v,!0),gv(),S=K.element,j.isDehydrated)if(j={element:S,isDehydrated:!1,cache:K.cache},m.updateQueue.baseState=j,m.memoizedState=j,m.flags&256){m=Gme(f,m,S,v);break e}else if(S!==P){P=Pi(Error(o(424)),m),cv(P),m=Gme(f,m,S,v);break e}else{switch(f=m.stateNode.containerInfo,f.nodeType){case 9:f=f.body;break;default:f=f.nodeName==="HTML"?f.ownerDocument.body:f}for(rn=Us(f.firstChild),Wo=m,ir=!0,pf=null,Tl=!0,v=$me(m,null,S,v),m.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling}else{if(lv(),S===P){m=Lc(f,m,v);break e}xo(f,m,S,v)}m=m.child}return m;case 26:return f2(f,m),f===null?(v=n0e(m.type,null,m.pendingProps,null))?m.memoizedState=v:ir||(v=m.type,f=m.pendingProps,S=A2(Z.current).createElement(v),S[On]=m,S[oo]=f,ko(S,v,f),tn(S),m.stateNode=S):m.memoizedState=n0e(m.type,f.memoizedProps,m.pendingProps,f.memoizedState),null;case 27:return he(m),f===null&&ir&&(S=m.stateNode=e0e(m.type,m.pendingProps,Z.current),Wo=m,Tl=!0,P=rn,dd(m.type)?(lD=P,rn=Us(S.firstChild)):rn=P),xo(f,m,m.pendingProps.children,v),f2(f,m),f===null&&(m.flags|=4194304),m.child;case 5:return f===null&&ir&&((P=S=rn)&&(S=E5t(S,m.type,m.pendingProps,Tl),S!==null?(m.stateNode=S,Wo=m,rn=Us(S.firstChild),Tl=!1,P=!0):P=!1),P||mf(m)),he(m),P=m.type,j=m.pendingProps,K=f!==null?f.memoizedProps:null,S=j.children,oD(P,j)?S=null:K!==null&&oD(P,K)&&(m.flags|=32),m.memoizedState!==null&&(P=nO(f,m,HEt,null,null,v),jv._currentValue=P),f2(f,m),xo(f,m,S,v),m.child;case 6:return f===null&&ir&&((f=v=rn)&&(v=S5t(v,m.pendingProps,Tl),v!==null?(m.stateNode=v,Wo=m,rn=null,f=!0):f=!1),f||mf(m)),null;case 13:return Kme(f,m,v);case 4:return ee(m,m.stateNode.containerInfo),S=m.pendingProps,f===null?m.child=Jg(m,null,S,v):xo(f,m,S,v),m.child;case 11:return Hme(f,m,m.type,m.pendingProps,v);case 7:return xo(f,m,m.pendingProps,v),m.child;case 8:return xo(f,m,m.pendingProps.children,v),m.child;case 12:return xo(f,m,m.pendingProps.children,v),m.child;case 10:return S=m.pendingProps,Ku(m,m.type,S.value),xo(f,m,S.children,v),m.child;case 9:return P=m.type._context,S=m.pendingProps.children,yf(m),P=jo(P),S=S(P),m.flags|=1,xo(f,m,S,v),m.child;case 14:return Ume(f,m,m.type,m.pendingProps,v);case 15:return Vme(f,m,m.type,m.pendingProps,v);case 19:return Qme(f,m,v);case 31:return S=m.pendingProps,v=m.mode,S={mode:S.mode,children:S.children},f===null?(v=p2(S,v),v.ref=m.ref,m.child=v,v.return=m,m=v):(v=Nc(f.child,S),v.ref=m.ref,m.child=v,v.return=m,m=v),m;case 22:return qme(f,m,v);case 24:return yf(m),S=jo(Fn),f===null?(P=XM(),P===null&&(P=Ar,j=YM(),P.pooledCache=j,j.refCount++,j!==null&&(P.pooledCacheLanes|=v),P=j),m.memoizedState={parent:S,cache:P},KM(m),Ku(m,Fn,P)):((f.lanes&v)!==0&&(ZM(f,m),yv(m,null,null,v),gv()),P=f.memoizedState,j=m.memoizedState,P.parent!==S?(P={parent:S,cache:S},m.memoizedState=P,m.lanes===0&&(m.memoizedState=m.updateQueue.baseState=P),Ku(m,Fn,S)):(S=j.cache,Ku(m,Fn,S),S!==P.cache&&qM(m,[Fn],v,!0))),xo(f,m,m.pendingProps.children,v),m.child;case 29:throw m.pendingProps}throw Error(o(156,m.tag))}function Ic(f){f.flags|=4}function ege(f,m){if(m.type!=="stylesheet"||(m.state.loading&4)!==0)f.flags&=-16777217;else if(f.flags|=16777216,!l0e(m)){if(m=Li.current,m!==null&&((rr&4194048)===rr?Al!==null:(rr&62914560)!==rr&&(rr&536870912)===0||m!==Al))throw pv=GM,Ipe;f.flags|=8192}}function m2(f,m){m!==null&&(f.flags|=4),f.flags&16384&&(m=f.tag!==22?_l():536870912,f.lanes|=m,n0|=m)}function Ev(f,m){if(!ir)switch(f.tailMode){case"hidden":m=f.tail;for(var v=null;m!==null;)m.alternate!==null&&(v=m),m=m.sibling;v===null?f.tail=null:v.sibling=null;break;case"collapsed":v=f.tail;for(var S=null;v!==null;)v.alternate!==null&&(S=v),v=v.sibling;S===null?m||f.tail===null?f.tail=null:f.tail.sibling=null:S.sibling=null}}function Xr(f){var m=f.alternate!==null&&f.alternate.child===f.child,v=0,S=0;if(m)for(var P=f.child;P!==null;)v|=P.lanes|P.childLanes,S|=P.subtreeFlags&65011712,S|=P.flags&65011712,P.return=f,P=P.sibling;else for(P=f.child;P!==null;)v|=P.lanes|P.childLanes,S|=P.subtreeFlags,S|=P.flags,P.return=f,P=P.sibling;return f.subtreeFlags|=S,f.childLanes=v,m}function ZEt(f,m,v){var S=m.pendingProps;switch(FM(m),m.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(m),null;case 1:return Xr(m),null;case 3:return v=m.stateNode,S=null,f!==null&&(S=f.memoizedState.cache),m.memoizedState.cache!==S&&(m.flags|=2048),Mc(Fn),re(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(f===null||f.child===null)&&(sv(m)?Ic(m):f===null||f.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,Ppe())),Xr(m),null;case 26:return v=m.memoizedState,f===null?(Ic(m),v!==null?(Xr(m),ege(m,v)):(Xr(m),m.flags&=-16777217)):v?v!==f.memoizedState?(Ic(m),Xr(m),ege(m,v)):(Xr(m),m.flags&=-16777217):(f.memoizedProps!==S&&Ic(m),Xr(m),m.flags&=-16777217),null;case 27:Ce(m),v=Z.current;var P=m.type;if(f!==null&&m.stateNode!=null)f.memoizedProps!==S&&Ic(m);else{if(!S){if(m.stateNode===null)throw Error(o(166));return Xr(m),null}f=W.current,sv(m)?Rpe(m):(f=e0e(P,S,v),m.stateNode=f,Ic(m))}return Xr(m),null;case 5:if(Ce(m),v=m.type,f!==null&&m.stateNode!=null)f.memoizedProps!==S&&Ic(m);else{if(!S){if(m.stateNode===null)throw Error(o(166));return Xr(m),null}if(f=W.current,sv(m))Rpe(m);else{switch(P=A2(Z.current),f){case 1:f=P.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:f=P.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":f=P.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":f=P.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":f=P.createElement("div"),f.innerHTML="