diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..db5ddae553c9a7729c442e4eb375e3461b5825fb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.next +node_modules \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..92a5617d6b255ef39acc32747cd5b6f0d8a67991 --- /dev/null +++ b/.gitignore @@ -0,0 +1,46 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +*data/ +__pycache__/ +bun.lock + +# dependencies +/node_modules +/.pnp +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/versions + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# env files (can opt-in for commiting if needed) +*.env* + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +lighrag.log \ No newline at end of file diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..56b0b6a76a90470fb1dc25c7f6b1d71e4bd225bb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# Auto-generated Dockerfile (do not edit manually) +FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim + +WORKDIR /app/_backend + +# Install system deps (adjust as needed) +RUN apt-get update && apt-get install -y --no-install-recommends git curl && rm -rf /var/lib/apt/lists/* + +COPY _backend/requirements.txt . +RUN uv pip install --system -r requirements.txt +# Copy prebuilt frontend static files +WORKDIR /app +COPY out/ _backend/static/ +WORKDIR /app/_backend +# Copy backend (after frontend build to maximize caching) +COPY _backend/ . +COPY .env .env +EXPOSE 8000 +CMD ["python", "api_meeting_minutes.py"] diff --git a/Dockerfile.generated b/Dockerfile.generated new file mode 100644 index 0000000000000000000000000000000000000000..56b0b6a76a90470fb1dc25c7f6b1d71e4bd225bb --- /dev/null +++ b/Dockerfile.generated @@ -0,0 +1,19 @@ +# Auto-generated Dockerfile (do not edit manually) +FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim + +WORKDIR /app/_backend + +# Install system deps (adjust as needed) +RUN apt-get update && apt-get install -y --no-install-recommends git curl && rm -rf /var/lib/apt/lists/* + +COPY _backend/requirements.txt . +RUN uv pip install --system -r requirements.txt +# Copy prebuilt frontend static files +WORKDIR /app +COPY out/ _backend/static/ +WORKDIR /app/_backend +# Copy backend (after frontend build to maximize caching) +COPY _backend/ . +COPY .env .env +EXPOSE 8000 +CMD ["python", "api_meeting_minutes.py"] diff --git a/Dockerfile_frontend b/Dockerfile_frontend new file mode 100644 index 0000000000000000000000000000000000000000..f12e9fe852938ee8dd61cca806b762662f5e50ad --- /dev/null +++ b/Dockerfile_frontend @@ -0,0 +1,20 @@ +FROM oven/bun:1 AS base + +WORKDIR /app + +# Only copy dependency files first +COPY package.json bun.lockb ./ +RUN bun install --frozen-lockfile + +# Now copy the rest of your app +COPY . . + +# remove the _backend directory +RUN rm -rf _backend + +RUN bun run build + +EXPOSE 3000 +ENV PORT=3000 + +CMD ["bun", "run", "start"] diff --git a/Dockerfile_honduras b/Dockerfile_honduras new file mode 100644 index 0000000000000000000000000000000000000000..4247cecbed81540d5d2f5d2ebb2196df437838c7 --- /dev/null +++ b/Dockerfile_honduras @@ -0,0 +1,57 @@ +# Stage 1: Build SQLite +FROM debian:bookworm-slim AS builder + +WORKDIR /build + +# Install build dependencies +RUN apt-get update && apt-get install -y --no-install-recommends \ + build-essential \ + wget \ + ca-certificates \ + make \ + && rm -rf /var/lib/apt/lists/* + +# Download and install SQLite +RUN wget https://www.sqlite.org/2023/sqlite-autoconf-3410200.tar.gz && \ + tar xzf sqlite-autoconf-3410200.tar.gz && \ + cd sqlite-autoconf-3410200 && \ + ./configure --prefix=/usr/local && \ + make && make install + +# Stage 2: Build the final image +FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim + +# Set the working directory inside the container +WORKDIR /app/_backend + +# Copy SQLite from the builder stage +COPY --from=builder /usr/local /usr/local + +# Update library path +ENV LD_LIBRARY_PATH="/usr/local/lib" + +# Install pysqlite3-binary +RUN pip install --no-cache-dir pysqlite3-binary + +# Copy the requirements file +COPY _backend/requirements.txt . + +# Install dependencies +RUN :uv pip install --system -r requirements.txt + +# Copy the backend files +COPY _backend/ . +COPY .prod.env .env + + +# Expose port 8000 (matching docker-compose) +EXPOSE 8000 + +# deleting the vector store +RUN rm -rf honduras_data/chroma_db + +# Rebuild the vector store +RUN python reset_vdb.py + +# Final command to run the application +CMD ["python", "api.py"] diff --git a/README.md b/README.md index 7f7ed05ecfa6b53a75bdef5f2702b5888a50627a..41acc01cf80e14dd8a715295a8f9b6a1d4c66132 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,14 @@ ---- -title: Test -emoji: 👀 -colorFrom: indigo -colorTo: gray -sdk: docker -pinned: false ---- - -Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference +--- +title: Test +emoji: 🧑‍💼 +colorFrom: indigo +colorTo: blue +sdk: docker +sdk_version: "1.0" +app_file: app.py +pinned: false +--- + +# Test + +This Space is deployed with a dynamic README. diff --git a/_backend/__init__.py b/_backend/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/_backend/api.py b/_backend/api.py new file mode 100644 index 0000000000000000000000000000000000000000..c6f39354bfdb6471b0b46528e5b966e1a887ac22 --- /dev/null +++ b/_backend/api.py @@ -0,0 +1,167 @@ +import os + +from dotenv import load_dotenv +from typing import List, Optional, Dict +from pydantic import BaseModel +from fastapi import Body +from fastapi import FastAPI, HTTPException +from fastapi.middleware.cors import CORSMiddleware +from utils.ai import AiService +from utils.vector_db import VectorDB +from lightrag import LightRAG, QueryParam +from lightrag.llm.openai import gpt_4_1_mini_complete, openai_embed +from utils.time_funcs import extract_timestamps +from utils.document_management import load_document, transcript_chunker, merge_chunks + +from prompts import name_generation_prompt + +# Load environment variables +load_dotenv() + +# Initialize FastAPI app +app = FastAPI(title="Transcription API") + +# Add CORS middleware +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], + allow_credentials=True, + allow_methods=["*"], # Allows all methods + allow_headers=["*"], # Allows all headers +) + +# Initialize services +working_dir = os.path.join(os.getcwd(), "_backend", "data","honduras_data") +if os.getenv("ENVIRONMENT") == "production": + working_dir = os.path.join(os.getcwd(), "data","honduras_data") + +transcription_data_dir = os.path.join(working_dir) +vector_db_name = "transcription" +vector_db_embedding_length = 1536 + +vector_db = VectorDB( + vector_db_name, + vector_db_embedding_length, + os.getenv("OPENAI_API_KEY"), + working_dir +) + +ai_service = AiService(model="gpt-4.1") + +lightrag_dir = os.path.join(working_dir, "lightrag") +rag = LightRAG( + working_dir=lightrag_dir, + llm_model_func=gpt_4_1_mini_complete, + embedding_func=openai_embed +) + +class ChatRequest(BaseModel): + message: str + chat_history: List[Dict[str, str]] + + +class ChatResponse(BaseModel): + response: str + timestamps: List[Dict[str, str | int]] # Updated type annotation + + +class NameRequest(BaseModel): + user_query: str + assistant_response: str + + +class SearchRequest(BaseModel): + query: str + filters: Optional[Dict] = {} + + +class SessionInfoResponse(BaseModel): + session_info: Dict + video_url: str + + +# API Endpoints +@app.post("/api/v1/chat", response_model=ChatResponse) +async def chat_endpoint(request: ChatRequest): + try: + + translated_query = ai_service.generate_single_response( + request.message, + "Translate the following text to Spanish", + json_output=False + ) + # Search documents + search_docs = vector_db.search(translated_query, limit=100, + # filter=filters, + score_threshold=0 + ) + + # Get GraphML response using asyncio.create_task to avoid event loop issues + import asyncio + loop = asyncio.get_event_loop() + graphML_resp = await loop.run_in_executor( + None, + lambda: rag.query( + request.message, + param=QueryParam( + mode="hybrid", + ) + ) + ) + + # Generate response + assistant_response = ai_service.generate_response( + request.chat_history, + docs=search_docs, + extra_context=graphML_resp, + ) + + # Extract timestamps + timestamps = extract_timestamps(assistant_response, search_docs) + + return ChatResponse( + response=assistant_response, + timestamps=timestamps # Remove json.dumps(), return list directly + ) + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +@app.post("/api/v1/generate_name", response_model=str) +async def generate_name_endpoint(request: NameRequest): + try: + messages = ai_service.init_messages(name_generation_prompt) + ai_service.add_user_message(messages, request.user_query) + + # Generate response + response = ai_service.generate_response(messages) + + return response + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +@app.post("/api/v1/transcript", response_model=List[Dict]) +async def get_transcript_file(body: Dict = Body(...)): + try: + file_name = body.get("file_name") + if not file_name: + raise HTTPException(status_code=400, detail="file_name is required") + file_path = os.path.join(transcription_data_dir, file_name) + doc = load_document(file_path) + transcript = transcript_chunker(doc, filename=file_name) + transcript = merge_chunks(transcript) + return transcript + + except FileNotFoundError: + raise HTTPException(status_code=404, detail="File not found") + + +@app.get("/api/v1/health") +async def health_check(): + return {"status": "healthy"} + +if __name__ == "__main__": + import uvicorn + uvicorn.run(app, host="0.0.0.0", port=8000) diff --git a/_backend/api_meeting_minutes.py b/_backend/api_meeting_minutes.py new file mode 100644 index 0000000000000000000000000000000000000000..9ca61830cdeaace304f025b70eb669f6ca1dc02f --- /dev/null +++ b/_backend/api_meeting_minutes.py @@ -0,0 +1,167 @@ +import os + +from dotenv import load_dotenv +from typing import List, Optional, Dict +from pydantic import BaseModel +from fastapi import Body +from fastapi import FastAPI, HTTPException +from fastapi.responses import FileResponse +from fastapi.middleware.cors import CORSMiddleware +from utils.ai import AiService +from utils.vector_db import VectorDB +from utils.document_management import load_document, transcript_chunker, merge_chunks, load_prompt + +# Load environment variables +load_dotenv() + +# Initialize FastAPI app +app = FastAPI(title="Transcription API") + +# Add CORS middleware +app.add_middleware( + CORSMiddleware, + allow_origins=["*"], + allow_credentials=True, + allow_methods=["*"], # Allows all methods + allow_headers=["*"], # Allows all headers +) + +# Initialize services +base_dir = os.path.join(os.getcwd(), "_backend") +if os.getenv("ENVIRONMENT") == "production": + base_dir = os.getcwd() +working_dir = os.path.join(base_dir, "data","meeting_minutes_data") + +transcription_data_dir = os.path.join(working_dir) +vector_db_name = "meeting_minutes" +vector_db_embedding_length = 1536 + +vector_db = VectorDB( + vector_db_name, + vector_db_embedding_length, + os.getenv("OPENAI_API_KEY"), + working_dir +) + +ai_service = AiService() +chat_system_prompt = load_prompt(os.getenv("PROMPT"), base_dir) + +class ChatRequest(BaseModel): + message: str + chat_history: List[Dict[str, str]] + + +class ChatResponse(BaseModel): + response: str + timestamps: List[Dict[str, str | int]] # Updated type annotation + + +class NameRequest(BaseModel): + user_query: str + assistant_response: str + + +class SearchRequest(BaseModel): + query: str + filters: Optional[Dict] = {} + + +class SessionInfoResponse(BaseModel): + session_info: Dict + video_url: str + + +# API Endpoints +@app.post("/api/v1/chat", response_model=ChatResponse) +async def chat_endpoint(request: ChatRequest): + try: + + # Search documents + search_docs = vector_db.search(request.message, limit=20, + # filter=filters, + score_threshold=0 + ) + + # Generate response + assistant_response = ai_service.generate_response( + request.chat_history, + docs=search_docs, + extra_context=None, + instructions=chat_system_prompt, + ) + + # Extract timestamps + # timestamps = extract_timestamps(assistant_response, search_docs) + + return ChatResponse( + response=assistant_response, + timestamps=[] # Remove json.dumps(), return list directly + ) + + except Exception as e: + print(e) + raise HTTPException(status_code=500, detail=str(e)) + + +@app.post("/api/v1/generate_name", response_model=str) +async def generate_name_endpoint(request: NameRequest): + try: + name_generation_prompt = load_prompt("name_generation") + messages = ai_service.init_messages(name_generation_prompt) + ai_service.add_user_message(messages, request.user_query) + + # Generate response + response = ai_service.generate_response(messages) + + return response + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +@app.post("/api/v1/search", response_model=List[Dict]) +async def search_documents(request: SearchRequest): + try: + results = vector_db.search( + request.query, limit=40, filter=request.filters) + return results + except Exception as e: + raise HTTPException(status_code=500, detail=str(e)) + + +@app.post("/api/v1/transcript/", response_model=List[Dict]) +async def get_transcript_file(body: Dict = Body(...)): + try: + file_name = body.get("file_name") + if not file_name: + raise HTTPException(status_code=400, detail="file_name is required") + file_path = os.path.join(transcription_data_dir, file_name) + doc = load_document(file_path) + transcript = transcript_chunker(doc, filename=file_name) + transcript = merge_chunks(transcript) + return transcript + + except FileNotFoundError: + raise HTTPException(status_code=404, detail="File not found") + + +@app.get("/api/v1/health") +async def health_check(): + return {"status": "healthy"} + +@app.get("/") +async def root(): + # return the static frontend located at frontend/index.html + print(f"Working directory: {working_dir}, environment: {os.getenv('ENVIRONMENT')}") + + return FileResponse(os.path.join(base_dir, "frontend", "index.html")) + +# Mount the static files directory +@app.get("/_next/{file_path:path}") +async def static_files(file_path: str): + return FileResponse( + os.path.join(base_dir, "frontend", "_next", file_path) + ) + +if __name__ == "__main__": + import uvicorn + uvicorn.run(app, host="0.0.0.0", port=8000) diff --git a/_backend/cli/__init__.py b/_backend/cli/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/_backend/cli/build_tool.py b/_backend/cli/build_tool.py new file mode 100644 index 0000000000000000000000000000000000000000..55df128141bdbfa9d1293e53e4983fe8b029b2f4 --- /dev/null +++ b/_backend/cli/build_tool.py @@ -0,0 +1,166 @@ +import os +import sys +import subprocess +from pathlib import Path +from typing import List + +sys.path.append(str(Path(__file__).resolve().parents[1])) # Add parent directory to path + +import typer + +try: + import questionary # type: ignore +except ImportError: + questionary = None # Fallback if not installed + +from docker_builder import build_dockerfile, write_dockerfile +from graphrag_builder import build_graphrag +from hf_deployer import deploy_space +from vector_db_builder import build_vector_db_for_dir + +app = typer.Typer(help="Interactive build & deploy tool") + +ROOT = Path(__file__).resolve().parents[2] +BACKEND_DIR = ROOT / "_backend" +DATA_DIR = BACKEND_DIR / "data" +DEFAULT_DOCKERFILE = ROOT / "Dockerfile.generated" + + +def list_data_files() -> List[Path]: + # Listing all the directories in the data directory + folders = [p for p in DATA_DIR.iterdir() if p.is_dir()] + if not folders: + return [] + return sorted(folders) + + +def run_command(cmd: List[str], cwd: Path | None = None): + typer.echo(f"Running: {' '.join(cmd)}") + res = subprocess.run(cmd, cwd=cwd, text=True) + if res.returncode != 0: + raise typer.Exit(code=res.returncode) + + +def ensure_questionary(): + if questionary is None: + typer.echo("questionary not installed. Please add it to requirements and install.") + raise typer.Exit(code=1) + + +@app.command() +def interactive( + graphrag: bool = typer.Option(False, help="Build GraphRAG artifacts"), + deploy: bool = typer.Option(False, help="Deploy to Hugging Face after build"), + dockerfile_out: Path = typer.Option(DEFAULT_DOCKERFILE, help="Path for generated Dockerfile"), + non_interactive: bool = typer.Option(False, help="Skip confirmations where possible") +): + """Run the interactive (or semi-interactive) build workflow.""" + if not non_interactive: + ensure_questionary() + + files = list_data_files() + if not files: + typer.echo("No data files found under _backend/data.") + raise typer.Exit(code=1) + + if non_interactive: + selected_paths = files # take all + else: + choices = [f.relative_to(DATA_DIR).as_posix() for f in files] + selected_rel = questionary.checkbox( + "Select data files to include:", choices=choices + ).ask() + if not selected_rel: + typer.echo("No files selected.") + raise typer.Exit() + selected_paths = [DATA_DIR / r for r in selected_rel] + + + # Optional vector DB build using new utility + do_reset = True if non_interactive else questionary.confirm( + "Build/reset vector database(s) for selected data directories?" + ).ask() + if do_reset: + for data_path in selected_paths: + # Prompt for file suffix and collection name + if non_interactive: + file_suffix = None + collection_name = data_path.name + else: + file_suffix = questionary.text( + f"File suffix to include for {data_path.name} (e.g. .md, .srt, leave blank for all):", + default="" + ).ask() + file_suffix = file_suffix if file_suffix.strip() else None + collection_name = questionary.text( + f"Collection name for {data_path.name}:", + default=data_path.name + ).ask() + build_vector_db_for_dir( + data_dir=str(data_path), + collection_name=collection_name, + file_suffix=file_suffix, + verbose=True + ) + + graphrag_artifact_paths: List[str] = [] + build_graphrag_flag = graphrag or (False if non_interactive else questionary.confirm( + "Build GraphRAG artifacts?" + ).ask()) + if build_graphrag_flag: + out_dir = BACKEND_DIR / "graphrag_artifacts" + build_graphrag(selected_paths, out_dir) + graphrag_artifact_paths.append(str(out_dir.relative_to(ROOT))) + + frontend_dir = Path(os.getenv("FRONTEND_DIR", "frontend")) + build_cmd = os.getenv("FRONTEND_BUILD_CMD", "npm run build") + build_out = os.getenv("FRONTEND_BUILD_OUTPUT", "dist") + + prebuild_frontend = True if non_interactive else questionary.confirm( + "Pre-build frontend locally first?" + ).ask() + if prebuild_frontend: + if frontend_dir.exists(): + run_command(build_cmd.split(), cwd=ROOT / frontend_dir) + else: + typer.echo(f"Frontend directory {frontend_dir} not found; skipping pre-build.") + + docker_content = build_dockerfile( + frontend_build_cmd=build_cmd, + frontend_build_output=build_out, + graphrag_artifact_paths=graphrag_artifact_paths or None, + ) + write_dockerfile(dockerfile_out, docker_content) + typer.echo(f"Wrote Dockerfile to {dockerfile_out}") + + build_image = True if non_interactive else questionary.confirm( + "Build Docker image locally?" + ).ask() + if build_image: + tag = os.getenv("IMAGE_TAG", "interview-synth:latest") if non_interactive else questionary.text( + "Image tag:", default="interview-synth:latest" + ).ask() + run_command(["docker", "build", "-f", str(dockerfile_out), "-t", tag, "."], cwd=ROOT) + + do_deploy = deploy or (False if non_interactive else questionary.confirm( + "Deploy to Hugging Face Spaces?" + ).ask()) + if do_deploy: + space_id = os.getenv("HF_SPACE_ID") or ("" if non_interactive else questionary.text( + "Enter HF Space (user/space):" + ).ask()) + token = os.getenv("HUGGINGFACE_TOKEN") or ("" if non_interactive else questionary.password( + "Enter Hugging Face token:" + ).ask()) + if not space_id or not token: + typer.echo("Space ID or token missing; aborting deploy.") + else: + # Write the generated Dockerfile to project root for Spaces + (ROOT / "Dockerfile").write_text(docker_content, encoding="utf-8") + deploy_space(space_id, ROOT, token) + + typer.echo("Done.") + + +if __name__ == "__main__": + app() diff --git a/_backend/cli/docker_builder.py b/_backend/cli/docker_builder.py new file mode 100644 index 0000000000000000000000000000000000000000..25dc752bde58a1ff1e8f117c7d5c0c654af3cac3 --- /dev/null +++ b/_backend/cli/docker_builder.py @@ -0,0 +1,54 @@ +import textwrap +from pathlib import Path +from typing import List, Optional + +BASE_HEADER = """# Auto-generated Dockerfile (do not edit manually) +FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim + +WORKDIR /app/_backend + +# Install system deps (adjust as needed) +RUN apt-get update && apt-get install -y --no-install-recommends git curl && rm -rf /var/lib/apt/lists/* + +COPY _backend/requirements.txt . +RUN uv pip install --system -r requirements.txt +""" + +FRONTEND_LAYER = """# Copy prebuilt frontend static files +WORKDIR /app +COPY out/ _backend/static/ +WORKDIR /app/_backend +""" + +BACKEND_COPY = """# Copy backend (after frontend build to maximize caching) +COPY _backend/ . +COPY .env .env +""" + +GRAPH_RAG_COPY_TEMPLATE = """# Include GraphRAG artifacts +COPY {artifact_rel_path} {container_target} +""" + +FINAL_CMD = """EXPOSE 8000 +CMD ["python", "api_meeting_minutes.py"] +""" + +def build_dockerfile(frontend_build_cmd: str = "", + frontend_build_output: str = "out", + graphrag_artifact_paths: Optional[List[str]] = None) -> str: + parts = [BASE_HEADER] + parts.append(FRONTEND_LAYER) + parts.append(BACKEND_COPY) + + if graphrag_artifact_paths: + for p in graphrag_artifact_paths: + rel = p.replace("\\", "/") + parts.append(GRAPH_RAG_COPY_TEMPLATE.format( + artifact_rel_path=rel, + container_target=f"/app/{rel}" + )) + parts.append(FINAL_CMD) + return textwrap.dedent("".join(parts)) + +def write_dockerfile(output_path: Path, content: str): + output_path.write_text(content, encoding="utf-8") diff --git a/_backend/cli/graphrag_builder.py b/_backend/cli/graphrag_builder.py new file mode 100644 index 0000000000000000000000000000000000000000..b045f39a89ec1859bb8abb2d0798f682780375e8 --- /dev/null +++ b/_backend/cli/graphrag_builder.py @@ -0,0 +1,17 @@ +from pathlib import Path +from typing import List + + +def build_graphrag(selected_files: List[Path], output_dir: Path) -> Path: + """Placeholder GraphRAG build. + + For now it just writes a manifest enumerating selected files. + Replace with actual GraphRAG pipeline integration. + """ + output_dir.mkdir(parents=True, exist_ok=True) + manifest = output_dir / "graphrag_manifest.txt" + manifest.write_text( + "GraphRAG Build\nFiles:\n" + "\n".join(str(p) for p in selected_files), + encoding="utf-8" + ) + return output_dir diff --git a/_backend/cli/hf_deployer.py b/_backend/cli/hf_deployer.py new file mode 100644 index 0000000000000000000000000000000000000000..2ddcfa66abc2c6c0ae348a5ea574912a24b66b33 --- /dev/null +++ b/_backend/cli/hf_deployer.py @@ -0,0 +1,37 @@ +import tempfile +import os +from pathlib import Path +from huggingface_hub import HfApi, create_repo + + +def deploy_space(space_id: str, source_dir: Path, token: str, private: bool = False): + def generate_dynamic_readme(title: str) -> str: + return f'''---\ntitle: {title}\nemoji: 🧑‍💼\ncolorFrom: indigo\ncolorTo: blue\nsdk: docker\nsdk_version: "1.0"\napp_file: app.py\npinned: false\n---\n\n# {title}\n\nThis Space is deployed with a dynamic README.\n''' + + # Ask for a title interactively if not provided via env + import questionary + title = os.getenv("HF_SPACE_TITLE") or questionary.text("Enter Hugging Face Space title:", default="Interview Synthesizer").ask() + dynamic_readme = generate_dynamic_readme(title) + # Write to a temp file and copy to the repo root for upload + with tempfile.NamedTemporaryFile("w", delete=False, encoding="utf-8", suffix=".md") as tmpf: + tmpf.write(dynamic_readme) + tmpf.flush() + tmp_readme_path = Path(tmpf.name) + # Copy to repo root as README.md (overwrite just for upload) + import shutil + shutil.copy(tmp_readme_path, source_dir / "README.md") + api = HfApi() + try: + create_repo(space_id, repo_type="space", token=token, private=private, exist_ok=True) + except Exception as e: + print(f"Repo create/check warning: {e}") + + api.upload_folder( + token=token, + repo_id=space_id, + repo_type="space", + folder_path=str(source_dir), + path_in_repo=".", + commit_message="Automated build & deploy", + ) + print(f"Uploaded to https://huggingface.co/spaces/{space_id}") diff --git a/_backend/cli/vector_db_builder.py b/_backend/cli/vector_db_builder.py new file mode 100644 index 0000000000000000000000000000000000000000..915bcc1331ba8611d535d7c76b7d10121737d185 --- /dev/null +++ b/_backend/cli/vector_db_builder.py @@ -0,0 +1,93 @@ +import os +from dotenv import load_dotenv +from utils.document_management import load_document, transcript_chunker, merge_chunks +from utils.vector_db import VectorDB +from langchain.schema import Document +from uuid import uuid4 +from pathlib import Path +from typing import Optional + +def build_vector_db_for_dir( + data_dir: str, + collection_name: str = "custom_collection", + embedding_length: int = 1536, + file_suffix: Optional[str] = None, + openai_api_key: Optional[str] = None, + verbose: bool = True, +): + """ + Build a new vector database for all files in a directory. + Args: + data_dir: Directory containing files to process. + collection_name: Name for the vector DB collection. + embedding_length: Embedding vector length. + file_suffix: Only process files with this suffix (e.g. '.srt', '.md'). If None, process all files. + openai_api_key: API key for embedding (if required by backend). + verbose: Print progress. + """ + load_dotenv() + working_dir = os.path.abspath(data_dir) + if not os.path.isdir(working_dir): + raise ValueError(f"Directory not found: {working_dir}") + + all_documents = [] + all_files = [] + for root, dirs, files in os.walk(working_dir): + for file in files: + if file_suffix is None or file.endswith(file_suffix): + file_path = os.path.join(root, file) + relative_path = os.path.relpath(file_path, working_dir) + all_files.append(relative_path) + + for file_path in all_files: + path = os.path.join(working_dir, file_path) + doc = load_document(path) + if doc is None: + if verbose: + print(f"Skipping file {file_path} as it could not be loaded.") + continue + # Try chunking if transcript_chunker is available, else treat as single doc + try: + chunks = transcript_chunker(doc, filename=file_path) + merged_chunks = merge_chunks(chunks) + documents = [ + Document( + page_content=chunk["text"], + metadata={**chunk, "chunk_id": i, "id": str(uuid4()), "filename": file_path} + ) + for i, chunk in enumerate(merged_chunks) + ] + except Exception: + # Fallback: treat as single document + documents = [ + Document( + page_content=doc if isinstance(doc, str) else str(doc), + metadata={"id": str(uuid4()), "filename": file_path} + ) + ] + if verbose: + print(f"Processing {file_path} with {len(documents)} chunks") + all_documents.extend(documents) + + # Remove existing vector DB if present + chroma_db_path = os.path.join(working_dir, "chroma_db") + if all_documents: + if os.path.exists(chroma_db_path): + import shutil + shutil.rmtree(chroma_db_path) + if verbose: + print("Removed existing vector database directory.") + vector_db = VectorDB( + collection_name=collection_name, + embedding_length=embedding_length, + open_ai_api_key=openai_api_key or os.getenv("OPENAI_API_KEY"), + working_dir=working_dir, + documents=all_documents + ) + if verbose: + print(f"Created new vector database with {len(all_documents)} documents") + else: + if verbose: + print("No documents found to process") + if verbose: + print("Vector database reset and data upload complete with ChromaDB.") diff --git a/_backend/frontend/404.html b/_backend/frontend/404.html new file mode 100644 index 0000000000000000000000000000000000000000..3e38589d22448f54cf731c18c77223a28dc55bca --- /dev/null +++ b/_backend/frontend/404.html @@ -0,0 +1 @@ +404: This page could not be found.Transcription Chatbot

New Chat

404

This page could not be found.

    \ No newline at end of file diff --git a/_backend/frontend/_next/static/-BZUAGOoGBhXHJLyfVPhi/_buildManifest.js b/_backend/frontend/_next/static/-BZUAGOoGBhXHJLyfVPhi/_buildManifest.js new file mode 100644 index 0000000000000000000000000000000000000000..fc305aae1e6dae21b50c1dad39592fb863cc1132 --- /dev/null +++ b/_backend/frontend/_next/static/-BZUAGOoGBhXHJLyfVPhi/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(e,r,t){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:3,errorRate:1e-4,numBits:58,numHashes:14,bitArray:[1,1,0,e,0,e,e,r,e,e,r,e,e,e,r,e,r,r,e,r,r,r,e,r,r,r,r,r,e,r,e,e,e,e,r,e,e,r,e,e,e,r,e,r,e,r,r,e,e,e,r,r,e,e,e,r,e,e]},__routerFilterDynamic:{numItems:r,errorRate:1e-4,numBits:r,numHashes:null,bitArray:[]},"/_error":["static/chunks/pages/_error-71d2b6a7b832d02a.js"],sortedPages:["/_app","/_error"]}}(1,0,1e-4),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_backend/frontend/_next/static/-BZUAGOoGBhXHJLyfVPhi/_ssgManifest.js b/_backend/frontend/_next/static/-BZUAGOoGBhXHJLyfVPhi/_ssgManifest.js new file mode 100644 index 0000000000000000000000000000000000000000..5b3ff592fd46c8736892a12864fdf3fed8775202 --- /dev/null +++ b/_backend/frontend/_next/static/-BZUAGOoGBhXHJLyfVPhi/_ssgManifest.js @@ -0,0 +1 @@ +self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/341.2903e54d3da731c1.js b/_backend/frontend/_next/static/chunks/341.2903e54d3da731c1.js new file mode 100644 index 0000000000000000000000000000000000000000..cf9e3aef032c0de4692ea33c2cb818d2b5e35ceb --- /dev/null +++ b/_backend/frontend/_next/static/chunks/341.2903e54d3da731c1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[341],{303:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(4252)._(n(4232)).default.createContext({})},3776:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(4232),o=r.useLayoutEffect,l=r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let o=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(o,e))}}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},5679:(e,t,n)=>{var r=n(5364);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return y},defaultHead:function(){return p}});let o=n(4252),l=n(8365),a=n(7876),i=l._(n(4232)),d=o._(n(3776)),s=n(303),u=n(8831),c=n(6807);function p(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===i.default.Fragment?e.concat(i.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(6079);let h=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(p(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return o=>{let l=!0,a=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){a=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?l=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?l=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e{let o=e.key||t;if(r.env.__NEXT_OPTIMIZE_FONTS&&!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,i.default.cloneElement(e,t)}return i.default.cloneElement(e,{key:o})})}let y=function(e){let{children:t}=e,n=(0,i.useContext)(s.AmpStateContext),r=(0,i.useContext)(u.HeadManagerContext);return(0,a.jsx)(d.default,{reduceComponentsToState:m,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6079:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},6807:(e,t)=>{function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},9341:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(4252),o=n(7876),l=r._(n(4232)),a=r._(n(5679)),i={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function d(e){let{req:t,res:n,err:r}=e;return{statusCode:n&&n.statusCode?n.statusCode:r?r.statusCode:404,hostname:window.location.hostname}}let s={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class u extends l.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,n=this.props.title||i[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:s.error,children:[(0,o.jsx)(a.default,{children:(0,o.jsx)("title",{children:e?e+": "+n:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:s.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:s.h1,children:e}):null,(0,o.jsx)("div",{style:s.wrap,children:(0,o.jsxs)("h2",{style:s.h2,children:[this.props.title||e?n:(0,o.jsxs)(o.Fragment,{children:["Application error: a client-side exception has occurred"," ",!!this.props.hostname&&(0,o.jsxs)(o.Fragment,{children:["while loading ",this.props.hostname]})," ","(see the browser console for more information)"]}),"."]})})]})]})}}u.displayName="ErrorPage",u.getInitialProps=d,u.origGetInitialProps=d,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/472.a3826d29d6854395.js b/_backend/frontend/_next/static/chunks/472.a3826d29d6854395.js new file mode 100644 index 0000000000000000000000000000000000000000..2c67263c5eafca0069293fea0f647188f02caa86 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/472.a3826d29d6854395.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[472],{472:(e,t,l)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let u=l(4252),n=l(7876),a=u._(l(4232)),o=l(2746);async function r(e){let{Component:t,ctx:l}=e;return{pageProps:await (0,o.loadGetInitialProps)(t,l)}}class s extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,n.jsx)(e,{...t})}}s.origGetInitialProps=r,s.getInitialProps=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/4bd1b696-4b0f7518a463c96c.js b/_backend/frontend/_next/static/chunks/4bd1b696-4b0f7518a463c96c.js new file mode 100644 index 0000000000000000000000000000000000000000..4008689457533039a644987fc890e0a7ec7decb2 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/4bd1b696-4b0f7518a463c96c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[441],{9248:(e,n,t)=>{var r,l=t(9509),a=t(6206),o=t(2115),u=t(7650);function i(e){var n="https://react.dev/errors/"+e;if(1I||(e.current=R[I],R[I]=null,I--)}function j(e,n){R[++I]=e.current,e.current=n}var H=U(null),Q=U(null),$=U(null),B=U(null);function W(e,n){switch(j($,n),j(Q,e),j(H,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?ss(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)e=sc(n=ss(n),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(H),j(H,e)}function q(){V(H),V(Q),V($)}function K(e){null!==e.memoizedState&&j(B,e);var n=H.current,t=sc(n,e.type);n!==t&&(j(Q,e),j(H,t))}function Y(e){Q.current===e&&(V(H),V(Q)),B.current===e&&(V(B),sJ._currentValue=A)}var X=Object.prototype.hasOwnProperty,G=a.unstable_scheduleCallback,Z=a.unstable_cancelCallback,J=a.unstable_shouldYield,ee=a.unstable_requestPaint,en=a.unstable_now,et=a.unstable_getCurrentPriorityLevel,er=a.unstable_ImmediatePriority,el=a.unstable_UserBlockingPriority,ea=a.unstable_NormalPriority,eo=a.unstable_LowPriority,eu=a.unstable_IdlePriority,ei=a.log,es=a.unstable_setDisableYieldValue,ec=null,ef=null;function ed(e){if("function"==typeof ei&&es(e),ef&&"function"==typeof ef.setStrictMode)try{ef.setStrictMode(ec,e)}catch(e){}}var ep=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(em(e)/eh|0)|0},em=Math.log,eh=Math.LN2,eg=256,ey=4194304;function ev(e){var n=42&e;if(0!==n)return n;switch(e&-e){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 4194048&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function eb(e,n,t){var r=e.pendingLanes;if(0===r)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var u=0x7ffffff&r;return 0!==u?0!=(r=u&~a)?l=ev(r):0!=(o&=u)?l=ev(o):t||0!=(t=u&~e)&&(l=ev(t)):0!=(u=r&~a)?l=ev(u):0!==o?l=ev(o):t||0!=(t=r&~e)&&(l=ev(t)),0===l?0:0!==n&&n!==l&&0==(n&a)&&((a=l&-l)>=(t=n&-n)||32===a&&0!=(4194048&t))?n:l}function ek(e,n){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function ew(){var e=eg;return 0==(4194048&(eg<<=1))&&(eg=256),e}function eS(){var e=ey;return 0==(0x3c00000&(ey<<=1))&&(ey=4194304),e}function ex(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function eE(e,n){e.pendingLanes|=n,0x10000000!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eC(e,n,t){e.pendingLanes|=n,e.suspendedLanes&=~n;var r=31-ep(n);e.entangledLanes|=n,e.entanglements[r]=0x40000000|e.entanglements[r]|4194090&t}function ez(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-ep(t),l=1<)":-1l||i[r]!==s[l]){var c="\n"+i[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{e2=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?e1(t):""}function e3(e){try{var n="";do n+=function(e){switch(e.tag){case 26:case 27:case 5:return e1(e.type);case 16:return e1("Lazy");case 13:return e1("Suspense");case 19:return e1("SuspenseList");case 0:case 15:return e4(e.type,!1);case 11:return e4(e.type.render,!1);case 1:return e4(e.type,!0);default:return""}}(e),e=e.return;while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function e8(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function e6(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function e5(e){e._valueTracker||(e._valueTracker=function(e){var n=e6(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function e9(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=e6(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function e7(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}var ne=/[\n"\\]/g;function nn(e){return e.replace(ne,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function nt(e,n,t,r,l,a,o,u){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=n?"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+e8(n)):e.value!==""+e8(n)&&(e.value=""+e8(n)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=n?nl(e,o,e8(n)):null!=t?nl(e,o,e8(t)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=u&&"function"!=typeof u&&"symbol"!=typeof u&&"boolean"!=typeof u?e.name=""+e8(u):e.removeAttribute("name")}function nr(e,n,t,r,l,a,o,u){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=n||null!=t){if(("submit"===a||"reset"===a)&&null==n)return;t=null!=t?""+e8(t):"",n=null!=n?""+e8(n):t,u||n===e.value||(e.value=n),e.defaultValue=n}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=u?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function nl(e,n,t){"number"===n&&e7(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function na(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l=te),tr=!1;function tl(e,n){switch(e){case"keyup":return -1!==n9.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ta(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var to=!1,tu={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ti(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!tu[e.type]:"textarea"===n}function ts(e,n,t,r){nv?nb?nb.push(r):nb=[r]:nv=r,0<(n=i8(n,"onChange")).length&&(t=new nj("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var tc=null,tf=null;function td(e){iG(e,0)}function tp(e){if(e9(eH(e)))return e}function tm(e,n){if("change"===e)return n}var th=!1;if(nE){if(nE){var tg="oninput"in document;if(!tg){var ty=document.createElement("div");ty.setAttribute("oninput","return;"),tg="function"==typeof ty.oninput}r=tg}else r=!1;th=r&&(!document.documentMode||9=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tz(r)}}function tN(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var n=e7(e.document);n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(t)e=n.contentWindow;else break;n=e7(e.document)}return n}function tT(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}var tL=nE&&"documentMode"in document&&11>=document.documentMode,t_=null,tF=null,tD=null,tM=!1;function tO(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;tM||null==t_||t_!==e7(r)||(r="selectionStart"in(r=t_)&&tT(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},tD&&tC(tD,r)||(tD=r,0<(r=i8(tF,"onSelect")).length&&(n=new nj("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=t_)))}function tA(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var tR={animationend:tA("Animation","AnimationEnd"),animationiteration:tA("Animation","AnimationIteration"),animationstart:tA("Animation","AnimationStart"),transitionrun:tA("Transition","TransitionRun"),transitionstart:tA("Transition","TransitionStart"),transitioncancel:tA("Transition","TransitionCancel"),transitionend:tA("Transition","TransitionEnd")},tI={},tU={};function tV(e){if(tI[e])return tI[e];if(!tR[e])return e;var n,t=tR[e];for(n in t)if(t.hasOwnProperty(n)&&n in tU)return tI[e]=t[n];return e}nE&&(tU=document.createElement("div").style,"AnimationEvent"in window||(delete tR.animationend.animation,delete tR.animationiteration.animation,delete tR.animationstart.animation),"TransitionEvent"in window||delete tR.transitionend.transition);var tj=tV("animationend"),tH=tV("animationiteration"),tQ=tV("animationstart"),t$=tV("transitionrun"),tB=tV("transitionstart"),tW=tV("transitioncancel"),tq=tV("transitionend"),tK=new Map,tY="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function tX(e,n){tK.set(e,n),eq(n,[e])}tY.push("scrollEnd");var tG=new WeakMap;function tZ(e,n){if("object"==typeof e&&null!==e){var t=tG.get(e);return void 0!==t?t:(n={value:e,source:n,stack:e3(n)},tG.set(e,n),n)}return{value:e,source:n,stack:e3(n)}}var tJ=[],t0=0,t1=0;function t2(){for(var e=t0,n=t1=t0=0;n>=o,l-=o,rq=1<<32-ep(n)+l|t<a?a:8;var o=M.T,u={};M.T=u,ax(e,!1,n,t);try{var i=l(),s=M.S;if(null!==s&&s(u,i),null!==i&&"object"==typeof i&&"function"==typeof i.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},i.then(function(){f.status="fulfilled",f.value=r;for(var e=0;eh?(g=f,f=null):g=f.sibling;var y=p(l,f,u[h],i);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&n(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===u.length)return t(l,f),ui&&rY(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&n(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return t(l,h),ui&&rY(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return ui&&rY(l,g),c}for(h=r(h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return n(l,e)}),ui&&rY(l,g),c}(s,c,f=b.call(f),v)}if("function"==typeof f.then)return u(s,c,aD(f),v);if(f.$$typeof===S)return u(s,c,rc(s,f),v);aO(s,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(t(s,c.sibling),(v=l(c,f)).return=s):(t(s,c),(v=ul(f,s.mode,v)).return=s),o(s=v)):t(s,c)}(u,s,c,f);return a_=null,v}catch(e){if(e===rJ||e===r1)throw e;var b=o5(29,e,null,u.mode);return b.lanes=f,b.return=u,b}finally{}}}var aI=aR(!0),aU=aR(!1),aV=U(null),aj=null;function aH(e){var n=e.alternate;j(aW,1&aW.current),j(aV,e),null===aj&&(null===n||null!==r7.current?aj=e:null!==n.memoizedState&&(aj=e))}function aQ(e){if(22===e.tag){if(j(aW,aW.current),j(aV,e),null===aj){var n=e.alternate;null!==n&&null!==n.memoizedState&&(aj=e)}}else a$(e)}function a$(){j(aW,aW.current),j(aV,aV.current)}function aB(e){V(aV),aj===e&&(aj=null),V(aW)}var aW=U(0);function aq(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||sw(t)))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var aK="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if("object"==typeof l&&"function"==typeof l.emit){l.emit("uncaughtException",e);return}console.error(e)};function aY(e){aK(e)}function aX(e){console.error(e)}function aG(e){aK(e)}function aZ(e,n){try{(0,e.onUncaughtError)(n.value,{componentStack:n.stack})}catch(e){setTimeout(function(){throw e})}}function aJ(e,n,t){try{(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===n.tag?n.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function a0(e,n,t){return(t=rk(t)).tag=3,t.payload={element:null},t.callback=function(){aZ(e,n)},t}function a1(e){return(e=rk(e)).tag=3,e}function a2(e,n,t,r){var l=t.type.getDerivedStateFromError;if("function"==typeof l){var a=r.value;e.payload=function(){return l(a)},e.callback=function(){aJ(n,t,r)}}var o=t.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){aJ(n,t,r),"function"!=typeof l&&(null===uY?uY=new Set([this]):uY.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var a4=Error(i(461)),a3=!1;function a8(e,n,t,r){n.child=null===e?aU(n,null,t,r):aI(n,e.child,t,r)}function a6(e,n,t,r,l){t=t.render;var a=n.ref;if("ref"in r){var o={};for(var u in r)"ref"!==u&&(o[u]=r[u])}else o=r;return(ri(n),r=lS(e,n,t,o,a,l),u=lz(),null===e||a3)?(ui&&u&&rG(n),n.flags|=1,a8(e,n,r,l),n.child):(lP(e,n,l),og(e,n,l))}function a5(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||o9(a)||void 0!==a.defaultProps||null!==t.compare?((e=un(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,a9(e,n,a,r,l))}if(a=e.child,!oy(e,l)){var o=a.memoizedProps;if((t=null!==(t=t.compare)?t:tC)(o,r)&&e.ref===n.ref)return og(e,n,l)}return n.flags|=1,(e=o7(a,r)).ref=n.ref,e.return=n,n.child=e}function a9(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(tC(a,r)&&e.ref===n.ref){if(a3=!1,n.pendingProps=r=a,!oy(e,l))return n.lanes=e.lanes,og(e,n,l);0!=(131072&e.flags)&&(a3=!0)}}return ot(e,n,t,r,l)}function a7(e,n,t){var r=n.pendingProps,l=r.children,a=0!=(2&n.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(on(e,n),"hidden"===r.mode||a){if(0!=(128&n.flags)){if(r=null!==o?o.baseLanes|t:t,null!==e){for(a=0,l=n.child=e.child;null!==l;)a=a|l.lanes|l.childLanes,l=l.sibling;n.childLanes=a&~r}else n.childLanes=0,n.child=null;return oe(e,n,r,t)}if(0==(0x20000000&t))return n.lanes=n.childLanes=0x20000000,oe(e,n,null!==o?o.baseLanes|t:t,t);n.memoizedState={baseLanes:0,cachePool:null},null!==e&&lu(n,null!==o?o.cachePool:null),null!==o?ln(n,o):lt(),aQ(n)}else null!==o?(lu(n,o.cachePool),ln(n,o),a$(n),n.memoizedState=null):(null!==e&&lu(n,null),lt(),a$(n));return a8(e,n,l,t),n.child}function oe(e,n,t,r){var l=lo();return n.memoizedState={baseLanes:t,cachePool:l=null===l?null:{parent:rF._currentValue,pool:l}},null!==e&&lu(n,null),lt(),aQ(n),null!==e&&ro(e,n,r,!0),null}function on(e,n){var t=n.ref;if(null===t)null!==e&&null!==e.ref&&(n.flags|=4194816);else{if("function"!=typeof t&&"object"!=typeof t)throw Error(i(284));(null===e||e.ref!==t)&&(n.flags|=4194816)}}function ot(e,n,t,r,l){return(ri(n),t=lS(e,n,t,r,void 0,l),r=lz(),null===e||a3)?(ui&&r&&rG(n),n.flags|=1,a8(e,n,t,l),n.child):(lP(e,n,l),og(e,n,l))}function or(e,n,t,r,l,a){return(ri(n),n.updateQueue=null,t=lE(n,r,t,l),lx(e),r=lz(),null===e||a3)?(ui&&r&&rG(n),n.flags|=1,a8(e,n,t,a),n.child):(lP(e,n,a),og(e,n,a))}function ol(e,n,t,r,l){if(ri(n),null===n.stateNode){var a=t9,o=t.contextType;"object"==typeof o&&null!==o&&(a=rs(o)),n.memoizedState=null!==(a=new t(r,a)).state&&void 0!==a.state?a.state:null,a.updater=rA,n.stateNode=a,a._reactInternals=n,(a=n.stateNode).props=r,a.state=n.memoizedState,a.refs={},rv(n),o=t.contextType,a.context="object"==typeof o&&null!==o?rs(o):t9,a.state=n.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(rO(n,t,o,r),a.state=n.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(o=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&rA.enqueueReplaceState(a,a.state,null),rz(n,r,a,l),rC(),a.state=n.memoizedState),"function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!0}else if(null===e){a=n.stateNode;var u=n.memoizedProps,i=rU(t,u);a.props=i;var s=a.context,c=t.contextType;o=t9,"object"==typeof c&&null!==c&&(o=rs(c));var f=t.getDerivedStateFromProps;c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate,u=n.pendingProps!==u,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(u||s!==o)&&rI(n,a,r,o),ry=!1;var d=n.memoizedState;a.state=d,rz(n,r,a,l),rC(),s=n.memoizedState,u||d!==s||ry?("function"==typeof f&&(rO(n,t,f,r),s=n.memoizedState),(i=ry||rR(n,t,i,r,d,s,o))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(n.flags|=4194308)):("function"==typeof a.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),a.props=r,a.state=s,a.context=o,r=i):("function"==typeof a.componentDidMount&&(n.flags|=4194308),r=!1)}else{a=n.stateNode,rb(e,n),c=rU(t,o=n.memoizedProps),a.props=c,f=n.pendingProps,d=a.context,s=t.contextType,i=t9,"object"==typeof s&&null!==s&&(i=rs(s)),(s="function"==typeof(u=t.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==f||d!==i)&&rI(n,a,r,i),ry=!1,d=n.memoizedState,a.state=d,rz(n,r,a,l),rC();var p=n.memoizedState;o!==f||d!==p||ry||null!==e&&null!==e.dependencies&&ru(e.dependencies)?("function"==typeof u&&(rO(n,t,u,r),p=n.memoizedState),(c=ry||rR(n,t,c,r,d,p,i)||null!==e&&null!==e.dependencies&&ru(e.dependencies))?(s||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,i),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,i)),"function"==typeof a.componentDidUpdate&&(n.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=p),a.props=r,a.state=p,a.context=i,r=c):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return a=r,on(e,n),r=0!=(128&n.flags),a||r?(a=n.stateNode,t=r&&"function"!=typeof t.getDerivedStateFromError?null:a.render(),n.flags|=1,null!==e&&r?(n.child=aI(n,e.child,null,l),n.child=aI(n,null,t,l)):a8(e,n,t,l),n.memoizedState=a.state,e=n.child):e=og(e,n,l),e}function oa(e,n,t,r){return ug(),n.flags|=256,a8(e,n,t,r),n.child}var oo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ou(e){return{baseLanes:e,cachePool:li()}}function oi(e,n,t){return e=null!==e?e.childLanes&~t:0,n&&(e|=uj),e}function os(e,n,t){var r,l=n.pendingProps,a=!1,o=0!=(128&n.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&aW.current)),r&&(a=!0,n.flags&=-129),r=0!=(32&n.flags),n.flags&=-33,null===e){if(ui){if(a?aH(n):a$(n),ui){var u,s=uu;if(u=s){t:{for(u=s,s=uc;8!==u.nodeType;)if(!s||null===(u=sS(u.nextSibling))){s=null;break t}s=u}null!==s?(n.memoizedState={dehydrated:s,treeContext:null!==rW?{id:rq,overflow:rK}:null,retryLane:0x20000000,hydrationErrors:null},(u=o5(18,null,null,0)).stateNode=s,u.return=n,n.child=u,uo=n,uu=null,u=!0):u=!1}u||ud(n)}if(null!==(s=n.memoizedState)&&null!==(s=s.dehydrated))return sw(s)?n.lanes=32:n.lanes=0x20000000,null;aB(n)}return(s=l.children,l=l.fallback,a)?(a$(n),s=of({mode:"hidden",children:s},a=n.mode),l=ut(l,a,t,null),s.return=n,l.return=n,s.sibling=l,n.child=s,(a=n.child).memoizedState=ou(t),a.childLanes=oi(e,r,t),n.memoizedState=oo,l):(aH(n),oc(n,s))}if(null!==(u=e.memoizedState)&&null!==(s=u.dehydrated)){if(o)256&n.flags?(aH(n),n.flags&=-257,n=od(e,n,t)):null!==n.memoizedState?(a$(n),n.child=e.child,n.flags|=128,n=null):(a$(n),a=l.fallback,s=n.mode,l=of({mode:"visible",children:l.children},s),a=ut(a,s,t,null),a.flags|=2,l.return=n,a.return=n,l.sibling=a,n.child=l,aI(n,e.child,null,t),(l=n.child).memoizedState=ou(t),l.childLanes=oi(e,r,t),n.memoizedState=oo,n=a);else if(aH(n),sw(s)){if(r=s.nextSibling&&s.nextSibling.dataset)var c=r.dgst;r=c,(l=Error(i(419))).stack="",l.digest=r,uv({value:l,source:null,stack:null}),n=od(e,n,t)}else if(a3||ro(e,n,t,!1),r=0!=(t&e.childLanes),a3||r){if(null!==(r=uN)&&0!==(l=0!=((l=0!=(42&(l=t&-t))?1:eP(l))&(r.suspendedLanes|t))?0:l)&&l!==u.retryLane)throw u.retryLane=l,t8(e,l),u5(r,e,l),a4;"$?"===s.data||ii(),n=od(e,n,t)}else"$?"===s.data?(n.flags|=192,n.child=e.child,n=null):(e=u.treeContext,uu=sS(s.nextSibling),uo=n,ui=!0,us=null,uc=!1,null!==e&&(r$[rB++]=rq,r$[rB++]=rK,r$[rB++]=rW,rq=e.id,rK=e.overflow,rW=n),n=oc(n,l.children),n.flags|=4096);return n}return a?(a$(n),a=l.fallback,s=n.mode,c=(u=e.child).sibling,(l=o7(u,{mode:"hidden",children:l.children})).subtreeFlags=0x3e00000&u.subtreeFlags,null!==c?a=o7(c,a):(a=ut(a,s,t,null),a.flags|=2),a.return=n,l.return=n,l.sibling=a,n.child=l,l=a,a=n.child,null===(s=e.child.memoizedState)?s=ou(t):(null!==(u=s.cachePool)?(c=rF._currentValue,u=u.parent!==c?{parent:c,pool:c}:u):u=li(),s={baseLanes:s.baseLanes|t,cachePool:u}),a.memoizedState=s,a.childLanes=oi(e,r,t),n.memoizedState=oo,l):(aH(n),e=(t=e.child).sibling,(t=o7(t,{mode:"visible",children:l.children})).return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t,n.memoizedState=null,t)}function oc(e,n){return(n=of({mode:"visible",children:n},e.mode)).return=e,e.child=n}function of(e,n){return ur(e,n,0,null)}function od(e,n,t){return aI(n,e.child,null,t),e=oc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function op(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),rl(e.return,n,t)}function om(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function oh(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(a8(e,n,r.children,t),0!=(2&(r=aW.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&op(e,t,n);else if(19===e.tag)op(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(j(aW,r),l){case"forwards":for(l=null,t=n.child;null!==t;)null!==(e=t.alternate)&&null===aq(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),om(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===aq(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}om(n,!0,t,null,a);break;case"together":om(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function og(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),uI|=n.lanes,0==(t&n.childLanes)){if(null===e)return null;if(ro(e,n,t,!1),0==(t&n.childLanes))return null}if(null!==e&&n.child!==e.child)throw Error(i(153));if(null!==n.child){for(t=o7(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=o7(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function oy(e,n){return 0!=(e.lanes&n)||!!(null!==(e=e.dependencies)&&ru(e))}function ov(e,n,t){if(null!==e){if(e.memoizedProps!==n.pendingProps)a3=!0;else{if(!oy(e,t)&&0==(128&n.flags))return a3=!1,function(e,n,t){switch(n.tag){case 3:W(n,n.stateNode.containerInfo),rt(n,rF,e.memoizedState.cache),ug();break;case 27:case 5:K(n);break;case 4:W(n,n.stateNode.containerInfo);break;case 10:rt(n,n.type,n.memoizedProps.value);break;case 13:var r=n.memoizedState;if(null!==r){if(null!==r.dehydrated)return aH(n),n.flags|=128,null;if(0!=(t&n.child.childLanes))return os(e,n,t);return aH(n),null!==(e=og(e,n,t))?e.sibling:null}aH(n);break;case 19:var l=0!=(128&e.flags);if((r=0!=(t&n.childLanes))||(ro(e,n,t,!1),r=0!=(t&n.childLanes)),l){if(r)return oh(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),j(aW,aW.current),!r)return null;break;case 22:case 23:return n.lanes=0,a7(e,n,t);case 24:rt(n,rF,e.memoizedState.cache)}return og(e,n,t)}(e,n,t);a3=0!=(131072&e.flags)}}else a3=!1,ui&&0!=(1048576&n.flags)&&rX(n,rQ,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var r=n.elementType,l=r._init;if(r=l(r._payload),n.type=r,"function"==typeof r)o9(r)?(e=rU(r,e),n.tag=1,n=ol(null,n,r,e,t)):(n.tag=0,n=ot(null,n,r,e,t));else{if(null!=r){if((l=r.$$typeof)===x){n.tag=11,n=a6(null,n,r,e,t);break e}if(l===z){n.tag=14,n=a5(null,n,r,e,t);break e}}throw Error(i(306,n=function e(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===F?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case y:return"Fragment";case g:return"Portal";case b:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case C:return"SuspenseList"}if("object"==typeof n)switch(n.$$typeof){case S:return(n.displayName||"Context")+".Provider";case w:return(n._context.displayName||"Context")+".Consumer";case x:var t=n.render;return(n=n.displayName)||(n=""!==(n=t.displayName||t.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case z:return null!==(t=n.displayName||null)?t:e(n.type)||"Memo";case P:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}(r)||r,""))}}return n;case 0:return ot(e,n,n.type,n.pendingProps,t);case 1:return l=rU(r=n.type,n.pendingProps),ol(e,n,r,l,t);case 3:e:{if(W(n,n.stateNode.containerInfo),null===e)throw Error(i(387));r=n.pendingProps;var a=n.memoizedState;l=a.element,rb(e,n),rz(n,r,null,t);var o=n.memoizedState;if(rt(n,rF,r=o.cache),r!==a.cache&&ra(n,[rF],t,!0),rC(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},n.updateQueue.baseState=a,n.memoizedState=a,256&n.flags){n=oa(e,n,r,t);break e}if(r!==l){uv(l=tZ(Error(i(424)),n)),n=oa(e,n,r,t);break e}else for(uu=sS((e=9===(e=n.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).firstChild),uo=n,ui=!0,us=null,uc=!0,t=aU(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(ug(),r===l){n=og(e,n,t);break e}a8(e,n,r,t)}n=n.child}return n;case 26:return on(e,n),null===e?(t=sD(n.type,null,n.pendingProps,null))?n.memoizedState=t:ui||(t=n.type,e=n.pendingProps,(r=si($.current).createElement(t))[e_]=n,r[eF]=e,sa(r,t,e),e$(r),n.stateNode=r):n.memoizedState=sD(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return K(n),null===e&&ui&&(r=n.stateNode=sC(n.type,n.pendingProps,$.current),uo=n,uc=!0,l=uu,sv(n.type)?(sx=l,uu=sS(r.firstChild)):uu=l),a8(e,n,n.pendingProps.children,t),on(e,n),null===e&&(n.flags|=4194304),n.child;case 5:return null===e&&ui&&((l=!(r=uu))||(null!==(r=function(e,n,t,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[eI])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(l=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||l!==t.rel||e.getAttribute("href")!==(null==t.href||""===t.href?null:t.href)||e.getAttribute("crossorigin")!==(null==t.crossOrigin?null:t.crossOrigin)||e.getAttribute("title")!==(null==t.title?null:t.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((l=e.getAttribute("src"))!==(null==t.src?null:t.src)||e.getAttribute("type")!==(null==t.type?null:t.type)||e.getAttribute("crossorigin")!==(null==t.crossOrigin?null:t.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==n||"hidden"!==e.type)return e;var l=null==t.name?null:""+t.name;if("hidden"===t.type&&e.getAttribute("name")===l)return e}if(null===(e=sS(e.nextSibling)))break}return null}(r,n.type,n.pendingProps,uc))?(n.stateNode=r,uo=n,uu=sS(r.firstChild),uc=!1,r=!0):r=!1,l=!r),l&&ud(n)),K(n),l=n.type,a=n.pendingProps,o=null!==e?e.memoizedProps:null,r=a.children,sf(l,a)?r=null:null!==o&&sf(l,o)&&(n.flags|=32),null!==n.memoizedState&&(sJ._currentValue=l=lS(e,n,lC,null,null,t)),on(e,n),a8(e,n,r,t),n.child;case 6:return null===e&&ui&&((e=!(t=uu))||(null!==(t=function(e,n,t){if(""===n)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t||null===(e=sS(e.nextSibling)))return null;return e}(t,n.pendingProps,uc))?(n.stateNode=t,uo=n,uu=null,t=!0):t=!1,e=!t),e&&ud(n)),null;case 13:return os(e,n,t);case 4:return W(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=aI(n,null,r,t):a8(e,n,r,t),n.child;case 11:return a6(e,n,n.type,n.pendingProps,t);case 7:return a8(e,n,n.pendingProps,t),n.child;case 8:case 12:return a8(e,n,n.pendingProps.children,t),n.child;case 10:return r=n.pendingProps,rt(n,n.type,r.value),a8(e,n,r.children,t),n.child;case 9:return l=n.type._context,r=n.pendingProps.children,ri(n),r=r(l=rs(l)),n.flags|=1,a8(e,n,r,t),n.child;case 14:return a5(e,n,n.type,n.pendingProps,t);case 15:return a9(e,n,n.type,n.pendingProps,t);case 19:return oh(e,n,t);case 22:return a7(e,n,t);case 24:return ri(n),r=rs(rF),null===e?(null===(l=lo())&&(l=uN,a=rD(),l.pooledCache=a,a.refCount++,null!==a&&(l.pooledCacheLanes|=t),l=a),n.memoizedState={parent:r,cache:l},rv(n),rt(n,rF,l)):(0!=(e.lanes&t)&&(rb(e,n),rz(n,null,null,t),rC()),l=e.memoizedState,a=n.memoizedState,l.parent!==r?(l={parent:r,cache:r},n.memoizedState=l,0===n.lanes&&(n.memoizedState=n.updateQueue.baseState=l),rt(n,rF,r)):(rt(n,rF,r=a.cache),r!==l.cache&&ra(n,[rF],t,!0))),a8(e,n,n.pendingProps.children,t),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function ob(e,n){try{var t=n.updateQueue,r=null!==t?t.lastEffect:null;if(null!==r){var l=r.next;t=l;do{if((t.tag&e)===e){r=void 0;var a=t.create;t.inst.destroy=r=a()}t=t.next}while(t!==l)}}catch(e){iC(n,n.return,e)}}function ok(e,n,t){try{var r=n.updateQueue,l=null!==r?r.lastEffect:null;if(null!==l){var a=l.next;r=a;do{if((r.tag&e)===e){var o=r.inst,u=o.destroy;if(void 0!==u){o.destroy=void 0,l=n;try{u()}catch(e){iC(l,t,e)}}}r=r.next}while(r!==a)}}catch(e){iC(n,n.return,e)}}function ow(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;try{rN(n,t)}catch(n){iC(e,e.return,n)}}}function oS(e,n,t){t.props=rU(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(t){iC(e,n,t)}}function ox(e,n){try{var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof t?e.refCleanup=t(r):t.current=r}}catch(t){iC(e,n,t)}}function oE(e,n){var t=e.ref,r=e.refCleanup;if(null!==t){if("function"==typeof r)try{r()}catch(t){iC(e,n,t)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(t){iC(e,n,t)}else t.current=null}}function oC(e){var n=e.type,t=e.memoizedProps,r=e.stateNode;try{switch(n){case"button":case"input":case"select":case"textarea":t.autoFocus&&r.focus();break;case"img":t.src?r.src=t.src:t.srcSet&&(r.srcset=t.srcSet)}}catch(n){iC(e,e.return,n)}}function oz(e,n,t){try{var r=e.stateNode;(function(e,n,t,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,a=null,o=null,u=null,s=null,c=null,f=null;for(m in t){var d=t[m];if(t.hasOwnProperty(m)&&null!=d)switch(m){case"checked":case"value":break;case"defaultValue":s=d;default:r.hasOwnProperty(m)||sr(e,n,m,null,r,d)}}for(var p in r){var m=r[p];if(d=t[p],r.hasOwnProperty(p)&&(null!=m||null!=d))switch(p){case"type":a=m;break;case"name":l=m;break;case"checked":c=m;break;case"defaultChecked":f=m;break;case"value":o=m;break;case"defaultValue":u=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(i(137,n));break;default:m!==d&&sr(e,n,p,m,r,d)}}nt(e,o,u,s,c,f,a,l);return;case"select":for(a in m=o=u=p=null,t)if(s=t[a],t.hasOwnProperty(a)&&null!=s)switch(a){case"value":break;case"multiple":m=s;default:r.hasOwnProperty(a)||sr(e,n,a,null,r,s)}for(l in r)if(a=r[l],s=t[l],r.hasOwnProperty(l)&&(null!=a||null!=s))switch(l){case"value":p=a;break;case"defaultValue":u=a;break;case"multiple":o=a;default:a!==s&&sr(e,n,l,a,r,s)}n=u,t=o,r=m,null!=p?na(e,!!t,p,!1):!!r!=!!t&&(null!=n?na(e,!!t,n,!0):na(e,!!t,t?[]:"",!1));return;case"textarea":for(u in m=p=null,t)if(l=t[u],t.hasOwnProperty(u)&&null!=l&&!r.hasOwnProperty(u))switch(u){case"value":case"children":break;default:sr(e,n,u,null,r,l)}for(o in r)if(l=r[o],a=t[o],r.hasOwnProperty(o)&&(null!=l||null!=a))switch(o){case"value":p=l;break;case"defaultValue":m=l;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(i(91));break;default:l!==a&&sr(e,n,o,l,r,a)}no(e,p,m);return;case"option":for(var h in t)p=t[h],t.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h)&&("selected"===h?e.selected=!1:sr(e,n,h,null,r,p));for(s in r)p=r[s],m=t[s],r.hasOwnProperty(s)&&p!==m&&(null!=p||null!=m)&&("selected"===s?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:sr(e,n,s,p,r,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in t)p=t[g],t.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&sr(e,n,g,null,r,p);for(c in r)if(p=r[c],m=t[c],r.hasOwnProperty(c)&&p!==m&&(null!=p||null!=m))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,n));break;default:sr(e,n,c,p,r,m)}return;default:if(nd(n)){for(var y in t)p=t[y],t.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&sl(e,n,y,void 0,r,p);for(f in r)p=r[f],m=t[f],r.hasOwnProperty(f)&&p!==m&&(void 0!==p||void 0!==m)&&sl(e,n,f,p,r,m);return}}for(var v in t)p=t[v],t.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&sr(e,n,v,null,r,p);for(d in r)p=r[d],m=t[d],r.hasOwnProperty(d)&&p!==m&&(null!=p||null!=m)&&sr(e,n,d,p,r,m)})(r,e.type,t,n),r[eF]=n}catch(n){iC(e,e.return,n)}}function oP(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&sv(e.type)||4===e.tag}function oN(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||oP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&sv(e.type)||2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function oT(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&(27===r&&sv(e.type)&&(t=e.stateNode),null!==(e=e.child)))for(oT(e,n,t),e=e.sibling;null!==e;)oT(e,n,t),e=e.sibling}function oL(e){var n=e.stateNode,t=e.memoizedProps;try{for(var r=e.type,l=n.attributes;l.length;)n.removeAttributeNode(l[0]);sa(n,r,t),n[e_]=e,n[eF]=t}catch(n){iC(e,e.return,n)}}var o_=!1,oF=!1,oD=!1,oM="function"==typeof WeakSet?WeakSet:Set,oO=null;function oA(e,n,t){var r=t.flags;switch(t.tag){case 0:case 11:case 15:oq(e,t),4&r&&ob(5,t);break;case 1:if(oq(e,t),4&r){if(e=t.stateNode,null===n)try{e.componentDidMount()}catch(e){iC(t,t.return,e)}else{var l=rU(t.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(l,n,e.__reactInternalSnapshotBeforeUpdate)}catch(e){iC(t,t.return,e)}}}64&r&&ow(t),512&r&&ox(t,t.return);break;case 3:if(oq(e,t),64&r&&null!==(r=t.updateQueue)){if(e=null,null!==t.child)switch(t.child.tag){case 27:case 5:case 1:e=t.child.stateNode}try{rN(r,e)}catch(e){iC(t,t.return,e)}}break;case 27:null===n&&4&r&&oL(t);case 26:case 5:oq(e,t),null===n&&4&r&&oC(t),512&r&&ox(t,t.return);break;case 12:default:oq(e,t);break;case 13:oq(e,t),4&r&&oj(e,t),64&r&&null!==(r=t.memoizedState)&&null!==(r=r.dehydrated)&&function(e,n){var t=e.ownerDocument;if("$?"!==e.data||"complete"===t.readyState)n();else{var r=function(){n(),t.removeEventListener("DOMContentLoaded",r)};t.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(r,t=iT.bind(null,t));break;case 22:if(!(l=null!==t.memoizedState||o_)){n=null!==n&&null!==n.memoizedState||oF;var a=o_,o=oF;o_=l,(oF=n)&&!o?function e(n,t,r){for(r=r&&0!=(8772&t.subtreeFlags),t=t.child;null!==t;){var l=t.alternate,a=n,o=t,u=o.flags;switch(o.tag){case 0:case 11:case 15:e(a,o,r),ob(4,o);break;case 1:if(e(a,o,r),"function"==typeof(a=(l=o).stateNode).componentDidMount)try{a.componentDidMount()}catch(e){iC(l,l.return,e)}if(null!==(a=(l=o).updateQueue)){var i=l.stateNode;try{var s=a.shared.hiddenCallbacks;if(null!==s)for(a.shared.hiddenCallbacks=null,a=0;a title"))),sa(a,r,t),a[e_]=e,e$(a),r=a;break e;case"link":var o=s$("link","href",l).get(r+(t.href||""));if(o){for(var u=0;u<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(t,{is:r.is}):l.createElement(t)}}e[e_]=n,e[eF]=r;e:for(l=n.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(n.stateNode=e,sa(e,t,r),t){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&ub(n)}}return ux(n),n.flags&=-0x1000001,null;case 6:if(e&&null!=n.stateNode)e.memoizedProps!==r&&ub(n);else{if("string"!=typeof r&&null===n.stateNode)throw Error(i(166));if(e=$.current,uh(n)){if(e=n.stateNode,t=n.memoizedProps,r=null,null!==(l=uo))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[e_]=n,(e=!!(e.nodeValue===t||null!==r&&!0===r.suppressHydrationWarning||sn(e.nodeValue,t)))||ud(n)}else(e=si(e).createTextNode(r))[e_]=n,n.stateNode=e}return ux(n),null;case 13:if(r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=uh(n),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=n.memoizedState)?l.dehydrated:null))throw Error(i(317));l[e_]=n}else ug(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;ux(n),l=!1}else l=uy(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(256&n.flags)return aB(n),n;return aB(n),null}}if(aB(n),0!=(128&n.flags))return n.lanes=t,n;if(t=null!==r,e=null!==e&&null!==e.memoizedState,t){r=n.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)}return t!==e&&t&&(n.child.flags|=8192),uw(n,n.updateQueue),ux(n),null;case 4:return q(),null===e&&i1(n.stateNode.containerInfo),ux(n),null;case 10:return rr(n.type),ux(n),null;case 19:if(V(aW),null===(l=n.memoizedState))return ux(n),null;if(r=0!=(128&n.flags),null===(a=l.rendering)){if(r)uS(l,!1);else{if(0!==uR||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(a=aq(e))){for(n.flags|=128,uS(l,!1),e=a.updateQueue,n.updateQueue=e,uw(n,e),n.subtreeFlags=0,e=t,t=n.child;null!==t;)ue(t,e),t=t.sibling;return j(aW,1&aW.current|2),n.child}e=e.sibling}null!==l.tail&&en()>uq&&(n.flags|=128,r=!0,uS(l,!1),n.lanes=4194304)}}else{if(!r){if(null!==(e=aq(a))){if(n.flags|=128,r=!0,e=e.updateQueue,n.updateQueue=e,uw(n,e),uS(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!ui)return ux(n),null}else 2*en()-l.renderingStartTime>uq&&0x20000000!==t&&(n.flags|=128,r=!0,uS(l,!1),n.lanes=4194304)}l.isBackwards?(a.sibling=n.child,n.child=a):(null!==(e=l.last)?e.sibling=a:n.child=a,l.last=a)}if(null!==l.tail)return n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=en(),n.sibling=null,e=aW.current,j(aW,r?1&e|2:1&e),n;return ux(n),null;case 22:case 23:return aB(n),lr(),r=null!==n.memoizedState,null!==e?null!==e.memoizedState!==r&&(n.flags|=8192):r&&(n.flags|=8192),r?0!=(0x20000000&t)&&0==(128&n.flags)&&(ux(n),6&n.subtreeFlags&&(n.flags|=8192)):ux(n),null!==(t=n.updateQueue)&&uw(n,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),r=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(r=n.memoizedState.cachePool.pool),r!==t&&(n.flags|=2048),null!==e&&V(la),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),n.memoizedState.cache!==t&&(n.flags|=2048),rr(rF),ux(n),null;case 25:case 30:return null}throw Error(i(156,n.tag))}(n.alternate,n,uA);if(null!==t){uT=t;return}if(null!==(n=n.sibling)){uT=n;return}uT=n=e}while(null!==n);0===uR&&(uR=5)}function ih(e,n){do{var t=function(e,n){switch(rZ(n),n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return rr(rF),q(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return Y(n),null;case 13:if(aB(n),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(i(340));ug()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return V(aW),null;case 4:return q(),null;case 10:return rr(n.type),null;case 22:case 23:return aB(n),lr(),null!==e&&V(la),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return rr(rF),null;default:return null}}(e.alternate,e);if(null!==t){t.flags&=32767,uT=t;return}if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!n&&null!==(e=e.sibling)){uT=e;return}uT=e=t}while(null!==e);uR=6,uT=null}function ig(e,n,t,r,l,a,o,u,s){e.cancelPendingCommit=null;do iS();while(0!==uX);if(0!=(6&uP))throw Error(i(327));if(null!==n){if(n===e.current)throw Error(i(177));if(!function(e,n,t,r,l,a){var o=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var u=e.entanglements,i=e.expirationTimes,s=e.hiddenUpdates;for(t=o&~t;0g&&(o=g,g=h,h=o);var y=tP(u,h),v=tP(u,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=f.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),h>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(f=[],p=u;p=p.parentNode;)1===p.nodeType&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof u.focus&&u.focus(),u=0;ut?32:t,M.T=null,t=u1,u1=null;var a=uG,o=uJ;if(uX=0,uZ=uG=null,uJ=0,0!=(6&uP))throw Error(i(331));var u=uP;if(uP|=4,o3(a.current),oG(a,a.current,o,t),uP=u,iI(0,!1),ef&&"function"==typeof ef.onPostCommitFiberRoot)try{ef.onPostCommitFiberRoot(ec,a)}catch(e){}return!0}finally{O.p=l,M.T=r,iw(e,n)}}function iE(e,n,t){n=tZ(t,n),n=a0(e.stateNode,n,2),null!==(e=rw(e,n,2))&&(eE(e,2),iR(e))}function iC(e,n,t){if(3===e.tag)iE(e,e,t);else for(;null!==n;){if(3===n.tag){iE(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===uY||!uY.has(r))){e=tZ(t,e),null!==(r=rw(n,t=a1(2),2))&&(a2(t,r,n,e),eE(r,2),iR(r));break}}n=n.return}}function iz(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new uz;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(uO=!0,l.add(t),e=iP.bind(null,e,n,t),n.then(e,e))}function iP(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,uN===e&&(uL&t)===t&&(4===uR||3===uR&&(0x3c00000&uL)===uL&&300>en()-uW?0==(2&uP)&&il(e,0):uV|=t,uH===uL&&(uH=0)),iR(e)}function iN(e,n){0===n&&(n=eS()),null!==(e=t8(e,n))&&(eE(e,n),iR(e))}function iT(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),iN(e,t)}function iL(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(n),iN(e,t)}var i_=null,iF=null,iD=!1,iM=!1,iO=!1,iA=0;function iR(e){e!==iF&&null===e.next&&(null===iF?i_=iF=e:iF=iF.next=e),iM=!0,iD||(iD=!0,sg(function(){0!=(6&uP)?G(er,iU):iV()}))}function iI(e,n){if(!iO&&iM){iO=!0;do for(var t=!1,r=i_;null!==r;){if(!n){if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,u=r.pingedLanes;a=0xc000095&(a=(1<<31-ep(42|e)+1)-1&(l&~(o&~u)))?0xc000095&a|1:a?2|a:0}0!==a&&(t=!0,iQ(r,a))}else a=uL,0==(3&(a=eb(r,r===uN?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||ek(r,a)||(t=!0,iQ(r,a))}r=r.next}while(t);iO=!1}}function iU(){iV()}function iV(){iM=iD=!1;var e,n=0;0!==iA&&(((e=window.event)&&"popstate"===e.type?e===sd||(sd=e,0):(sd=null,1))||(n=iA),iA=0);for(var t=en(),r=null,l=i_;null!==l;){var a=l.next,o=ij(l,t);0===o?(l.next=null,null===r?i_=a:r.next=a,null===a&&(iF=r)):(r=l,(0!==n||0!=(3&o))&&(iM=!0)),l=a}iI(n,!1)}function ij(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0r){t=r;var o=e.ownerDocument;if(1&t&&sz(o.documentElement),2&t&&sz(o.body),4&t)for(sz(t=o.head),o=t.firstChild;o;){var u=o.nextSibling,i=o.nodeName;o[eI]||"SCRIPT"===i||"STYLE"===i||"LINK"===i&&"stylesheet"===o.rel.toLowerCase()||t.removeChild(o),o=u}}if(0===l){e.removeChild(a),cS(n);return}l--}else"$"===t||"$?"===t||"$!"===t?l++:r=t.charCodeAt(0)-48}else r=0;t=a}while(t);cS(n)}function sk(e){var n=e.firstChild;for(n&&10===n.nodeType&&(n=n.nextSibling);n;){var t=n;switch(n=n.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":sk(t),eU(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===t.rel.toLowerCase())continue}e.removeChild(t)}}function sw(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function sS(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if("$"===(n=e.data)||"$!"===n||"$?"===n||"F!"===n||"F"===n)break;if("/$"===n)return null}}return e}var sx=null;function sE(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t){if(0===n)return e;n--}else"/$"===t&&n++}e=e.previousSibling}return null}function sC(e,n,t){switch(n=si(t),e){case"html":if(!(e=n.documentElement))throw Error(i(452));return e;case"head":if(!(e=n.head))throw Error(i(453));return e;case"body":if(!(e=n.body))throw Error(i(454));return e;default:throw Error(i(451))}}function sz(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);eU(e)}var sP=new Map,sN=new Set;function sT(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var sL=O.d;O.d={f:function(){var e=sL.f(),n=it();return e||n},r:function(e){var n=ej(e);null!==n&&5===n.tag&&"form"===n.type?ah(n):sL.r(e)},D:function(e){sL.D(e),sF("dns-prefetch",e,null)},C:function(e,n){sL.C(e,n),sF("preconnect",e,n)},L:function(e,n,t){if(sL.L(e,n,t),s_&&e&&n){var r='link[rel="preload"][as="'+nn(n)+'"]';"image"===n&&t&&t.imageSrcSet?(r+='[imagesrcset="'+nn(t.imageSrcSet)+'"]',"string"==typeof t.imageSizes&&(r+='[imagesizes="'+nn(t.imageSizes)+'"]')):r+='[href="'+nn(e)+'"]';var l=r;switch(n){case"style":l=sM(e);break;case"script":l=sR(e)}sP.has(l)||(e=p({rel:"preload",href:"image"===n&&t&&t.imageSrcSet?void 0:e,as:n},t),sP.set(l,e),null!==s_.querySelector(r)||"style"===n&&s_.querySelector(sO(l))||"script"===n&&s_.querySelector(sI(l))||(sa(n=s_.createElement("link"),"link",e),e$(n),s_.head.appendChild(n)))}},m:function(e,n){if(sL.m(e,n),s_&&e){var t=n&&"string"==typeof n.as?n.as:"script",r='link[rel="modulepreload"][as="'+nn(t)+'"][href="'+nn(e)+'"]',l=r;switch(t){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=sR(e)}if(!sP.has(l)&&(e=p({rel:"modulepreload",href:e},n),sP.set(l,e),null===s_.querySelector(r))){switch(t){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s_.querySelector(sI(l)))return}sa(t=s_.createElement("link"),"link",e),e$(t),s_.head.appendChild(t)}}},X:function(e,n){if(sL.X(e,n),s_&&e){var t=eQ(s_).hoistableScripts,r=sR(e),l=t.get(r);l||((l=s_.querySelector(sI(r)))||(e=p({src:e,async:!0},n),(n=sP.get(r))&&sH(e,n),e$(l=s_.createElement("script")),sa(l,"link",e),s_.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},t.set(r,l))}},S:function(e,n,t){if(sL.S(e,n,t),s_&&e){var r=eQ(s_).hoistableStyles,l=sM(e);n=n||"default";var a=r.get(l);if(!a){var o={loading:0,preload:null};if(a=s_.querySelector(sO(l)))o.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":n},t),(t=sP.get(l))&&sj(e,t);var u=a=s_.createElement("link");e$(u),sa(u,"link",e),u._p=new Promise(function(e,n){u.onload=e,u.onerror=n}),u.addEventListener("load",function(){o.loading|=1}),u.addEventListener("error",function(){o.loading|=2}),o.loading|=4,sV(a,n,s_)}a={type:"stylesheet",instance:a,count:1,state:o},r.set(l,a)}}},M:function(e,n){if(sL.M(e,n),s_&&e){var t=eQ(s_).hoistableScripts,r=sR(e),l=t.get(r);l||((l=s_.querySelector(sI(r)))||(e=p({src:e,async:!0,type:"module"},n),(n=sP.get(r))&&sH(e,n),e$(l=s_.createElement("script")),sa(l,"link",e),s_.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},t.set(r,l))}}};var s_="undefined"==typeof document?null:document;function sF(e,n,t){if(s_&&"string"==typeof n&&n){var r=nn(n);r='link[rel="'+e+'"][href="'+r+'"]',"string"==typeof t&&(r+='[crossorigin="'+t+'"]'),sN.has(r)||(sN.add(r),e={rel:e,crossOrigin:t,href:n},null===s_.querySelector(r)&&(sa(n=s_.createElement("link"),"link",e),e$(n),s_.head.appendChild(n)))}}function sD(e,n,t,r){var l=(l=$.current)?sT(l):null;if(!l)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof t.precedence&&"string"==typeof t.href?(n=sM(t.href),(r=(t=eQ(l).hoistableStyles).get(n))||(r={type:"style",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===t.rel&&"string"==typeof t.href&&"string"==typeof t.precedence){e=sM(t.href);var a,o,u,s,c=eQ(l).hoistableStyles,f=c.get(e);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=l.querySelector(sO(e)))&&!c._p&&(f.instance=c,f.state.loading=5),sP.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},sP.set(e,t),c||(a=l,o=e,u=t,s=f.state,a.querySelector('link[rel="preload"][as="style"]['+o+"]")?s.loading=1:(s.preload=o=a.createElement("link"),o.addEventListener("load",function(){return s.loading|=1}),o.addEventListener("error",function(){return s.loading|=2}),sa(o,"link",u),e$(o),a.head.appendChild(o))))),n&&null===r)throw Error(i(528,""));return f}if(n&&null!==r)throw Error(i(529,""));return null;case"script":return n=t.async,"string"==typeof(t=t.src)&&n&&"function"!=typeof n&&"symbol"!=typeof n?(n=sR(t),(r=(t=eQ(l).hoistableScripts).get(n))||(r={type:"script",instance:null,count:0,state:null},t.set(n,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function sM(e){return'href="'+nn(e)+'"'}function sO(e){return'link[rel="stylesheet"]['+e+"]"}function sA(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function sR(e){return'[src="'+nn(e)+'"]'}function sI(e){return"script[async]"+e}function sU(e,n,t){if(n.count++,null===n.instance)switch(n.type){case"style":var r=e.querySelector('style[data-href~="'+nn(t.href)+'"]');if(r)return n.instance=r,e$(r),r;var l=p({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return e$(r=(e.ownerDocument||e).createElement("style")),sa(r,"style",l),sV(r,t.precedence,e),n.instance=r;case"stylesheet":l=sM(t.href);var a=e.querySelector(sO(l));if(a)return n.state.loading|=4,n.instance=a,e$(a),a;r=sA(t),(l=sP.get(l))&&sj(r,l),e$(a=(e.ownerDocument||e).createElement("link"));var o=a;return o._p=new Promise(function(e,n){o.onload=e,o.onerror=n}),sa(a,"link",r),n.state.loading|=4,sV(a,t.precedence,e),n.instance=a;case"script":if(a=sR(t.src),l=e.querySelector(sI(a)))return n.instance=l,e$(l),l;return r=t,(l=sP.get(a))&&sH(r=p({},t),l),e$(l=(e=e.ownerDocument||e).createElement("script")),sa(l,"link",r),e.head.appendChild(l),n.instance=l;case"void":return null;default:throw Error(i(443,n.type))}else"stylesheet"===n.type&&0==(4&n.state.loading)&&(r=n.instance,n.state.loading|=4,sV(r,t.precedence,e));return n.instance}function sV(e,n,t){for(var r=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,a=l,o=0;o title"):null)}function sW(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var sq=null;function sK(){}function sY(){if(this.count--,0===this.count){if(this.stylesheets)sG(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sX=null;function sG(e,n){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sX=new Map,n.forEach(sZ,e),sX=null,sY.call(e))}function sZ(e,n){if(!(4&n.state.loading)){var t=sX.get(e);if(t)var r=t.get(null);else{t=new Map,sX.set(e,t);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{a.d(t,{$:()=>d});var s=a(5155),n=a(2115),r=a(6634),o=a(2085),l=a(9434);let i=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:a,variant:n,size:o,asChild:d=!1,...c}=e,f=d?r.DX:"button";return(0,s.jsx)(f,{className:(0,l.cn)(i({variant:n,size:o,className:a})),ref:t,...c})});d.displayName="Button"},514:(e,t,a)=>{a.d(t,{QN:()=>f,RL:()=>l,_e:()=>d,fP:()=>u,lr:()=>o,rr:()=>r,tj:()=>c});var s=a(8606);let n=async()=>{let e=[];return await s.A.setItem("chats",e),e},r=async()=>{let e=await s.A.getItem("chats");return e||(e=await n()),e},o=async e=>(await r()).find(t=>t.id===e),l=async(e,t)=>{let a=await r(),n={id:Date.now().toString(),title:e,messages:t,date:new Date().toDateString()};return a.push(n),await s.A.setItem("chats",a),n},i=async(e,t)=>{let a=await r(),n=a.findIndex(t=>t.id===e);if(-1!==n)return a[n]={...a[n],...t},await s.A.setItem("chats",a),a[n]},d=async e=>{let t=await r(),a=t.filter(t=>t.id!==e);return a.length!==t.length&&(await s.A.setItem("chats",a),!0)},c=async(e,t)=>{let a=await r(),n=a.findIndex(t=>t.id===e);if(-1===n)return;let o=Date.now().toString(),l={...t,id:o};return a[n].messages.push(l),await s.A.setItem("chats",a),a[n]},f=async(e,t)=>{let a=await r(),n=a.findIndex(t=>t.id===e);if(-1===n)return;let o=a[n].messages.findIndex(e=>e.id===t);if(-1!==o)return a[n].messages.splice(o,1),await s.A.setItem("chats",a),a[n]},u=async(e,t)=>{let a=await o(e);if(!a)return!1;let s={...a,title:t};return await i(e,s),!0}},1927:(e,t,a)=>{a.d(t,{L:()=>i});var s=a(5453),n=a(514),r=a(5533),o=a(6521);async function l(e){try{let t=function(e){let t="# ".concat(e.title||"Chat Export","\n\n");t+="**Date:** ".concat(new Date(e.date).toLocaleDateString(),"\n\n"),t+="[TOC]\n\n";let a=e.messages.filter(e=>"system"!==e.role);for(let e=0;e({selectedChat:null,selectedChatId:null,loadChat:async t=>{let a=await (0,n.lr)(t);if(a)return e({selectedChat:a,selectedChatId:t}),a;throw Error("Chat not found")},clearSelectedChat:()=>{e({selectedChat:null,selectedChatId:null})},sendMessage:async a=>{let{selectedChat:s}=t();if(!s)return"";console.log("Sending message",a);let o=await (0,n.tj)(s.id,a);if(o){let t=o.messages[o.messages.length-1].id;return e({selectedChat:o}),r.tO.emit(r.YV),t}return""},removeMessage:async a=>{let{selectedChat:s}=t();if(!s)return;let o=await (0,n.QN)(s.id,a);o&&(e({selectedChat:o}),r.tO.emit(r.YV))},updateChatName:async(a,s)=>{let o=await (0,n.fP)(a,s);if(o){let{selectedChat:n}=t();n&&n.id===a&&(e({selectedChat:{...n,title:s}}),r.tO.emit(r.RC))}return o},deleteChat:async e=>{let a=await (0,n._e)(e);if(a){let{selectedChat:a}=t();a&&a.id===e&&t().clearSelectedChat(),r.tO.emit(r.YV)}return a},downloadChat:async()=>{let{selectedChat:e}=t();if(!e)throw Error("No chat selected");try{await l(e)}catch(e){throw console.error("Failed to download chat:",e),e}}}))},4165:(e,t,a)=>{a.d(t,{Cf:()=>f,Es:()=>m,L3:()=>p,c7:()=>u,lG:()=>i,rr:()=>h});var s=a(5155),n=a(2115),r=a(9359),o=a(4416),l=a(9434);let i=r.bL;r.l9;let d=r.ZL;r.bm;let c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.hJ,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...n})});c.displayName=r.hJ.displayName;let f=n.forwardRef((e,t)=>{let{className:a,children:n,...i}=e;return(0,s.jsxs)(d,{children:[(0,s.jsx)(c,{}),(0,s.jsxs)(r.UC,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...i,children:[n,(0,s.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,s.jsx)(o.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=r.UC.displayName;let u=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...a})};u.displayName="DialogHeader";let m=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,l.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};m.displayName="DialogFooter";let p=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.hE,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",a),...n})});p.displayName=r.hE.displayName;let h=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.VY,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",a),...n})});h.displayName=r.VY.displayName},5533:(e,t,a)=>{a.d(t,{RC:()=>r,YV:()=>n,tO:()=>s});let s=new(a(662)).EventEmitter,n="CHAT_UPDATED",r="CHAT_RENAMED"},6424:(e,t,a)=>{a.d(t,{F:()=>l});var s=a(5155),n=a(2115),r=a(6542),o=a(9434);let l=n.forwardRef((e,t)=>{let{className:a,children:n,...l}=e;return(0,s.jsxs)(r.bL,{ref:t,className:(0,o.cn)("relative overflow-hidden",a),...l,children:[(0,s.jsx)(r.LM,{className:"h-full w-full rounded-[inherit]",children:n}),(0,s.jsx)(i,{}),(0,s.jsx)(r.OK,{})]})});l.displayName=r.bL.displayName;let i=n.forwardRef((e,t)=>{let{className:a,orientation:n="vertical",...l}=e;return(0,s.jsx)(r.VM,{ref:t,orientation:n,className:(0,o.cn)("flex touch-none select-none transition-colors","vertical"===n&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===n&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",a),...l,children:(0,s.jsx)(r.lr,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=r.VM.displayName},7481:(e,t,a)=>{a.d(t,{dj:()=>u});var s=a(2115);let n=0,r=new Map,o=e=>{if(r.has(e))return;let t=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?o(a):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=l(d,e),i.forEach(e=>{e(d)})}function f(e){let{...t}=e,a=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||s()}}}),{id:a,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function u(){let[e,t]=s.useState(d);return s.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:f,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},8382:(e,t,a)=>{a.d(t,{CG:()=>c,cj:()=>d,h:()=>p});var s=a(5155),n=a(2115),r=a(9359),o=a(2085),l=a(4416),i=a(9434);let d=r.bL,c=r.l9;r.bm;let f=r.ZL,u=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.hJ,{className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...n,ref:t})});u.displayName=r.hJ.displayName;let m=(0,o.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),p=n.forwardRef((e,t)=>{let{side:a="right",className:n,children:o,...d}=e;return(0,s.jsxs)(f,{children:[(0,s.jsx)(u,{}),(0,s.jsxs)(r.UC,{ref:t,className:(0,i.cn)(m({side:a}),n),...d,children:[o,(0,s.jsxs)(r.bm,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(l.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});p.displayName=r.UC.displayName,n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.hE,{ref:t,className:(0,i.cn)("text-lg font-semibold text-foreground",a),...n})}).displayName=r.hE.displayName,n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.VY,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...n})}).displayName=r.VY.displayName},9434:(e,t,a)=>{a.d(t,{cn:()=>r});var s=a(2596),n=a(9688);function r(){for(var e=arguments.length,t=Array(e),a=0;a{"use strict";n.d(t,{oz:()=>nL});var r={};n.r(r),n.d(r,{boolean:()=>g,booleanish:()=>y,commaOrSpaceSeparated:()=>w,commaSeparated:()=>b,number:()=>x,overloadedBoolean:()=>v,spaceSeparated:()=>k});var l={};n.r(l),n.d(l,{attentionMarkers:()=>tT,contentInitial:()=>tb,disable:()=>tP,document:()=>tk,flow:()=>tS,flowInitial:()=>tw,insideSpan:()=>tE,string:()=>tC,text:()=>tI});let i=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a={};function u(e,t){return((t||a).jsx?o:i).test(e)}let s=/[ \t\n\f\r]/g;function c(e){return""===e.replace(s,"")}class f{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function p(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new f(n,r,t)}function h(e){return e.toLowerCase()}f.prototype.normal={},f.prototype.property={},f.prototype.space=void 0;class d{constructor(e,t){this.attribute=t,this.property=e}}d.prototype.attribute="",d.prototype.booleanish=!1,d.prototype.boolean=!1,d.prototype.commaOrSpaceSeparated=!1,d.prototype.commaSeparated=!1,d.prototype.defined=!1,d.prototype.mustUseProperty=!1,d.prototype.number=!1,d.prototype.overloadedBoolean=!1,d.prototype.property="",d.prototype.spaceSeparated=!1,d.prototype.space=void 0;let m=0,g=S(),y=S(),v=S(),x=S(),k=S(),b=S(),w=S();function S(){return 2**++m}let C=Object.keys(r);class I extends d{constructor(e,t,n,l){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",l),"number"==typeof n)for(;++i"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function P(e,t){return t in e?e[t]:t}function A(e,t){return P(e,t.toLowerCase())}let L=E({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:b,acceptCharset:k,accessKey:k,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:k,autoFocus:g,autoPlay:g,blocking:k,capture:null,charSet:null,checked:g,cite:null,className:k,cols:x,colSpan:null,content:null,contentEditable:y,controls:g,controlsList:k,coords:x|b,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:k,height:x,hidden:v,high:x,href:null,hrefLang:null,htmlFor:k,httpEquiv:k,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:k,itemRef:k,itemScope:g,itemType:k,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,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:g,optimum:x,pattern:null,ping:k,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:k,required:g,reversed:g,rows:x,rowSpan:x,sandbox:k,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:y,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:k,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:A}),D=E({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:w,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:k,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:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,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:b,g2:b,glyphName:b,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:w,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,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:x,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:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:k,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:w,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:w,rev:w,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:w,requiredFeatures:w,requiredFonts:w,requiredFormats:w,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:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:w,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:w,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:w,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:P}),M=E({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),z=E({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:A}),O=E({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),N=p([T,L,M,z,O],"html"),F=p([T,D,M,z,O],"svg"),_=/[A-Z]/g,R=/-[a-z]/g,j=/^data[-\w.:]+$/i;function B(e){return"-"+e.toLowerCase()}function H(e){return e.charAt(1).toUpperCase()}let U={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var V=n(3724);let q=Y("end"),W=Y("start");function Y(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function K(e){return e&&"object"==typeof e?"position"in e||"type"in e?$(e.position):"start"in e||"end"in e?$(e):"line"in e||"column"in e?Q(e):"":""}function Q(e){return X(e&&e.line)+":"+X(e&&e.column)}function $(e){return Q(e&&e.start)+"-"+Q(e&&e.end)}function X(e){return e&&"number"==typeof e?e:1}class J extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",l={},i=!1;if(t&&(l="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!l.cause&&e&&(i=!0,r=e.message,l.cause=e),!l.ruleId&&!l.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?l.ruleId=n:(l.source=n.slice(0,e),l.ruleId=n.slice(e+1))}if(!l.place&&l.ancestors&&l.ancestors){let e=l.ancestors[l.ancestors.length-1];e&&(l.place=e.position)}let o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=o?o.line:void 0,this.name=K(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=i&&l.cause&&"string"==typeof l.cause.stack?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}J.prototype.file="",J.prototype.name="",J.prototype.reason="",J.prototype.message="",J.prototype.stack="",J.prototype.column=void 0,J.prototype.line=void 0,J.prototype.ancestors=void 0,J.prototype.cause=void 0,J.prototype.fatal=void 0,J.prototype.place=void 0,J.prototype.ruleId=void 0,J.prototype.source=void 0;let Z={}.hasOwnProperty,G=new Map,ee=/[A-Z]/g,et=new Set(["table","tbody","thead","tfoot","tr"]),en=new Set(["td","th"]),er="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function el(e,t,n){var r;return"element"===t.type?function(e,t,n){let r=e.schema,l=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=F),e.ancestors.push(t);let i=eu(e,t.tagName,!1),o=function(e,t){let n,r;let l={};for(r in t.properties)if("children"!==r&&Z.call(t.properties,r)){let i=function(e,t,n){let r=function(e,t){let n=h(t),r=t,l=d;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&j.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(R,H);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!R.test(e)){let n=e.replace(_,B);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}l=I}return new l(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return V(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new J("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=er+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)Z.call(e,t)&&(n[function(e){let t=e.replace(ee,ec);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?U[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(i){let[r,o]=i;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&en.has(t.tagName)?n=o:l[r]=o}}return n&&((l.style||(l.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),l}(e,t),a=ea(e,t);return et.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&c(e.value):c(e))})),ei(e,o,i,t),eo(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}es(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,l=r;"svg"===t.name&&"html"===r.space&&(e.schema=F),e.ancestors.push(t);let i=null===t.name?e.Fragment:eu(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let l=t.expression;l.type;let i=l.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else es(e,t.position)}else{let l;let i=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,l=e.evaluater.evaluateExpression(t.expression)}else es(e,t.position)}else l=null===r.value||r.value;n[i]=l}return n}(e,t),a=ea(e,t);return ei(e,o,i,t),eo(o,a),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);es(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return eo(r,ea(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?(r=0,t.value):void 0}function ei(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eo(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ea(e,t){let n=[],r=-1,l=e.passKeys?new Map:G;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(l=Array.from(r)).unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o0?(eg(e,e.length,0,t),e):t}class ev{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&ex(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),ex(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ex(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e-1&&e.test(String.fromCharCode(t))}}function eN(e,t,n,r){let l=r?r-1:Number.POSITIVE_INFINITY,i=0;return function(r){return eD(r)?(e.enter(n),function r(o){return eD(o)&&i++r))return;let a=l.events.length,u=a;for(;u--;)if("exit"===l.events[u][0]&&"chunkFlow"===l.events[u][1].type){if(e){n=l.events[u][1].end;break}e=!0}for(g(o),i=a;it;){let t=i[n];l.containerState=t[1],t[0].exit.call(l,e)}i.length=t}function y(){t.write([null]),n=void 0,t=void 0,l.containerState._closeFlow=void 0}}},eR={tokenize:function(e,t,n){return eN(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},ej={partial:!0,tokenize:function(e,t,n){return function(t){return eD(t)?eN(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eA(e)?t(e):n(e)}}},eB={resolve:function(e){return ek(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?l(t):eA(t)?e.check(eH,i,l)(t):(e.consume(t),r)}function l(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eH={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eN(e,l,"linePrefix")};function l(l){if(null===l||eA(l))return n(l);let i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}},eU={tokenize:function(e){let t=this,n=e.attempt(ej,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,eN(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eB,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},eV={resolveAll:eK()},eq=eY("string"),eW=eY("text");function eY(e){return{resolveAll:eK("text"===e?eQ:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],l=t.attempt(r,i,o);return i;function i(e){return u(e)?l(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),a}function a(e){return u(e)?(t.exit("data"),l(e)):(t.consume(e),a)}function u(e){if(null===e)return!0;let t=r[e],l=-1;if(t)for(;++l=3&&(null===o||eA(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},eX={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ej,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eN(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eD(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(eZ,t,l)(n))});function l(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,eN(e,e.attempt(eX,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,l=r.events[r.events.length-1],i=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,o=0;return function(t){let l=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===l?!r.containerState.marker||t===r.containerState.marker:eE(t)){if(r.containerState.type||(r.containerState.type=l,e.enter(l,{_container:!0})),"listUnordered"===l)return e.enter("listItemPrefix"),42===t||45===t?e.check(e$,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(l){return eE(l)&&++o<10?(e.consume(l),t):(!r.interrupt||o<2)&&(r.containerState.marker?l===r.containerState.marker:41===l||46===l)?(e.exit("listItemValue"),a(l)):n(l)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ej,r.interrupt?n:u,e.attempt(eJ,c,s))}function u(e){return r.containerState.initialBlankLine=!0,i++,c(e)}function s(t){return eD(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eJ={partial:!0,tokenize:function(e,t,n){let r=this;return eN(e,function(e){let l=r.events[r.events.length-1];return!eD(e)&&l&&"listItemPrefixWhitespace"===l[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},eZ={partial:!0,tokenize:function(e,t,n){let r=this;return eN(e,function(e){let l=r.events[r.events.length-1];return l&&"listItemIndent"===l[1].type&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},eG={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eD(t)?eN(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)};function l(r){return e.attempt(eG,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),l}return n(t)};function l(n){return eD(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function e1(e,t,n,r,l,i,o,a,u){let s=u||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(l),e.enter(i),e.consume(t),e.exit(i),f):null===t||32===t||41===t||eI(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),d(t))};function f(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||eA(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function d(l){return!c&&(null===l||41===l||eL(l))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(l)):c999||null===f||91===f||93===f&&!o||94===f&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(i),e.enter(l),e.consume(f),e.exit(l),e.exit(r),t):eA(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||eA(t)||u++>999?(e.exit("chunkString"),s(t)):(e.consume(t),o||(o=!eD(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function e2(e,t,n,r,l,i){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(l),e.consume(t),e.exit(l),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(l),e.consume(n),e.exit(l),e.exit(r),t):(e.enter(i),u(n))}function u(t){return t===o?(e.exit(i),a(o)):null===t?n(t):eA(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eN(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(t))}function s(t){return t===o||null===t||eA(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:s)}function c(t){return t===o||92===t?(e.consume(t),s):s(t)}}function e4(e,t){let n;return function r(l){return eA(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):eD(l)?eN(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}function e3(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let e5={partial:!0,tokenize:function(e,t,n){return function(t){return eL(t)?e4(e,r)(t):n(t)};function r(t){return e2(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function l(t){return eD(t)?eN(e,i,"whitespace")(t):i(t)}function i(e){return null===e||eA(e)?t(e):n(e)}}},e6={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eN(e,l,"linePrefix",5)(t)};function l(t){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?function t(n){return null===n?i(n):eA(n)?e.attempt(e9,t,i)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eA(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function i(n){return e.exit("codeIndented"),t(n)}}},e9={partial:!0,tokenize:function(e,t,n){let r=this;return l;function l(t){return r.parser.lazy[r.now().line]?n(t):eA(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):eN(e,i,"linePrefix",5)(t)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):eA(e)?l(e):n(e)}}},e7={name:"setextUnderline",resolveTo:function(e,t){let n,r,l,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),l||"definition"!==e[i][1].type||(l=i);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",o,t]),e.splice(l+1,0,["exit",e[n][1],t]),e[n][1].end={...e[l][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r;let l=this;return function(t){var o;let a,u=l.events.length;for(;u--;)if("lineEnding"!==l.events[u][1].type&&"linePrefix"!==l.events[u][1].type&&"content"!==l.events[u][1].type){a="paragraph"===l.events[u][1].type;break}return!l.parser.lazy[l.now().line]&&(l.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eD(n)?eN(e,i,"lineSuffix")(n):i(n))}(o)):n(t)};function i(r){return null===r||eA(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},e8=["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"],te=["pre","script","style","textarea"],tt={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ej,t,n)}}},tn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eA(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):n(t)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l)};function l(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tl={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let l=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),eD(t)?eN(e,u,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(l){return l===r?(i++,e.consume(l),t):i>=a?(e.exit("codeFencedFenceSequence"),eD(l)?eN(e,s,"whitespace")(l):s(l)):n(l)}(t)):n(t)}function s(r){return null===r||eA(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){return function(t){let i=l.events[l.events.length-1];return o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(l){return l===r?(a++,e.consume(l),t):a<3?n(l):(e.exit("codeFencedFenceSequence"),eD(l)?eN(e,u,"whitespace")(l):u(l))}(t)}(t)};function u(i){return null===i||eA(i)?(e.exit("codeFencedFence"),l.interrupt?t(i):e.check(tr,c,d)(i)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||eA(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(l)):eD(l)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eN(e,s,"whitespace")(l)):96===l&&l===r?n(l):(e.consume(l),t)}(i))}function s(t){return null===t||eA(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(l){return null===l||eA(l)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(l)):96===l&&l===r?n(l):(e.consume(l),t)}(t))}function c(t){return e.attempt(i,d,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&eD(t)?eN(e,h,"linePrefix",o+1)(t):h(t)}function h(t){return null===t||eA(t)?e.check(tr,c,d)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eA(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function d(n){return e.exit("codeFenced"),t(n)}}},ti=document.createElement("i");function to(e){let t="&"+e+";";ti.innerHTML=t;let n=ti.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let ta={name:"characterReference",tokenize:function(e,t,n){let r,l;let i=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,l=eS,s(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,l=eT,s):(e.enter("characterReferenceValue"),r=7,l=eE,s(t))}function s(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return l!==eS||to(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return l(a)&&o++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[c][1].start};tv(f,-a),tv(p,a),i={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:p},l={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[n][1].end={...i.start},e[c][1].start={...o.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ey(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ey(u,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",l,t]]),u=ey(u,tc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=ey(u,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,u=ey(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):s=0,eg(e,n-1,c-n+3,u),c=n+u.length-s-2;break}}for(c=-1;++ci&&"whitespace"===e[l][1].type&&(l-=2),"atxHeadingSequence"===e[l][1].type&&(i===l-1||l-4>i&&"whitespace"===e[l-2][1].type)&&(l-=i+1===l?2:4),l>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[l][1].end},r={type:"chunkText",start:e[i][1].start,end:e[l][1].end,contentType:"text"},eg(e,i,l-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(l){var i;return e.enter("atxHeading"),i=l,e.enter("atxHeadingSequence"),function l(i){return 35===i&&r++<6?(e.consume(i),l):null===i||eL(i)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eA(r)?(e.exit("atxHeading"),t(r)):eD(r)?eN(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eL(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(i)):n(i)}(i)}}},42:e$,45:[e7,e$],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,l,i,o,a;let u=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),l=!0,h):63===o?(e.consume(o),r=3,u.interrupt?t:M):ew(o)?(e.consume(o),i=String.fromCharCode(o),d):n(o)}function c(l){return 45===l?(e.consume(l),r=2,f):91===l?(e.consume(l),r=5,o=0,p):ew(l)?(e.consume(l),r=4,u.interrupt?t:M):n(l)}function f(r){return 45===r?(e.consume(r),u.interrupt?t:M):n(r)}function p(r){let l="CDATA[";return r===l.charCodeAt(o++)?(e.consume(r),o===l.length)?u.interrupt?t:C:p:n(r)}function h(t){return ew(t)?(e.consume(t),i=String.fromCharCode(t),d):n(t)}function d(o){if(null===o||47===o||62===o||eL(o)){let a=47===o,s=i.toLowerCase();return!a&&!l&&te.includes(s)?(r=1,u.interrupt?t(o):C(o)):e8.includes(i.toLowerCase())?(r=6,a)?(e.consume(o),m):u.interrupt?t(o):C(o):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(o):l?function t(n){return eD(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||eS(o)?(e.consume(o),i+=String.fromCharCode(o),d):n(o)}function m(r){return 62===r?(e.consume(r),u.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||ew(t)?(e.consume(t),y):eD(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),x):eD(t)?(e.consume(t),v):g(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,k):eD(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eL(n)?v(n):(e.consume(n),t)}(t)}function k(t){return t===a?(e.consume(t),a=null,b):null===t||eA(t)?n(t):(e.consume(t),k)}function b(e){return 47===e||62===e||eD(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||eA(t)?C(t):eD(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),A):62===t&&4===r?(e.consume(t),z):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),D):eA(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tt,O,I)(t)):null===t||eA(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),C)}function I(t){return e.check(tn,E,O)(t)}function E(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||eA(t)?I(t):(e.enter("htmlFlowData"),C(t))}function P(t){return 45===t?(e.consume(t),M):C(t)}function A(t){return 47===t?(e.consume(t),i="",L):C(t)}function L(t){if(62===t){let n=i.toLowerCase();return te.includes(n)?(e.consume(t),z):C(t)}return ew(t)&&i.length<8?(e.consume(t),i+=String.fromCharCode(t),L):C(t)}function D(t){return 93===t?(e.consume(t),M):C(t)}function M(t){return 62===t?(e.consume(t),z):45===t&&2===r?(e.consume(t),M):C(t)}function z(t){return null===t||eA(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),z)}function O(n){return e.exit("htmlFlow"),t(n)}}},61:e7,95:e$,96:tl,126:tl},tC={38:ta,92:tu},tI={[-5]:ts,[-4]:ts,[-3]:ts,33:tm,38:ta,42:ty,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(t){return ew(t)?(e.consume(t),i):64===t?n(t):a(t)}function i(t){return 43===t||45===t||46===t||eS(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||eS(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eI(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),u):eC(t)?(e.consume(t),a):n(t)}function u(l){return eS(l)?function l(i){return 46===i?(e.consume(i),r=0,u):62===i?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(i){if((45===i||eS(i))&&r++<63){let n=45===i?t:l;return e.consume(i),n}return n(i)}(i)}(l):n(l)}}},{name:"htmlText",tokenize:function(e,t,n){let r,l,i;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),k):63===t?(e.consume(t),v):ew(t)?(e.consume(t),w):n(t)}function u(t){return 45===t?(e.consume(t),s):91===t?(e.consume(t),l=0,h):ew(t)?(e.consume(t),y):n(t)}function s(t){return 45===t?(e.consume(t),p):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),f):eA(t)?(i=c,L(t)):(e.consume(t),c)}function f(t){return 45===t?(e.consume(t),p):c(t)}function p(e){return 62===e?A(e):45===e?f(e):c(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(l++)?(e.consume(t),l===r.length?d:h):n(t)}function d(t){return null===t?n(t):93===t?(e.consume(t),m):eA(t)?(i=d,L(t)):(e.consume(t),d)}function m(t){return 93===t?(e.consume(t),g):d(t)}function g(t){return 62===t?A(t):93===t?(e.consume(t),g):d(t)}function y(t){return null===t||62===t?A(t):eA(t)?(i=y,L(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),x):eA(t)?(i=v,L(t)):(e.consume(t),v)}function x(e){return 62===e?A(e):v(e)}function k(t){return ew(t)?(e.consume(t),b):n(t)}function b(t){return 45===t||eS(t)?(e.consume(t),b):function t(n){return eA(n)?(i=t,L(n)):eD(n)?(e.consume(n),t):A(n)}(t)}function w(t){return 45===t||eS(t)?(e.consume(t),w):47===t||62===t||eL(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),A):58===t||95===t||ew(t)?(e.consume(t),C):eA(t)?(i=S,L(t)):eD(t)?(e.consume(t),S):A(t)}function C(t){return 45===t||46===t||58===t||95===t||eS(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),I):eA(n)?(i=t,L(n)):eD(n)?(e.consume(n),t):S(n)}(t)}function I(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,E):eA(t)?(i=I,L(t)):eD(t)?(e.consume(t),I):(e.consume(t),T)}function E(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):eA(t)?(i=E,L(t)):(e.consume(t),E)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eL(t)?S(t):(e.consume(t),T)}function P(e){return 47===e||62===e||eL(e)?S(e):n(e)}function A(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function L(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return eD(t)?eN(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),i(t)}}}],91:tx,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eA(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tu],93:tf,95:ty,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,l=3;if(("lineEnding"===e[3][1].type||"space"===e[l][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=l;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tM(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tL(n.slice(t?2:1),t?16:10)}return to(n)||e}let tz={}.hasOwnProperty;function tO(e){return{line:e.line,column:e.column,offset:e.offset}}function tN(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+K({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+K({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+K({start:t.start,end:t.end})+") is still open")}function tF(e){let t=this;t.parser=function(n){var r,i;let o,a,u,s;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:s,autolinkEmail:s,atxHeading:r(d),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:s,characterReference:s,codeFenced:r(h),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:r(h,l),codeText:r(function(){return{type:"inlineCode",value:""}},l),codeTextData:s,data:s,codeFlowValue:s,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,l),htmlFlowData:s,htmlText:r(g,l),htmlTextData:s,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:l,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:r(d),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tL(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=to(n);let l=this.stack[this.stack.length-1];l.value+=t},characterReference:function(e){this.stack.pop().position.end=tO(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e3(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(f),hardBreakTrailing:o(f),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(tD,tM),n.identifier=e3(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tO(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(s.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=e3(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};(function e(t,n){let r=-1;for(;++r0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||tN).call(o,void 0,e[0])}for(r.position={start:tO(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tO(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c-1){let e=n[0];"string"==typeof e?n[0]=e.slice(l):n.shift()}o>0&&n.push(e[i].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:l,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:l,offset:i}}function h(e,t){t.restore()}function d(e,t){return function(n,l,i){var o;let c,f,h,d;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,f=0,0===e.length)?i:y(e[f])}function y(e){return function(n){return(d=function(){let e=p(),t=s.previous,n=s.currentConstruct,l=s.events.length,i=Array.from(a);return{from:l,restore:function(){r=e,s.previous=t,s.currentConstruct=n,s.events.length=l,a=i,g()}}}(),h=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(s),t):s,u,v,x)(n)}}function v(t){return e(h,d),l}function x(e){return(d.restore(),++f{let n=(t,n)=>(e.set(n,t),t),r=l=>{if(e.has(l))return e.get(l);let[i,o]=t[l];switch(i){case 0:case -1:return n(o,l);case 1:{let e=n([],l);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},l);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),l);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),l)}case 5:{let e=n(new Map,l);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,l);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new t_[e](t),l)}case 8:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new t_[i](o),l)};return r},tj=e=>tR(new Map,e)(0),{toString:tB}={},{keys:tH}=Object,tU=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tB.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},tV=([e,t])=>0===e&&("function"===t||"symbol"===t),tq=(e,t,n,r)=>{let l=(e,t)=>{let l=r.push(e)-1;return n.set(t,l),l},i=r=>{if(n.has(r))return n.get(r);let[o,a]=tU(r);switch(o){case 0:{let t=r;switch(a){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+a);t=null;break;case"undefined":return l([-1],r)}return l([o,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),l([a,[...e]],r)}let e=[],t=l([o,e],r);for(let t of r)e.push(i(t));return t}case 2:{if(a)switch(a){case"BigInt":return l([a,r.toString()],r);case"Boolean":case"Number":case"String":return l([a,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());let n=[],u=l([o,n],r);for(let t of tH(r))(e||!tV(tU(r[t])))&&n.push([i(t),i(r[t])]);return u}case 3:return l([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return l([o,{source:e,flags:t}],r)}case 5:{let t=[],n=l([o,t],r);for(let[n,l]of r)(e||!(tV(tU(n))||tV(tU(l))))&&t.push([i(n),i(l)]);return n}case 6:{let t=[],n=l([o,t],r);for(let n of r)(e||!tV(tU(n)))&&t.push(i(n));return n}}let{message:u}=r;return l([o,{name:a,message:u}],r)};return i},tW=(e,{json:t,lossy:n}={})=>{let r=[];return tq(!(t||n),!!t,new Map,r)(e),r},tY="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?tj(tW(e,t)):structuredClone(e):(e,t)=>tj(tW(e,t));function tK(e){let t=[],n=-1,r=0,l=0;for(;++n55295&&i<57344){let t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function tQ(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function t$(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let tX=function(e){var t,n;if(null==e)return tZ;if("function"==typeof e)return tJ(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n":"")+")"})}return c;function c(){var s;let c,f,p,h=tG;if((!t||i(l,a,u[u.length-1]||void 0))&&!1===(h=Array.isArray(s=n(l,u))?s:"number"==typeof s?[!0,s]:null==s?tG:[s])[0])return h;if("children"in l&&l.children&&l.children&&"skip"!==h[0])for(f=(r?l.children.length:-1)+o,p=u.concat(l);f>-1&&f1:t}function t4(e,t,n){let r=0,l=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(l-1);for(;9===t||32===t;)l--,t=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}let t3={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",l=String(t.identifier).toUpperCase(),i=tK(l.toLowerCase()),o=e.footnoteOrder.indexOf(l),a=e.footnoteCounts.get(l);void 0===a?(a=0,e.footnoteOrder.push(l),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(l,a);let u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,u);let s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t0(e,t);let l={src:tK(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(l.title=r.title);let i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:tK(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t0(e,t);let l={href:tK(r.url||"")};null!==r.title&&void 0!==r.title&&(l.title=r.title);let i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:tK(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),l=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=W(t.children[1]),o=q(t.children[t.children.length-1]);i&&o&&(r.position={start:i,end:o}),l.push(r)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,l=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,o=i?i.length:t.children.length,a=-1,u=[];for(;++a0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(t4(t.slice(l),l>0,!1)),i.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t5,yaml:t5,definition:t5,footnoteDefinition:t5};function t5(){}let t6={}.hasOwnProperty,t9={};function t7(e,t){e.position&&(t.position=function(e){let t=W(e),n=q(e);if(t&&n)return{start:t,end:n}}(e))}function t8(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,l=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&l&&Object.assign(n.properties,tY(l)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function ne(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function nt(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nn(e,t){let n=function(e,t){let n=t||t9,r=new Map,l=new Map,i={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(u,c);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+s+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(u,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=i[i.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else i.push(...f);let d={type:"element",tagName:"li",properties:{id:t+"fn-"+s},children:e.wrap(i,!0)};e.patch(l,d),a.push(d)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...tY(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:"\n"},l),i}function nr(e,t){return e&&"run"in e?async function(n,r){let l=nn(n,{file:r,...t});await e.run(l,r)}:function(n,r){return nn(n,{file:r,...e||t})}}function nl(e){if(e)throw e}var ni=n(3360);function no(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let na={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');nu(e);let r=0,l=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else l<0&&(n=!0,l=i+1);return l<0?"":e.slice(r,l)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(l=i):(a=-1,l=o));return r===l?l=o:l<0&&(l=e.length),e.slice(r,l)},dirname:function(e){let t;if(nu(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;nu(e);let n=e.length,r=-1,l=0,i=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){l=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||r<0||0===o||1===o&&i===r-1&&i===l+1?"":e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=l.lastIndexOf("/"))!==l.length-1){r<0?(l="",i=0):i=(l=l.slice(0,r)).length-1-l.lastIndexOf("/"),o=u,a=0;continue}}else if(l.length>0){l="",i=0,o=u,a=0;continue}}t&&(l=l.length>0?l+"/..":"..",i=2)}else l.length>0?l+="/"+e.slice(o+1,u):l=e.slice(o+1,u),i=u-o-1;o=u,a=0}else 46===n&&a>-1?a++:a=-1}return l}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function nu(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let ns={cwd:function(){return"/"}};function nc(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nf=["history","path","basename","stem","extname","dirname"];class np{constructor(e){let t,n;t=e?nc(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":ns.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rt.length;o&&t.push(r);try{i=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(i&&i.then&&"function"==typeof i.then?i.then(l,r):i instanceof Error?r(i):l(i))};function r(e,...l){n||(n=!0,t(e,...l))}function l(e){r(null,e)}})(a,l)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nv,t=-1;for(;++t0){let[r,...i]=t,o=n[l][1];no(o)&&no(r)&&(r=ni(!0,o,r)),n[l]=[e,r,...i]}}}}let nx=new nv().freeze();function nk(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nb(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nw(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nS(e){if(!no(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nC(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nI(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new np(e)}let nE=[],nT={allowDangerousHtml:!0},nP=/^(https?|ircs?|mailto|xmpp)$/i,nA=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nL(e){let t=function(e){let t=e.rehypePlugins||nE,n=e.remarkPlugins||nE,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...nT}:nT;return nx().use(tF).use(n).use(nr,r).use(t)}(e),n=function(e){let t=e.children||"",n=new np;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,l=t.components,i=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||nD;for(let e of nA)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return t1(e,function(e,t,l){if("raw"===e.type&&l&&"number"==typeof t)return o?l.children.splice(t,1):l.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ef)if(Object.hasOwn(ef,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ef[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,l)),o&&l&&"number"==typeof t)return a&&e.children?l.children.splice(t,1,...e.children):l.children.splice(t,1),t}}),function(e,t){var n,r,l,i,o;let a;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let u=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=u,r=t.jsxDEV,a=function(e,t,l,i){let o=Array.isArray(l.children),a=W(e);return r(t,l,i,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");l=0,i=t.jsx,o=t.jsxs,a=function(e,t,n,r){let l=Array.isArray(n.children)?o:i;return r?l(t,n,r):l(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:u,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?F:N,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=el(s,e,void 0);return c&&"string"!=typeof c?c:s.create(e,s.Fragment,{children:c||void 0},void 0)}(e,{Fragment:ep.Fragment,components:l,ignoreInvalidStyle:!0,jsx:ep.jsx,jsxs:ep.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function nD(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return -1===t||-1!==l&&t>l||-1!==n&&t>n||-1!==r&&t>r||nP.test(e.slice(0,t))?e:""}},1007:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},1154:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,l=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var s;return(void 0===t&&(t={}),!(s=e)||l.test(s)||n.test(s))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,u):e.replace(i,u)).replace(r,a))}},2486:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},3311:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},3360:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,l=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!l&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(l)return l(e,n).value}return e[n]};e.exports=function e(){var t,n,r,l,s,c,f=arguments[0],p=1,h=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},6301:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g;function s(e){return e?e.replace(u,""):""}e.exports=function(e,u){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];u=u||{};var c=1,f=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:c,column:f};return function(t){return t.position=new d(e),y(r),t}}function d(e){this.start=e,this.end={line:c,column:f},this.source=u.source}d.prototype.content=e;var m=[];function g(t){var n=Error(u.source+":"+c+":"+f+": "+t);if(n.reason=t,n.filename=u.source,n.line=c,n.column=f,n.source=e,u.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}return y(r),function(){var e,n=[];for(v(n);e=function(){var e=h(),n=y(l);if(n){if(x(),!y(i))return g("property missing ':'");var r=y(o),u=e({type:"declaration",property:s(n[0].replace(t,"")),value:r?s(r[0].replace(t,"")):""});return y(a),u}}();)!1!==e&&(n.push(e),v(n));return n}()}},7434:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},7924:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,l.default)(e),i="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,l=e.value;i?t(r,l,e):l&&((n=n||{})[r]=l)}}),n};var l=r(n(6301))}}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/684-9f376c0e2a3ae45e.js b/_backend/frontend/_next/static/chunks/684-9f376c0e2a3ae45e.js new file mode 100644 index 0000000000000000000000000000000000000000..f206210dfb6e0dc7e87a1452206b28e837ab2529 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/684-9f376c0e2a3ae45e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[684],{214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let n=r(6361),o=r(427),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:u}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+u};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useSyncDevRenderIndicator",{enumerable:!0,get:function(){return n}});let r=e=>e(),n=()=>r;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},427:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},589:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},666:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function u(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===u||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:u}catch(e){t=u}try{r="function"==typeof clearTimeout?clearTimeout:l}catch(e){r=l}}();var i=[],c=!1,s=-1;function f(){c&&n&&(c=!1,n.length?i=n.concat(i):s=-1,i.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=i.length;t;){for(n=i,i=[];++s1)for(var r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectBoundary:function(){return f},RedirectErrorBoundary:function(){return s}});let n=r(6966),o=r(5155),u=n._(r(2115)),l=r(8999),a=r(6825),i=r(2210);function c(e){let{redirect:t,reset:r,redirectType:n}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{n===i.RedirectType.push?o.push(t,{}):o.replace(t,{}),r()})},[t,n,r,o]),null}class s extends u.default.Component{static getDerivedStateFromError(e){if((0,i.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(c,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function f(e){let{children:t}=e,r=(0,l.useRouter)();return(0,o.jsx)(s,{router:r,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},708:(e,t)=>{"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTML_LIMITED_BOT_UA_RE:function(){return n.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return u},getBotType:function(){return i},isBot:function(){return a}});let n=r(5072),o=/Googlebot|Google-PageRenderer|AdsBot-Google|googleweblight|Storebot-Google/i,u=n.HTML_LIMITED_BOT_UA_RE.source;function l(e){return n.HTML_LIMITED_BOT_UA_RE.test(e)}function a(e){return o.test(e)||l(e)}function i(e){return o.test(e)?"dom":l(e)?"html":void 0}},878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return u}});let n=r(4758),o=r(3118);function u(e,t,r,u){let{tree:l,seedData:a,head:i,isRootRender:c}=r;if(null===a)return!1;if(c){let r=a[1];t.loading=a[3],t.rsc=r,t.prefetchRsc=null,(0,n.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,r,u);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return u},SearchParamsContext:function(){return o}});let n=r(2115),o=(0,n.createContext)(null),u=(0,n.createContext)(null),l=(0,n.createContext)(null)},894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return o}});let n=r(5155);function o(e){let{Component:t,searchParams:o,params:u,promises:l}=e;{let{createRenderSearchParamsFromClient:e}=r(7205),l=e(o),{createRenderParamsFromClient:a}=r(3558),i=a(u);return(0,n.jsx)(t,{params:i,searchParams:l})}}r(9837),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1127:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"matchSegment",{enumerable:!0,get:function(){return r}});let r=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1139:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1295:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(6966),o=r(5155),u=n._(r(2115)),l=r(5227);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assignLocation",{enumerable:!0,get:function(){return o}});let n=r(5929);function o(e,t){if(e.startsWith(".")){let r=t.origin+t.pathname;return new URL((r.endsWith("/")?r:r+"/")+e)}return new URL((0,n.addBasePath)(e),t.href)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1365:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{useReducer:function(){return a},useUnwrapState:function(){return l}});let n=r(6966)._(r(2115)),o=r(5122),u=r(300);function l(e){return(0,o.isThenable)(e)?(0,n.use)(e):e}function a(e){let[t,r]=n.default.useState(e.state),o=(0,u.useSyncDevRenderIndicator)();return[t,(0,n.useCallback)(t=>{o(()=>{e.dispatch(t,r)})},[e,o])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1426:(e,t,r)=>{"use strict";var n=r(9509),o=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),s=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.iterator,_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,g={};function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||_}function m(){}function O(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||_}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var E=O.prototype=new m;E.constructor=O,b(E,v.prototype),E.isPureReactComponent=!0;var R=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},j=Object.prototype.hasOwnProperty;function T(e,t,r,n,u,l){return{$$typeof:o,type:e,key:t,ref:void 0!==(r=l.ref)?r:null,props:l}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var M=/\/+/g;function w(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function x(){}function C(e,t,r){if(null==e)return e;var n=[],l=0;return!function e(t,r,n,l,a){var i,c,s,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case o:case u:d=!0;break;case h:return e((d=t._init)(t._payload),r,n,l,a)}}if(d)return a=a(t),d=""===l?"."+w(t,0):l,R(a)?(n="",null!=d&&(n=d.replace(M,"$&/")+"/"),e(a,r,n,"",function(e){return e})):null!=a&&(S(a)&&(i=a,c=n+(null==a.key||t&&t.key===a.key?"":(""+a.key).replace(M,"$&/")+"/")+d,a=T(i.type,c,void 0,void 0,void 0,i.props)),r.push(a)),1;d=0;var p=""===l?".":l+":";if(R(t))for(var _=0;_{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{STATIC_STALETIME_MS:function(){return p},createSeededPrefetchCacheEntry:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let n=r(8586),o=r(9818),u=r(9154);function l(e,t,r){let n=e.pathname;return(t&&(n+=e.search),r)?""+r+"%"+n:n}function a(e,t,r){return l(e,t===o.PrefetchKind.FULL,r)}function i(e){let{url:t,nextUrl:r,tree:n,prefetchCache:u,kind:a,allowAliasing:i=!0}=e,c=function(e,t,r,n,u){for(let a of(void 0===t&&(t=o.PrefetchKind.TEMPORARY),[r,null])){let r=l(e,!0,a),i=l(e,!1,a),c=e.search?r:i,s=n.get(c);if(s&&u){if(s.url.pathname===e.pathname&&s.url.search!==e.search)return{...s,aliased:!0};return s}let f=n.get(i);if(u&&e.search&&t!==o.PrefetchKind.FULL&&f&&!f.key.includes("%"))return{...f,aliased:!0}}if(t!==o.PrefetchKind.FULL&&u){for(let t of n.values())if(t.url.pathname===e.pathname&&!t.key.includes("%"))return{...t,aliased:!0}}}(t,a,r,u,i);return c?(c.status=h(c),c.kind!==o.PrefetchKind.FULL&&a===o.PrefetchKind.FULL&&c.data.then(e=>{if(!(Array.isArray(e.flightData)&&e.flightData.some(e=>e.isRootRender&&null!==e.seedData)))return s({tree:n,url:t,nextUrl:r,prefetchCache:u,kind:null!=a?a:o.PrefetchKind.TEMPORARY})}),a&&c.kind===o.PrefetchKind.TEMPORARY&&(c.kind=a),c):s({tree:n,url:t,nextUrl:r,prefetchCache:u,kind:a||o.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:r,prefetchCache:n,url:u,data:l,kind:i}=e,c=l.couldBeIntercepted?a(u,i,t):a(u,i),s={treeAtTimeOfPrefetch:r,data:Promise.resolve(l),kind:i,prefetchTime:Date.now(),lastUsedTime:Date.now(),staleTime:-1,key:c,status:o.PrefetchCacheEntryStatus.fresh,url:u};return n.set(c,s),s}function s(e){let{url:t,kind:r,tree:l,nextUrl:i,prefetchCache:c}=e,s=a(t,r),f=u.prefetchQueue.enqueue(()=>(0,n.fetchServerResponse)(t,{flightRouterState:l,nextUrl:i,prefetchKind:r}).then(e=>{let r;if(e.couldBeIntercepted&&(r=function(e){let{url:t,nextUrl:r,prefetchCache:n,existingCacheKey:o}=e,u=n.get(o);if(!u)return;let l=a(t,u.kind,r);return n.set(l,{...u,key:l}),n.delete(o),l}({url:t,existingCacheKey:s,nextUrl:i,prefetchCache:c})),e.prerendered){let t=c.get(null!=r?r:s);t&&(t.kind=o.PrefetchKind.FULL,-1!==e.staleTime&&(t.staleTime=e.staleTime))}return e})),d={treeAtTimeOfPrefetch:l,data:f,kind:r,prefetchTime:Date.now(),lastUsedTime:null,staleTime:-1,key:s,status:o.PrefetchCacheEntryStatus.fresh,url:t};return c.set(s,d),d}function f(e){for(let[t,r]of e)h(r)===o.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("0"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:r,lastUsedTime:n,staleTime:u}=e;return -1!==u?Date.now(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BrowserResolvedMetadata",{enumerable:!0,get:function(){return o}});let n=r(2115);function o(e){let{promise:t}=e,{metadata:r,error:o}=(0,n.use)(t);return o?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(427);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},1818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findSourceMapURL",{enumerable:!0,get:function(){return r}});let r=void 0;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return r}});let r={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let n=r(5637);function o(e,t,r){for(let o in r[1]){let u=r[1][o][0],l=(0,n.createRouterCacheKey)(u),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2115:(e,t,r)=>{"use strict";e.exports=r(1426)},2210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return o},RedirectType:function(){return u},isRedirectError:function(){return l}});let n=r(4420),o="NEXT_REDIRECT";var u=function(e){return e.push="push",e.replace="replace",e}({});function l(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,u]=t,l=t.slice(2,-2).join(";"),a=Number(t.at(-2));return r===o&&("replace"===u||"push"===u)&&"string"==typeof l&&!isNaN(a)&&a in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2223:(e,t)=>{"use strict";function r(e,t){var r=e.length;for(e.push(t);0>>1,o=e[n];if(0>>1;nu(i,r))cu(s,i)?(e[n]=s,e[c]=r,n=c):(e[n]=i,e[a]=r,n=a);else if(cu(s,r))e[n]=s,e[c]=r,n=c;else break}}return t}function u(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,b=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,O="undefined"!=typeof setImmediate?setImmediate:null;function E(e){for(var t=n(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,r(s,t);else break;t=n(f)}}function R(e){if(b=!1,E(e),!_){if(null!==n(s))_=!0,P||(P=!0,l());else{var t=n(f);null!==t&&A(R,t.startTime-e)}}}var P=!1,j=-1,T=5,S=-1;function M(){return!!g||!(t.unstable_now()-Se&&M());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,E(e),r=!0;break t}p===n(s)&&o(s),E(e)}else o(s);p=n(s)}if(null!==p)r=!0;else{var c=n(f);null!==c&&A(R,c.startTime-e),r=!1}}break e}finally{p=null,h=u,y=!1}r=void 0}}finally{r?l():P=!1}}}if("function"==typeof O)l=function(){O(w)};else if("undefined"!=typeof MessageChannel){var x=new MessageChannel,C=x.port2;x.port1.onmessage=w,l=function(){C.postMessage(null)}}else l=function(){v(w,0)};function A(e,r){j=v(function(){e(t.unstable_now())},r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125a?(e.sortIndex=u,r(f,e),null===n(s)&&e===n(f)&&(b?(m(j),j=-1):b=!0,A(R,u-a))):(e.sortIndex=i,r(s,e),_||y||(_=!0,P||(P=!0,l()))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},2312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let n=r(5952),o=r(6420);var u=o._("_maxConcurrency"),l=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,r;let o=new Promise((e,n)=>{t=e,r=n}),u=async()=>{try{n._(this,l)[l]++;let r=await e();t(r)}catch(e){r(e)}finally{n._(this,l)[l]--,n._(this,i)[i]()}};return n._(this,a)[a].push({promiseFn:o,task:u}),n._(this,i)[i](),o}bump(e){let t=n._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=n._(this,a)[a].splice(t,1)[0];n._(this,a)[a].unshift(e),n._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),n._(this,u)[u]=e,n._(this,l)[l]=0,n._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(n._(this,l)[l]0){var t;null==(t=n._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2332:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldRenderRootLevelErrorOverlay",{enumerable:!0,get:function(){return r}});let r=()=>{var e;return!!(null==(e=window.__next_root_layout_missing_tags)?void 0:e.length)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2561:(e,t)=>{"use strict";function r(e){var t;let[r,n,o,u]=e.slice(-4),l=e.slice(0,-4);return{pathToSegment:l.slice(0,-1),segmentPath:l,segment:null!=(t=l[l.length-1])?t:"",tree:r,seedData:n,head:o,isHeadPartial:u,isRootRender:4===e.length}}function n(e){return e.slice(2)}function o(e){return"string"==typeof e?e:e.map(r)}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getFlightDataPartsFromPath:function(){return r},getNextFlightSegmentPath:function(){return n},normalizeFlightData:function(){return o}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2669:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(9248)},2691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findHeadInCache",{enumerable:!0,get:function(){return o}});let n=r(5637);function o(e,t){return function e(t,r,o){if(0===Object.keys(r).length)return[t,o];if(r.children){let[u,l]=r.children,a=t.parallelRoutes.get("children");if(a){let t=(0,n.createRouterCacheKey)(u),r=a.get(t);if(r){let n=e(r,l,o+"/"+t);if(n)return n}}}for(let u in r){if("children"===u)continue;let[l,a]=r[u],i=t.parallelRoutes.get(u);if(!i)continue;let c=(0,n.createRouterCacheKey)(l),s=i.get(c);if(!s)continue;let f=e(s,a,o+"/"+c);if(f)return f}return null}(e,t,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2816:(e,t)=>{"use strict";function r(e){let t=parseInt(e.slice(0,2),16),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}function n(e,t){let r=Array(e.length);for(let n=0;n=6&&t.hasRestArgs)&&(r[n]=e[n]);return r}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractInfoFromServerReferenceId:function(){return r},omitUnusedArgs:function(){return n}})},2830:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(8229)._(r(2115)).default.createContext({})},2858:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let n=r(6494),o=r(2210);function u(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fillCacheWithNewSubTreeData:function(){return i},fillCacheWithNewSubTreeDataButOnlyLoading:function(){return c}});let n=r(2004),o=r(4758),u=r(5637),l=r(8291);function a(e,t,r,a,i){let{segmentPath:c,seedData:s,tree:f,head:d}=r,p=e,h=t;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},3269:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HEADER:function(){return n},FLIGHT_HEADERS:function(){return s},NEXT_DID_POSTPONE_HEADER:function(){return p},NEXT_HMR_REFRESH_HEADER:function(){return a},NEXT_IS_PRERENDER_HEADER:function(){return _},NEXT_REWRITTEN_PATH_HEADER:function(){return h},NEXT_REWRITTEN_QUERY_HEADER:function(){return y},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return l},NEXT_ROUTER_STALE_TIME_HEADER:function(){return d},NEXT_ROUTER_STATE_TREE_HEADER:function(){return o},NEXT_RSC_UNION_QUERY:function(){return f},NEXT_URL:function(){return i},RSC_CONTENT_TYPE_HEADER:function(){return c},RSC_HEADER:function(){return r}});let r="RSC",n="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",l="Next-Router-Segment-Prefetch",a="Next-HMR-Refresh",i="Next-Url",c="text/x-component",s=[r,o,u,a,l],f="_rsc",d="x-nextjs-stale-time",p="x-nextjs-postponed",h="x-nextjs-rewritten-path",y="x-nextjs-rewritten-query",_="x-nextjs-prerender";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"attachHydrationErrorState",{enumerable:!0,get:function(){return u}});let n=r(6465),o=r(9771);function u(e){let t={},r=(0,n.testReactHydrationWarning)(e.message),u=(0,n.isHydrationError)(e);if(!(u||r))return;let l=(0,o.getReactHydrationDiffSegments)(e.message);if(l){let a=l[1];t={...e.details,...o.hydrationErrorState,warning:(a&&!r?null:o.hydrationErrorState.warning)||[(0,n.getDefaultHydrationErrorMessage)()],notes:r?"":l[0],reactOutputComponentDiff:a},!o.hydrationErrorState.reactOutputComponentDiff&&a&&(o.hydrationErrorState.reactOutputComponentDiff=a),!a&&u&&o.hydrationErrorState.reactOutputComponentDiff&&(t.reactOutputComponentDiff=o.hydrationErrorState.reactOutputComponentDiff)}else o.hydrationErrorState.warning&&(t={...e.details,...o.hydrationErrorState}),o.hydrationErrorState.reactOutputComponentDiff&&(t.reactOutputComponentDiff=o.hydrationErrorState.reactOutputComponentDiff);e.details=t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return u}});let n=r(8946);function o(e){return void 0!==e}function u(e,t){var r,u;let l=null==(r=t.shouldScroll)||r,a=e.nextUrl;if(o(t.patchedTree)){let r=(0,n.computeChangedPath)(e.tree,t.patchedTree);r?a=r:a||(a=e.canonicalUrl)}return{canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!l&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:t.onlyHashChange||!1,hashFragment:l?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:l?null!=(u=null==t?void 0:t.scrollableSegments)?u:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:a}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=r(7829).makeUntrackedExoticParams;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return s}});let n=r(1139),o=r(4758),u=r(8946),l=r(1518),a=r(9818),i=r(4908),c=r(2561);function s(e){var t,r;let{initialFlightData:s,initialCanonicalUrlParts:f,initialParallelRoutes:d,location:p,couldBeIntercepted:h,postponed:y,prerendered:_}=e,b=f.join("/"),g=(0,c.getFlightDataPartsFromPath)(s[0]),{tree:v,seedData:m,head:O}=g,E={lazyData:null,rsc:null==m?void 0:m[1],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:d,loading:null!=(t=null==m?void 0:m[3])?t:null},R=p?(0,n.createHrefFromUrl)(p):b;(0,i.addRefreshMarkerToActiveParallelSegments)(v,R);let P=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(E,void 0,v,m,O,void 0);let j={tree:v,cache:E,prefetchCache:P,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:R,nextUrl:null!=(r=(0,u.extractPathFromFlightRouterState)(v)||(null==p?void 0:p.pathname))?r:null};if(p){let e=new URL(""+p.pathname+p.search,p.origin);(0,l.createSeededPrefetchCacheEntry)({url:e,data:{flightData:[g],canonicalUrl:void 0,couldBeIntercepted:!!h,prerendered:_,postponed:y,staleTime:-1},tree:j.tree,prefetchCache:j.prefetchCache,nextUrl:j.nextUrl,kind:_?a.PrefetchKind.FULL:a.PrefetchKind.AUTO})}return j}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hmrRefreshReducer",{enumerable:!0,get:function(){return n}}),r(8586),r(1139),r(7442),r(9234),r(3894),r(3507),r(878),r(6158),r(6375),r(4108);let n=function(e,t){return e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3668:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},3678:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(6494).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3806:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return a},useServerActionDispatcher:function(){return l}});let n=r(2115),o=r(9818),u=null;function l(e){u=(0,n.useCallback)(t=>{(0,n.startTransition)(()=>{e({...t,type:o.ACTION_SERVER_ACTION})})},[e])}async function a(e,t){let r=u;if(!r)throw Object.defineProperty(Error("Invariant: missing action dispatcher."),"__NEXT_ERROR_CODE",{value:"E507",enumerable:!1,configurable:!0});return new Promise((n,o)=>{r({actionId:e,actionArgs:t,resolve:n,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleExternalUrl:function(){return v},navigateReducer:function(){return function e(t,r){let{url:O,isExternalUrl:E,navigateType:R,shouldScroll:P,allowAliasing:j}=r,T={},{hash:S}=O,M=(0,o.createHrefFromUrl)(O),w="push"===R;if((0,_.prunePrefetchCache)(t.prefetchCache),T.preserveCustomHistoryState=!1,T.pendingPush=w,E)return v(t,T,O.toString(),w);if(document.getElementById("__next-page-redirect"))return v(t,T,M,w);let x=(0,_.getOrCreatePrefetchCacheEntry)({url:O,nextUrl:t.nextUrl,tree:t.tree,prefetchCache:t.prefetchCache,allowAliasing:j}),{treeAtTimeOfPrefetch:C,data:A}=x;return d.prefetchQueue.bump(A),A.then(d=>{let{flightData:_,canonicalUrl:E,postponed:R}=d,j=!1;if(x.lastUsedTime||(x.lastUsedTime=Date.now(),j=!0),x.aliased){let n=(0,g.handleAliasedPrefetchEntry)(t,_,O,T);return!1===n?e(t,{...r,allowAliasing:!1}):n}if("string"==typeof _)return v(t,T,_,w);let A=E?(0,o.createHrefFromUrl)(E):M;if(S&&t.canonicalUrl.split("#",1)[0]===A.split("#",1)[0])return T.onlyHashChange=!0,T.canonicalUrl=A,T.shouldScroll=P,T.hashFragment=S,T.scrollableSegments=[],(0,s.handleMutable)(t,T);let N=t.tree,D=t.cache,U=[];for(let e of _){let{pathToSegment:r,seedData:o,head:s,isHeadPartial:d,isRootRender:_}=e,g=e.tree,E=["",...r],P=(0,l.applyRouterStatePatchToTree)(E,N,g,M);if(null===P&&(P=(0,l.applyRouterStatePatchToTree)(E,C,g,M)),null!==P){if(o&&_&&R){let e=(0,y.startPPRNavigation)(D,N,g,o,s,d,!1,U);if(null!==e){if(null===e.route)return v(t,T,M,w);P=e.route;let r=e.node;null!==r&&(T.cache=r);let o=e.dynamicRequestTree;if(null!==o){let r=(0,n.fetchServerResponse)(O,{flightRouterState:o,nextUrl:t.nextUrl});(0,y.listenForDynamicRequest)(e,r)}}else P=g}else{if((0,i.isNavigatingToNewRootLayout)(N,P))return v(t,T,M,w);let n=(0,p.createEmptyCacheNode)(),o=!1;for(let t of(x.status!==c.PrefetchCacheEntryStatus.stale||j?o=(0,f.applyFlightData)(D,n,e,x):(o=function(e,t,r,n){let o=!1;for(let u of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),m(n).map(e=>[...r,...e])))(0,b.clearCacheNodeDataForSegmentPath)(e,t,u),o=!0;return o}(n,D,r,g),x.lastUsedTime=Date.now()),(0,a.shouldHardNavigate)(E,N)?(n.rsc=D.rsc,n.prefetchRsc=D.prefetchRsc,(0,u.invalidateCacheBelowFlightSegmentPath)(n,D,r),T.cache=n):o&&(T.cache=n,D=n),m(g))){let e=[...r,...t];e[e.length-1]!==h.DEFAULT_SEGMENT_KEY&&U.push(e)}}N=P}}return T.patchedTree=N,T.canonicalUrl=A,T.scrollableSegments=U,T.hashFragment=S,T.shouldScroll=P,(0,s.handleMutable)(t,T)},()=>t)}}});let n=r(8586),o=r(1139),u=r(4466),l=r(7442),a=r(5567),i=r(9234),c=r(9818),s=r(3507),f=r(878),d=r(9154),p=r(6158),h=r(8291),y=r(4150),_=r(1518),b=r(9880),g=r(5563);function v(e,t,r,n){return t.mpaNavigation=!0,t.canonicalUrl=r,t.pendingPush=n,t.scrollableSegments=void 0,(0,s.handleMutable)(e,t)}function m(e){let t=[],[r,n]=e;if(0===Object.keys(n).length)return[[r]];for(let[e,o]of Object.entries(n))for(let n of m(o))""===r?t.push([e,...n]):t.push([r,e,...n]);return t}r(6005),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3942:(e,t)=>{"use strict";function r(e){let t=5381;for(let r=0;r>>0}function n(e){return r(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{djb2Hash:function(){return r},hexHash:function(){return n}})},3950:(e,t)=>{"use strict";function r(e,t){let r=e[e.length-1];(!r||r.stack!==t.stack)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"enqueueConsecutiveDedupedError",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,r(5444).handleGlobalErrors)(),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4074:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(427);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:u}=(0,n.parsePath)(e);return""+t+r+o+u}},4108:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasInterceptionRouteInCurrentTree",{enumerable:!0,get:function(){return function e(t){let[r,o]=t;if(Array.isArray(r)&&("di"===r[2]||"ci"===r[2])||"string"==typeof r&&(0,n.isInterceptionRouteAppPath)(r))return!0;if(o){for(let t in o)if(e(o[t]))return!0}return!1}}});let n=r(7755);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{abortTask:function(){return p},listenForDynamicRequest:function(){return d},startPPRNavigation:function(){return i},updateCacheNodeOnPopstateRestoration:function(){return function e(t,r){let n=r[1],o=t.parallelRoutes,l=new Map(o);for(let t in n){let r=n[t],a=r[0],i=(0,u.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let n=c.get(i);if(void 0!==n){let o=e(n,r),u=new Map(c);u.set(i,o),l.set(t,u)}}}let a=t.rsc,i=_(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:[null,null],prefetchRsc:i?t.prefetchRsc:null,loading:t.loading,parallelRoutes:l}}}});let n=r(8291),o=r(1127),u=r(5637),l=r(9234),a={route:null,node:null,dynamicRequestTree:null,children:null};function i(e,t,r,l,i,f,d,p){return function e(t,r,l,i,f,d,p,h,y,_){let b=r[1],g=l[1],v=null!==f?f[2]:null;i||!0!==l[4]||(i=!0);let m=t.parallelRoutes,O=new Map(m),E={},R=null,P=!1,j={};for(let t in g){let r;let l=g[t],s=b[t],f=m.get(t),T=null!==v?v[t]:null,S=l[0],M=y.concat([t,S]),w=(0,u.createRouterCacheKey)(S),x=void 0!==s?s[0]:void 0,C=void 0!==f?f.get(w):void 0;if(null!==(r=S===n.DEFAULT_SEGMENT_KEY?void 0!==s?{route:s,node:null,dynamicRequestTree:null,children:null}:c(s,l,i,void 0!==T?T:null,d,p,M,_):h&&0===Object.keys(l[1]).length?c(s,l,i,void 0!==T?T:null,d,p,M,_):void 0!==s&&void 0!==x&&(0,o.matchSegment)(S,x)&&void 0!==C&&void 0!==s?e(C,s,l,i,T,d,p,h,M,_):c(s,l,i,void 0!==T?T:null,d,p,M,_))){if(null===r.route)return a;null===R&&(R=new Map),R.set(t,r);let e=r.node;if(null!==e){let r=new Map(f);r.set(w,e),O.set(t,r)}let n=r.route;E[t]=n;let o=r.dynamicRequestTree;null!==o?(P=!0,j[t]=o):j[t]=n}else E[t]=l,j[t]=l}if(null===R)return null;let T={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:O};return{route:s(l,E),node:T,dynamicRequestTree:P?s(l,j):null,children:R}}(e,t,r,!1,l,i,f,d,[],p)}function c(e,t,r,n,o,i,c,d){return!r&&(void 0===e||(0,l.isNavigatingToNewRootLayout)(e,t))?a:function e(t,r,n,o,l,a){if(null===r)return f(t,null,n,o,l,a);let i=t[1],c=r[4],d=0===Object.keys(i).length;if(c||o&&d)return f(t,r,n,o,l,a);let p=r[2],h=new Map,y=new Map,_={},b=!1;if(d)a.push(l);else for(let t in i){let r=i[t],c=null!==p?p[t]:null,s=r[0],f=l.concat([t,s]),d=(0,u.createRouterCacheKey)(s),g=e(r,c,n,o,f,a);h.set(t,g);let v=g.dynamicRequestTree;null!==v?(b=!0,_[t]=v):_[t]=r;let m=g.node;if(null!==m){let e=new Map;e.set(d,m),y.set(t,e)}}return{route:t,node:{lazyData:null,rsc:r[1],prefetchRsc:null,head:d?n:null,prefetchHead:null,loading:r[3],parallelRoutes:y},dynamicRequestTree:b?s(t,_):null,children:h}}(t,n,o,i,c,d)}function s(e,t){let r=[e[0],t];return 2 in e&&(r[2]=e[2]),3 in e&&(r[3]=e[3]),4 in e&&(r[4]=e[4]),r}function f(e,t,r,n,o,l){let a=s(e,e[1]);return a[3]="refetch",{route:e,node:function e(t,r,n,o,l,a){let i=t[1],c=null!==r?r[2]:null,s=new Map;for(let t in i){let r=i[t],f=null!==c?c[t]:null,d=r[0],p=l.concat([t,d]),h=(0,u.createRouterCacheKey)(d),y=e(r,void 0===f?null:f,n,o,p,a),_=new Map;_.set(h,y),s.set(t,_)}let f=0===s.size;f&&a.push(l);let d=null!==r?r[1]:null,p=null!==r?r[3]:null;return{lazyData:null,parallelRoutes:s,prefetchRsc:void 0!==d?d:null,prefetchHead:f?n:[null,null],loading:void 0!==p?p:null,rsc:b(),head:f?b():null}}(e,t,r,n,o,l),dynamicRequestTree:a,children:null}}function d(e,t){t.then(t=>{let{flightData:r}=t;if("string"!=typeof r){for(let t of r){let{segmentPath:r,tree:n,seedData:l,head:a}=t;l&&!function(e,t,r,n,l){let a=e;for(let e=0;e{p(e,t)})}function p(e,t){let r=e.node;if(null===r)return;let n=e.children;if(null===n)h(e.route,r,t);else for(let e of n.values())p(e,t);e.dynamicRequestTree=null}function h(e,t,r){let n=e[1],o=t.parallelRoutes;for(let e in n){let t=n[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&h(t,c,r)}let l=t.rsc;_(l)&&(null===r?l.resolve(null):l.reject(r));let a=t.head;_(a)&&a.resolve(null)}let y=Symbol();function _(e){return e&&e.tag===y}function b(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.status="pending",r.resolve=t=>{"pending"===r.status&&(r.status="fulfilled",r.value=t,e(t))},r.reject=e=>{"pending"===r.status&&(r.status="rejected",r.reason=e,t(e))},r.tag=y,r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4189:(e,t)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},4420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,r,u){let l=u.length<=2,[a,i]=u,c=(0,n.createRouterCacheKey)(i),s=r.parallelRoutes.get(a);if(!s)return;let f=t.parallelRoutes.get(a);if(f&&f!==s||(f=new Map(s),t.parallelRoutes.set(a,f)),l){f.delete(c);return}let d=s.get(c),p=f.get(c);p&&d&&(p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes)},f.set(c,p)),e(p,d,(0,o.getNextFlightSegmentPath)(u)))}}});let n=r(5637),o=r(2561);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4486:(e,t,r)=>{"use strict";let n,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return U}});let u=r(8229),l=r(6966),a=r(5155);r(6446),r(6002),r(3954);let i=u._(r(2669)),c=l._(r(2115)),s=r(4979),f=r(2830),d=r(6698),p=r(9155),h=r(3806),y=r(1818),_=r(9692),b=u._(r(6158)),g=r(3567);r(5227);let v=r(5624);r(2332);let m=document,O=new TextEncoder,E=!1,R=!1,P=null;function j(e){if(0===e[0])n=[];else if(1===e[0]){if(!n)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});o?o.enqueue(O.encode(e[1])):n.push(e[1])}else if(2===e[0])P=e[1];else if(3===e[0]){if(!n)throw Object.defineProperty(Error("Unexpected server data: missing bootstrap script."),"__NEXT_ERROR_CODE",{value:"E18",enumerable:!1,configurable:!0});let r=atob(e[1]),u=new Uint8Array(r.length);for(var t=0;t{e.enqueue("string"==typeof t?O.encode(t):t)}),E&&!R))null===e.desiredSize||e.desiredSize<0?e.error(Object.defineProperty(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection."),"__NEXT_ERROR_CODE",{value:"E117",enumerable:!1,configurable:!0})):e.close(),R=!0,n=void 0;o=e}(e)}}),w=(0,s.createFromReadableStream)(M,{callServer:h.callServer,findSourceMapURL:y.findSourceMapURL}),x=new Promise((e,t)=>{w.then(t=>{(0,v.setAppBuildId)(t.b),e((0,_.createMutableActionQueue)((0,g.createInitialRouterState)({initialFlightData:t.f,initialCanonicalUrlParts:t.c,initialParallelRoutes:new Map,location:window.location,couldBeIntercepted:t.i,postponed:t.s,prerendered:t.S})))},e=>t(e))});function C(){let e=(0,c.use)(w),t=(0,c.use)(x);return(0,a.jsx)(b.default,{actionQueue:t,globalErrorComponentAndStyles:e.G,assetPrefix:e.p})}let A=c.default.StrictMode;function N(e){let{children:t}=e;return t}let D={onRecoverableError:d.onRecoverableError,onCaughtError:p.onCaughtError,onUncaughtError:p.onUncaughtError};function U(){var e;let t=(0,a.jsx)(A,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(N,{children:(0,a.jsx)(C,{})})})});"__next_error__"===document.documentElement.id||(null==(e=window.__next_root_layout_missing_tags)?void 0:e.length)?i.default.createRoot(m,D).render(t):c.default.startTransition(()=>{i.default.hydrateRoot(m,t,{...D,formState:P})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4758:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,u,l,a,i){if(0===Object.keys(u[1]).length){t.head=a;return}for(let c in u[1]){let s;let f=u[1][c],d=f[0],p=(0,n.createRouterCacheKey)(d),h=null!==l&&void 0!==l[2][c]?l[2][c]:null;if(r){let n=r.parallelRoutes.get(c);if(n){let r;let u=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,l=new Map(n),s=l.get(p);r=null!==h?{lazyData:null,rsc:h[1],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes)}:u&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),loading:null},l.set(p,r),e(r,s,f,h||null,a,i),t.parallelRoutes.set(c,l);continue}}if(null!==h){let e=h[1],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let n=r(5637),o=r(9818);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4819:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let n=r(1139),o=r(8946);function u(e,t){var r;let{url:u,tree:l}=t,a=(0,n.createHrefFromUrl)(u),i=l||e.tree,c=e.cache;return{canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(r=(0,o.extractPathFromFlightRouterState)(i))?r:u.pathname}}r(4150),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4882:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(7102),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4908:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,r){let[n,o,,l]=t;for(let a in n.includes(u.PAGE_SEGMENT_KEY)&&"refresh"!==l&&(t[2]=r,t[3]="refresh"),o)e(o[a],r)}},refreshInactiveParallelSegments:function(){return l}});let n=r(878),o=r(8586),u=r(8291);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:r,updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c=r,canonicalUrl:s}=e,[,f,d,p]=r,h=[];if(d&&d!==s&&"refresh"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),{flightRouterState:[c[0],c[1],c[2],"refetch"],nextUrl:l?t.nextUrl:null}).then(e=>{let{flightData:t}=e;if("string"!=typeof t)for(let e of t)(0,n.applyFlightData)(u,u,e)});h.push(e)}for(let e in f){let r=a({state:t,updatedTree:f[e],updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c,canonicalUrl:s});h.push(r)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4911:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AsyncMetadata:function(){return u},AsyncMetadataOutlet:function(){return a}});let n=r(5155),o=r(2115),u=r(1536).BrowserResolvedMetadata;function l(e){let{promise:t}=e,{error:r,digest:n}=(0,o.use)(t);if(r)throw n&&(r.digest=n),r;return null}function a(e){let{promise:t}=e;return(0,n.jsx)(o.Suspense,{fallback:null,children:(0,n.jsx)(l,{promise:t})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{mountLinkInstance:function(){return c},onLinkVisibilityChanged:function(){return f},onNavigationIntent:function(){return d},pingVisibleLinks:function(){return h},unmountLinkInstance:function(){return s}}),r(9692);let n=r(6158),o=r(9818),u=r(6005),l="function"==typeof WeakMap?new WeakMap:new Map,a=new Set,i="function"==typeof IntersectionObserver?new IntersectionObserver(function(e){for(let t of e){let e=t.intersectionRatio>0;f(t.target,e)}},{rootMargin:"200px"}):null;function c(e,t,r,o){let u=null;try{if(u=(0,n.createPrefetchURL)(t),null===u)return}catch(e){("function"==typeof reportError?reportError:console.error)("Cannot prefetch '"+t+"' because it cannot be converted to a URL.");return}let a={prefetchHref:u.href,router:r,kind:o,isVisible:!1,wasHoveredOrTouched:!1,prefetchTask:null,cacheVersion:-1};void 0!==l.get(e)&&s(e),l.set(e,a),null!==i&&i.observe(e)}function s(e){let t=l.get(e);if(void 0!==t){l.delete(e),a.delete(t);let r=t.prefetchTask;null!==r&&(0,u.cancelPrefetchTask)(r)}null!==i&&i.unobserve(e)}function f(e,t){let r=l.get(e);void 0!==r&&(r.isVisible=t,t?a.add(r):a.delete(r),p(r))}function d(e){let t=l.get(e);void 0!==t&&void 0!==t&&(t.wasHoveredOrTouched=!0,p(t))}function p(e){let t=e.prefetchTask;if(!e.isVisible){null!==t&&(0,u.cancelPrefetchTask)(t);return}!function(e){(async()=>e.router.prefetch(e.prefetchHref,{kind:e.kind}))().catch(e=>{})}(e)}function h(e,t){let r=(0,u.getCurrentCacheVersion)();for(let n of a){let l=n.prefetchTask;if(null!==l&&n.cacheVersion===r&&l.key.nextUrl===e&&l.treeAtTimeOfPrefetch===t)continue;null!==l&&(0,u.cancelPrefetchTask)(l);let a=(0,u.createCacheKey)(n.prefetchHref,e),i=n.wasHoveredOrTouched?u.PrefetchPriority.Intent:u.PrefetchPriority.Default;n.prefetchTask=(0,u.schedulePrefetchTask)(a,t,n.kind===o.PrefetchKind.FULL,i),n.cacheVersion=(0,u.getCurrentCacheVersion)()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientSegmentRoot",{enumerable:!0,get:function(){return o}});let n=r(5155);function o(e){let{Component:t,slots:o,params:u,promise:l}=e;{let{createRenderParamsFromClient:e}=r(3558),l=e(u);return(0,n.jsx)(t,{...o,params:l})}}r(9837),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4979:(e,t,r)=>{"use strict";e.exports=r(7197)},5072:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return r}});let r=/Mediapartners-Google|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview/i},5122:(e,t)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isThenable",{enumerable:!0,get:function(){return r}})},5128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getReactStitchedError",{enumerable:!0,get:function(){return c}});let n=r(8229),o=n._(r(2115)),u=n._(r(5807)),l=r(9148),a="react-stack-bottom-frame",i=RegExp("(at "+a+" )|("+a+"\\@)");function c(e){let t=(0,u.default)(e),r=t&&e.stack||"",n=t?e.message:"",a=r.split("\n"),c=a.findIndex(e=>i.test(e)),s=c>=0?a.slice(0,c).join("\n"):r,f=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return Object.assign(f,e),(0,l.copyNextErrorCode)(e,f),f.stack=s,function(e){if(!o.default.captureOwnerStack)return;let t=e.stack||"",r=o.default.captureOwnerStack();r&&!1===t.endsWith(r)&&(e.stack=t+=r)}(f),f}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5155:(e,t,r)=>{"use strict";e.exports=r(6897)},5169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatConsoleArgs:function(){return u},parseConsoleArgs:function(){return l}});let n=r(8229)._(r(5807));function o(e,t){switch(typeof e){case"object":if(null===e)return"null";if(Array.isArray(e)){let r="[";if(t<1)for(let n=0;n0?"...":"";return r+"]"}{if(e instanceof Error)return e+"";let r=Object.keys(e),n="{";if(t<1)for(let u=0;u0?"...":"";return n+"}"}case"string":return JSON.stringify(e);default:return String(e)}}function u(e){let t,r;"string"==typeof e[0]?(t=e[0],r=1):(t="",r=0);let n="",u=!1;for(let l=0;l=e.length){n+=a;continue}let i=t[++l];switch(i){case"c":n=u?""+n+"]":"["+n,u=!u,r++;break;case"O":case"o":n+=o(e[r++],0);break;case"d":case"i":n+=parseInt(e[r++],10);break;case"f":n+=parseFloat(e[r++]);break;case"s":n+=String(e[r++]);break;default:n+="%"+i}}for(;r0?" ":"")+o(e[r],0);return n}function l(e){if(e.length>3&&"string"==typeof e[0]&&e[0].startsWith("%c%s%c ")&&"string"==typeof e[1]&&"string"==typeof e[2]&&"string"==typeof e[3]){let t=e[2],r=e[4];return{environmentName:t.trim(),error:(0,n.default)(r)?r:null}}return{environmentName:null,error:null}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5209:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},5227:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return u},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let n=r(8229)._(r(2115)),o=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(new Set)},5262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},5415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(5449),(0,r(6188).appBootstrap)(()=>{let{hydrate:e}=r(4486);r(6158),r(7555),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5444:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleClientError:function(){return g},handleGlobalErrors:function(){return E},useErrorHandler:function(){return v}});let n=r(8229),o=r(2115),u=r(3506),l=r(2858),a=r(9771),i=r(5169),c=n._(r(5807)),s=r(6043),f=r(3950),d=r(5128),p=globalThis.queueMicrotask||(e=>Promise.resolve().then(e)),h=[],y=[],_=[],b=[];function g(e,t,r){let n;if(void 0===r&&(r=!1),e&&(0,c.default)(e))n=r?(0,s.createUnhandledError)(e):e;else{let e=(0,i.formatConsoleArgs)(t),{environmentName:r}=(0,i.parseConsoleArgs)(t);n=(0,s.createUnhandledError)(e,r)}for(let e of(n=(0,d.getReactStitchedError)(n),(0,a.storeHydrationErrorStateFromConsoleArgs)(...t),(0,u.attachHydrationErrorState)(n),(0,f.enqueueConsecutiveDedupedError)(h,n),y))p(()=>{e(n)})}function v(e,t){(0,o.useEffect)(()=>(h.forEach(e),_.forEach(t),y.push(e),b.push(t),()=>{y.splice(y.indexOf(e),1),b.splice(b.indexOf(t),1),h.splice(0,h.length),_.splice(0,_.length)}),[e,t])}function m(e){if((0,l.isNextRouterError)(e.error))return e.preventDefault(),!1;e.error&&g(e.error,[])}function O(e){let t=null==e?void 0:e.reason;if((0,l.isNextRouterError)(t)){e.preventDefault();return}let r=t;for(let e of(r&&!(0,c.default)(r)&&(r=(0,s.createUnhandledError)(r+"")),_.push(r),b))e(r)}function E(){try{Error.stackTraceLimit=50}catch(e){}window.addEventListener("error",m),window.addEventListener("unhandledrejection",O)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3668);let n=r(589);{let e=r.u;r.u=function(){for(var t=arguments.length,r=Array(t),o=0;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let n=r(8586),o=r(1139),u=r(7442),l=r(9234),a=r(3894),i=r(3507),c=r(4758),s=r(6158),f=r(6375),d=r(4108),p=r(4908);function h(e,t){let{origin:r}=t,h={},y=e.canonicalUrl,_=e.tree;h.preserveCustomHistoryState=!1;let b=(0,s.createEmptyCacheNode)(),g=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return b.lazyData=(0,n.fetchServerResponse)(new URL(y,r),{flightRouterState:[_[0],_[1],_[2],"refetch"],nextUrl:g?e.nextUrl:null}),b.lazyData.then(async r=>{let{flightData:n,canonicalUrl:s}=r;if("string"==typeof n)return(0,a.handleExternalUrl)(e,h,n,e.pushRef.pendingPush);for(let r of(b.lazyData=null,n)){let{tree:n,seedData:i,head:d,isRootRender:v}=r;if(!v)return console.log("REFRESH FAILED"),e;let m=(0,u.applyRouterStatePatchToTree)([""],_,n,e.canonicalUrl);if(null===m)return(0,f.handleSegmentMismatch)(e,t,n);if((0,l.isNavigatingToNewRootLayout)(_,m))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let O=s?(0,o.createHrefFromUrl)(s):void 0;if(s&&(h.canonicalUrl=O),null!==i){let e=i[1],t=i[3];b.rsc=e,b.prefetchRsc=null,b.loading=t,(0,c.fillLazyItemsTillLeafWithHead)(b,void 0,n,i,d,void 0),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:m,updatedCache:b,includeNextUrl:g,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=b,h.patchedTree=m,_=m}return(0,i.handleMutable)(e,h)},()=>e)}r(6005),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5563:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{addSearchParamsToPageSegments:function(){return f},handleAliasedPrefetchEntry:function(){return s}});let n=r(8291),o=r(6158),u=r(7442),l=r(1139),a=r(5637),i=r(3118),c=r(3507);function s(e,t,r,s){let d,p=e.tree,h=e.cache,y=(0,l.createHrefFromUrl)(r);if("string"==typeof t)return!1;for(let e of t){if(!function e(t){if(!t)return!1;let r=t[2];if(t[3])return!0;for(let t in r)if(e(r[t]))return!0;return!1}(e.seedData))continue;let t=e.tree;t=f(t,Object.fromEntries(r.searchParams));let{seedData:l,isRootRender:c,pathToSegment:s}=e,_=["",...s];t=f(t,Object.fromEntries(r.searchParams));let b=(0,u.applyRouterStatePatchToTree)(_,p,t,y),g=(0,o.createEmptyCacheNode)();if(c&&l){let e=l[1];g.loading=l[3],g.rsc=e,function e(t,r,o,u){if(0!==Object.keys(o[1]).length)for(let l in o[1]){let i;let c=o[1][l],s=c[0],f=(0,a.createRouterCacheKey)(s),d=null!==u&&void 0!==u[2][l]?u[2][l]:null;if(null!==d){let e=d[1],t=d[3];i={lazyData:null,rsc:s.includes(n.PAGE_SEGMENT_KEY)?null:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:t}}else i={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};let p=t.parallelRoutes.get(l);p?p.set(f,i):t.parallelRoutes.set(l,new Map([[f,i]])),e(i,r,c,d)}}(g,h,t,l)}else g.rsc=h.rsc,g.prefetchRsc=h.prefetchRsc,g.loading=h.loading,g.parallelRoutes=new Map(h.parallelRoutes),(0,i.fillCacheWithNewSubTreeDataButOnlyLoading)(g,h,e);b&&(p=b,h=g,d=!0)}return!!d&&(s.patchedTree=p,s.cache=h,s.canonicalUrl=y,s.hashFragment=r.hash,(0,c.handleMutable)(e,s))}function f(e,t){let[r,o,...u]=e;if(r.includes(n.PAGE_SEGMENT_KEY))return[(0,n.addSearchParamsIfPageSegment)(r,t),o,...u];let l={};for(let[e,r]of Object.entries(o))l[e]=f(r,t);return[r,l,...u]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[u,l]=r,[a,i]=t;return(0,o.matchSegment)(a,u)?!(t.length<=2)&&e((0,n.getNextFlightSegmentPath)(t),l[i]):!!Array.isArray(a)}}});let n=r(2561),o=r(1127);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5618:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return s},RedirectType:function(){return o.RedirectType},forbidden:function(){return l.forbidden},notFound:function(){return u.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return a.unauthorized},unstable_rethrow:function(){return i.unstable_rethrow}});let n=r(6825),o=r(2210),u=r(8527),l=r(3678),a=r(9187),i=r(7599);class c extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class s extends URLSearchParams{append(){throw new c}delete(){throw new c}set(){throw new c}sort(){throw new c}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getAppBuildId:function(){return o},setAppBuildId:function(){return n}});let r="";function n(e){r=e}function o(){return r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let n=r(8291);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(n.PAGE_SEGMENT_KEY)?n.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5807:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return u}});let n=r(5209);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function u(e){return o(e)?e:Object.defineProperty(Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},5929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let n=r(4074),o=r(214);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5952:(e,t,r)=>{"use strict";function n(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}r.r(t),r.d(t,{_:()=>n})},6002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,r(6905).patchConsoleError)(),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NavigationResultTag:function(){return f},PrefetchPriority:function(){return d},bumpPrefetchTask:function(){return c},cancelPrefetchTask:function(){return i},createCacheKey:function(){return s},getCurrentCacheVersion:function(){return l},navigate:function(){return o},prefetch:function(){return n},revalidateEntireCache:function(){return u},schedulePrefetchTask:function(){return a}});let r=()=>{throw Object.defineProperty(Error("Segment Cache experiment is not enabled. This is a bug in Next.js."),"__NEXT_ERROR_CODE",{value:"E654",enumerable:!1,configurable:!0})},n=r,o=r,u=r,l=r,a=r,i=r,c=r,s=r;var f=function(e){return e[e.MPA=0]="MPA",e[e.Success=1]="Success",e[e.NoOp=2]="NoOp",e[e.Async=3]="Async",e}({}),d=function(e){return e[e.Intent=2]="Intent",e[e.Default=1]="Default",e[e.Background=0]="Background",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6043:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createUnhandledError:function(){return o},getUnhandledErrorType:function(){return l},isUnhandledConsoleOrRejection:function(){return u}});let r=Symbol.for("next.console.error.digest"),n=Symbol.for("next.console.error.type");function o(e,t){let o="string"==typeof e?Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}):e;return o[r]="NEXT_UNHANDLED_ERROR",o[n]="string"==typeof e?"string":"error",t&&!o.environmentName&&(o.environmentName=t),o}let u=e=>e&&"NEXT_UNHANDLED_ERROR"===e[r],l=e=>e[n];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6158:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createEmptyCacheNode:function(){return x},createPrefetchURL:function(){return M},default:function(){return D}});let n=r(6966),o=r(5155),u=n._(r(2115)),l=r(5227),a=r(9818),i=r(1139),c=r(886),s=r(1365),f=n._(r(6614)),d=r(774),p=r(5929),h=r(7760),y=r(686),_=r(2691),b=r(1822),g=r(4882),v=r(7102),m=r(8946),O=r(8836),E=r(3806);r(6005);let R=r(6825),P=r(2210),j=r(9154);r(4930);let T={};function S(e){return e.origin!==window.location.origin}function M(e){let t;if((0,d.isBot)(window.navigator.userAgent))return null;try{t=new URL((0,p.addBasePath)(e),window.location.href)}catch(t){throw Object.defineProperty(Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL."),"__NEXT_ERROR_CODE",{value:"E234",enumerable:!1,configurable:!0})}return S(t)?null:t}function w(e){let{appRouterState:t}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:n}=t,o={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(o,"",n)):window.history.replaceState(o,"",n)},[t]),(0,u.useEffect)(()=>{},[t.nextUrl,t.tree]),null}function x(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null}}function C(e){null==e&&(e={});let t=window.history.state,r=null==t?void 0:t.__NA;r&&(e.__NA=r);let n=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return n&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=n),e}function A(e){let{headCacheNode:t}=e,r=null!==t?t.head:null,n=null!==t?t.prefetchHead:null,o=null!==n?n:r;return(0,u.useDeferredValue)(r,o)}function N(e){let t,{actionQueue:r,assetPrefix:n,globalError:i}=e,[d,O]=(0,s.useReducer)(r),{canonicalUrl:x}=(0,s.useUnwrapState)(d),{searchParams:N,pathname:D}=(0,u.useMemo)(()=>{let e=new URL(x,window.location.href);return{searchParams:e.searchParams,pathname:(0,v.hasBasePath)(e.pathname)?(0,g.removeBasePath)(e.pathname):e.pathname}},[x]),U=(0,u.useCallback)(e=>{let{previousTree:t,serverResponse:r}=e;(0,u.startTransition)(()=>{O({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:r})})},[O]),k=(0,u.useCallback)((e,t,r)=>{let n=new URL((0,p.addBasePath)(e),location.href);return O({type:a.ACTION_NAVIGATE,url:n,isExternalUrl:S(n),locationSearch:location.search,shouldScroll:null==r||r,navigateType:t,allowAliasing:!0})},[O]);(0,E.useServerActionDispatcher)(O);let I=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let n=M(e);if(null!==n){var o;(0,j.prefetchReducer)(r.state,{type:a.ACTION_PREFETCH,url:n,kind:null!=(o=null==t?void 0:t.kind)?o:a.PrefetchKind.FULL})}},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var r;k(e,"replace",null==(r=t.scroll)||r)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var r;k(e,"push",null==(r=t.scroll)||r)})},refresh:()=>{(0,u.startTransition)(()=>{O({type:a.ACTION_REFRESH,origin:window.location.origin})})},hmrRefresh:()=>{throw Object.defineProperty(Error("hmrRefresh can only be used in development mode. Please use refresh instead."),"__NEXT_ERROR_CODE",{value:"E485",enumerable:!1,configurable:!0})}}),[r,O,k]);(0,u.useEffect)(()=>{window.next&&(window.next.router=I)},[I]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(T.pendingMpaPath=void 0,O({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[O]),(0,u.useEffect)(()=>{function e(e){let t="reason"in e?e.reason:e.error;if((0,P.isRedirectError)(t)){e.preventDefault();let r=(0,R.getURLFromRedirectError)(t);(0,R.getRedirectTypeFromError)(t)===P.RedirectType.push?I.push(r,{}):I.replace(r,{})}}return window.addEventListener("error",e),window.addEventListener("unhandledrejection",e),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)}},[I]);let{pushRef:H}=(0,s.useUnwrapState)(d);if(H.mpaNavigation){if(T.pendingMpaPath!==x){let e=window.location;H.pendingPush?e.assign(x):e.replace(x),T.pendingMpaPath=x}(0,u.use)(b.unresolvedThenable)}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),r=e=>{var t;let r=window.location.href,n=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,u.startTransition)(()=>{O({type:a.ACTION_RESTORE,url:new URL(null!=e?e:r,r),tree:n})})};window.history.pushState=function(t,n,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=C(t),o&&r(o)),e(t,n,o)},window.history.replaceState=function(e,n,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=C(e),o&&r(o)),t(e,n,o)};let n=e=>{if(e.state){if(!e.state.__NA){window.location.reload();return}(0,u.startTransition)(()=>{O({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:e.state.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",n),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",n)}},[O]);let{cache:F,tree:B,nextUrl:W,focusAndScrollRef:$}=(0,s.useUnwrapState)(d),K=(0,u.useMemo)(()=>(0,_.findHeadInCache)(F,B[1]),[F,B]),X=(0,u.useMemo)(()=>(0,m.getSelectedParams)(B),[B]),z=(0,u.useMemo)(()=>({parentTree:B,parentCacheNode:F,parentSegmentPath:null,url:x}),[B,F,x]),G=(0,u.useMemo)(()=>({changeByServerResponse:U,tree:B,focusAndScrollRef:$,nextUrl:W}),[U,B,$,W]);if(null!==K){let[e,r]=K;t=(0,o.jsx)(A,{headCacheNode:e},r)}else t=null;let V=(0,o.jsxs)(y.RedirectBoundary,{children:[t,F.rsc,(0,o.jsx)(h.AppRouterAnnouncer,{tree:B})]});return V=(0,o.jsx)(f.ErrorBoundary,{errorComponent:i[0],errorStyles:i[1],children:V}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w,{appRouterState:(0,s.useUnwrapState)(d)}),(0,o.jsx)(L,{}),(0,o.jsx)(c.PathParamsContext.Provider,{value:X,children:(0,o.jsx)(c.PathnameContext.Provider,{value:D,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:N,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:G,children:(0,o.jsx)(l.AppRouterContext.Provider,{value:I,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:z,children:V})})})})})})]})}function D(e){let{actionQueue:t,globalErrorComponentAndStyles:[r,n],assetPrefix:u}=e;return(0,O.useNavFailureHandler)(),(0,o.jsx)(f.ErrorBoundary,{errorComponent:f.default,children:(0,o.jsx)(N,{actionQueue:t,assetPrefix:u,globalError:[r,n]})})}let U=new Set,k=new Set;function L(){let[,e]=u.default.useState(0),t=U.size;return(0,u.useEffect)(()=>{let r=()=>e(e=>e+1);return k.add(r),t!==U.size&&r(),()=>{k.delete(r)}},[t,e]),[...U].map((e,t)=>(0,o.jsx)("link",{rel:"stylesheet",href:""+e,precedence:"next"},t))}globalThis._N_E_STYLE_LOAD=function(e){let t=U.size;return U.add(e),U.size!==t&&k.forEach(e=>e()),Promise.resolve()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6188:(e,t)=>{"use strict";function r(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,n]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(n)for(let e in n)"children"!==e&&o.setAttribute(e,n[e]);r?(o.src=r,o.onload=()=>e(),o.onerror=t):n&&(o.innerHTML=n.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{r()}):r()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return r}}),window.next={version:"15.2.4",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6206:(e,t,r)=>{"use strict";e.exports=r(2223)},6361:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},6375:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let n=r(3894);function o(e,t,r){return(0,n.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6420:(e,t,r)=>{"use strict";r.r(t),r.d(t,{_:()=>o});var n=0;function o(e){return"__private_"+n+++"_"+e}},6446:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},6465:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{NEXTJS_HYDRATION_ERROR_LINK:function(){return i},REACT_HYDRATION_ERROR_LINK:function(){return a},getDefaultHydrationErrorMessage:function(){return c},getHydrationErrorStackInfo:function(){return h},isHydrationError:function(){return s},isReactHydrationErrorMessage:function(){return f},testReactHydrationWarning:function(){return p}});let n=r(8229)._(r(5807)),o=/hydration failed|while hydrating|content does not match|did not match|HTML didn't match/i,u="Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:",l=[u,"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:"],a="https://react.dev/link/hydration-mismatch",i="https://nextjs.org/docs/messages/react-hydration-error",c=()=>u;function s(e){return(0,n.default)(e)&&o.test(e.message)}function f(e){return l.some(t=>e.startsWith(t))}let d=[/^In HTML, (.+?) cannot be a child of <(.+?)>\.(.*)\nThis will cause a hydration error\.(.*)/,/^In HTML, (.+?) cannot be a descendant of <(.+?)>\.\nThis will cause a hydration error\.(.*)/,/^In HTML, text nodes cannot be a child of <(.+?)>\.\nThis will cause a hydration error\./,/^In HTML, whitespace text nodes cannot be a child of <(.+?)>\. Make sure you don't have any extra whitespace between tags on each line of your source code\.\nThis will cause a hydration error\./,/^Expected server HTML to contain a matching <(.+?)> in <(.+?)>\.(.*)/,/^Did not expect server HTML to contain a <(.+?)> in <(.+?)>\.(.*)/,/^Expected server HTML to contain a matching text node for "(.+?)" in <(.+?)>\.(.*)/,/^Did not expect server HTML to contain the text node "(.+?)" in <(.+?)>\.(.*)/,/^Text content did not match\. Server: "(.+?)" Client: "(.+?)"(.*)/];function p(e){return"string"==typeof e&&!!e&&(e.startsWith("Warning: ")&&(e=e.slice(9)),d.some(t=>t.test(e)))}function h(e){let t=p(e=(e=e.replace(/^Error: /,"")).replace("Warning: ",""));if(!f(e)&&!t)return{message:null,stack:e,diff:""};if(t){let[t,r]=e.split("\n\n");return{message:t.trim(),stack:"",diff:(r||"").trim()}}let r=e.indexOf("\n"),[n,o]=(e=e.slice(r+1).trim()).split(""+a),u=n.trim();if(!o||!(o.length>1))return{message:u,stack:o};{let e=[],t=[];return o.split("\n").forEach(r=>{""!==r.trim()&&(r.trim().startsWith("at ")?e.push(r):t.push(r))}),{message:u,diff:t.join("\n"),stack:e.join("\n")}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return a},getAccessFallbackHTTPStatus:function(){return l},isHTTPAccessFallbackError:function(){return u}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),o="NEXT_HTTP_ERROR_FALLBACK";function u(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&n.has(Number(r))}function l(e){return Number(e.digest.split(";")[1])}function a(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6614:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let n=r(8229),o=r(5155),u=n._(r(2115)),l=r(9921),a=r(2858);r(8836);let i=void 0,c={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e;if(i){let e=i.getStore();if((null==e?void 0:e.isRevalidate)||(null==e?void 0:e.isStaticGeneration))throw console.error(t),t}return null}class f extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){let{error:r}=t;return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,r=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:c.error,children:(0,o.jsxs)("div",{children:[(0,o.jsxs)("h2",{style:c.text,children:["Application error: a ",r?"server":"client","-side exception has occurred while loading ",window.location.hostname," (see the"," ",r?"server logs":"browser console"," for more information)."]}),r?(0,o.jsx)("p",{style:c.text,children:"Digest: "+r}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:r,errorScripts:n,children:u}=e,a=(0,l.useUntrackedPathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:r,errorScripts:n,children:u}):(0,o.jsx)(o.Fragment,{children:u})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"onRecoverableError",{enumerable:!0,get:function(){return i}});let n=r(8229),o=r(5262),u=r(1646),l=r(5128),a=n._(r(5807)),i=(e,t)=>{let r=(0,a.default)(e)&&"cause"in e?e.cause:e,n=(0,l.getReactStitchedError)(r);(0,o.isBailoutToCSRError)(r)||(0,u.reportGlobalError)(n)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6825:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return l},getRedirectStatusCodeFromError:function(){return f},getRedirectTypeFromError:function(){return s},getURLFromRedirectError:function(){return c},permanentRedirect:function(){return i},redirect:function(){return a}});let n=r(4420),o=r(2210),u=void 0;function l(e,t,r){void 0===r&&(r=n.RedirectStatusCode.TemporaryRedirect);let u=Object.defineProperty(Error(o.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return u.digest=o.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",u}function a(e,t){var r;throw null!=t||(t=(null==u?void 0:null==(r=u.getStore())?void 0:r.isAction)?o.RedirectType.push:o.RedirectType.replace),l(e,t,n.RedirectStatusCode.TemporaryRedirect)}function i(e,t){throw void 0===t&&(t=o.RedirectType.replace),l(e,t,n.RedirectStatusCode.PermanentRedirect)}function c(e){return(0,o.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function s(e){if(!(0,o.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function f(e){if(!(0,o.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6897:(e,t)=>{"use strict";var r=Symbol.for("react.transitional.element");function n(e,t,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),"key"in t)for(var u in n={},t)"key"!==u&&(n[u]=t[u]);else n=t;return{$$typeof:r,type:e,key:o,ref:void 0!==(t=n.ref)?t:null,props:n}}t.Fragment=Symbol.for("react.fragment"),t.jsx=n,t.jsxs=n},6905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{originConsoleError:function(){return o},patchConsoleError:function(){return u}}),r(8229),r(5807);let n=r(2858);r(5444),r(5169);let o=globalThis.console.error;function u(){window.console.error=function(){let e;for(var t=arguments.length,r=Array(t),u=0;u{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=u?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o})},6975:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return s}});let n=r(6966),o=r(5155),u=n._(r(2115)),l=r(9921),a=r(6494);r(3230);let i=r(5227);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,a.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:u}=this.state,l={[a.HTTPAccessErrorStatus.NOT_FOUND]:e,[a.HTTPAccessErrorStatus.FORBIDDEN]:t,[a.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(u){let i=u===a.HTTPAccessErrorStatus.NOT_FOUND&&e,c=u===a.HTTPAccessErrorStatus.FORBIDDEN&&t,s=u===a.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return i||c||s?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,l[u]]}):n}return n}constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}}function s(e){let{notFound:t,forbidden:r,unauthorized:n,children:a}=e,s=(0,l.useUntrackedPathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t||r||n?(0,o.jsx)(c,{pathname:s,notFound:t,forbidden:r,unauthorized:n,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(1747);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7197:(e,t,r)=>{"use strict";e.exports=r(9062)},7205:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=r(8324).makeUntrackedExoticSearchParams;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7276:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let n=r(9133),o=r(8291);function u(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},7442:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,r,n,i){let c;let[s,f,d,p,h]=r;if(1===t.length){let e=a(r,n);return(0,l.addRefreshMarkerToActiveParallelSegments)(e,i),e}let[y,_]=t;if(!(0,u.matchSegment)(y,s))return null;if(2===t.length)c=a(f[_],n);else if(null===(c=e((0,o.getNextFlightSegmentPath)(t),f[_],n,i)))return null;let b=[t[0],{...f,[_]:c},d,p];return h&&(b[4]=!0),(0,l.addRefreshMarkerToActiveParallelSegments)(b,i),b}}});let n=r(8291),o=r(2561),u=r(1127),l=r(4908);function a(e,t){let[r,o]=e,[l,i]=t;if(l===n.DEFAULT_SEGMENT_KEY&&r!==n.DEFAULT_SEGMENT_KEY)return e;if((0,u.matchSegment)(r,l)){let t={};for(let e in o)void 0!==i[e]?t[e]=a(o[e],i[e]):t[e]=o[e];for(let e in i)!t[e]&&(t[e]=i[e]);let n=[r,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7541:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{describeHasCheckingStringProperty:function(){return o},describeStringPropertyAccess:function(){return n},wellKnownProperties:function(){return u}});let r=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function n(e,t){return r.test(t)?"`"+e+"."+t+"`":"`"+e+"["+JSON.stringify(t)+"]`"}function o(e,t){let r=JSON.stringify(t);return"`Reflect.has("+e+", "+r+")`, `"+r+" in "+e+"`, or similar"}let u=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","toJSON","$$typeof","__esModule"])},7555:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return j}});let n=r(8229),o=r(6966),u=r(5155),l=o._(r(2115)),a=n._(r(7650)),i=r(5227),c=r(8586),s=r(1822),f=r(6614),d=r(1127),p=r(4189),h=r(686),y=r(6975),_=r(5637),b=r(4108),g=a.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,v=["bottom","height","left","right","top","width","x","y"];function m(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class O extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,d.matchSegment)(t,e[r]))))return;let r=null,n=e.hashFragment;if(n&&(r=function(e){var t;return"top"===e?document.body:null!=(t=document.getElementById(e))?t:document.getElementsByName(e)[0]}(n)),!r)r=(0,g.findDOMNode)(this);if(!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return v.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(n){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!m(r,t)&&(e.scrollTop=0,m(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function E(e){let{segmentPath:t,children:r}=e,n=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!n)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,u.jsx)(O,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef,children:r})}function R(e){let{tree:t,segmentPath:r,cacheNode:n,url:o}=e,a=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!a)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let{changeByServerResponse:f,tree:p}=a,h=null!==n.prefetchRsc?n.prefetchRsc:n.rsc,y=(0,l.useDeferredValue)(n.rsc,h),_="object"==typeof y&&null!==y&&"function"==typeof y.then?(0,l.use)(y):y;if(!_){let e=n.lazyData;if(null===e){let t=function e(t,r){if(t){let[n,o]=t,u=2===t.length;if((0,d.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(u){let t=e(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:e(t.slice(2),r[1][o])}]}}return r}(["",...r],p),u=(0,b.hasInterceptionRouteInCurrentTree)(p);n.lazyData=e=(0,c.fetchServerResponse)(new URL(o,location.origin),{flightRouterState:t,nextUrl:u?a.nextUrl:null}).then(e=>((0,l.startTransition)(()=>{f({previousTree:p,serverResponse:e})}),e)),(0,l.use)(e)}(0,l.use)(s.unresolvedThenable)}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{parentTree:t,parentCacheNode:n,parentSegmentPath:r,url:o},children:_})}function P(e){let t,{loading:r,children:n}=e;if(t="object"==typeof r&&null!==r&&"function"==typeof r.then?(0,l.use)(r):r){let e=t[0],r=t[1],o=t[2];return(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[r,o,e]}),children:n})}return(0,u.jsx)(u.Fragment,{children:n})}function j(e){let{parallelRouterKey:t,error:r,errorStyles:n,errorScripts:o,templateStyles:a,templateScripts:c,template:s,notFound:d,forbidden:p,unauthorized:b}=e,g=(0,l.useContext)(i.LayoutRouterContext);if(!g)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:v,parentCacheNode:m,parentSegmentPath:O,url:j}=g,T=m.parallelRoutes,S=T.get(t);S||(S=new Map,T.set(t,S));let M=v[0],w=v[1][t],x=w[0],C=null===O?[t]:O.concat([M,t]),A=(0,_.createRouterCacheKey)(x),N=(0,_.createRouterCacheKey)(x,!0),D=S.get(A);if(void 0===D){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};D=e,S.set(A,e)}let U=m.loading;return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(E,{segmentPath:C,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:n,errorScripts:o,children:(0,u.jsx)(P,{loading:U,children:(0,u.jsx)(y.HTTPAccessFallbackBoundary,{notFound:d,forbidden:p,unauthorized:b,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(R,{url:j,tree:w,cacheNode:D,segmentPath:C})})})})})}),children:[a,c,s]},N)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let n=r(6966)._(r(2115)),o=n.default.createContext(null);function u(e){let t=(0,n.useContext)(o);t&&t(e)}},7599:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n=r(7865).unstable_rethrow;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7650:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(8730)},7755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return u}});let n=r(7276),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,r,u;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,u]=e.split(r,2);break}if(!t||!r||!u)throw Object.defineProperty(Error("Invalid interception route: "+e+". Must be in the format //(..|...|..)(..)/"),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":u="/"===t?"/"+u:t+"/"+u;break;case"(..)":if("/"===t)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..) marker at the root level, use (.) instead."),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..)(..) marker at the root level or one level up."),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});u=l.slice(0,-2).concat(u).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:u}}},7760:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return l}});let n=r(2115),o=r(7650),u="next-route-announcer";function l(e){let{tree:t}=e,[r,l]=(0,n.useState)(null);(0,n.useEffect)(()=>(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,n.useState)(""),c=(0,n.useRef)(void 0);return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),r?(0,o.createPortal)(a,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7801:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return s}});let n=r(1139),o=r(7442),u=r(9234),l=r(3894),a=r(878),i=r(3507),c=r(6158);function s(e,t){let{serverResponse:{flightData:r,canonicalUrl:s}}=t,f={};if(f.preserveCustomHistoryState=!1,"string"==typeof r)return(0,l.handleExternalUrl)(e,f,r,e.pushRef.pendingPush);let d=e.tree,p=e.cache;for(let t of r){let{segmentPath:r,tree:i}=t,h=(0,o.applyRouterStatePatchToTree)(["",...r],d,i,e.canonicalUrl);if(null===h)return e;if((0,u.isNavigatingToNewRootLayout)(d,h))return(0,l.handleExternalUrl)(e,f,e.canonicalUrl,e.pushRef.pendingPush);let y=s?(0,n.createHrefFromUrl)(s):void 0;y&&(f.canonicalUrl=y);let _=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(p,_,t),f.patchedTree=h,f.cache=_,p=_,d=h}return(0,i.handleMutable)(e,f)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"makeUntrackedExoticParams",{enumerable:!0,get:function(){return u}});let n=r(7541),o=new WeakMap;function u(e){let t=o.get(e);if(t)return t;let r=Promise.resolve(e);return o.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,o.isNextRouterError)(t)||(0,n.isBailoutToCSRError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(5262),o=r(2858);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8229:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},8287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{METADATA_BOUNDARY_NAME:function(){return r},OUTLET_BOUNDARY_NAME:function(){return o},VIEWPORT_BOUNDARY_NAME:function(){return n}});let r="__next_metadata_boundary__",n="__next_viewport_boundary__",o="__next_outlet_boundary__"},8291:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(u)){let e=JSON.stringify(t);return"{}"!==e?u+"?"+e:u}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return l},PAGE_SEGMENT_KEY:function(){return u},addSearchParamsIfPageSegment:function(){return o},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let u="__PAGE__",l="__DEFAULT__"},8324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"makeUntrackedExoticSearchParams",{enumerable:!0,get:function(){return u}});let n=r(7541),o=new WeakMap;function u(e){let t=o.get(e);if(t)return t;let r=Promise.resolve(e);return o.set(e,r),Object.keys(e).forEach(t=>{n.wellKnownProperties.has(t)||(r[t]=e[t])}),r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8527:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return o}});let n=""+r(6494).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function o(){let e=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createFetch:function(){return y},createFromNextReadableStream:function(){return _},fetchServerResponse:function(){return h},urlToUrlWithoutFlightMarker:function(){return f}});let n=r(3269),o=r(3806),u=r(1818),l=r(9818),a=r(2561),i=r(5624),c=r(8969),{createFromReadableStream:s}=r(4979);function f(e){let t=new URL(e,location.origin);if(t.searchParams.delete(n.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,r=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-r)}return t}function d(e){return{flightData:f(e).toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}let p=new AbortController;async function h(e,t){let{flightRouterState:r,nextUrl:o,prefetchKind:u}=t,c={[n.RSC_HEADER]:"1",[n.NEXT_ROUTER_STATE_TREE_HEADER]:encodeURIComponent(JSON.stringify(r))};u===l.PrefetchKind.AUTO&&(c[n.NEXT_ROUTER_PREFETCH_HEADER]="1"),o&&(c[n.NEXT_URL]=o);try{var s;let t=u?u===l.PrefetchKind.TEMPORARY?"high":"low":"auto";(e=new URL(e)).pathname.endsWith("/")?e.pathname+="index.txt":e.pathname+=".txt";let r=await y(e,c,t,p.signal),o=f(r.url),h=r.redirected?o:void 0,b=r.headers.get("content-type")||"",g=!!(null==(s=r.headers.get("vary"))?void 0:s.includes(n.NEXT_URL)),v=!!r.headers.get(n.NEXT_DID_POSTPONE_HEADER),m=r.headers.get(n.NEXT_ROUTER_STALE_TIME_HEADER),O=null!==m?parseInt(m,10):-1,E=b.startsWith(n.RSC_CONTENT_TYPE_HEADER);if(E||(E=b.startsWith("text/plain")),!E||!r.ok||!r.body)return e.hash&&(o.hash=e.hash),d(o.toString());let R=v?function(e){let t=e.getReader();return new ReadableStream({async pull(e){for(;;){let{done:r,value:n}=await t.read();if(!r){e.enqueue(n);continue}return}}})}(r.body):r.body,P=await _(R);if((0,i.getAppBuildId)()!==P.b)return d(r.url);return{flightData:(0,a.normalizeFlightData)(P.f),canonicalUrl:h,couldBeIntercepted:g,prerendered:P.S,postponed:v,staleTime:O}}catch(t){return p.signal.aborted||console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),{flightData:e.toString(),canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1}}}function y(e,t,r,n){let o=new URL(e);return(0,c.setCacheBustingSearchParam)(o,t),fetch(o,{credentials:"same-origin",headers:t,priority:r||void 0,signal:n})}function _(e){return s(e,{callServer:o.callServer,findSourceMapURL:u.findSourceMapURL})}window.addEventListener("pagehide",()=>{p.abort()}),window.addEventListener("pageshow",()=>{p=new AbortController}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8709:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return w}});let n=r(3806),o=r(1818),u=r(3269),l=r(9818),a=r(1315),i=r(1139),c=r(3894),s=r(7442),f=r(9234),d=r(3507),p=r(4758),h=r(6158),y=r(4108),_=r(6375),b=r(4908),g=r(2561),v=r(6825),m=r(2210),O=r(1518),E=r(4882),R=r(7102),P=r(2816);r(6005);let{createFromFetch:j,createTemporaryReferenceSet:T,encodeReply:S}=r(4979);async function M(e,t,r){let l,i,{actionId:c,actionArgs:s}=r,f=T(),d=(0,P.extractInfoFromServerReferenceId)(c),p="use-cache"===d.type?(0,P.omitUnusedArgs)(s,d):s,h=await S(p,{temporaryReferences:f}),y=await fetch("",{method:"POST",headers:{Accept:u.RSC_CONTENT_TYPE_HEADER,[u.ACTION_HEADER]:c,[u.NEXT_ROUTER_STATE_TREE_HEADER]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[u.NEXT_URL]:t}:{}},body:h}),_=y.headers.get("x-action-redirect"),[b,v]=(null==_?void 0:_.split(";"))||[];switch(v){case"push":l=m.RedirectType.push;break;case"replace":l=m.RedirectType.replace;break;default:l=void 0}let O=!!y.headers.get(u.NEXT_IS_PRERENDER_HEADER);try{let e=JSON.parse(y.headers.get("x-action-revalidated")||"[[],0,0]");i={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){i={paths:[],tag:!1,cookie:!1}}let E=b?(0,a.assignLocation)(b,new URL(e.canonicalUrl,window.location.href)):void 0,R=y.headers.get("content-type");if(null==R?void 0:R.startsWith(u.RSC_CONTENT_TYPE_HEADER)){let e=await j(Promise.resolve(y),{callServer:n.callServer,findSourceMapURL:o.findSourceMapURL,temporaryReferences:f});return b?{actionFlightData:(0,g.normalizeFlightData)(e.f),redirectLocation:E,redirectType:l,revalidatedParts:i,isPrerender:O}:{actionResult:e.a,actionFlightData:(0,g.normalizeFlightData)(e.f),redirectLocation:E,redirectType:l,revalidatedParts:i,isPrerender:O}}if(y.status>=400)throw Object.defineProperty(Error("text/plain"===R?await y.text():"An unexpected response was received from the server."),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return{redirectLocation:E,redirectType:l,revalidatedParts:i,isPrerender:O}}function w(e,t){let{resolve:r,reject:n}=t,o={},u=e.tree;o.preserveCustomHistoryState=!1;let a=e.nextUrl&&(0,y.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return M(e,a,t).then(async y=>{let g,{actionResult:P,actionFlightData:j,redirectLocation:T,redirectType:S,isPrerender:M,revalidatedParts:w}=y;if(T&&(S===m.RedirectType.replace?(e.pushRef.pendingPush=!1,o.pendingPush=!1):(e.pushRef.pendingPush=!0,o.pendingPush=!0),o.canonicalUrl=g=(0,i.createHrefFromUrl)(T,!1)),!j)return(r(P),T)?(0,c.handleExternalUrl)(e,o,T.href,e.pushRef.pendingPush):e;if("string"==typeof j)return r(P),(0,c.handleExternalUrl)(e,o,j,e.pushRef.pendingPush);let x=w.paths.length>0||w.tag||w.cookie;for(let n of j){let{tree:l,seedData:i,head:d,isRootRender:y}=n;if(!y)return console.log("SERVER ACTION APPLY FAILED"),r(P),e;let v=(0,s.applyRouterStatePatchToTree)([""],u,l,g||e.canonicalUrl);if(null===v)return r(P),(0,_.handleSegmentMismatch)(e,t,l);if((0,f.isNavigatingToNewRootLayout)(u,v))return r(P),(0,c.handleExternalUrl)(e,o,g||e.canonicalUrl,e.pushRef.pendingPush);if(null!==i){let t=i[1],r=(0,h.createEmptyCacheNode)();r.rsc=t,r.prefetchRsc=null,r.loading=i[3],(0,p.fillLazyItemsTillLeafWithHead)(r,void 0,l,i,d,void 0),o.cache=r,o.prefetchCache=new Map,x&&await (0,b.refreshInactiveParallelSegments)({state:e,updatedTree:v,updatedCache:r,includeNextUrl:!!a,canonicalUrl:o.canonicalUrl||e.canonicalUrl})}o.patchedTree=v,u=v}return T&&g?(x||((0,O.createSeededPrefetchCacheEntry)({url:T,data:{flightData:j,canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1},tree:e.tree,prefetchCache:e.prefetchCache,nextUrl:e.nextUrl,kind:M?l.PrefetchKind.FULL:l.PrefetchKind.AUTO}),o.prefetchCache=e.prefetchCache),n((0,v.getRedirectError)((0,R.hasBasePath)(g)?(0,E.removeBasePath)(g):g,S||m.RedirectType.push))):r(P),(0,d.handleMutable)(e,o)},t=>(n(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8730:(e,t,r)=>{"use strict";var n=r(2115);function o(e){var t="https://react.dev/errors/"+e;if(1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{handleHardNavError:function(){return o},useNavFailureHandler:function(){return u}}),r(2115);let n=r(1139);function o(e){return!!e&&!!window.next.__pendingUrl&&(0,n.createHrefFromUrl)(new URL(window.location.href))!==(0,n.createHrefFromUrl)(window.next.__pendingUrl)&&(console.error("Error occurred during navigation, falling back to hard navigation",e),window.location.href=window.next.__pendingUrl.toString(),!0)}function u(){}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c},getSelectedParams:function(){return function e(t,r){for(let n of(void 0===r&&(r={}),Object.values(t[1]))){let t=n[0],u=Array.isArray(t),l=u?t[1]:t;!(!l||l.startsWith(o.PAGE_SEGMENT_KEY))&&(u&&("c"===t[2]||"oc"===t[2])?r[t[0]]=t[1].split("/"):u&&(r[t[0]]=t[1]),r=e(n,r))}return r}}});let n=r(7755),o=r(8291),u=r(1127),l=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if(r===o.DEFAULT_SEGMENT_KEY||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith(o.PAGE_SEGMENT_KEY))return"";let u=[a(r)],l=null!=(t=e[1])?t:{},s=l.children?c(l.children):void 0;if(void 0!==s)u.push(s);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let r=c(t);void 0!==r&&u.push(r)}return i(u)}function s(e,t){let r=function e(t,r){let[o,l]=t,[i,s]=r,f=a(o),d=a(i);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(r))?p:""}for(let t in l)if(s[t]){let r=e(l[t],s[t]);if(null!==r)return a(i)+"/"+r}return null}(e,t);return null==r||"/"===r?r:i(r.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8969:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setCacheBustingSearchParam",{enumerable:!0,get:function(){return u}});let n=r(3942),o=r(3269),u=(e,t)=>{let r=(0,n.hexHash)([t[o.NEXT_ROUTER_PREFETCH_HEADER]||"0",t[o.NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]||"0",t[o.NEXT_ROUTER_STATE_TREE_HEADER],t[o.NEXT_URL]].join(",")),u=e.search,l=(u.startsWith("?")?u.slice(1):u).split("&").filter(Boolean);l.push(o.NEXT_RSC_UNION_QUERY+"="+r),e.search=l.length?"?"+l.join("&"):""};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},forbidden:function(){return i.forbidden},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},unauthorized:function(){return i.unauthorized},unstable_rethrow:function(){return i.unstable_rethrow},useParams:function(){return h},usePathname:function(){return d},useRouter:function(){return p},useSearchParams:function(){return f},useSelectedLayoutSegment:function(){return _},useSelectedLayoutSegments:function(){return y},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let n=r(2115),o=r(5227),u=r(886),l=r(708),a=r(8291),i=r(5618),c=r(7568),s=void 0;function f(){let e=(0,n.useContext)(u.SearchParamsContext);return(0,n.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e])}function d(){return null==s||s("usePathname()"),(0,n.useContext)(u.PathnameContext)}function p(){let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Object.defineProperty(Error("invariant expected app router to be mounted"),"__NEXT_ERROR_CODE",{value:"E238",enumerable:!1,configurable:!0});return e}function h(){return null==s||s("useParams()"),(0,n.useContext)(u.PathParamsContext)}function y(e){void 0===e&&(e="children"),null==s||s("useSelectedLayoutSegments()");let t=(0,n.useContext)(o.LayoutRouterContext);return t?function e(t,r,n,o){let u;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)u=t[1][r];else{var i;let e=t[1];u=null!=(i=e.children)?i:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,r,!1,o))}(t.parentTree,e):null}function _(e){void 0===e&&(e="children"),null==s||s("useSelectedLayoutSegment()");let t=y(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===a.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9062:(e,t,r)=>{"use strict";var n=r(7650),o={stream:!0},u=new Map;function l(e){var t=r(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function a(){}function i(e){for(var t=e[1],n=[],o=0;oc||35===c||114===c||120===c?(s=c,c=3,a++):(s=0,c=3);continue;case 2:44===(y=l[a++])?c=4:f=f<<4|(96l.length&&(y=-1)}var _=l.byteOffset+a;if(-1{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},9148:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{copyNextErrorCode:function(){return n},createDigestWithErrorCode:function(){return r},extractNextErrorCode:function(){return o}});let r=(e,t)=>"object"==typeof e&&null!==e&&"__NEXT_ERROR_CODE"in e?`${t}@${e.__NEXT_ERROR_CODE}`:t,n=(e,t)=>{let r=o(e);r&&"object"==typeof t&&null!==t&&Object.defineProperty(t,"__NEXT_ERROR_CODE",{value:r,enumerable:!1,configurable:!0})},o=e=>"object"==typeof e&&null!==e&&"__NEXT_ERROR_CODE"in e&&"string"==typeof e.__NEXT_ERROR_CODE?e.__NEXT_ERROR_CODE:"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest?e.digest.split("@").find(e=>e.startsWith("E")):void 0},9154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{prefetchQueue:function(){return u},prefetchReducer:function(){return l}});let n=r(2312),o=r(1518),u=new n.PromiseQueue(5),l=function(e,t){(0,o.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;return(0,o.getOrCreatePrefetchCacheEntry)({url:r,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,allowAliasing:!0}),e};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9155:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{onCaughtError:function(){return i},onUncaughtError:function(){return c}}),r(5128),r(5444);let n=r(2858),o=r(5262),u=r(1646),l=r(6905),a=r(6614);function i(e,t){var r;let u;let i=null==(r=t.errorBoundary)?void 0:r.constructor;if(u=u||i===a.ErrorBoundaryHandler&&t.errorBoundary.props.errorComponent===a.GlobalError)return c(e,t);(0,o.isBailoutToCSRError)(e)||(0,n.isNextRouterError)(e)||(0,l.originConsoleError)(e)}function c(e,t){(0,o.isBailoutToCSRError)(e)||(0,n.isNextRouterError)(e)||(0,u.reportGlobalError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9187:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(6494).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,r){let n=t[0],o=r[0];if(Array.isArray(n)&&Array.isArray(o)){if(n[0]!==o[0]||n[2]!==o[2])return!0}else if(n!==o)return!0;if(t[4])return!r[4];if(r[4])return!0;let u=Object.values(t[1])[0],l=Object.values(r[1])[0];return!u||!l||e(u,l)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9509:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(666)},9665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MetadataBoundary:function(){return u},OutletBoundary:function(){return a},ViewportBoundary:function(){return l}});let n=r(8287),o={[n.METADATA_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.VIEWPORT_BOUNDARY_NAME]:function(e){let{children:t}=e;return t},[n.OUTLET_BOUNDARY_NAME]:function(e){let{children:t}=e;return t}},u=o[n.METADATA_BOUNDARY_NAME.slice(0)],l=o[n.VIEWPORT_BOUNDARY_NAME.slice(0)],a=o[n.OUTLET_BOUNDARY_NAME.slice(0)];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createMutableActionQueue:function(){return s},getCurrentAppRouterState:function(){return f}});let n=r(9818),o=r(9726),u=r(2115),l=r(5122);function a(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?i({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:n.ACTION_REFRESH,origin:window.location.origin},t)))}async function i(e){let{actionQueue:t,action:r,setState:n}=e,o=t.state;t.pending=r;let u=r.payload,i=t.action(o,u);function c(e){!r.discarded&&(t.state=e,a(t,n),r.resolve(e))}(0,l.isThenable)(i)?i.then(c,e=>{a(t,n),r.reject(e)}):c(i)}let c=null;function s(e){let t={state:e,dispatch:(e,r)=>(function(e,t,r){let o={resolve:r,reject:()=>{}};if(t.type!==n.ACTION_RESTORE){let e=new Promise((e,t)=>{o={resolve:e,reject:t}});(0,u.startTransition)(()=>{r(e)})}let l={payload:t,next:null,resolve:o.resolve,reject:o.reject};null===e.pending?(e.last=l,i({actionQueue:e,action:l,setState:r})):t.type===n.ACTION_NAVIGATE||t.type===n.ACTION_RESTORE?(e.pending.discarded=!0,l.next=e.pending.next,e.pending.payload.type===n.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),i({actionQueue:e,action:l,setState:r})):(null!==e.last&&(e.last.next=l),e.last=l)})(t,e,r),action:async(e,t)=>(0,o.reducer)(e,t),pending:null,last:null};if(null!==c)throw Object.defineProperty(Error("Internal Next.js Error: createMutableActionQueue was called more than once"),"__NEXT_ERROR_CODE",{value:"E624",enumerable:!1,configurable:!0});return c=t,t}function f(){return null!==c?c.state:null}},9726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(9818),o=r(3894),u=r(7801),l=r(4819),a=r(5542),i=r(9154),c=r(3612),s=r(8709),f=function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case n.ACTION_HMR_REFRESH:return(0,c.hmrRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Object.defineProperty(Error("Unknown action"),"__NEXT_ERROR_CODE",{value:"E295",enumerable:!1,configurable:!0})}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9771:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getHydrationWarningType:function(){return a},getReactHydrationDiffSegments:function(){return s},hydrationErrorState:function(){return o},storeHydrationErrorStateFromConsoleArgs:function(){return f}});let n=r(6465),o={},u=new Set(["Warning: In HTML, %s cannot be a child of <%s>.%s\nThis will cause a hydration error.%s","Warning: In HTML, %s cannot be a descendant of <%s>.\nThis will cause a hydration error.%s","Warning: In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.","Warning: In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.","Warning: Expected server HTML to contain a matching <%s> in <%s>.%s","Warning: Did not expect server HTML to contain a <%s> in <%s>.%s"]),l=new Set(['Warning: Expected server HTML to contain a matching text node for "%s" in <%s>.%s','Warning: Did not expect server HTML to contain the text node "%s" in <%s>.%s']),a=e=>{if("string"!=typeof e)return"text";let t=e.startsWith("Warning: ")?e:"Warning: "+e;return i(t)?"tag":c(t)?"text-in-tag":"text"},i=e=>u.has(e),c=e=>l.has(e),s=e=>{if(e){let{message:t,diff:r}=(0,n.getHydrationErrorStackInfo)(e);if(t)return[t,r]}};function f(){for(var e=arguments.length,t=Array(e),r=0;r{e=e.trim();let[,l,a]=/at (\w+)( \((.*)\))?/.exec(e)||[];return a||(l===t&&-1===o?o=n:l!==r||-1!==u||(u=n)),a?"":l}).filter(Boolean).reverse(),c="";for(let e=0;e "+" ".repeat(Math.max(2*e-2,0)+2)+"<"+t+">\n":c+=" ".repeat(2*e+2)+"<"+t+">\n"}if("text"===l){let e=" ".repeat(2*i.length);c+="+ "+e+'"'+t+'"\n'+("- "+e+'"'+r)+'"\n'}else if("text-in-tag"===l){let e=" ".repeat(2*i.length);c+="> "+e+"<"+r+">\n"+("> "+e+'"'+t)+'"\n'}return c}(u,l,i,n):o.reactOutputComponentDiff=n,o.warning=r,o.serverContent=l,o.clientContent=i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_HMR_REFRESH:function(){return a},ACTION_NAVIGATE:function(){return n},ACTION_PREFETCH:function(){return l},ACTION_REFRESH:function(){return r},ACTION_RESTORE:function(){return o},ACTION_SERVER_ACTION:function(){return i},ACTION_SERVER_PATCH:function(){return u},PrefetchCacheEntryStatus:function(){return s},PrefetchKind:function(){return c}});let r="refresh",n="navigate",o="restore",u="server-patch",l="prefetch",a="hmr-refresh",i="server-action";var c=function(e){return e.AUTO="auto",e.FULL="full",e.TEMPORARY="temporary",e}({}),s=function(e){return e.fresh="fresh",e.reusable="reusable",e.expired="expired",e.stale="stale",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"InvariantError",{enumerable:!0,get:function(){return r}});class r extends Error{constructor(e,t){super("Invariant: "+(e.endsWith(".")?e:e+".")+" This is a bug in Next.js.",t),this.name="InvariantError"}}},9880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,r,u){let l=u.length<=2,[a,i]=u,c=(0,o.createRouterCacheKey)(i),s=r.parallelRoutes.get(a),f=t.parallelRoutes.get(a);f&&f!==s||(f=new Map(s),t.parallelRoutes.set(a,f));let d=null==s?void 0:s.get(c),p=f.get(c);if(l){p&&p.lazyData&&p!==d||f.set(c,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null});return}if(!p||!d){p||f.set(c,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null});return}return p===d&&(p={lazyData:p.lazyData,rsc:p.rsc,prefetchRsc:p.prefetchRsc,head:p.head,prefetchHead:p.prefetchHead,parallelRoutes:new Map(p.parallelRoutes),loading:p.loading},f.set(c,p)),e(p,d,(0,n.getNextFlightSegmentPath)(u))}}});let n=r(2561),o=r(5637);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useUntrackedPathname",{enumerable:!0,get:function(){return u}});let n=r(2115),o=r(886);function u(){return(0,n.useContext)(o.PathnameContext)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/775-e50ffdc055346ff7.js b/_backend/frontend/_next/static/chunks/775-e50ffdc055346ff7.js new file mode 100644 index 0000000000000000000000000000000000000000..89cc1231e3d9d2893915b898ccdd55ad67665e49 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/775-e50ffdc055346ff7.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[775],{1114:(e,t,n)=>{"use strict";n.d(t,{rc:()=>ef,bm:()=>ep,VY:()=>ed,Kq:()=>ea,bL:()=>es,hE:()=>ec,LM:()=>eu});var r,o=n(2115),i=n.t(o,2),l=n(7650);function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return o.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=u(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=o.createContext(r),l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[l]||i,s=o.useMemo(()=>a,Object.values(a));return(0,p.jsx)(u.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||i,s=o.useContext(u);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var v=n(6634),h=new WeakMap;function g(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=y(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function y(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap;var w=n(338),x=n(7268),b=globalThis?.document?o.useLayoutEffect:()=>{},E=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=o.useState(),l=o.useRef(null),a=o.useRef(e),u=o.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=R(l.current);u.current="mounted"===s?e:"none"},[s]),b(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=R(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),b(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=R(l.current).includes(e.animationName);if(e.target===r&&o&&(c("ANIMATION_END"),!a.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(u.current=R(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:o.useCallback(e=>{l.current=e?getComputedStyle(e):null,i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),l=s(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof n||r.isPresent?o.cloneElement(i,{ref:l}):null};function R(e){return(null==e?void 0:e.animationName)||"none"}E.displayName="Presence";var T=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,v.TL)(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function C(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}var M=i[" useInsertionEffect ".trim().toString()]||b,N=(Symbol("RADIX:SYNC_STATE"),Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"})),A=o.forwardRef((e,t)=>(0,p.jsx)(T.span,{...e,ref:t,style:{...N,...e.style}}));A.displayName="VisuallyHidden";var S="ToastProvider",[P,j,k]=function(e){let t=e+"CollectionProvider",[n,r]=m(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=o.useRef(null),l=o.useRef(new Map).current;return(0,p.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let u=e+"CollectionSlot",c=(0,v.TL)(u),d=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(t,l(u,n).collectionRef);return(0,p.jsx)(c,{ref:o,children:r})});d.displayName=u;let f=e+"CollectionItemSlot",h="data-radix-collection-item",g=(0,v.TL)(f),y=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=o.useRef(null),u=s(t,a),c=l(f,n);return o.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),(0,p.jsx)(g,{[h]:"",ref:u,children:r})});return y.displayName=f,[{Provider:a,Slot:d,ItemSlot:y},function(t){let n=l(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}("Toast"),[L,D]=m("Toast",[k]),[O,I]=L(S),_=e=>{let{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:l=50,children:a}=e,[u,s]=o.useState(null),[c,d]=o.useState(0),f=o.useRef(!1),m=o.useRef(!1);return n.trim()||console.error("Invalid prop `label` supplied to `".concat(S,"`. Expected non-empty `string`.")),(0,p.jsx)(P.Provider,{scope:t,children:(0,p.jsx)(O,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:l,toastCount:c,viewport:u,onViewportChange:s,onToastAdd:o.useCallback(()=>d(e=>e+1),[]),onToastRemove:o.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:a})})};_.displayName=S;var F="ToastViewport",U=["F8"],K="toast.viewportPause",W="toast.viewportResume",H=o.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:r=U,label:i="Notifications ({hotkey})",...l}=e,a=I(F,n),u=j(n),c=o.useRef(null),d=o.useRef(null),f=o.useRef(null),m=o.useRef(null),v=s(t,m,a.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=a.toastCount>0;o.useEffect(()=>{let e=e=>{var t;0!==r.length&&r.every(t=>e[t]||e.code===t)&&(null===(t=m.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),o.useEffect(()=>{let e=c.current,t=m.current;if(g&&e&&t){let n=()=>{if(!a.isClosePausedRef.current){let e=new CustomEvent(K);t.dispatchEvent(e),a.isClosePausedRef.current=!0}},r=()=>{if(a.isClosePausedRef.current){let e=new CustomEvent(W);t.dispatchEvent(e),a.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||r()},i=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",i),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[g,a.isClosePausedRef]);let y=o.useCallback(e=>{let{tabbingDirection:t}=e,n=u().map(e=>{let n=e.ref.current,r=[n,...function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===t?r:r.reverse()});return("forwards"===t?n.reverse():n).flat()},[u]);return o.useEffect(()=>{let e=m.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){var r,o,i;let n=document.activeElement,l=t.shiftKey;if(t.target===e&&l){null===(r=d.current)||void 0===r||r.focus();return}let a=y({tabbingDirection:l?"backwards":"forwards"}),u=a.findIndex(e=>e===n);el(a.slice(u+1))?t.preventDefault():l?null===(o=d.current)||void 0===o||o.focus():null===(i=f.current)||void 0===i||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[u,y]),(0,p.jsxs)(w.lg,{ref:c,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&(0,p.jsx)(V,{ref:d,onFocusFromOutsideViewport:()=>{el(y({tabbingDirection:"forwards"}))}}),(0,p.jsx)(P.Slot,{scope:n,children:(0,p.jsx)(T.ol,{tabIndex:-1,...l,ref:v})}),g&&(0,p.jsx)(V,{ref:f,onFocusFromOutsideViewport:()=>{el(y({tabbingDirection:"backwards"}))}})]})});H.displayName=F;var $="ToastFocusProxy",V=o.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=I($,n);return(0,p.jsx)(A,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let n=e.relatedTarget;(null===(t=i.viewport)||void 0===t?void 0:t.contains(n))||r()}})});V.displayName=$;var B="Toast",z=o.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:l,...u}=e,[s,c]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,l,a]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),l=o.useRef(t);return M(()=>{l.current=t},[t]),o.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,r,l]}({defaultProp:t,onChange:n}),u=void 0!==e,s=u?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[s,o.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}({prop:r,defaultProp:null==i||i,onChange:l,caller:B});return(0,p.jsx)(E,{present:n||s,children:(0,p.jsx)(q,{open:s,...u,ref:t,onClose:()=>c(!1),onPause:C(e.onPause),onResume:C(e.onResume),onSwipeStart:a(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:a(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(n,"px"))}),onSwipeCancel:a(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:a(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(n,"px")),c(!1)})})})});z.displayName=B;var[Y,X]=L(B,{onClose(){}}),q=o.forwardRef((e,t)=>{let{__scopeToast:n,type:r="foreground",duration:i,open:u,onClose:c,onEscapeKeyDown:d,onPause:f,onResume:m,onSwipeStart:v,onSwipeMove:h,onSwipeCancel:g,onSwipeEnd:y,...x}=e,b=I(B,n),[E,R]=o.useState(null),M=s(t,e=>R(e)),N=o.useRef(null),A=o.useRef(null),S=i||b.duration,j=o.useRef(0),k=o.useRef(S),L=o.useRef(0),{onToastAdd:D,onToastRemove:O}=b,_=C(()=>{var e;(null==E?void 0:E.contains(document.activeElement))&&(null===(e=b.viewport)||void 0===e||e.focus()),c()}),F=o.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(L.current),j.current=new Date().getTime(),L.current=window.setTimeout(_,e))},[_]);o.useEffect(()=>{let e=b.viewport;if(e){let t=()=>{F(k.current),null==m||m()},n=()=>{let e=new Date().getTime()-j.current;k.current=k.current-e,window.clearTimeout(L.current),null==f||f()};return e.addEventListener(K,n),e.addEventListener(W,t),()=>{e.removeEventListener(K,n),e.removeEventListener(W,t)}}},[b.viewport,S,f,m,F]),o.useEffect(()=>{u&&!b.isClosePausedRef.current&&F(S)},[u,S,b.isClosePausedRef,F]),o.useEffect(()=>(D(),()=>O()),[D,O]);let U=o.useMemo(()=>E?function e(t){let n=[];return Array.from(t.childNodes).forEach(t=>{var r;if(t.nodeType===t.TEXT_NODE&&t.textContent&&n.push(t.textContent),(r=t).nodeType===r.ELEMENT_NODE){let r=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!r){if(o){let e=t.dataset.radixToastAnnounceAlt;e&&n.push(e)}else n.push(...e(t))}}}),n}(E):null,[E]);return b.viewport?(0,p.jsxs)(p.Fragment,{children:[U&&(0,p.jsx)(G,{__scopeToast:n,role:"status","aria-live":"foreground"===r?"assertive":"polite","aria-atomic":!0,children:U}),(0,p.jsx)(Y,{scope:n,onClose:_,children:l.createPortal((0,p.jsx)(P.ItemSlot,{scope:n,children:(0,p.jsx)(w.bL,{asChild:!0,onEscapeKeyDown:a(d,()=>{b.isFocusedToastEscapeKeyDownRef.current||_(),b.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,p.jsx)(T.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":b.swipeDirection,...x,ref:M,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:a(e.onKeyDown,e=>{"Escape"!==e.key||(null==d||d(e.nativeEvent),e.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,_()))}),onPointerDown:a(e.onPointerDown,e=>{0===e.button&&(N.current={x:e.clientX,y:e.clientY})}),onPointerMove:a(e.onPointerMove,e=>{if(!N.current)return;let t=e.clientX-N.current.x,n=e.clientY-N.current.y,r=!!A.current,o=["left","right"].includes(b.swipeDirection),i=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,l=o?i(0,t):0,a=o?0:i(0,n),u="touch"===e.pointerType?10:2,s={x:l,y:a},c={originalEvent:e,delta:s};r?(A.current=s,eo("toast.swipeMove",h,c,{discrete:!1})):ei(s,b.swipeDirection,u)?(A.current=s,eo("toast.swipeStart",v,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>u||Math.abs(n)>u)&&(N.current=null)}),onPointerUp:a(e.onPointerUp,e=>{let t=A.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),A.current=null,N.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};ei(t,b.swipeDirection,b.swipeThreshold)?eo("toast.swipeEnd",y,r,{discrete:!0}):eo("toast.swipeCancel",g,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null}),G=e=>{let{__scopeToast:t,children:n,...r}=e,i=I(B,t),[l,a]=o.useState(!1),[u,s]=o.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=C(e);b(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>a(!0)),o.useEffect(()=>{let e=window.setTimeout(()=>s(!0),1e3);return()=>window.clearTimeout(e)},[]),u?null:(0,p.jsx)(x.Z,{asChild:!0,children:(0,p.jsx)(A,{...r,children:l&&(0,p.jsxs)(p.Fragment,{children:[i.label," ",n]})})})},Z=o.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,p.jsx)(T.div,{...r,ref:t})});Z.displayName="ToastTitle";var J=o.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,p.jsx)(T.div,{...r,ref:t})});J.displayName="ToastDescription";var Q="ToastAction",ee=o.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,p.jsx)(er,{altText:n,asChild:!0,children:(0,p.jsx)(en,{...r,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(Q,"`. Expected non-empty `string`.")),null)});ee.displayName=Q;var et="ToastClose",en=o.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,o=X(et,n);return(0,p.jsx)(er,{asChild:!0,children:(0,p.jsx)(T.button,{type:"button",...r,ref:t,onClick:a(e.onClick,o.onClose)})})});en.displayName=et;var er=o.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...o}=e;return(0,p.jsx)(T.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function eo(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),o)i&&l.flushSync(()=>i.dispatchEvent(a));else i.dispatchEvent(a)}var ei=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};function el(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var ea=_,eu=H,es=z,ec=Z,ed=J,ef=ee,ep=en},1362:(e,t,n)=>{"use strict";n.d(t,{N:()=>u});var r=n(2115),o=(e,t,n,r,o,i,l,a)=>{let u=document.documentElement,s=["light","dark"];function c(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&i?o.map(e=>i[e]||e):o;n?(u.classList.remove(...r),u.classList.add(i&&i[t]?i[t]:t)):u.setAttribute(e,t)}),n=t,a&&s.includes(n)&&(u.style.colorScheme=n)}if(r)c(r);else try{let e=localStorage.getItem(t)||n,r=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(r)}catch(e){}},i=["light","dark"],l="(prefers-color-scheme: dark)",a=r.createContext(void 0),u=e=>r.useContext(a)?r.createElement(r.Fragment,null,e.children):r.createElement(c,{...e}),s=["light","dark"],c=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:o=!0,enableColorScheme:u=!0,storageKey:c="theme",themes:v=s,defaultTheme:h=o?"system":"light",attribute:g="data-theme",value:y,children:w,nonce:x,scriptProps:b}=e,[E,R]=r.useState(()=>f(c,h)),[T,C]=r.useState(()=>"system"===E?m():E),M=y?Object.values(y):v,N=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=m());let r=y?y[t]:t,l=n?p(x):null,a=document.documentElement,s=e=>{"class"===e?(a.classList.remove(...M),r&&a.classList.add(r)):e.startsWith("data-")&&(r?a.setAttribute(e,r):a.removeAttribute(e))};if(Array.isArray(g)?g.forEach(s):s(g),u){let e=i.includes(h)?h:null,n=i.includes(t)?t:e;a.style.colorScheme=n}null==l||l()},[x]),A=r.useCallback(e=>{let t="function"==typeof e?e(E):e;R(t);try{localStorage.setItem(c,t)}catch(e){}},[E]),S=r.useCallback(e=>{C(m(e)),"system"===E&&o&&!t&&N("system")},[E,t]);r.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(S),S(e),()=>e.removeListener(S)},[S]),r.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?R(e.newValue):A(h))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[A]),r.useEffect(()=>{N(null!=t?t:E)},[t,E]);let P=r.useMemo(()=>({theme:E,setTheme:A,forcedTheme:t,resolvedTheme:"system"===E?T:E,themes:o?[...v,"system"]:v,systemTheme:o?T:void 0}),[E,A,t,T,o,v]);return r.createElement(a.Provider,{value:P},r.createElement(d,{forcedTheme:t,storageKey:c,attribute:g,enableSystem:o,enableColorScheme:u,defaultTheme:h,value:y,themes:v,nonce:x,scriptProps:b}),w)},d=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:i,enableSystem:l,enableColorScheme:a,defaultTheme:u,value:s,themes:c,nonce:d,scriptProps:f}=e,p=JSON.stringify([i,n,u,t,c,s,l,a]).slice(1,-1);return r.createElement("script",{...f,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(p,")")}})}),f=(e,t)=>{let n;try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t},p=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},m=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},1497:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},2432:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]])},2475:(e,t,n)=>{"use strict";n.d(t,{UE:()=>ef,ll:()=>el,rD:()=>em,UU:()=>es,jD:()=>ed,ER:()=>ep,cY:()=>ea,BN:()=>eu,Ej:()=>ec});let r=["top","right","bottom","left"],o=Math.min,i=Math.max,l=Math.round,a=Math.floor,u=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function h(e){return["top","bottom"].includes(f(e))?"y":"x"}function g(e){return e.replace(/start|end/g,e=>c[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function x(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function b(e,t,n){let r,{reference:o,floating:i}=e,l=h(t),a=m(h(t)),u=v(a),s=f(t),c="y"===l,d=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[u]/2-i[u]/2;switch(s){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:g};break;case"left":r={x:o.x-i.width,y:g};break;default:r={x:o.x,y:o.y}}switch(p(t)){case"start":r[a]-=y*(n&&c?-1:1);break;case"end":r[a]+=y*(n&&c?-1:1)}return r}let E=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=b(s,r,u),f=r,p={},m=0;for(let n=0;ne[t]>=0)}async function M(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=f(n),a=p(n),u="y"===h(n),s=["left","top"].includes(l)?-1:1,c=i&&u?-1:1,m=d(t,e),{mainAxis:v,crossAxis:g,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&"number"==typeof y&&(g="end"===a?-1*y:y),u?{x:g*c,y:v*s}:{x:v*s,y:g*c}}function N(){return"undefined"!=typeof window}function A(e){return j(e)?(e.nodeName||"").toLowerCase():"#document"}function S(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function P(e){var t;return null==(t=(j(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function j(e){return!!N()&&(e instanceof Node||e instanceof S(e).Node)}function k(e){return!!N()&&(e instanceof Element||e instanceof S(e).Element)}function L(e){return!!N()&&(e instanceof HTMLElement||e instanceof S(e).HTMLElement)}function D(e){return!!N()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof S(e).ShadowRoot)}function O(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=K(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function I(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function _(e){let t=F(),n=k(e)?K(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function F(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function U(e){return["html","body","#document"].includes(A(e))}function K(e){return S(e).getComputedStyle(e)}function W(e){return k(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function H(e){if("html"===A(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||P(e);return D(t)?t.host:t}function $(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=H(t);return U(n)?t.ownerDocument?t.ownerDocument.body:t.body:L(n)&&O(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=S(o);if(i){let e=V(l);return t.concat(l,l.visualViewport||[],O(o)?o:[],e&&n?$(e):[])}return t.concat(o,$(o,[],n))}function V(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function B(e){let t=K(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=L(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=l(n)!==i||l(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function z(e){return k(e)?e:e.contextElement}function Y(e){let t=z(e);if(!L(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=B(t),a=(i?l(n.width):n.width)/r,s=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let X=u(0);function q(e){let t=S(e);return F()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:X}function G(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=z(e),a=u(1);t&&(r?k(r)&&(a=Y(r)):a=Y(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===S(l))&&o)?q(l):u(0),c=(i.left+s.x)/a.x,d=(i.top+s.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(l){let e=S(l),t=r&&k(r)?S(r):r,n=e,o=V(n);for(;o&&r&&t!==n;){let e=Y(o),t=o.getBoundingClientRect(),r=K(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=i,d+=l,o=V(n=S(o))}}return x({width:f,height:p,x:c,y:d})}function Z(e,t){let n=W(e).scrollLeft;return t?t.left+n:G(P(e)).left+n}function J(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Z(e,r)),y:r.top+t.scrollTop}}function Q(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=S(e),r=P(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=F();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=P(e),n=W(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+Z(e),u=-n.scrollTop;return"rtl"===K(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:u}}(P(e));else if(k(t))r=function(e,t){let n=G(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=L(e)?Y(e):u(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=q(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(r)}function ee(e){return"static"===K(e).position}function et(e,t){if(!L(e)||"fixed"===K(e).position)return null;if(t)return t(e);let n=e.offsetParent;return P(e)===n&&(n=n.ownerDocument.body),n}function en(e,t){let n=S(e);if(I(e))return n;if(!L(e)){let t=H(e);for(;t&&!U(t);){if(k(t)&&!ee(t))return t;t=H(t)}return n}let r=et(e,t);for(;r&&["table","td","th"].includes(A(r))&&ee(r);)r=et(r,t);return r&&U(r)&&ee(r)&&!_(r)?n:r||function(e){let t=H(e);for(;L(t)&&!U(t);){if(_(t))return t;if(I(t))break;t=H(t)}return null}(e)||n}let er=async function(e){let t=this.getOffsetParent||en,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=L(t),o=P(t),i="fixed"===n,l=G(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=u(0);if(r||!r&&!i){if(("body"!==A(t)||O(o))&&(a=W(t)),r){let e=G(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=Z(o))}i&&!r&&o&&(s.x=Z(o));let c=!o||r||i?u(0):J(o,a);return{x:l.left+a.scrollLeft-s.x-c.x,y:l.top+a.scrollTop-s.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=P(r),a=!!t&&I(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),f=L(r);if((f||!f&&!i)&&(("body"!==A(r)||O(l))&&(s=W(r)),L(r))){let e=G(r);c=Y(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=!l||f||i?u(0):J(l,s,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-s.scrollTop*c.y+d.y+p.y}},getDocumentElement:P,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?I(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=$(e,[],!1).filter(e=>k(e)&&"body"!==A(e)),o=null,i="fixed"===K(e).position,l=i?H(e):e;for(;k(l)&&!U(l);){let t=K(l),n=_(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||O(l)&&!n&&function e(t,n){let r=H(t);return!(r===n||!k(r)||U(r))&&("fixed"===K(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=H(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=a[0],s=a.reduce((e,n)=>{let r=Q(t,n,l);return e.top=i(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=i(r.left,e.left),e},Q(t,u,l));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:en,getElementRects:er,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=B(e);return{width:t,height:n}},getScale:Y,isElement:k,isRTL:function(e){return"rtl"===K(e).direction}};function ei(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function el(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=z(e),m=u||s?[...p?$(p):[],...$(t)]:[];m.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let v=p&&d?function(e,t){let n,r=null,l=P(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),u();let f=e.getBoundingClientRect(),{left:p,top:m,width:v,height:h}=f;if(c||t(),!v||!h)return;let g=a(m),y=a(l.clientWidth-(p+v)),w={rootMargin:-g+"px "+-y+"px "+-a(l.clientHeight-(m+h))+"px "+-a(p)+"px",threshold:i(0,o(1,d))||1},x=!0;function b(t){let r=t[0].intersectionRatio;if(r!==d){if(!x)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||ei(f,e.getBoundingClientRect())||s(),x=!1}try{r=new IntersectionObserver(b,{...w,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(b,w)}r.observe(e)}(!0),u}(p,n):null,h=-1,g=null;c&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),g.observe(t));let y=f?G(e):null;return f&&function t(){let r=G(e);y&&!ei(y,r)&&n(),y=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{u&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(l)}}let ea=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await M(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},eu=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),p={x:n,y:r},v=await R(t,c),g=h(f(l)),y=m(g),w=p[y],x=p[g];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+v[e],r=w-v[t];w=i(n,o(w,r))}if(u){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=x+v[e],r=x-v[t];x=i(n,o(x,r))}let b=s.fn({...t,[y]:w,[g]:x});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[y]:a,[g]:u}}}}}},es=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:w,elements:x}=t,{mainAxis:b=!0,crossAxis:E=!0,fallbackPlacements:T,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:N=!0,...A}=d(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let S=f(a),P=h(c),j=f(c)===c,k=await (null==w.isRTL?void 0:w.isRTL(x.floating)),L=T||(j||!N?[y(c)]:function(e){let t=y(e);return[g(e),t,g(t)]}(c)),D="none"!==M;!T&&D&&L.push(...function(e,t,n,r){let o=p(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(g)))),i}(c,N,M,k));let O=[c,...L],I=await R(t,A),_=[],F=(null==(r=u.flip)?void 0:r.overflows)||[];if(b&&_.push(I[S]),E){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),o=m(h(e)),i=v(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=y(l)),[l,y(l)]}(a,s,k);_.push(I[e[0]],I[e[1]])}if(F=[...F,{placement:a,overflows:_}],!_.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=O[e];if(t&&("alignment"!==E||P===h(t)||F.every(e=>e.overflows[0]>0&&h(e.placement)===P)))return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(i=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(C){case"bestFit":{let e=null==(l=F.filter(e=>{if(D){let t=h(e.placement);return t===P||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},ec=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let l,a;let{placement:u,rects:s,platform:c,elements:m}=t,{apply:v=()=>{},...g}=d(e,t),y=await R(t,g),w=f(u),x=p(u),b="y"===h(u),{width:E,height:T}=s.floating;"top"===w||"bottom"===w?(l=w,a=x===(await (null==c.isRTL?void 0:c.isRTL(m.floating))?"start":"end")?"left":"right"):(a=w,l="end"===x?"top":"bottom");let C=T-y.top-y.bottom,M=E-y.left-y.right,N=o(T-y[l],C),A=o(E-y[a],M),S=!t.middlewareData.shift,P=N,j=A;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=M),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(P=C),S&&!x){let e=i(y.left,0),t=i(y.right,0),n=i(y.top,0),r=i(y.bottom,0);b?j=E-2*(0!==e||0!==t?e+t:i(y.left,y.right)):P=T-2*(0!==n||0!==r?n+r:i(y.top,y.bottom))}await v({...t,availableWidth:j,availableHeight:P});let k=await c.getDimensions(m.floating);return E!==k.width||T!==k.height?{reset:{rects:!0}}:{}}}},ed=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=d(e,t);switch(r){case"referenceHidden":{let e=T(await R(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:C(e)}}}case"escaped":{let e=T(await R(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:C(e)}}}default:return{}}}}},ef=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:u,elements:s,middlewareData:c}=t,{element:f,padding:g=0}=d(e,t)||{};if(null==f)return{};let y=w(g),x={x:n,y:r},b=m(h(l)),E=v(b),R=await u.getDimensions(f),T="y"===b,C=T?"clientHeight":"clientWidth",M=a.reference[E]+a.reference[b]-x[b]-a.floating[E],N=x[b]-a.reference[b],A=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),S=A?A[C]:0;S&&await (null==u.isElement?void 0:u.isElement(A))||(S=s.floating[C]||a.floating[E]);let P=S/2-R[E]/2-1,j=o(y[T?"top":"left"],P),k=o(y[T?"bottom":"right"],P),L=S-R[E]-k,D=S/2-R[E]/2+(M/2-N/2),O=i(j,o(D,L)),I=!c.arrow&&null!=p(l)&&D!==O&&a.reference[E]/2-(Dn&&(g=n)}if(s){var b,E;let e="y"===v?"width":"height",t=["top","left"].includes(f(o)),n=i.reference[p]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[p])||0)+(t?0:x.crossAxis),r=i.reference[p]+i.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[p])||0)-(t?x.crossAxis:0);yr&&(y=r)}return{[v]:g,[p]:y}}}},em=(e,t,n)=>{let r=new Map,o={platform:eo,...n},i={...o.platform,_c:r};return E(e,t,{...o,platform:i})}},3423:(e,t,n)=>{"use strict";n.d(t,{UC:()=>ey,Kq:()=>ev,bL:()=>eh,l9:()=>eg});var r=n(2115),o=n.t(r,2);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),l=n.length;n=[...n,o];let a=t=>{let{scope:n,children:o,...a}=t,s=n?.[e]?.[l]||i,c=r.useMemo(()=>a,Object.values(a));return(0,u.jsx)(s.Provider,{value:c,children:o})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||i,s=r.useContext(u);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}var c=n(338),d=globalThis?.document?r.useLayoutEffect:()=>{},f=o[" useId ".trim().toString()]||(()=>void 0),p=0,m=n(4945),v=n(2475);n(7650);var h=n(6634),g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,h.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),y=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,u.jsx)(g.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,u.jsx)("polygon",{points:"0,0 30,0 15,10"})})});y.displayName="Arrow";var w=globalThis?.document?r.useLayoutEffect:()=>{},x="Popper",[b,E]=s(x),[R,T]=b(x),C=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,u.jsx)(R,{scope:t,anchor:o,onAnchorChange:i,children:n})};C.displayName=x;var M="PopperAnchor",N=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,l=T(M,n),s=r.useRef(null),c=a(t,s);return r.useEffect(()=>{l.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:(0,u.jsx)(g.div,{...i,ref:c})});N.displayName=M;var A="PopperContent",[S,P]=b(A),j=r.forwardRef((e,t)=>{var n,o,i,l,s,c,d,f;let{__scopePopper:p,side:h="bottom",sideOffset:y=0,align:x="center",alignOffset:b=0,arrowPadding:E=0,avoidCollisions:R=!0,collisionBoundary:C=[],collisionPadding:M=0,sticky:N="partial",hideWhenDetached:P=!1,updatePositionStrategy:j="optimized",onPlaced:k,...L}=e,D=T(A,p),[F,U]=r.useState(null),K=a(t,e=>U(e)),[W,H]=r.useState(null),$=function(e){let[t,n]=r.useState(void 0);return w(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(W),V=null!==(d=null==$?void 0:$.width)&&void 0!==d?d:0,B=null!==(f=null==$?void 0:$.height)&&void 0!==f?f:0,z="number"==typeof M?M:{top:0,right:0,bottom:0,left:0,...M},Y=Array.isArray(C)?C:[C],X=Y.length>0,q={padding:z,boundary:Y.filter(O),altBoundary:X},{refs:G,floatingStyles:Z,placement:J,isPositioned:Q,middlewareData:ee}=(0,m.we)({strategy:"fixed",placement:h+("center"!==x?"-"+x:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),W&&(0,m.UE)({element:W,padding:E}),I({arrowWidth:V,arrowHeight:B}),P&&(0,m.jD)({strategy:"referenceHidden",...q})]}),[et,en]=_(J),er=function(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(k);w(()=>{Q&&(null==er||er())},[Q,er]);let eo=null===(n=ee.arrow)||void 0===n?void 0:n.x,ei=null===(o=ee.arrow)||void 0===o?void 0:o.y,el=(null===(i=ee.arrow)||void 0===i?void 0:i.centerOffset)!==0,[ea,eu]=r.useState();return w(()=>{F&&eu(window.getComputedStyle(F).zIndex)},[F]),(0,u.jsx)("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:Q?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ea,"--radix-popper-transform-origin":[null===(l=ee.transformOrigin)||void 0===l?void 0:l.x,null===(s=ee.transformOrigin)||void 0===s?void 0:s.y].join(" "),...(null===(c=ee.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,u.jsx)(S,{scope:p,placedSide:et,onArrowChange:H,arrowX:eo,arrowY:ei,shouldHideArrow:el,children:(0,u.jsx)(g.div,{"data-side":et,"data-align":en,...L,ref:K,style:{...L.style,animation:Q?void 0:"none"}})})})});j.displayName=A;var k="PopperArrow",L={top:"bottom",right:"left",bottom:"top",left:"right"},D=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=P(k,n),i=L[o.placedSide];return(0,u.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,u.jsx)(y,{...r,ref:t,style:{...r.style,display:"block"}})})});function O(e){return null!==e}D.displayName=k;var I=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=_(a),v={start:"0%",center:"50%",end:"100%"}[m],h=(null!==(i=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(l=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,y="",w="";return"bottom"===p?(y=c?v:"".concat(h,"px"),w="".concat(-f,"px")):"top"===p?(y=c?v:"".concat(h,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=c?v:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=c?v:"".concat(g,"px")),{data:{x:y,y:w}}}});function _(e){let[t,n="center"]=e.split("-");return[t,n]}n(7268);var F=globalThis?.document?r.useLayoutEffect:()=>{},U=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,i]=r.useState(),l=r.useRef(null),a=r.useRef(e),u=r.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=K(l.current);u.current="mounted"===s?e:"none"},[s]),F(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=K(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),F(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=K(l.current).includes(e.animationName);if(e.target===o&&r&&(c("ANIMATION_END"),!a.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(u.current=K(l.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}c("ANIMATION_END")},[o,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,i(e)},[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),l=a(o.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:l}):null};function K(e){return(null==e?void 0:e.animationName)||"none"}U.displayName="Presence";var W=globalThis?.document?r.useLayoutEffect:()=>{},H=o[" useInsertionEffect ".trim().toString()]||W,$=(Symbol("RADIX:SYNC_STATE"),Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"})),V=r.forwardRef((e,t)=>(0,u.jsx)(g.span,{...e,ref:t,style:{...$,...e.style}}));V.displayName="VisuallyHidden";var[B,z]=s("Tooltip",[E]),Y=E(),X="TooltipProvider",q="tooltip.open",[G,Z]=B(X),J=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,a=r.useRef(!0),s=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,u.jsx)(G,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:s,onPointerInTransitChange:r.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:l})};J.displayName=X;var Q="Tooltip",[ee,et]=B(Q),en=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i,onOpenChange:l,disableHoverableContent:a,delayDuration:s}=e,c=Z(Q,e.__scopeTooltip),m=Y(t),[v,h]=r.useState(null),g=function(e){let[t,n]=r.useState(f());return d(()=>{n(e=>e??String(p++))},[void 0]),e||(t?`radix-${t}`:"")}(),y=r.useRef(0),w=null!=a?a:c.disableHoverableContent,x=null!=s?s:c.delayDuration,b=r.useRef(!1),[E,R]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){let[i,l,a]=function({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),i=r.useRef(n),l=r.useRef(t);return H(()=>{l.current=t},[t]),r.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,o,l]}({defaultProp:t,onChange:n}),u=void 0!==e,s=u?e:i;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,o])}return[s,r.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}({prop:o,defaultProp:null!=i&&i,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(q))):c.onClose(),null==l||l(e)},caller:Q}),T=r.useMemo(()=>E?b.current?"delayed-open":"instant-open":"closed",[E]),M=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,b.current=!1,R(!0)},[R]),N=r.useCallback(()=>{window.clearTimeout(y.current),y.current=0,R(!1)},[R]),A=r.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{b.current=!0,R(!0),y.current=0},x)},[x,R]);return r.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,u.jsx)(C,{...m,children:(0,u.jsx)(ee,{scope:t,contentId:g,open:E,stateAttribute:T,trigger:v,onTriggerChange:h,onTriggerEnter:r.useCallback(()=>{c.isOpenDelayedRef.current?A():M()},[c.isOpenDelayedRef,A,M]),onTriggerLeave:r.useCallback(()=>{w?N():(window.clearTimeout(y.current),y.current=0)},[N,w]),onOpen:M,onClose:N,disableHoverableContent:w,children:n})})};en.displayName=Q;var er="TooltipTrigger",eo=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...o}=e,l=et(er,n),s=Z(er,n),c=Y(n),d=a(t,r.useRef(null),l.onTriggerChange),f=r.useRef(!1),p=r.useRef(!1),m=r.useCallback(()=>f.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,u.jsx)(N,{asChild:!0,...c,children:(0,u.jsx)(g.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...o,ref:d,onPointerMove:i(e.onPointerMove,e=>{"touch"===e.pointerType||p.current||s.isPointerInTransitRef.current||(l.onTriggerEnter(),p.current=!0)}),onPointerLeave:i(e.onPointerLeave,()=>{l.onTriggerLeave(),p.current=!1}),onPointerDown:i(e.onPointerDown,()=>{l.open&&l.onClose(),f.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:i(e.onFocus,()=>{f.current||l.onOpen()}),onBlur:i(e.onBlur,l.onClose),onClick:i(e.onClick,l.onClose)})})});eo.displayName=er;var[ei,el]=B("TooltipPortal",{forceMount:void 0}),ea="TooltipContent",eu=r.forwardRef((e,t)=>{let n=el(ea,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=et(ea,e.__scopeTooltip);return(0,u.jsx)(U,{present:r||l.open,children:l.disableHoverableContent?(0,u.jsx)(ep,{side:o,...i,ref:t}):(0,u.jsx)(es,{side:o,...i,ref:t})})}),es=r.forwardRef((e,t)=>{let n=et(ea,e.__scopeTooltip),o=Z(ea,e.__scopeTooltip),i=r.useRef(null),l=a(t,i),[s,c]=r.useState(null),{trigger:d,onClose:f}=n,p=i.current,{onPointerInTransitChange:m}=o,v=r.useCallback(()=>{c(null),m(!1)},[m]),h=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),m(!0)},[m]);return r.useEffect(()=>()=>v(),[v]),r.useEffect(()=>{if(d&&p){let e=e=>h(e,p),t=e=>h(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[d,p,h,v]),r.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==d?void 0:d.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=d>r&&n<(c-u)*(r-s)/(d-s)+u&&(o=!o)}return o}(n,s);r?v():o&&(v(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,p,s,f,v]),(0,u.jsx)(ep,{...e,ref:l})}),[ec,ed]=B(Q,{isInside:!1}),ef=(0,h.Dc)("TooltipContent"),ep=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:a,...s}=e,d=et(ea,n),f=Y(n),{onClose:p}=d;return r.useEffect(()=>(document.addEventListener(q,p),()=>document.removeEventListener(q,p)),[p]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,p]),(0,u.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,u.jsxs)(j,{"data-state":d.stateAttribute,...f,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,u.jsx)(ef,{children:o}),(0,u.jsx)(ec,{scope:n,isInside:!0,children:(0,u.jsx)(V,{id:d.contentId,role:"tooltip",children:i||o})})]})})});eu.displayName=ea;var em="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=Y(n);return ed(em,n).isInside?null:(0,u.jsx)(D,{...o,...r,ref:t})}).displayName=em;var ev=J,eh=en,eg=eo,ey=eu},3560:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("CloudDownload",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]])},3969:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}n.d(t,{_:()=>r})},4126:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]])},4186:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},4616:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},4945:(e,t,n)=>{"use strict";n.d(t,{BN:()=>m,ER:()=>v,Ej:()=>g,UE:()=>w,UU:()=>h,cY:()=>p,jD:()=>y,we:()=>d});var r=n(2475),o=n(2115),i=n(7650),l="undefined"!=typeof document?o.useLayoutEffect:function(){};function a(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){let n=u(e);return Math.round(t*n)/n}function c(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:m}={},transform:v=!0,whileElementsMounted:h,open:g}=e,[y,w]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,b]=o.useState(d);a(x,d)||b(d);let[E,R]=o.useState(null),[T,C]=o.useState(null),M=o.useCallback(e=>{e!==P.current&&(P.current=e,R(e))},[]),N=o.useCallback(e=>{e!==j.current&&(j.current=e,C(e))},[]),A=p||E,S=m||T,P=o.useRef(null),j=o.useRef(null),k=o.useRef(y),L=null!=h,D=c(h),O=c(f),I=c(g),_=o.useCallback(()=>{if(!P.current||!j.current)return;let e={placement:t,strategy:n,middleware:x};O.current&&(e.platform=O.current),(0,r.rD)(P.current,j.current,e).then(e=>{let t={...e,isPositioned:!1!==I.current};F.current&&!a(k.current,t)&&(k.current=t,i.flushSync(()=>{w(t)}))})},[x,t,n,O,I]);l(()=>{!1===g&&k.current.isPositioned&&(k.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[g]);let F=o.useRef(!1);l(()=>(F.current=!0,()=>{F.current=!1}),[]),l(()=>{if(A&&(P.current=A),S&&(j.current=S),A&&S){if(D.current)return D.current(A,S,_);_()}},[A,S,_,D,L]);let U=o.useMemo(()=>({reference:P,floating:j,setReference:M,setFloating:N}),[M,N]),K=o.useMemo(()=>({reference:A,floating:S}),[A,S]),W=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!K.floating)return e;let t=s(K.floating,y.x),r=s(K.floating,y.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...u(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,v,K.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:_,refs:U,elements:K,floatingStyles:W}),[y,_,U,K,W])}let f=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:o}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.UE)({element:n.current,padding:o}).fn(t):{}:n?(0,r.UE)({element:n,padding:o}).fn(t):{}}}),p=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),v=(e,t)=>({...(0,r.ER)(e),options:[e,t]}),h=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),g=(e,t)=>({...(0,r.Ej)(e),options:[e,t]}),y=(e,t)=>({...(0,r.jD)(e),options:[e,t]}),w=(e,t)=>({...f(e),options:[e,t]})},4971:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(3969);function o(e,t){var n=(0,r._)(e,t,"get");return n.get?n.get.call(e):n.value}},5543:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},5623:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},5920:(e,t,n)=>{"use strict";function r(e,t,n){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}n.d(t,{_:()=>r})},6266:(e,t,n)=>{"use strict";n.d(t,{_:()=>o});var r=n(3969);function o(e,t,n){var o=(0,r._)(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,o,n),n}},6287:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])},7711:(e,t,n)=>{"use strict";n.d(t,{H_:()=>tJ,UC:()=>tX,YJ:()=>tq,q7:()=>tZ,VF:()=>t1,JU:()=>tG,ZL:()=>tY,z6:()=>tQ,hN:()=>t0,bL:()=>tB,wv:()=>t2,Pb:()=>t5,G5:()=>t6,ZP:()=>t4,l9:()=>tz});var r,o=n(2115),i=n.t(o,2);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=o.createContext(r),l=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[l]||i,s=o.useMemo(()=>a,Object.values(a));return(0,c.jsx)(u.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[l]||i,s=o.useContext(u);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var f=globalThis?.document?o.useLayoutEffect:()=>{},p=i[" useInsertionEffect ".trim().toString()]||f;function m({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,l,a]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),l=o.useRef(t);return p(()=>{l.current=t},[t]),o.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,r,l]}({defaultProp:t,onChange:n}),u=void 0!==e,s=u?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[s,o.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else l(t)},[u,e,l,a])]}Symbol("RADIX:SYNC_STATE");var v=n(7650),h=n(6634),g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,h.TL)(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),y=n(4971),w=n(5920),x=n(6266);function b(e){let t=e+"CollectionProvider",[n,r]=d(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=o.useRef(null),l=o.useRef(new Map).current;return(0,c.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})};a.displayName=t;let u=e+"CollectionSlot",f=(0,h.TL)(u),p=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(t,l(u,n).collectionRef);return(0,c.jsx)(f,{ref:o,children:r})});p.displayName=u;let m=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,h.TL)(m),y=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=o.useRef(null),u=s(t,a),d=l(m,n);return o.useEffect(()=>(d.itemMap.set(a,{ref:a,...i}),()=>void d.itemMap.delete(a))),(0,c.jsx)(g,{[v]:"",ref:u,children:r})});return y.displayName=m,[{Provider:a,Slot:p,ItemSlot:y},function(t){let n=l(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var E=new WeakMap;function R(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=T(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function T(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap;var C=o.createContext(void 0);function M(e){let t=o.useContext(C);return e||t||"ltr"}var N=n(338),A=n(2293),S=n(3862),P=globalThis?.document?o.useLayoutEffect:()=>{},j=i[" useId ".trim().toString()]||(()=>void 0),k=0;function L(e){let[t,n]=o.useState(j());return P(()=>{e||n(e=>e??String(k++))},[e]),e||(t?`radix-${t}`:"")}var D=n(4945),O=n(2475),I=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,c.jsx)(g.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function _(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}I.displayName="Arrow";var F=globalThis?.document?o.useLayoutEffect:()=>{},U="Popper",[K,W]=d(U),[H,$]=K(U),V=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,c.jsx)(H,{scope:t,anchor:r,onAnchorChange:i,children:n})};V.displayName=U;var B="PopperAnchor",z=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,l=$(B,n),a=o.useRef(null),u=s(t,a);return o.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,c.jsx)(g.div,{...i,ref:u})});z.displayName=B;var Y="PopperContent",[X,q]=K(Y),G=o.forwardRef((e,t)=>{var n,r,i,l,a,u,d,f;let{__scopePopper:p,side:m="bottom",sideOffset:v=0,align:h="center",alignOffset:y=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:b=[],collisionPadding:E=0,sticky:R="partial",hideWhenDetached:T=!1,updatePositionStrategy:C="optimized",onPlaced:M,...N}=e,A=$(Y,p),[S,P]=o.useState(null),j=s(t,e=>P(e)),[k,L]=o.useState(null),I=function(e){let[t,n]=o.useState(void 0);return F(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(k),U=null!==(d=null==I?void 0:I.width)&&void 0!==d?d:0,K=null!==(f=null==I?void 0:I.height)&&void 0!==f?f:0,W="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},H=Array.isArray(b)?b:[b],V=H.length>0,B={padding:W,boundary:H.filter(ee),altBoundary:V},{refs:z,floatingStyles:q,placement:G,isPositioned:Z,middlewareData:J}=(0,D.we)({strategy:"fixed",placement:m+("center"!==h?"-"+h:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),k&&(0,D.UE)({element:k,padding:w}),et({arrowWidth:U,arrowHeight:K}),T&&(0,D.jD)({strategy:"referenceHidden",...B})]}),[Q,er]=en(G),eo=_(M);F(()=>{Z&&(null==eo||eo())},[Z,eo]);let ei=null===(n=J.arrow)||void 0===n?void 0:n.x,el=null===(r=J.arrow)||void 0===r?void 0:r.y,ea=(null===(i=J.arrow)||void 0===i?void 0:i.centerOffset)!==0,[eu,es]=o.useState();return F(()=>{S&&es(window.getComputedStyle(S).zIndex)},[S]),(0,c.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:Z?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eu,"--radix-popper-transform-origin":[null===(l=J.transformOrigin)||void 0===l?void 0:l.x,null===(a=J.transformOrigin)||void 0===a?void 0:a.y].join(" "),...(null===(u=J.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(X,{scope:p,placedSide:Q,onArrowChange:L,arrowX:ei,arrowY:el,shouldHideArrow:ea,children:(0,c.jsx)(g.div,{"data-side":Q,"data-align":er,...N,ref:j,style:{...N.style,animation:Z?void 0:"none"}})})})});G.displayName=Y;var Z="PopperArrow",J={top:"bottom",right:"left",bottom:"top",left:"right"},Q=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=q(Z,n),i=J[o.placedSide];return(0,c.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(I,{...r,ref:t,style:{...r.style,display:"block"}})})});function ee(e){return null!==e}Q.displayName=Z;var et=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=en(a),v={start:"0%",center:"50%",end:"100%"}[m],h=(null!==(i=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(l=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,y="",w="";return"bottom"===p?(y=c?v:"".concat(h,"px"),w="".concat(-f,"px")):"top"===p?(y=c?v:"".concat(h,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=c?v:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=c?v:"".concat(g,"px")),{data:{x:y,y:w}}}});function en(e){let[t,n="center"]=e.split("-");return[t,n]}var er=n(7268),eo=globalThis?.document?o.useLayoutEffect:()=>{},ei=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,i]=o.useState(),l=o.useRef(null),a=o.useRef(e),u=o.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=el(l.current);u.current="mounted"===s?e:"none"},[s]),eo(()=>{let t=l.current,n=a.current;if(n!==e){let r=u.current,o=el(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),eo(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=el(l.current).includes(e.animationName);if(e.target===r&&o&&(c("ANIMATION_END"),!a.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(u.current=el(l.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:o.useCallback(e=>{l.current=e?getComputedStyle(e):null,i(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),l=s(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof n||r.isPresent?o.cloneElement(i,{ref:l}):null};function el(e){return(null==e?void 0:e.animationName)||"none"}ei.displayName="Presence";var ea="rovingFocusGroup.onEntryFocus",eu={bubbles:!1,cancelable:!0},es="RovingFocusGroup",[ec,ed,ef]=b(es),[ep,em]=d(es,[ef]),[ev,eh]=ep(es),eg=o.forwardRef((e,t)=>(0,c.jsx)(ec.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(ec.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(ey,{...e,ref:t})})}));eg.displayName=es;var ey=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:f,onEntryFocus:p,preventScrollOnEntryFocus:v=!1,...h}=e,y=o.useRef(null),w=s(t,y),x=M(a),[b,E]=m({prop:u,defaultProp:null!=d?d:null,onChange:f,caller:es}),[R,T]=o.useState(!1),C=_(p),N=ed(n),A=o.useRef(!1),[S,P]=o.useState(0);return o.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(ea,C),()=>e.removeEventListener(ea,C)},[C]),(0,c.jsx)(ev,{scope:n,orientation:r,dir:x,loop:i,currentTabStopId:b,onItemFocus:o.useCallback(e=>E(e),[E]),onItemShiftTab:o.useCallback(()=>T(!0),[]),onFocusableItemAdd:o.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>P(e=>e-1),[]),children:(0,c.jsx)(g.div,{tabIndex:R||0===S?-1:0,"data-orientation":r,...h,ref:w,style:{outline:"none",...e.style},onMouseDown:l(e.onMouseDown,()=>{A.current=!0}),onFocus:l(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!R){let t=new CustomEvent(ea,eu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=N().filter(e=>e.focusable);eE([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),v)}}A.current=!1}),onBlur:l(e.onBlur,()=>T(!1))})})}),ew="RovingFocusGroupItem",ex=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:u,...s}=e,d=L(),f=a||d,p=eh(ew,n),m=p.currentTabStopId===f,v=ed(n),{onFocusableItemAdd:h,onFocusableItemRemove:y,currentTabStopId:w}=p;return o.useEffect(()=>{if(r)return h(),()=>y()},[r,h,y]),(0,c.jsx)(ec.ItemSlot,{scope:n,id:f,focusable:r,active:i,children:(0,c.jsx)(g.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:l(e.onMouseDown,e=>{r?p.onItemFocus(f):e.preventDefault()}),onFocus:l(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:l(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return eb[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>eE(n))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=w}):u})})});ex.displayName=ew;var eb={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function eE(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var eR=n(8168),eT=n(3795),eC=["Enter"," "],eM=["ArrowUp","PageDown","End"],eN=["ArrowDown","PageUp","Home",...eM],eA={ltr:[...eC,"ArrowRight"],rtl:[...eC,"ArrowLeft"]},eS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eP="Menu",[ej,ek,eL]=b(eP),[eD,eO]=d(eP,[eL,W,em]),eI=W(),e_=em(),[eF,eU]=eD(eP),[eK,eW]=eD(eP),eH=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:a=!0}=e,u=eI(t),[s,d]=o.useState(null),f=o.useRef(!1),p=_(l),m=M(i);return o.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,c.jsx)(V,{...u,children:(0,c.jsx)(eF,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:d,children:(0,c.jsx)(eK,{scope:t,onClose:o.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:a,children:r})})})};eH.displayName=eP;var e$=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=eI(n);return(0,c.jsx)(z,{...o,...r,ref:t})});e$.displayName="MenuAnchor";var eV="MenuPortal",[eB,ez]=eD(eV,{forceMount:void 0}),eY=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=eU(eV,t);return(0,c.jsx)(eB,{scope:t,forceMount:n,children:(0,c.jsx)(ei,{present:n||i.open,children:(0,c.jsx)(er.Z,{asChild:!0,container:o,children:r})})})};eY.displayName=eV;var eX="MenuContent",[eq,eG]=eD(eX),eZ=o.forwardRef((e,t)=>{let n=ez(eX,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=eU(eX,e.__scopeMenu),l=eW(eX,e.__scopeMenu);return(0,c.jsx)(ej.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(ei,{present:r||i.open,children:(0,c.jsx)(ej.Slot,{scope:e.__scopeMenu,children:l.modal?(0,c.jsx)(eJ,{...o,ref:t}):(0,c.jsx)(eQ,{...o,ref:t})})})})}),eJ=o.forwardRef((e,t)=>{let n=eU(eX,e.__scopeMenu),r=o.useRef(null),i=s(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,eR.Eq)(e)},[]),(0,c.jsx)(e1,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),eQ=o.forwardRef((e,t)=>{let n=eU(eX,e.__scopeMenu);return(0,c.jsx)(e1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),e0=(0,h.TL)("MenuContent.ScrollLock"),e1=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEntryFocus:f,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:h,onDismiss:g,disableOutsideScroll:y,...w}=e,x=eU(eX,n),b=eW(eX,n),E=eI(n),R=e_(n),T=ek(n),[C,M]=o.useState(null),P=o.useRef(null),j=s(t,P,x.onContentChange),k=o.useRef(0),L=o.useRef(""),D=o.useRef(0),O=o.useRef(null),I=o.useRef("right"),_=o.useRef(0),F=y?eT.A:o.Fragment,U=e=>{var t,n;let r=L.current+e,o=T().filter(e=>!e.disabled),i=document.activeElement,l=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),u=null===(n=o.find(e=>e.textValue===a))||void 0===n?void 0:n.ref.current;!function e(t){L.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};o.useEffect(()=>()=>window.clearTimeout(k.current),[]),(0,A.Oh)();let K=o.useCallback(e=>{var t,n;return I.current===(null===(t=O.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=d>r&&n<(c-u)*(r-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=O.current)||void 0===n?void 0:n.area)},[]);return(0,c.jsx)(eq,{scope:n,searchRef:L,onItemEnter:o.useCallback(e=>{K(e)&&e.preventDefault()},[K]),onItemLeave:o.useCallback(e=>{var t;K(e)||(null===(t=P.current)||void 0===t||t.focus(),M(null))},[K]),onTriggerLeave:o.useCallback(e=>{K(e)&&e.preventDefault()},[K]),pointerGraceTimerRef:D,onPointerGraceIntentChange:o.useCallback(e=>{O.current=e},[]),children:(0,c.jsx)(F,{...y?{as:e0,allowPinchZoom:!0}:void 0,children:(0,c.jsx)(S.n,{asChild:!0,trapped:i,onMountAutoFocus:l(a,e=>{var t;e.preventDefault(),null===(t=P.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,c.jsx)(N.qW,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:h,onDismiss:g,children:(0,c.jsx)(eg,{asChild:!0,...R,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:M,onEntryFocus:l(f,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,c.jsx)(G,{role:"menu","aria-orientation":"vertical","data-state":tw(x.open),"data-radix-menu-content":"",dir:b.dir,...E,...w,ref:j,style:{outline:"none",...w.style},onKeyDown:l(w.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&U(e.key));let o=P.current;if(e.target!==o||!eN.includes(e.key))return;e.preventDefault();let i=T().filter(e=>!e.disabled).map(e=>e.ref.current);eM.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:l(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),L.current="")}),onPointerMove:l(e.onPointerMove,tE(e=>{let t=e.target,n=_.current!==e.clientX;e.currentTarget.contains(t)&&n&&(I.current=e.clientX>_.current?"right":"left",_.current=e.clientX)}))})})})})})})});eZ.displayName=eX;var e2=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(g.div,{role:"group",...r,ref:t})});e2.displayName="MenuGroup";var e5=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(g.div,{...r,ref:t})});e5.displayName="MenuLabel";var e4="MenuItem",e6="menu.itemSelect",e9=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,a=o.useRef(null),u=eW(e4,e.__scopeMenu),d=eG(e4,e.__scopeMenu),f=s(t,a),p=o.useRef(!1);return(0,c.jsx)(e3,{...i,ref:f,disabled:n,onClick:l(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(e6,{bubbles:!0,cancelable:!0});e.addEventListener(e6,e=>null==r?void 0:r(e),{once:!0}),function(e,t){e&&v.flushSync(()=>e.dispatchEvent(t))}(e,t),t.defaultPrevented?p.current=!1:u.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:l(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:l(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&eC.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});e9.displayName=e4;var e3=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,u=eG(e4,n),d=e_(n),f=o.useRef(null),p=s(t,f),[m,v]=o.useState(!1),[h,y]=o.useState("");return o.useEffect(()=>{let e=f.current;if(e){var t;y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[a.children]),(0,c.jsx)(ej.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:h,children:(0,c.jsx)(ex,{asChild:!0,...d,focusable:!r,children:(0,c.jsx)(g.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:p,onPointerMove:l(e.onPointerMove,tE(e=>{r?u.onItemLeave(e):(u.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:l(e.onPointerLeave,tE(e=>u.onItemLeave(e))),onFocus:l(e.onFocus,()=>v(!0)),onBlur:l(e.onBlur,()=>v(!1))})})})}),e7=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,c.jsx)(tl,{scope:e.__scopeMenu,checked:n,children:(0,c.jsx)(e9,{role:"menuitemcheckbox","aria-checked":tx(n)?"mixed":n,...o,ref:t,"data-state":tb(n),onSelect:l(o.onSelect,()=>null==r?void 0:r(!!tx(n)||!n),{checkForDefaultPrevented:!1})})})});e7.displayName="MenuCheckboxItem";var e8="MenuRadioGroup",[te,tt]=eD(e8,{value:void 0,onValueChange:()=>{}}),tn=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=_(r);return(0,c.jsx)(te,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,c.jsx)(e2,{...o,ref:t})})});tn.displayName=e8;var tr="MenuRadioItem",to=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=tt(tr,e.__scopeMenu),i=n===o.value;return(0,c.jsx)(tl,{scope:e.__scopeMenu,checked:i,children:(0,c.jsx)(e9,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":tb(i),onSelect:l(r.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});to.displayName=tr;var ti="MenuItemIndicator",[tl,ta]=eD(ti,{checked:!1}),tu=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=ta(ti,n);return(0,c.jsx)(ei,{present:r||tx(i.checked)||!0===i.checked,children:(0,c.jsx)(g.span,{...o,ref:t,"data-state":tb(i.checked)})})});tu.displayName=ti;var ts=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(g.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ts.displayName="MenuSeparator";var tc=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=eI(n);return(0,c.jsx)(Q,{...o,...r,ref:t})});tc.displayName="MenuArrow";var td="MenuSub",[tf,tp]=eD(td),tm=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,l=eU(td,t),a=eI(t),[u,s]=o.useState(null),[d,f]=o.useState(null),p=_(i);return o.useEffect(()=>(!1===l.open&&p(!1),()=>p(!1)),[l.open,p]),(0,c.jsx)(V,{...a,children:(0,c.jsx)(eF,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f,children:(0,c.jsx)(tf,{scope:t,contentId:L(),triggerId:L(),trigger:u,onTriggerChange:s,children:n})})})};tm.displayName=td;var tv="MenuSubTrigger",th=o.forwardRef((e,t)=>{let n=eU(tv,e.__scopeMenu),r=eW(tv,e.__scopeMenu),i=tp(tv,e.__scopeMenu),a=eG(tv,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=a,p={__scopeMenu:e.__scopeMenu},m=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return o.useEffect(()=>m,[m]),o.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),f(null)}},[d,f]),(0,c.jsx)(e$,{asChild:!0,...p,children:(0,c.jsx)(e3,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":tw(n.open),...e,ref:u(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:l(e.onPointerMove,tE(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:l(e.onPointerLeave,tE(e=>{var t,r;m();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,l=o[i?"left":"right"],u=o[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:l(e.onKeyDown,t=>{let o=""!==a.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&eA[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault()}})})})});th.displayName=tv;var tg="MenuSubContent",ty=o.forwardRef((e,t)=>{let n=ez(eX,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=eU(eX,e.__scopeMenu),u=eW(eX,e.__scopeMenu),d=tp(tg,e.__scopeMenu),f=o.useRef(null),p=s(t,f);return(0,c.jsx)(ej.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(ei,{present:r||a.open,children:(0,c.jsx)(ej.Slot,{scope:e.__scopeMenu,children:(0,c.jsx)(e1,{id:d.contentId,"aria-labelledby":d.triggerId,...i,ref:p,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=f.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:l(e.onFocusOutside,e=>{e.target!==d.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:l(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:l(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=eS[u.dir].includes(e.key);if(t&&n){var r;a.onOpenChange(!1),null===(r=d.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function tw(e){return e?"open":"closed"}function tx(e){return"indeterminate"===e}function tb(e){return tx(e)?"indeterminate":e?"checked":"unchecked"}function tE(e){return t=>"mouse"===t.pointerType?e(t):void 0}ty.displayName=tg;var tR="DropdownMenu",[tT,tC]=d(tR,[eO]),tM=eO(),[tN,tA]=tT(tR),tS=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:a,modal:u=!0}=e,s=tM(t),d=o.useRef(null),[f,p]=m({prop:i,defaultProp:null!=l&&l,onChange:a,caller:tR});return(0,c.jsx)(tN,{scope:t,triggerId:L(),triggerRef:d,contentId:L(),open:f,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,c.jsx)(eH,{...s,open:f,onOpenChange:p,dir:r,modal:u,children:n})})};tS.displayName=tR;var tP="DropdownMenuTrigger",tj=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=tA(tP,n),a=tM(n);return(0,c.jsx)(e$,{asChild:!0,...a,children:(0,c.jsx)(g.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:u(t,i.triggerRef),onPointerDown:l(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:l(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tj.displayName=tP;var tk=e=>{let{__scopeDropdownMenu:t,...n}=e,r=tM(t);return(0,c.jsx)(eY,{...r,...n})};tk.displayName="DropdownMenuPortal";var tL="DropdownMenuContent",tD=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=tA(tL,n),a=tM(n),u=o.useRef(!1);return(0,c.jsx)(eZ,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:l(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:l(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tD.displayName=tL;var tO=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(e2,{...o,...r,ref:t})});tO.displayName="DropdownMenuGroup";var tI=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(e5,{...o,...r,ref:t})});tI.displayName="DropdownMenuLabel";var t_=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(e9,{...o,...r,ref:t})});t_.displayName="DropdownMenuItem";var tF=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(e7,{...o,...r,ref:t})});tF.displayName="DropdownMenuCheckboxItem";var tU=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(tn,{...o,...r,ref:t})});tU.displayName="DropdownMenuRadioGroup";var tK=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(to,{...o,...r,ref:t})});tK.displayName="DropdownMenuRadioItem";var tW=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(tu,{...o,...r,ref:t})});tW.displayName="DropdownMenuItemIndicator";var tH=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(ts,{...o,...r,ref:t})});tH.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(tc,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var t$=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(th,{...o,...r,ref:t})});t$.displayName="DropdownMenuSubTrigger";var tV=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=tM(n);return(0,c.jsx)(ty,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tV.displayName="DropdownMenuSubContent";var tB=tS,tz=tj,tY=tk,tX=tD,tq=tO,tG=tI,tZ=t_,tJ=tF,tQ=tU,t0=tK,t1=tW,t2=tH,t5=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,l=tM(t),[a,u]=m({prop:r,defaultProp:null!=i&&i,onChange:o,caller:"DropdownMenuSub"});return(0,c.jsx)(tm,{...l,open:a,onOpenChange:u,children:n})},t4=t$,t6=tV},8062:e=>{e.exports={style:{fontFamily:"'DM Sans', 'DM Sans Fallback'",fontStyle:"normal"},className:"__className_989755"}},9428:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(9946).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])}}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/8187f03c-c57963cb1b573777.js b/_backend/frontend/_next/static/chunks/8187f03c-c57963cb1b573777.js new file mode 100644 index 0000000000000000000000000000000000000000..cc2828d7d50144af43d4e9b0b6a10cfdad74c890 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/8187f03c-c57963cb1b573777.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[489],{5976:(t,e,r)=>{r.d(e,{CIp:()=>sj,Hjg:()=>ak,J1n:()=>o0,Mf2:()=>sb,ND6:()=>cu,NTc:()=>iS,PsV:()=>ae,XIK:()=>aE,Xhp:()=>s_,Yus:()=>nK,bjD:()=>sr,fzL:()=>s8,ijT:()=>sy,kDD:()=>nX,nA6:()=>af,nkW:()=>iT,sQw:()=>ui,tUz:()=>aw,wi6:()=>u6,yoT:()=>u2});var n,i,o,s,a,u,c,l,h,f,p,d,m,g,w,y,b,v,x,_,E,T,A,S,k,I,R,C,O,N,F,D,P,L,B,U,M,j,z,W,H,K,G,V,q,Z,X,$,Y,J,Q,tt,te,tr,tn,ti,to,ts,ta,tu,tc,tl,th,tf,tp,td,tm,tg,tw,ty,tb,tv,tx,t_,tE,tT,tA,tS,tk,tI,tR,tC,tO,tN,tF,tD,tP,tL,tB,tU,tM,tj,tz,tW,tH,tK,tG,tV,tq,tZ,tX,t$,tY,tJ,tQ,t0,t1,t2,t6,t5,t3,t8,t4,t9,t7,et,ee,er,en,ei,eo,es,ea,eu,ec,el,eh,ef,ep,ed,em,eg,ew,ey,eb,ev,ex,e_,eE,eT,eA,eS,ek,eI,eR,eC,eO,eN,eF,eD,eP,eL,eB,eU,eM,ej,ez,eW,eH,eK,eG,eV,eq,eZ,eX,e$,eY,eJ,eQ,e0,e1,e2,e6,e5,e3,e8,e4,e9,e7,rt=r(9641).Buffer,re=Object.defineProperty,rr=Object.defineProperties,rn=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,rs=Object.prototype.propertyIsEnumerable,ra=(t,e,r)=>e in t?re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ru=(t,e)=>{for(var r in e||(e={}))ro.call(e,r)&&ra(t,r,e[r]);if(ri)for(var r of ri(e))rs.call(e,r)&&ra(t,r,e[r]);return t},rc=(t,e)=>rr(t,rn(e)),rl=(t,e,r)=>ra(t,"symbol"!=typeof e?e+"":e,r),rh=(t,e,r)=>new Promise((n,i)=>{var o=t=>{try{a(r.next(t))}catch(t){i(t)}},s=t=>{try{a(r.throw(t))}catch(t){i(t)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,s);a((r=r.apply(t,e)).next())});class rf{constructor(t){rl(this,"rootKey"),this.rootKey=t}}let rp=Object.seal({});class rd extends rf{constructor(t){super(t),rl(this,"root"),this.root=[]}prepForXml(t){var e;t.stack.push(this);let r=this.root.map(e=>e instanceof rf?e.prepForXml(t):e).filter(t=>void 0!==t);return t.stack.pop(),{[this.rootKey]:r.length?1===r.length&&(null==(e=r[0])?void 0:e._attr)?r[0]:r:rp}}addChildElement(t){return this.root.push(t),this}}class rm extends rd{prepForXml(t){let e=super.prepForXml(t);if(e&&("object"!=typeof e[this.rootKey]||Object.keys(e[this.rootKey]).length))return e}}class rg extends rf{constructor(t){super("_attr"),rl(this,"xmlKeys"),this.root=t}prepForXml(t){let e={};return Object.entries(this.root).forEach(([t,r])=>{void 0!==r&&(e[this.xmlKeys&&this.xmlKeys[t]||t]=r)}),{_attr:e}}}class rw extends rf{constructor(t){super("_attr"),this.root=t}prepForXml(t){return{_attr:Object.values(this.root).filter(({value:t})=>void 0!==t).reduce((t,{key:e,value:r})=>rc(ru({},t),{[e]:r}),{})}}}class ry extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}}var rb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function rv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var rx={},r_={exports:{}};function rE(){if(n)return r_.exports;n=1;var t,e="object"==typeof Reflect?Reflect:null,r=e&&"function"==typeof e.apply?e.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};t=e&&"function"==typeof e.ownKeys?e.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}r_.exports=o,r_.exports.once=function(t,e){return new Promise(function(r,n){var i,o,s;function a(r){t.removeListener(e,u),n(r)}function u(){"function"==typeof t.removeListener&&t.removeListener("error",a),r([].slice.call(arguments))}m(t,e,u,{once:!0}),"error"!==e&&(i=t,o=a,s={once:!0},"function"==typeof i.on&&m(i,"error",o,s))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,r,n){if(a(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=u(t))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,c=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=s.length,console&&console.warn&&console.warn(c)}return t}function l(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function f(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=Array(t.length),r=0;r0&&(s=e[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)r(u,this,e);else for(var c=u.length,l=d(u,c),n=0;n=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return f(this,t,!0)},o.prototype.rawListeners=function(t){return f(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]},r_.exports}var rT={exports:{}};function rA(){return i||(i=1,"function"==typeof Object.create?rT.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:rT.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),rT.exports}var rS={exports:{}},rk=rS.exports={};function rI(){throw Error("setTimeout has not been defined")}function rR(){throw Error("clearTimeout has not been defined")}function rC(t){if(o===setTimeout)return setTimeout(t,0);if((o===rI||!o)&&setTimeout)return o=setTimeout,setTimeout(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:rI}catch(t){o=rI}try{s="function"==typeof clearTimeout?clearTimeout:rR}catch(t){s=rR}}();var rO=[],rN=!1,rF=-1;function rD(){rN&&a&&(rN=!1,a.length?rO=a.concat(rO):rF=-1,rO.length&&rP())}function rP(){if(!rN){var t=rC(rD);rN=!0;for(var e=rO.length;e;){for(a=rO,rO=[];++rF1)for(var r=1;r0?a-4:a;for(i=0;i>16&255,c[l++]=n>>8&255,c[l++]=255&n;return 2===u&&(n=e[t.charCodeAt(i)]<<2|e[t.charCodeAt(i+1)]>>4,c[l++]=255&n),1===u&&(n=e[t.charCodeAt(i)]<<10|e[t.charCodeAt(i+1)]<<4|e[t.charCodeAt(i+2)]>>2,c[l++]=n>>8&255,c[l++]=255&n),c},rz.fromByteArray=function(e){for(var r,n=e.length,i=n%3,o=[],s=0,a=n-i;s>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(t[(r=e[n-1])>>2]+t[r<<4&63]+"=="):2===i&&o.push(t[(r=(e[n-2]<<8)+e[n-1])>>10]+t[r>>4&63]+t[r<<2&63]+"="),o.join("")};for(var t=[],e=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}return e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63,rz}(),r=(h||(h=1,rW.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,l=-7,h=r?i-1:0,f=r?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=c}return(p?-1:1)*s*Math.pow(2,o-n)},rW.write=function(t,e,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,f=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,m=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(a=+!!isNaN(e),s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?e+=f/u:e+=f*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;t[r+p]=255&s,p+=d,s/=256,c-=8);t[r+p-d]|=128*m}),rW),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function i(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return u(t)}return s(t,e,r)}function s(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!o.isEncoding(e))throw TypeError("Unknown encoding: "+e);var r=0|d(t,e),n=i(r),s=n.write(t,e);return s!==r&&(n=n.slice(0,s)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(R(t,Uint8Array)){var e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return c(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(R(t,ArrayBuffer)||t&&R(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(t,SharedArrayBuffer)||t&&R(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return o.from(n,e,r);var s=function(t){if(o.isBuffer(t)){var e,r=0|p(t.length),n=i(r);return 0===n.length||t.copy(n,0,0,r),n}if(void 0!==t.length){return"number"!=typeof t.length||(e=t.length)!=e?i(0):c(t)}if("Buffer"===t.type&&Array.isArray(t.data))return c(t.data)}(t);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return o.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function a(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return a(t),i(t<0?0:0|p(t))}function c(t){for(var e=t.length<0?0:0|p(t.length),r=i(e),n=0;n=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||R(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return k(t).length;default:if(i)return n?-1:S(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,r,n){var i,o,s,a=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r*=1)!=s&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=o.from(e,n)),o.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){for(var h=!0,f=0;f239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:(192&(o=t[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function x(t,e,r,n,i,s){if(!o.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw RangeError("Index out of range")}function _(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function E(t,e,n,i,o){return e*=1,n>>>=0,o||_(t,e,n,4),r.write(t,e,n,i,23,4),n+4}function T(t,e,n,i,o){return e*=1,n>>>=0,o||_(t,e,n,8),r.write(t,e,n,i,52,8),n+8}t.Buffer=o,t.SlowBuffer=function(t){return+t!=t&&(t=0),o.alloc(+t)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(t,e,r){return s(t,e,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(t,e,r){return(a(t),t<=0)?i(t):void 0!==e?"string"==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)},o.allocUnsafe=function(t){return u(t)},o.allocUnsafeSlow=function(t){return u(t)},o.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==o.prototype},o.compare=function(t,e){if(R(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),R(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(t)||!o.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);in.length?o.from(s).copy(n,i):Uint8Array.prototype.set.call(n,s,i);else if(o.isBuffer(s))s.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=s.length}return n},o.byteLength=d,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(e+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(t,e,r,n,i){if(R(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var s=i-n,a=r-e,u=Math.min(s,a),c=this.slice(n,i),l=t.slice(e,r),h=0;h>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,u,c,l,h,f=this.length-e;if((void 0===r||r>f)&&(r=f),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t>>>=0,e||v(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return(t>>>=0,e||v(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},o.prototype.readInt16LE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return t>>>=0,e||v(t,4,this.length),r.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t>>>=0,e||v(t,4,this.length),r.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t>>>=0,e||v(t,8,this.length),r.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t>>>=0,e||v(t,8,this.length),r.read(this,t,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;x(this,t,e,r,i,0)}var o=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;x(this,t,e,r,i,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,1,255,0),this[e]=255&t,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);x(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+r},o.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);x(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},o.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||x(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},o.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},o.prototype.writeDoubleLE=function(t,e,r){return T(this,t,e,!0,r)},o.prototype.writeDoubleBE=function(t,e,r){return T(this,t,e,!1,r)},o.prototype.copy=function(t,e,r,n){if(!o.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function k(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function I(t,e,r,n){for(var i=0;i=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function R(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var C=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()}(rj)),rj}var rK={},rG={};function rV(){return d?p:(d=1,p=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0})}function rq(){if(g)return m;g=1;var t=rV();return m=function(){return t()&&!!Symbol.toStringTag}}function rZ(){return y?w:(y=1,w=Object)}function rX(){return I?k:(I=1,k=SyntaxError)}function r$(){return C?R:(C=1,R=TypeError)}function rY(){if(J)return Y;J=1;var t=$?X:($=1,X=Object.getOwnPropertyDescriptor);if(t)try{t([],"length")}catch(e){t=null}return Y=t}function rJ(){if(tt)return Q;tt=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}return Q=t}function rQ(){return ti?tn:(ti=1,tn="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function r0(){return ts?to:(ts=1,to=rZ().getPrototypeOf||null)}function r1(){if(tl)return tc;tl=1;var t=function(){if(tu)return ta;tu=1;var t=Object.prototype.toString,e=Math.max,r=function(t,e){for(var r=[],n=0;n1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===td(/^%?[^%]*%?$/,t))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=tO(t),n=r.length>0?r[0]:"",i=tN("%"+n+"%",e),o=i.name,u=i.value,c=!1,l=i.alias;l&&(n=l[0],th(r,tl([0,1],l)));for(var h=1,f=!0;h=r.length){var g=y(u,p);u=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:u[p]}else f=tc(u,p),u=u[p];f&&!c&&(ti[o]=u)}}return u}}var r3={exports:{}};function r8(){var t,e,r,n,i,o,s,a,u,c;return tP?r3.exports:(tP=1,t=r1(),e=r5(),r=function(){if(tD)return tF;tD=1;var t=r5(),e=function(){if(tC)return tR;tC=1;var t=rJ(),e=rX(),r=r$(),n=rY();return tR=function(i,o,s){if(!i||"object"!=typeof i&&"function"!=typeof i)throw new r("`obj` must be an object or a function`");if("string"!=typeof o&&"symbol"!=typeof o)throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new r("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],h=!!n&&n(i,o);if(t)t(i,o,{configurable:null===c&&h?h.configurable:!c,enumerable:null===a&&h?h.enumerable:!a,value:s,writable:null===u&&h?h.writable:!u});else if(!l&&(a||u||c))throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else i[o]=s}}(),r=(function(){if(tN)return tO;tN=1;var t=rJ(),e=function(){return!!t};return e.hasArrayLengthDefineBug=function(){if(!t)return null;try{return 1!==t([],"length",{value:1}).length}catch(t){return!0}},tO=e})()(),n=rY(),i=r$(),o=t("%Math.floor%");return tF=function(t,s){if("function"!=typeof t)throw new i("`fn` is not a function");if("number"!=typeof s||s<0||s>0xffffffff||o(s)!==s)throw new i("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],u=!0,c=!0;if("length"in t&&n){var l=n(t,"length");l&&!l.configurable&&(u=!1),l&&!l.writable&&(c=!1)}return(u||c||!a)&&(r?e(t,"length",s,!0,!0):e(t,"length",s)),t}}(),n=r$(),i=e("%Function.prototype.apply%"),o=e("%Function.prototype.call%"),s=e("%Reflect.apply%",!0)||t.call(o,i),a=rJ(),u=e("%Math.max%"),r3.exports=function(e){if("function"!=typeof e)throw new n("a function is required");var i=s(t,o,arguments);return r(i,1+u(0,e.length-(arguments.length-1)),!0)},c=function(){return s(t,i,arguments)},a?a(r3.exports,"apply",{value:c}):r3.exports.apply=c,r3.exports)}function r4(){if(tB)return tL;tB=1;var t=r5(),e=r8(),r=e(t("String.prototype.indexOf"));return tL=function(n,i){var o=t(n,!!i);return"function"==typeof o&&r(n,".prototype.")>-1?e(o):o}}function r9(){if(tY)return t$;tY=1;var t=function(){if(tG)return tK;tG=1;var t=function(){if(tH)return tW;tH=1;var t,e,r=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw e}}),e={},n(function(){throw 42},null,t)}catch(t){t!==e&&(n=null)}else n=null;var i=/^\s*class\b/,o=function(t){try{var e=r.call(t);return i.test(e)}catch(t){return!1}},s=function(t){try{if(o(t))return!1;return r.call(t),!0}catch(t){return!1}},a=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var h=document.all;a.call(h)===a.call(document.all)&&(l=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=a.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}return tW=n?function(r){if(l(r))return!0;if(!r||"function"!=typeof r&&"object"!=typeof r)return!1;try{n(r,null,t)}catch(t){if(t!==e)return!1}return!o(r)&&s(r)}:function(t){if(l(t))return!0;if(!t||"function"!=typeof t&&"object"!=typeof t)return!1;if(u)return s(t);if(o(t))return!1;var e=a.call(t);return!!("[object Function]"===e||"[object GeneratorFunction]"===e||/^\[object HTML/.test(e))&&s(t)}}(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(t,e,n){for(var i=0,o=t.length;i=3&&(u=a),"[object Array]"===e.call(r)?n(r,s,u):"string"==typeof r?i(r,s,u):o(r,s,u)}}(),e=function(){if(tX)return tZ;tX=1;var t=tq?tV:(tq=1,tV=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),e="undefined"==typeof globalThis?rb:globalThis;return tZ=function(){for(var r=[],n=0;n-1?e:"Object"===e&&d(t)}return i?p(t):null}}function r7(){return t6||(t6=1,!function(t){var e=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}}),u=i[n];n=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),c(n,e,n.depth)}function a(t,e){var r=s.styles[e];return r?"\x1b["+s.colors[r][0]+"m"+t+"\x1b["+s.colors[r][1]+"m":t}function u(t,e){return t}function c(e,r,n){if(e.customInspect&&r&&_(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o,s,a,u,b=r.inspect(n,e);return g(b)||(b=c(e,b,n)),b}var E=function(t,e){if(w(e))return t.stylize("undefined","undefined");if(g(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return m(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):d(e)?t.stylize("null","null"):void 0}(e,r);if(E)return E;var T=Object.keys(r),A=(a={},T.forEach(function(t,e){a[t]=!0}),a);if(e.showHidden&&(T=Object.getOwnPropertyNames(r)),x(r)&&(T.indexOf("message")>=0||T.indexOf("description")>=0))return l(r);if(0===T.length){if(_(r)){var k=r.name?": "+r.name:"";return e.stylize("[Function"+k+"]","special")}if(y(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(v(r))return e.stylize(Date.prototype.toString.call(r),"date");if(x(r))return l(r)}var I="",R=!1,C=["{","}"];if(f(r)&&(R=!0,C=["[","]"]),_(r)&&(I=" [Function"+(r.name?": "+r.name:"")+"]"),y(r)&&(I=" "+RegExp.prototype.toString.call(r)),v(r)&&(I=" "+Date.prototype.toUTCString.call(r)),x(r)&&(I=" "+l(r)),0===T.length&&(!R||0==r.length))return C[0]+I+C[1];if(n<0)return y(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");return e.seen.push(r),u=R?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s60?s[0]+(""===o?"":o+"\n ")+" "+i.join(",\n ")+" "+s[1]:s[0]+o+" "+i.join(", ")+" "+s[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),S(n,i)||(s="["+i+"]"),!a&&(0>t.seen.indexOf(u.value)?(a=d(r)?c(t,u.value,null):c(t,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(t){return" "+t}).join("\n").slice(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n")):a=t.stylize("[Circular]","special")),w(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function f(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function d(t){return null===t}function m(t){return"number"==typeof t}function g(t){return"string"==typeof t}function w(t){return void 0===t}function y(t){return b(t)&&"[object RegExp]"===E(t)}function b(t){return"object"==typeof t&&null!==t}function v(t){return b(t)&&"[object Date]"===E(t)}function x(t){return b(t)&&("[object Error]"===E(t)||t instanceof Error)}function _(t){return"function"==typeof t}function E(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}t.debuglog=function(e){if(!n[e=e.toUpperCase()]){if(i.test(e)){var r=rU.pid;n[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else n[e]=function(){}}return n[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t0||(t0=1,function(t){var e=function(){if(tM)return tU;tM=1;var t=rq()(),e=r4()("Object.prototype.toString"),r=function(r){return(!t||!r||"object"!=typeof r||!(Symbol.toStringTag in r))&&"[object Arguments]"===e(r)},n=function(t){return!!r(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==e(t)&&"[object Function]"===e(t.callee)},i=function(){return r(arguments)}();return r.isLegacyArguments=n,tU=i?r:n}(),r=function(){if(tz)return tj;tz=1;var t,e=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i=rq()(),o=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(t){}};return tj=function(a){if("function"!=typeof a)return!1;if(n.test(r.call(a)))return!0;if(!i)return"[object GeneratorFunction]"===e.call(a);if(!o)return!1;if(void 0===t){var u=s();t=!!u&&o(u)}return o(a)===t}}(),n=r9(),i=function(){if(tQ)return tJ;tQ=1;var t=r9();return tJ=function(e){return!!t(e)}}();function o(t){return t.call.bind(t)}var s="undefined"!=typeof BigInt,a="undefined"!=typeof Symbol,u=o(Object.prototype.toString),c=o(Number.prototype.valueOf),l=o(String.prototype.valueOf),h=o(Boolean.prototype.valueOf);if(s)var f=o(BigInt.prototype.valueOf);if(a)var p=o(Symbol.prototype.valueOf);function d(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===u(t)}function g(t){return"[object Set]"===u(t)}function w(t){return"[object WeakMap]"===u(t)}function y(t){return"[object WeakSet]"===u(t)}function b(t){return"[object ArrayBuffer]"===u(t)}function v(t){return"undefined"!=typeof ArrayBuffer&&(b.working?b(t):t instanceof ArrayBuffer)}function x(t){return"[object DataView]"===u(t)}function _(t){return"undefined"!=typeof DataView&&(x.working?x(t):t instanceof DataView)}t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=i,t.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},t.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):i(t)||_(t)},t.isUint8Array=function(t){return"Uint8Array"===n(t)},t.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===n(t)},t.isUint16Array=function(t){return"Uint16Array"===n(t)},t.isUint32Array=function(t){return"Uint32Array"===n(t)},t.isInt8Array=function(t){return"Int8Array"===n(t)},t.isInt16Array=function(t){return"Int16Array"===n(t)},t.isInt32Array=function(t){return"Int32Array"===n(t)},t.isFloat32Array=function(t){return"Float32Array"===n(t)},t.isFloat64Array=function(t){return"Float64Array"===n(t)},t.isBigInt64Array=function(t){return"BigInt64Array"===n(t)},t.isBigUint64Array=function(t){return"BigUint64Array"===n(t)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(t){return"undefined"!=typeof Map&&(m.working?m(t):t instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(t){return"undefined"!=typeof Set&&(g.working?g(t):t instanceof Set)},w.working="undefined"!=typeof WeakMap&&w(new WeakMap),t.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(w.working?w(t):t instanceof WeakMap)},y.working="undefined"!=typeof WeakSet&&y(new WeakSet),t.isWeakSet=function(t){return y(t)},b.working="undefined"!=typeof ArrayBuffer&&b(new ArrayBuffer),t.isArrayBuffer=v,x.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&x(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=_;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(t){return"[object SharedArrayBuffer]"===u(t)}function A(t){return void 0!==E&&(void 0===T.working&&(T.working=T(new E)),T.working?T(t):t instanceof E)}function S(t){return d(t,c)}function k(t){return d(t,l)}function I(t){return d(t,h)}function R(t){return s&&d(t,f)}function C(t){return a&&d(t,p)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},t.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},t.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},t.isGeneratorObject=function(t){return"[object Generator]"===u(t)},t.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},t.isNumberObject=S,t.isStringObject=k,t.isBooleanObject=I,t.isBigIntObject=R,t.isSymbolObject=C,t.isBoxedPrimitive=function(t){return S(t)||k(t)||I(t)||R(t)||C(t)},t.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(v(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})}(rG)),t.types=rG,t.isArray=f,t.isBoolean=p,t.isNull=d,t.isNullOrUndefined=function(t){return null==t},t.isNumber=m,t.isString=g,t.isSymbol=function(t){return"symbol"==typeof t},t.isUndefined=w,t.isRegExp=y,t.types.isRegExp=y,t.isObject=b,t.isDate=v,t.types.isDate=v,t.isError=x,t.types.isNativeError=x,t.isFunction=_,t.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},t.isBuffer=t2?t1:(t2=1,t1=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8});var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.log=function(){var e,r;console.log("%s - %s",(r=[T((e=new Date).getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=rA(),t._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var r=Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}t.promisify=function(t){if("function"!=typeof t)throw TypeError('The "original" argument must be of type Function');if(k&&t[k]){var r=t[k];if("function"!=typeof r)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,k,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var e,r,n=new Promise(function(t,n){e=t,r=n}),i=[],o=0;o2)?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return e("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),e("ERR_INVALID_ARG_TYPE",function(t,e,n){if("string"==typeof e&&(i="not ",e.substr(0,i.length)===i)?(u="must not be",e=e.replace(/^not /,"")):u="must be",o=" argument",(void 0===s||s>t.length)&&(s=t.length),t.substring(s-o.length,s)===o)c="The ".concat(t," ").concat(u," ").concat(r(e,"type"));else{var i,o,s,a,u,c,l=("number"!=typeof a&&(a=0),a+1>t.length||-1===t.indexOf(".",a))?"argument":"property";c='The "'.concat(t,'" ').concat(l," ").concat(u," ").concat(r(e,"type"))}return c+". Received type ".concat(typeof n)},TypeError),e("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),e("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),e("ERR_STREAM_PREMATURE_CLOSE","Premature close"),e("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),e("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),e("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),e("ERR_STREAM_WRITE_AFTER_END","write after end"),e("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),e("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),e("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ne.codes=t,ne}function nn(){if(et)return t7;et=1;var t=nr().codes.ERR_INVALID_OPT_VALUE;return t7={getHighWaterMark:function(e,r,n,i){var o=null!=r.highWaterMark?r.highWaterMark:i?r[n]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new t(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}}function ni(){if(ei)return en;function t(t){var e=this;this.next=null,this.entry=null,this.finish=function(){(function(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(void 0),n=n.next}e.corkedRequestsFree.next=t})(e,t)}}ei=1,en=x,x.WritableState=v;var e,r,n={deprecate:function(){if(er)return ee;function t(t){try{if(!rb.localStorage)return!1}catch(t){return!1}var e=rb.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}return er=1,ee=function(e,r){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return e.apply(this,arguments)}}}()},i=rM(),o=rH().Buffer,s=rb.Uint8Array||function(){},a=nt(),u=nn().getHighWaterMark,c=nr().codes,l=c.ERR_INVALID_ARG_TYPE,h=c.ERR_METHOD_NOT_IMPLEMENTED,f=c.ERR_MULTIPLE_CALLBACK,p=c.ERR_STREAM_CANNOT_PIPE,d=c.ERR_STREAM_DESTROYED,m=c.ERR_STREAM_NULL_VALUES,g=c.ERR_STREAM_WRITE_AFTER_END,w=c.ERR_UNKNOWN_ENCODING,y=a.errorOrDestroy;function b(){}function v(r,n,i){e=e||no(),r=r||{},"boolean"!=typeof i&&(i=n instanceof e),this.objectMode=!!r.objectMode,i&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=u(this,r,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===r.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){(function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new f;if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e)--r.pendingcb,n?(rU.nextTick(i,e),rU.nextTick(k,t,r),t._writableState.errorEmitted=!0,y(t,e)):(i(e),t._writableState.errorEmitted=!0,y(t,e),k(t,r));else{var o=A(r)||t.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||T(t,r),n?rU.nextTick(E,t,r,o,i):E(t,r,o,i)}})(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==r.emitClose,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function x(t){var n=this instanceof(e=e||no());if(!n&&!r.call(x,this))return new x(t);this._writableState=new v(t,this,n),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),i.call(this)}function _(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new d("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function E(t,e,r,n){var i,o;r||(i=t,0===(o=e).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),e.pendingcb--,n(),k(t,e)}function T(e,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(e._writev&&n&&n.next){var i=Array(r.bufferedRequestCount),o=r.corkedRequestsFree;o.entry=n;for(var s=0,a=!0;n;)i[s]=n,n.isBuf||(a=!1),n=n.next,s+=1;i.allBuffers=a,_(e,r,!0,r.length,i,"",o.finish),r.pendingcb++,r.lastBufferedRequest=null,o.next?(r.corkedRequestsFree=o.next,o.next=null):r.corkedRequestsFree=new t(r),r.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,l=n.callback,h=r.objectMode?1:u.length;if(_(e,r,!1,h,u,c,l),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function A(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function S(t,e){t._final(function(r){e.pendingcb--,r&&y(t,r),e.prefinished=!0,t.emit("prefinish"),k(t,e)})}function k(t,e){var r=A(e);if(r&&(e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,rU.nextTick(S,t,e))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}return rA()(x,i),v.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(v.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(r=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(t){return!!r.call(this,t)||this===x&&t&&t._writableState instanceof v}})):r=function(t){return t instanceof this},x.prototype.pipe=function(){y(this,new p)},x.prototype.write=function(t,e,r){var n,i,a,u,c,h,f,p=this._writableState,d=!1,w=!p.objectMode&&(n=t,o.isBuffer(n)||n instanceof s);return w&&!o.isBuffer(t)&&(i=t,t=o.from(i)),("function"==typeof e&&(r=e,e=null),w?e="buffer":e||(e=p.defaultEncoding),"function"!=typeof r&&(r=b),p.ending)?(a=r,y(this,u=new g),rU.nextTick(a,u)):(w||(c=t,h=r,null===c?f=new m:"string"==typeof c||p.objectMode||(f=new l("chunk",["string","Buffer"],c)),!f||(y(this,f),rU.nextTick(h,f),0)))&&(p.pendingcb++,d=function(t,e,r,n,i,s){if(!r){var a,u,c=(a=n,u=i,e.objectMode||!1===e.decodeStrings||"string"!=typeof a||(a=o.from(a,u)),a);n!==c&&(r=!0,i="buffer",n=c)}var l=e.objectMode?1:n.length;e.length+=l;var h=e.length-1))throw new w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(t,e,r){r(new h("_write()"))},x.prototype._writev=null,x.prototype.end=function(t,e,r){var n,i,o,s=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),s.corked&&(s.corked=1,this.uncork()),s.ending||(n=this,i=s,o=r,i.ending=!0,k(n,i),o&&(i.finished?rU.nextTick(o):n.once("finish",o)),i.ended=!0,n.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),x.prototype.destroy=a.destroy,x.prototype._undestroy=a.undestroy,x.prototype._destroy=function(t,e){e(t)},en}function no(){if(es)return eo;es=1;var t=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};eo=s;var e=nl(),r=ni();rA()(s,e);for(var n=t(r.prototype),i=0;i>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function i(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if((192&e[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((192&e[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(192&e[2])!=128)return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length)}function o(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function s(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function a(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(t){return t.toString(this.encoding)}function l(t){return t&&t.length?this.write(t):""}return ns.StringDecoder=r,r.prototype.write=function(t){var e,r;if(0===t.length)return"";if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(o>0&&(t.lastNeed=o-1),o):--i=0?(o>0&&(t.lastNeed=o-2),o):--i=0?(o>0&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var i=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},r.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length},ns}function nc(){if(el)return ec;el=1;var t=nr().codes.ERR_STREAM_PREMATURE_CLOSE;function e(){}return ec=function r(n,i,o){if("function"==typeof i)return r(n,null,i);i||(i={}),s=o||e,a=!1,o=function(){if(!a){a=!0;for(var t=arguments.length,e=Array(t),r=0;r0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return e.alloc(0);for(var r,n,i=e.allocUnsafe(t>>>0),o=this.head,s=0;o;)r=o.data,n=s,e.prototype.copy.call(r,i,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var r;return ti.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0==(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var r=e.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(r),t-=n.data.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,s),0==(t-=s)){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,r}},{key:n,value:function(e,n){return r(this,function(e){for(var r=1;r0){if("string"!=typeof r&&!l.objectMode&&Object.getPrototypeOf(r)!==a.prototype&&(s=r,r=a.from(s)),i)l.endEmitted?y(t,new w):E(t,l,r,!0);else if(l.ended)y(t,new m);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(r=l.decoder.write(r),l.objectMode||0!==r.length?E(t,l,r,!1):k(t,l)):E(t,l,r,!1)}}else i||(l.reading=!1,k(t,l));return!l.ended&&(l.lengthe.highWaterMark){var r;(r=t)>=0x40000000?r=0x40000000:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),e.highWaterMark=r}return t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0)}function A(t){var r=t._readableState;e("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(e("emitReadable",r.flowing),r.emittedReadable=!0,rU.nextTick(S,t))}function S(t){var r=t._readableState;e("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(t.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,N(t)}function k(t,e){e.readingMore||(e.readingMore=!0,rU.nextTick(I,t,e))}function I(t,r){for(;!r.reading&&!r.ended&&(r.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function C(t){e("readable nexttick read 0"),t.read(0)}function O(t,r){e("resume",r.reading),r.reading||t.read(0),r.resumeScheduled=!1,t.emit("resume"),N(t),r.flowing&&!r.reading&&t.read(0)}function N(t){var r=t._readableState;for(e("flow",r.flowing);r.flowing&&null!==t.read(););}function F(t,e){var r;return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r)}function D(t){var r=t._readableState;e("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,rU.nextTick(P,r,t))}function P(t,r){if(e("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,r.readable=!1,r.emit("end"),t.autoDestroy)){var n=r._writableState;(!n||n.autoDestroy&&n.finished)&&r.destroy()}}function L(t,e){for(var r=0,n=t.length;r=n.highWaterMark:n.length>0)||n.ended))return e("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?D(this):A(this),null;if(0===(t=T(t,n))&&n.ended)return 0===n.length&&D(this),null;var o=n.needReadable;return e("need readable",o),(0===n.length||n.length-t0?F(t,n):null)?(n.needReadable=n.length<=n.highWaterMark,t=0):(n.length-=t,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),i!==t&&n.ended&&D(this)),null!==r&&this.emit("data",r),r},x.prototype._read=function(t){y(this,new g("_read()"))},x.prototype.pipe=function(t,r){var n,i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t)}s.pipesCount+=1,e("pipe count=%d opts=%j",s.pipesCount,r);var a=r&&!1===r.end||t===rU.stdout||t===rU.stderr?m:u;function u(){e("onend"),t.end()}s.endEmitted?rU.nextTick(a):i.once("end",a),t.on("unpipe",function r(n,o){e("onunpipe"),n===i&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,e("cleanup"),t.removeListener("close",p),t.removeListener("finish",d),t.removeListener("drain",c),t.removeListener("error",f),t.removeListener("unpipe",r),i.removeListener("end",u),i.removeListener("end",m),i.removeListener("data",h),l=!0,s.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&c())});var c=(n=i,function(){var t=n._readableState;e("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(n,"data")&&(t.flowing=!0,N(n))});t.on("drain",c);var l=!1;function h(r){e("ondata");var n=t.write(r);e("dest.write",n),!1===n&&((1===s.pipesCount&&s.pipes===t||s.pipesCount>1&&-1!==L(s.pipes,t))&&!l&&(e("false write response, pause",s.awaitDrain),s.awaitDrain++),i.pause())}function f(r){e("onerror",r),m(),t.removeListener("error",f),0===o(t,"error")&&y(t,r)}function p(){t.removeListener("finish",d),m()}function d(){e("onfinish"),t.removeListener("close",p),m()}function m(){e("unpipe"),i.unpipe(t)}return i.on("data",h),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",f),t.once("close",p),t.once("finish",d),t.emit("pipe",i),s.flowing||(e("pipe resume"),i.resume()),t},x.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"!==t||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,e("on readable",i.length,i.reading),i.length?A(this):i.reading||rU.nextTick(C,this)),n},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&rU.nextTick(R,this),r},x.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return("readable"===t||void 0===t)&&rU.nextTick(R,this),e},x.prototype.resume=function(){var t,r,n=this._readableState;return n.flowing||(e("resume"),n.flowing=!n.readableListening,t=this,(r=n).resumeScheduled||(r.resumeScheduled=!0,rU.nextTick(O,t,r))),n.paused=!1,this},x.prototype.pause=function(){return e("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(e("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(t){var r=this,n=this._readableState,i=!1;for(var o in t.on("end",function(){if(e("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),t.on("data",function(o){if(e("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!n.objectMode||null!=o)(n.objectMode||o&&o.length)&&(r.push(o)||(i=!0,t.pause()))}),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var s=0;s0},function(t){if(t)return i(t);l=!0,i()}),p=!1,function(t){if(!l&&!p){if(p=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();i(t||new n("pipe"))}}});return c.reduce(s)}}(),e.Stream=e,e.prototype.pipe=function(e,r){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||r&&!1===r.end||(n.on("end",a),n.on("close",u));var s=!1;function a(){s||(s=!0,e.end())}function u(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===t.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",u),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",c),e.on("error",c),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e},eE}function np(){return ek?eS:(ek=1,eS={isArray:function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}})}function nd(){if(eR)return eI;eR=1;var t=np().isArray;return eI={copyOptions:function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r},ensureFlagExists:function(t,e){t in e&&"boolean"==typeof e[t]||(e[t]=!1)},ensureSpacesExists:function(t){"spaces"in t&&("number"==typeof t.spaces||"string"==typeof t.spaces)||(t.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"==typeof e.alwaysArray||t(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(t,e){t+"Key"in e&&"string"==typeof e[t+"Key"]||(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}}}function nm(){if(eO)return eC;eO=1;var t,e,r=eA?rx:(eA=1,!function(t){t.parser=function(t,e){return new s(t,e)},t.SAXParser=s,t.SAXStream=u,t.createStream=function(t,e){return new u(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,r,n,i,o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(e,r){if(!(this instanceof s))return new s(e,r);(function(t){for(var e=0,r=o.length;e"===n?(_(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=b.TEXT):(w(n)&&(this.state=b.SGML_DECL_QUOTED),this.sgmlDecl+=n);continue;case b.SGML_DECL_QUOTED:n===this.q&&(this.state=b.SGML_DECL,this.q=""),this.sgmlDecl+=n;continue;case b.DOCTYPE:">"===n?(this.state=b.TEXT,_(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=n,"["===n?this.state=b.DOCTYPE_DTD:w(n)&&(this.state=b.DOCTYPE_QUOTED,this.q=n));continue;case b.DOCTYPE_QUOTED:this.doctype+=n,n===this.q&&(this.q="",this.state=b.DOCTYPE);continue;case b.DOCTYPE_DTD:this.doctype+=n,"]"===n?this.state=b.DOCTYPE:w(n)&&(this.state=b.DOCTYPE_DTD_QUOTED,this.q=n);continue;case b.DOCTYPE_DTD_QUOTED:this.doctype+=n,n===this.q&&(this.state=b.DOCTYPE_DTD,this.q="");continue;case b.COMMENT:"-"===n?this.state=b.COMMENT_ENDING:this.comment+=n;continue;case b.COMMENT_ENDING:"-"===n?(this.state=b.COMMENT_ENDED,this.comment=T(this.opt,this.comment),this.comment&&_(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+n,this.state=b.COMMENT);continue;case b.COMMENT_ENDED:">"!==n?(k(this,"Malformed comment"),this.comment+="--"+n,this.state=b.COMMENT):this.state=b.TEXT;continue;case b.CDATA:"]"===n?this.state=b.CDATA_ENDING:this.cdata+=n;continue;case b.CDATA_ENDING:"]"===n?this.state=b.CDATA_ENDING_2:(this.cdata+="]"+n,this.state=b.CDATA);continue;case b.CDATA_ENDING_2:">"===n?(this.cdata&&_(this,"oncdata",this.cdata),_(this,"onclosecdata"),this.cdata="",this.state=b.TEXT):"]"===n?this.cdata+="]":(this.cdata+="]]"+n,this.state=b.CDATA);continue;case b.PROC_INST:"?"===n?this.state=b.PROC_INST_ENDING:g(n)?this.state=b.PROC_INST_BODY:this.procInstName+=n;continue;case b.PROC_INST_BODY:!this.procInstBody&&g(n)||("?"===n?this.state=b.PROC_INST_ENDING:this.procInstBody+=n);continue;case b.PROC_INST_ENDING:">"===n?(_(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=b.TEXT):(this.procInstBody+="?"+n,this.state=b.PROC_INST_BODY);continue;case b.OPEN_TAG:y(p,n)?this.tagName+=n:(function(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,r=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(r.ns=e.ns),t.attribList.length=0,_(t,"onopentagstart",r)}(this),">"===n?C(this):"/"===n?this.state=b.OPEN_TAG_SLASH:(g(n)||k(this,"Invalid character in tag name"),this.state=b.ATTRIB));continue;case b.OPEN_TAG_SLASH:">"===n?(C(this,!0),O(this)):(k(this,"Forward-slash in opening tag not followed by >"),this.state=b.ATTRIB);continue;case b.ATTRIB:g(n)||(">"===n?C(this):"/"===n?this.state=b.OPEN_TAG_SLASH:y(f,n)?(this.attribName=n,this.attribValue="",this.state=b.ATTRIB_NAME):k(this,"Invalid attribute name"));continue;case b.ATTRIB_NAME:"="===n?this.state=b.ATTRIB_VALUE:">"===n?(k(this,"Attribute without value"),this.attribValue=this.attribName,R(this),C(this)):g(n)?this.state=b.ATTRIB_NAME_SAW_WHITE:y(p,n)?this.attribName+=n:k(this,"Invalid attribute name");continue;case b.ATTRIB_NAME_SAW_WHITE:"="===n?this.state=b.ATTRIB_VALUE:g(n)||(k(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",_(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===n?C(this):y(f,n)?(this.attribName=n,this.state=b.ATTRIB_NAME):(k(this,"Invalid attribute name"),this.state=b.ATTRIB));continue;case b.ATTRIB_VALUE:g(n)||(w(n)?(this.q=n,this.state=b.ATTRIB_VALUE_QUOTED):(k(this,"Unquoted attribute value"),this.state=b.ATTRIB_VALUE_UNQUOTED,this.attribValue=n));continue;case b.ATTRIB_VALUE_QUOTED:if(n!==this.q){"&"===n?this.state=b.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=n;continue}R(this),this.q="",this.state=b.ATTRIB_VALUE_CLOSED;continue;case b.ATTRIB_VALUE_CLOSED:g(n)?this.state=b.ATTRIB:">"===n?C(this):"/"===n?this.state=b.OPEN_TAG_SLASH:y(f,n)?(k(this,"No whitespace between attributes"),this.attribName=n,this.attribValue="",this.state=b.ATTRIB_NAME):k(this,"Invalid attribute name");continue;case b.ATTRIB_VALUE_UNQUOTED:if(!(">"===(i=n)||g(i))){"&"===n?this.state=b.ATTRIB_VALUE_ENTITY_U:this.attribValue+=n;continue}R(this),">"===n?C(this):this.state=b.ATTRIB;continue;case b.CLOSE_TAG:this.tagName?">"===n?O(this):y(p,n)?this.tagName+=n:this.script?(this.script+=""===n?O(this):k(this,"Invalid characters in closing tag");continue;case b.TEXT_ENTITY:case b.ATTRIB_VALUE_ENTITY_Q:case b.ATTRIB_VALUE_ENTITY_U:switch(this.state){case b.TEXT_ENTITY:s=b.TEXT,a="textNode";break;case b.ATTRIB_VALUE_ENTITY_Q:s=b.ATTRIB_VALUE_QUOTED,a="attribValue";break;case b.ATTRIB_VALUE_ENTITY_U:s=b.ATTRIB_VALUE_UNQUOTED,a="attribValue"}";"===n?(this[a]+=function(t){var e,r=t.entity,n=r.toLowerCase(),i="";return t.ENTITIES[r]?t.ENTITIES[r]:t.ENTITIES[n]?t.ENTITIES[n]:("#"===(r=n).charAt(0)&&(i="x"===r.charAt(1)?(e=parseInt(r=r.slice(2),16)).toString(16):(e=parseInt(r=r.slice(1),10)).toString(10)),r=r.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==r)?(k(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e)}(this),this.entity="",this.state=s):y(this.entity.length?m:d,n)?this.entity+=n:(k(this,"Invalid character in entity name"),this[a]+="&"+this.entity+n,this.entity="",this.state=s);continue;default:throw Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function(e){for(var r=Math.max(t.MAX_BUFFER_LENGTH,10),n=0,i=0,s=o.length;ir)switch(o[i]){case"textNode":E(e);break;case"cdata":_(e,"oncdata",e.cdata),e.cdata="";break;case"script":_(e,"onscript",e.script),e.script="";break;default:A(e,"Max buffer length exceeded: "+o[i])}n=Math.max(n,a)}e.bufferCheckPosition=t.MAX_BUFFER_LENGTH-n+e.position}(this),this},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this),""!==this.cdata&&(_(this,"oncdata",this.cdata),this.cdata=""),""!==this.script&&(_(this,"onscript",this.script),this.script="")}};try{i=nf().Stream}catch(t){i=function(){}}var a=t.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function u(t,e){if(!(this instanceof u))return new u(t,e);i.apply(this),this._parser=new s(t,e),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,a.forEach(function(t){Object.defineProperty(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(i.prototype,{constructor:{value:u}}),u.prototype.write=function(t){if("function"==typeof rt&&"function"==typeof rt.isBuffer&&rt.isBuffer(t)){if(!this._decoder){var e=nu().StringDecoder;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},u.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},u.prototype.on=function(t,e){var r=this;return r._parser["on"+t]||-1===a.indexOf(t)||(r._parser["on"+t]=function(){var e=1==arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),r.emit.apply(r,e)}),i.prototype.on.call(r,t,e)};var c="http://www.w3.org/XML/1998/namespace",l="http://www.w3.org/2000/xmlns/",h={xml:c,xmlns:l},f=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function g(t){return" "===t||"\n"===t||"\r"===t||" "===t}function w(t){return'"'===t||"'"===t}function y(t,e){return t.test(e)}var b=0;for(var v in t.STATE={BEGIN:b++,BEGIN_WHITESPACE:b++,TEXT:b++,TEXT_ENTITY:b++,OPEN_WAKA:b++,SGML_DECL:b++,SGML_DECL_QUOTED:b++,DOCTYPE:b++,DOCTYPE_QUOTED:b++,DOCTYPE_DTD:b++,DOCTYPE_DTD_QUOTED:b++,COMMENT_STARTING:b++,COMMENT:b++,COMMENT_ENDING:b++,COMMENT_ENDED:b++,CDATA:b++,CDATA_ENDING:b++,CDATA_ENDING_2:b++,PROC_INST:b++,PROC_INST_BODY:b++,PROC_INST_ENDING:b++,OPEN_TAG:b++,OPEN_TAG_SLASH:b++,ATTRIB:b++,ATTRIB_NAME:b++,ATTRIB_NAME_SAW_WHITE:b++,ATTRIB_VALUE:b++,ATTRIB_VALUE_QUOTED:b++,ATTRIB_VALUE_CLOSED:b++,ATTRIB_VALUE_UNQUOTED:b++,ATTRIB_VALUE_ENTITY_Q:b++,ATTRIB_VALUE_ENTITY_U:b++,CLOSE_TAG:b++,CLOSE_TAG_SAW_WHITE:b++,SCRIPT:b++,SCRIPT_ENDING:b++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(e){var r=t.ENTITIES[e],n="number"==typeof r?String.fromCharCode(r):r;t.ENTITIES[e]=n}),t.STATE)t.STATE[t.STATE[v]]=v;function x(t,e,r){t[e]&&t[e](r)}function _(t,e,r){t.textNode&&E(t),x(t,e,r)}function E(t){t.textNode=T(t.opt,t.textNode),t.textNode&&x(t,"ontext",t.textNode),t.textNode=""}function T(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function A(t,e){return E(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),t.error=e=Error(e),x(t,"onerror",e),t}function S(t){return t.sawRoot&&!t.closedRoot&&k(t,"Unclosed root tag"),t.state!==b.BEGIN&&t.state!==b.BEGIN_WHITESPACE&&t.state!==b.TEXT&&A(t,"Unexpected end"),E(t),t.c="",t.closed=!0,x(t,"onend"),s.call(t,t.strict,t.opt),t}function k(t,e){if("object"!=typeof t||!(t instanceof s))throw Error("bad call to strictFail");t.strict&&A(t,e)}function I(t,e){var r=0>t.indexOf(":")?["",t]:t.split(":"),n=r[0],i=r[1];return e&&"xmlns"===t&&(n="xmlns",i=""),{prefix:n,local:i}}function R(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName)){t.attribName=t.attribValue="";return}if(t.opt.xmlns){var e=I(t.attribName,!0),r=e.prefix,n=e.local;if("xmlns"===r){if("xml"===n&&t.attribValue!==c)k(t,"xml: prefix must be bound to "+c+"\nActual: "+t.attribValue);else if("xmlns"===n&&t.attribValue!==l)k(t,"xmlns: prefix must be bound to "+l+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[n]=t.attribValue}}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,_(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function C(t,e){if(t.opt.xmlns){var r=t.tag,n=I(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(k(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix);var i=t.tags[t.tags.length-1]||t;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach(function(e){_(t,"onopennamespace",{prefix:e,uri:r.ns[e]})});for(var o=0,s=t.attribList.length;o",t.tagName="",t.state=b.SCRIPT;return}_(t,"onscript",t.script),t.script=""}var e=t.tags.length,r=t.tagName;t.strict||(r=r[t.looseCase]());for(var n=r;e--;)if(t.tags[e].name!==n)k(t,"Unexpected close tag");else break;if(e<0){k(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",t.state=b.TEXT;return}t.tagName=r;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,_(t,"onclosetag",t.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach(function(e){var r=o.ns[e];_(t,"onclosenamespace",{prefix:e,uri:r})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=b.TEXT}function N(t,e){"<"===e?(t.state=b.OPEN_WAKA,t.startTagPosition=t.position):g(e)||(k(t,"Non-whitespace before first tag."),t.textNode=e,t.state=b.TEXT)}function F(t,e){var r="";return e1114111||r(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?i.push(u):(u-=65536,t=(u>>10)+55296,n=u%1024+56320,i.push(t,n)),(o+1===s||i.length>16384)&&(a+=e.apply(null,i),i.length=0)}return a},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n)}(rx),rx),n=nd(),i=np().isArray;function o(t){var e=Number(t);if(!isNaN(e))return e;var r=t.toLowerCase();return"true"===r||"false"!==r&&t}function s(r,n){var o;if(t.compact){if(!e[t[r+"Key"]]&&(i(t.alwaysArray)?-1!==t.alwaysArray.indexOf(t[r+"Key"]):t.alwaysArray)&&(e[t[r+"Key"]]=[]),e[t[r+"Key"]]&&!i(e[t[r+"Key"]])&&(e[t[r+"Key"]]=[e[t[r+"Key"]]]),r+"Fn"in t&&"string"==typeof n&&(n=t[r+"Fn"](n,e)),"instruction"===r&&("instructionFn"in t||"instructionNameFn"in t)){for(o in n)if(n.hasOwnProperty(o)){if("instructionFn"in t)n[o]=t.instructionFn(n[o],o,e);else{var s=n[o];delete n[o],n[t.instructionNameFn(o,s,e)]=s}}}i(e[t[r+"Key"]])?e[t[r+"Key"]].push(n):e[t[r+"Key"]]=n}else{e[t.elementsKey]||(e[t.elementsKey]=[]);var a={};if(a[t.typeKey]=r,"instruction"===r){for(o in n)if(n.hasOwnProperty(o))break;a[t.nameKey]="instructionNameFn"in t?t.instructionNameFn(o,n,e):o,t.instructionHasAttributes?(a[t.attributesKey]=n[o][t.attributesKey],"instructionFn"in t&&(a[t.attributesKey]=t.instructionFn(a[t.attributesKey],o,e))):("instructionFn"in t&&(n[o]=t.instructionFn(n[o],o,e)),a[t.instructionKey]=n[o])}else r+"Fn"in t&&(n=t[r+"Fn"](n,e)),a[t[r+"Key"]]=n;t.addParent&&(a[t.parentKey]=e),e[t.elementsKey].push(a)}}function a(r){if("attributesFn"in t&&r&&(r=t.attributesFn(r,e)),(t.trim||"attributeValueFn"in t||"attributeNameFn"in t||t.nativeTypeAttributes)&&r){var n;for(n in r)if(r.hasOwnProperty(n)&&(t.trim&&(r[n]=r[n].trim()),t.nativeTypeAttributes&&(r[n]=o(r[n])),"attributeValueFn"in t&&(r[n]=t.attributeValueFn(r[n],n,e)),"attributeNameFn"in t)){var i=r[n];delete r[n],r[t.attributeNameFn(n,r[n],e)]=i}}return r}function u(r){var n={};if(r.body&&("xml"===r.name.toLowerCase()||t.instructionHasAttributes)){for(var i,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(i=o.exec(r.body));)n[i[1]]=i[2]||i[3]||i[4];n=a(n)}if("xml"===r.name.toLowerCase()){if(t.ignoreDeclaration)return;e[t.declarationKey]={},Object.keys(n).length&&(e[t.declarationKey][t.attributesKey]=n),t.addParent&&(e[t.declarationKey][t.parentKey]=e)}else{if(t.ignoreInstruction)return;t.trim&&(r.body=r.body.trim());var u={};t.instructionHasAttributes&&Object.keys(n).length?(u[r.name]={},u[r.name][t.attributesKey]=n):u[r.name]=r.body,s("instruction",u)}}function c(r,n){var o,s;if("object"==typeof r&&(n=r.attributes,r=r.name),n=a(n),"elementNameFn"in t&&(r=t.elementNameFn(r,e)),t.compact){if(o={},!t.ignoreAttributes&&n&&Object.keys(n).length)for(s in o[t.attributesKey]={},n)n.hasOwnProperty(s)&&(o[t.attributesKey][s]=n[s]);r in e||(i(t.alwaysArray)?-1===t.alwaysArray.indexOf(r):!t.alwaysArray)||(e[r]=[]),e[r]&&!i(e[r])&&(e[r]=[e[r]]),i(e[r])?e[r].push(o):e[r]=o}else e[t.elementsKey]||(e[t.elementsKey]=[]),(o={})[t.typeKey]="element",o[t.nameKey]=r,!t.ignoreAttributes&&n&&Object.keys(n).length&&(o[t.attributesKey]=n),t.alwaysChildren&&(o[t.elementsKey]=[]),e[t.elementsKey].push(o);o[t.parentKey]=e,e=o}function l(e){!t.ignoreText&&(e.trim()||t.captureSpacesBetweenElements)&&(t.trim&&(e=e.trim()),t.nativeType&&(e=o(e)),t.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),s("text",e))}function h(e){!t.ignoreComment&&(t.trim&&(e=e.trim()),s("comment",e))}function f(r){var n=e[t.parentKey];t.addParent||delete e[t.parentKey],e=n}function p(e){!t.ignoreCdata&&(t.trim&&(e=e.trim()),s("cdata",e))}function d(e){!t.ignoreDoctype&&(e=e.replace(/^ /,""),t.trim&&(e=e.trim()),s("doctype",e))}function m(t){t.note=t}return eC=function(i,o){var s=r.parser(!0,{}),a={};if(e=a,t=n.copyOptions(o),n.ensureFlagExists("ignoreDeclaration",t),n.ensureFlagExists("ignoreInstruction",t),n.ensureFlagExists("ignoreAttributes",t),n.ensureFlagExists("ignoreText",t),n.ensureFlagExists("ignoreComment",t),n.ensureFlagExists("ignoreCdata",t),n.ensureFlagExists("ignoreDoctype",t),n.ensureFlagExists("compact",t),n.ensureFlagExists("alwaysChildren",t),n.ensureFlagExists("addParent",t),n.ensureFlagExists("trim",t),n.ensureFlagExists("nativeType",t),n.ensureFlagExists("nativeTypeAttributes",t),n.ensureFlagExists("sanitize",t),n.ensureFlagExists("instructionHasAttributes",t),n.ensureFlagExists("captureSpacesBetweenElements",t),n.ensureAlwaysArrayExists(t),n.ensureKeyExists("declaration",t),n.ensureKeyExists("instruction",t),n.ensureKeyExists("attributes",t),n.ensureKeyExists("text",t),n.ensureKeyExists("comment",t),n.ensureKeyExists("cdata",t),n.ensureKeyExists("doctype",t),n.ensureKeyExists("type",t),n.ensureKeyExists("name",t),n.ensureKeyExists("elements",t),n.ensureKeyExists("parent",t),n.checkFnExists("doctype",t),n.checkFnExists("instruction",t),n.checkFnExists("cdata",t),n.checkFnExists("comment",t),n.checkFnExists("text",t),n.checkFnExists("instructionName",t),n.checkFnExists("elementName",t),n.checkFnExists("attributeName",t),n.checkFnExists("attributeValue",t),n.checkFnExists("attributes",t),s.opt={strictEntities:!0},s.onopentag=c,s.ontext=l,s.oncomment=h,s.onclosetag=f,s.onerror=m,s.oncdata=p,s.ondoctype=d,s.onprocessinginstruction=u,s.write(i).close(),a[t.elementsKey]){var g=a[t.elementsKey];delete a[t.elementsKey],a[t.elementsKey]=g,delete a.text}return a}}function ng(){if(eP)return eD;eP=1;var t,e,r=nd(),n=np().isArray;function i(t,e,r){return(!r&&t.spaces?"\n":"")+Array(e+1).join(t.spaces)}function o(r,n,o){if(n.ignoreAttributes)return"";"attributesFn"in n&&(r=n.attributesFn(r,e,t));var s,a,u,c,l=[];for(s in r)r.hasOwnProperty(s)&&null!==r[s]&&void 0!==r[s]&&(c=n.noQuotesForNativeAttributes&&"string"!=typeof r[s]?"":'"',a=(a=""+r[s]).replace(/"/g,"""),u="attributeNameFn"in n?n.attributeNameFn(s,a,e,t):s,l.push(n.spaces&&n.indentAttributes?i(n,o+1,!1):" "),l.push(u+"="+c+("attributeValueFn"in n?n.attributeValueFn(a,s,e,t):a)+c));return r&&Object.keys(r).length&&n.spaces&&n.indentAttributes&&l.push(i(n,o,!1)),l.join("")}function s(r,n,i){return t=r,e="xml",n.ignoreDeclaration?"":""}function a(r,n,i){if(n.ignoreInstruction)return"";for(s in r)if(r.hasOwnProperty(s))break;var s,a="instructionNameFn"in n?n.instructionNameFn(s,r[s],e,t):s;if("object"==typeof r[s])return t=r,e=a,"";var u=r[s]?r[s]:"";return"instructionFn"in n&&(u=n.instructionFn(u,s,e,t)),""}function u(r,n){return n.ignoreComment?"":"\x3c!--"+("commentFn"in n?n.commentFn(r,e,t):r)+"--\x3e"}function c(r,n){return n.ignoreCdata?"":"","]]]]>"))+"]]>"}function l(r,n){return n.ignoreDoctype?"":""}function h(r,n){return n.ignoreText?"":(r=(r=(r=""+r).replace(/&/g,"&")).replace(/&/g,"&").replace(//g,">"),"textFn"in n?n.textFn(r,e,t):r)}function f(t,e,r){var n;for(n in t)if(t.hasOwnProperty(n))switch(n){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||r)return!0;break;case e.cdataKey:if(e.indentCdata||r)return!0;break;case e.instructionKey:if(e.indentInstruction||r)return!0;break;case e.doctypeKey:case e.commentKey:default:return!0}return!1}return eD=function(p,d){m=d,g=r.copyOptions(m),r.ensureFlagExists("ignoreDeclaration",g),r.ensureFlagExists("ignoreInstruction",g),r.ensureFlagExists("ignoreAttributes",g),r.ensureFlagExists("ignoreText",g),r.ensureFlagExists("ignoreComment",g),r.ensureFlagExists("ignoreCdata",g),r.ensureFlagExists("ignoreDoctype",g),r.ensureFlagExists("compact",g),r.ensureFlagExists("indentText",g),r.ensureFlagExists("indentCdata",g),r.ensureFlagExists("indentAttributes",g),r.ensureFlagExists("indentInstruction",g),r.ensureFlagExists("fullTagEmptyElement",g),r.ensureFlagExists("noQuotesForNativeAttributes",g),r.ensureSpacesExists(g),"number"==typeof g.spaces&&(g.spaces=Array(g.spaces+1).join(" ")),r.ensureKeyExists("declaration",g),r.ensureKeyExists("instruction",g),r.ensureKeyExists("attributes",g),r.ensureKeyExists("text",g),r.ensureKeyExists("comment",g),r.ensureKeyExists("cdata",g),r.ensureKeyExists("doctype",g),r.ensureKeyExists("type",g),r.ensureKeyExists("name",g),r.ensureKeyExists("elements",g),r.checkFnExists("doctype",g),r.checkFnExists("instruction",g),r.checkFnExists("cdata",g),r.checkFnExists("comment",g),r.checkFnExists("text",g),r.checkFnExists("instructionName",g),r.checkFnExists("elementName",g),r.checkFnExists("attributeName",g),r.checkFnExists("attributeValue",g),r.checkFnExists("attributes",g),r.checkFnExists("fullTagEmptyElement",g),d=g;var m,g,w=[];return t=p,e="_root_",d.compact?w.push(function r(p,d,m,g){var w,y,b,v=[];for(y in p)if(p.hasOwnProperty(y))for(w=0,b=n(p[y])?p[y]:[p[y]];w":"<"+l+"/>";var p=[];if(s){if(p.push("<"+l),"object"!=typeof n)return p.push(">"+h(n,a)+""),p.join("");n[a.attributesKey]&&p.push(o(n[a.attributesKey],a,u));var d=f(n,a,!0)||n[a.attributesKey]&&"preserve"===n[a.attributesKey]["xml:space"];if(d||(d="fullTagEmptyElementFn"in a?a.fullTagEmptyElementFn(s,n):a.fullTagEmptyElement),!d)return p.push("/>"),p.join("");p.push(">")}return p.push(r(n,a,u+1,!1)),t=n,e=s,s&&p.push((c?i(a,u,!1):"")+""),p.join("")}(b[w],y,d,m,f(b[w],d)))}g=g&&!v.length}return v.join("")}(p,d,0,!0)):(p[d.declarationKey]&&w.push(s(p[d.declarationKey],d,0)),p[d.elementsKey]&&p[d.elementsKey].length&&w.push(function r(n,s,f,p){return n.reduce(function(n,d){var m,g,w,y=i(s,f,p&&!n);switch(d.type){case"element":return n+y+(t=d,e=d.name,m=[],g="elementNameFn"in s?s.elementNameFn(d.name,d):d.name,m.push("<"+g),d[s.attributesKey]&&m.push(o(d[s.attributesKey],s,f)),(w=d[s.elementsKey]&&d[s.elementsKey].length||d[s.attributesKey]&&"preserve"===d[s.attributesKey]["xml:space"])||(w="fullTagEmptyElementFn"in s?s.fullTagEmptyElementFn(d.name,d):s.fullTagEmptyElement),w?(m.push(">"),d[s.elementsKey]&&d[s.elementsKey].length&&(m.push(r(d[s.elementsKey],s,f+1)),t=d,e=d.name),m.push(s.spaces&&function(t,e){var r;if(t.elements&&t.elements.length)for(r=0;r")):m.push("/>"),m.join(""));case"comment":return n+y+u(d[s.commentKey],s);case"doctype":return n+y+l(d[s.doctypeKey],s);case"cdata":return n+(s.indentCdata?y:"")+c(d[s.cdataKey],s);case"text":return n+(s.indentText?y:"")+h(d[s.textKey],s);case"instruction":var b={};return b[d[s.nameKey]]=d[s.attributesKey]?d:d[s.instructionKey],n+(s.indentInstruction?y:"")+a(b,s,f)}},"")}(p[d.elementsKey],d,0,!w.length))),w.join("")}}var nw=eM?eU:(eM=1,eU={xml2js:nm(),xml2json:function(){if(eF)return eN;eF=1;var t=nd(),e=nm();return eN=function(r,n){var i,o,s,a;return a=t.copyOptions(n),t.ensureSpacesExists(a),i=e(r,a),s="compact"in a&&a.compact?"_parent":"parent",("addParent"in a&&a.addParent?JSON.stringify(i,function(t,e){return t===s?"_":e},a.spaces):JSON.stringify(i,null,a.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}(),js2xml:ng(),json2xml:function(){if(eB)return eL;eB=1;var t=ng();return eL=function(e,r){e instanceof rt&&(e=e.toString());var n=null;if("string"==typeof e)try{n=JSON.parse(e)}catch(t){throw Error("The JSON structure is invalid")}else n=e;return t(n,r)}}()});let ny=t=>{switch(t.type){case void 0:case"element":let e=new nv(t.name,t.attributes);for(let r of t.elements||[]){let t=ny(r);void 0!==t&&e.push(t)}return e;case"text":return t.text;default:return}};class nb extends rg{}class nv extends rd{static fromXmlString(t){return ny(nw.xml2js(t,{compact:!1}))}constructor(t,e){super(t),e&&this.root.push(new nb(e))}push(t){this.root.push(t)}}class nx extends rd{constructor(t){super(""),this._attr=t}prepForXml(t){return{_attr:this._attr}}}class n_ extends rd{constructor(t,e){super(t),e&&(this.root=e.root)}}let nE=t=>{if(isNaN(t))throw Error(`Invalid value '${t}' specified. Must be an integer.`);return Math.floor(t)},nT=t=>{let e=nE(t);if(e<0)throw Error(`Invalid value '${t}' specified. Must be a positive integer.`);return e},nA=(t,e)=>{let r=2*e;if(t.length!==r||isNaN(Number(`0x${t}`)))throw Error(`Invalid hex value '${t}'. Expected ${r} digit hex value`);return t},nS=t=>nA(t,1),nk=t=>{let e=t.slice(-2),r=t.substring(0,t.length-2);return`${Number(r)}${e}`},nI=t=>{let e=nk(t);if(0>parseFloat(e))throw Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},nR=t=>"auto"===t?t:nA("#"===t.charAt(0)?t.substring(1):t,3),nC=t=>"string"==typeof t?nk(t):nE(t),nO=t=>"string"==typeof t?nI(t):nT(t),nN=t=>"string"==typeof t?nI(t):nT(t),nF=t=>{let e=t.substring(0,t.length-1);return`${Number(e)}%`},nD=t=>"number"==typeof t?nE(t):"%"===t.slice(-1)?nF(t):nk(t),nP=t=>t.toISOString();class nL extends rd{constructor(t,e=!0){super(t),!0!==e&&this.root.push(new ry({val:e}))}}class nB extends rd{constructor(t,e){super(t),this.root.push(new ry({val:nO(e)}))}}class nU extends rd{constructor(t,e){super(t),this.root.push(new ry({val:e}))}}let nM=(t,e)=>new nH({name:t,attributes:{value:{key:"w:val",value:e}}});class nj extends rd{constructor(t,e){super(t),this.root.push(new ry({val:e}))}}class nz extends rd{constructor(t,e){super(t),this.root.push(new ry({val:e}))}}class nW extends rd{constructor(t,e){super(t),this.root.push(e)}}class nH extends rd{constructor({name:t,attributes:e,children:r}){super(t),e&&this.root.push(new rw(e)),r&&this.root.push(...r)}}let nK={START:"start",CENTER:"center",END:"end",BOTH:"both",MEDIUM_KASHIDA:"mediumKashida",DISTRIBUTE:"distribute",NUM_TAB:"numTab",HIGH_KASHIDA:"highKashida",LOW_KASHIDA:"lowKashida",THAI_DISTRIBUTE:"thaiDistribute",LEFT:"left",RIGHT:"right",JUSTIFIED:"both"};class nG extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val"})}}class nV extends rd{constructor(t){super("w:jc"),this.root.push(new nG({val:t}))}}class nq extends rd{constructor(t,{color:e,size:r,space:n,style:i}){super(t),this.root.push(new nZ({style:i,color:void 0===e?void 0:nR(e),size:void 0===r?void 0:nT(r),space:void 0===n?void 0:nT(n)}))}}class nZ extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}let nX={SINGLE:"single",DASH_DOT_STROKED:"dashDotStroked",DASHED:"dashed",DASH_SMALL_GAP:"dashSmallGap",DOT_DASH:"dotDash",DOT_DOT_DASH:"dotDotDash",DOTTED:"dotted",DOUBLE:"double",DOUBLE_WAVE:"doubleWave",INSET:"inset",NIL:"nil",NONE:"none",OUTSET:"outset",THICK:"thick",THICK_THIN_LARGE_GAP:"thickThinLargeGap",THICK_THIN_MEDIUM_GAP:"thickThinMediumGap",THICK_THIN_SMALL_GAP:"thickThinSmallGap",THIN_THICK_LARGE_GAP:"thinThickLargeGap",THIN_THICK_MEDIUM_GAP:"thinThickMediumGap",THIN_THICK_SMALL_GAP:"thinThickSmallGap",THIN_THICK_THIN_LARGE_GAP:"thinThickThinLargeGap",THIN_THICK_THIN_MEDIUM_GAP:"thinThickThinMediumGap",THIN_THICK_THIN_SMALL_GAP:"thinThickThinSmallGap",THREE_D_EMBOSS:"threeDEmboss",THREE_D_ENGRAVE:"threeDEngrave",TRIPLE:"triple",WAVE:"wave"};class n$ extends rm{constructor(t){super("w:pBdr"),t.top&&this.root.push(new nq("w:top",t.top)),t.bottom&&this.root.push(new nq("w:bottom",t.bottom)),t.left&&this.root.push(new nq("w:left",t.left)),t.right&&this.root.push(new nq("w:right",t.right))}}class nY extends rd{constructor(){super("w:pBdr");let t=new nq("w:bottom",{color:"auto",space:1,style:nX.SINGLE,size:6});this.root.push(t)}}class nJ extends rd{constructor({start:t,end:e,left:r,right:n,hanging:i,firstLine:o}){super("w:ind"),this.root.push(new rw({start:{key:"w:start",value:void 0===t?void 0:nC(t)},end:{key:"w:end",value:void 0===e?void 0:nC(e)},left:{key:"w:left",value:void 0===r?void 0:nC(r)},right:{key:"w:right",value:void 0===n?void 0:nC(n)},hanging:{key:"w:hanging",value:void 0===i?void 0:nN(i)},firstLine:{key:"w:firstLine",value:void 0===o?void 0:nN(o)}}))}}let nQ=class extends rd{constructor(){super("w:br")}},n0={BEGIN:"begin",END:"end",SEPARATE:"separate"};class n1 extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class n2 extends rd{constructor(t){super("w:fldChar"),this.root.push(new n1({type:n0.BEGIN,dirty:t}))}}class n6 extends rd{constructor(t){super("w:fldChar"),this.root.push(new n1({type:n0.SEPARATE,dirty:t}))}}class n5 extends rd{constructor(t){super("w:fldChar"),this.root.push(new n1({type:n0.END,dirty:t}))}}let n3={DEFAULT:"default",PRESERVE:"preserve"};class n8 extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{space:"xml:space"})}}class n4 extends rd{constructor(){super("w:instrText"),this.root.push(new n8({space:n3.PRESERVE})),this.root.push("PAGE")}}class n9 extends rd{constructor(){super("w:instrText"),this.root.push(new n8({space:n3.PRESERVE})),this.root.push("NUMPAGES")}}class n7 extends rd{constructor(){super("w:instrText"),this.root.push(new n8({space:n3.PRESERVE})),this.root.push("SECTIONPAGES")}}class it extends rd{constructor(){super("w:instrText"),this.root.push(new n8({space:n3.PRESERVE})),this.root.push("SECTION")}}class ie extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class ir extends rd{constructor({fill:t,color:e,type:r}){super("w:shd"),this.root.push(new ie({fill:void 0===t?void 0:nR(t),color:void 0===e?void 0:nR(e),type:r}))}}class ii extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}let io={DOT:"dot"};class is extends rd{constructor(t){super("w:em"),this.root.push(new ry({val:t}))}}class ia extends is{constructor(t=io.DOT){super(t)}}class iu extends rd{constructor(t){super("w:spacing"),this.root.push(new ry({val:nC(t)}))}}class ic extends rd{constructor(t){super("w:color"),this.root.push(new ry({val:nR(t)}))}}class il extends rd{constructor(t){super("w:highlight"),this.root.push(new ry({val:t}))}}class ih extends rd{constructor(t){super("w:highlightCs"),this.root.push(new ry({val:t}))}}let ip=t=>new nH({name:"w:lang",attributes:{value:{key:"w:val",value:t.value},eastAsia:{key:"w:eastAsia",value:t.eastAsia},bidirectional:{key:"w:bidi",value:t.bidirectional}}});class id extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class im extends rd{constructor(t,e){super("w:rFonts"),"string"==typeof t?this.root.push(new id({ascii:t,cs:t,eastAsia:t,hAnsi:t,hint:e})):this.root.push(new id(t))}}let ig=class extends rd{constructor(t){super("w:vertAlign"),this.root.push(new ry({val:t}))}};class iw extends ig{constructor(){super("superscript")}}class iy extends ig{constructor(){super("subscript")}}let ib={SINGLE:"single"};class iv extends rd{constructor(t=ib.SINGLE,e){super("w:u"),this.root.push(new ry({val:t,color:void 0===e?void 0:nR(e)}))}}class ix extends rm{constructor(t){var e,r;if(super("w:rPr"),!t)return;t.style&&this.push(new nU("w:rStyle",t.style)),t.font&&("string"==typeof t.font?this.push(new im(t.font)):"name"in t.font?this.push(new im(t.font.name,t.font.hint)):this.push(new im(t.font))),void 0!==t.bold&&this.push(new nL("w:b",t.bold)),(void 0===t.boldComplexScript&&void 0!==t.bold||t.boldComplexScript)&&this.push(new nL("w:bCs",null!=(e=t.boldComplexScript)?e:t.bold)),void 0!==t.italics&&this.push(new nL("w:i",t.italics)),(void 0===t.italicsComplexScript&&void 0!==t.italics||t.italicsComplexScript)&&this.push(new nL("w:iCs",null!=(r=t.italicsComplexScript)?r:t.italics)),void 0!==t.smallCaps?this.push(new nL("w:smallCaps",t.smallCaps)):void 0!==t.allCaps&&this.push(new nL("w:caps",t.allCaps)),void 0!==t.strike&&this.push(new nL("w:strike",t.strike)),void 0!==t.doubleStrike&&this.push(new nL("w:dstrike",t.doubleStrike)),void 0!==t.emboss&&this.push(new nL("w:emboss",t.emboss)),void 0!==t.imprint&&this.push(new nL("w:imprint",t.imprint)),void 0!==t.noProof&&this.push(new nL("w:noProof",t.noProof)),void 0!==t.snapToGrid&&this.push(new nL("w:snapToGrid",t.snapToGrid)),t.vanish&&this.push(new nL("w:vanish",t.vanish)),t.color&&this.push(new ic(t.color)),t.characterSpacing&&this.push(new iu(t.characterSpacing)),void 0!==t.scale&&this.push(new nj("w:w",t.scale)),t.kern&&this.push(new nB("w:kern",t.kern)),t.position&&this.push(new nU("w:position",t.position)),void 0!==t.size&&this.push(new nB("w:sz",t.size));let n=void 0===t.sizeComplexScript||!0===t.sizeComplexScript?t.size:t.sizeComplexScript;n&&this.push(new nB("w:szCs",n)),t.highlight&&this.push(new il(t.highlight));let i=void 0===t.highlightComplexScript||!0===t.highlightComplexScript?t.highlight:t.highlightComplexScript;i&&this.push(new ih(i)),t.underline&&this.push(new iv(t.underline.type,t.underline.color)),t.effect&&this.push(new nU("w:effect",t.effect)),t.border&&this.push(new nq("w:bdr",t.border)),t.shading&&this.push(new ir(t.shading)),t.subScript&&this.push(new iy),t.superScript&&this.push(new iw),void 0!==t.rightToLeft&&this.push(new nL("w:rtl",t.rightToLeft)),t.emphasisMark&&this.push(new ia(t.emphasisMark.type)),t.language&&this.push(ip(t.language)),t.specVanish&&this.push(new nL("w:specVanish",t.vanish)),t.math&&this.push(new nL("w:oMath",t.math)),t.revision&&this.push(new i_(t.revision))}push(t){this.root.push(t)}}class i_ extends rd{constructor(t){super("w:rPrChange"),this.root.push(new ii({id:t.id,author:t.author,date:t.date})),this.addChildElement(new ix(t))}}class iE extends rd{constructor(t){var e;super("w:t"),"string"==typeof t?(this.root.push(new n8({space:n3.PRESERVE})),this.root.push(t)):(this.root.push(new n8({space:null!=(e=t.space)?e:n3.DEFAULT})),this.root.push(t.text))}}let iT={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class iA extends rd{constructor(t){if(super("w:r"),rl(this,"properties"),this.properties=new ix(t),this.root.push(this.properties),t.break)for(let e=0;e>6|192:((o=t,s=i,(64512&o.charCodeAt(s))!=55296||s<0||s+1>=o.length?1:(64512&o.charCodeAt(s+1))!=56320)?r[n++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128),r[n++]=a>>6&63|128),r[n++]=63&a|128)}}else for(i=0;i>>0;return a},iI.split32=function(t,e){for(var r=Array(4*t.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},iI.rotr32=function(t,e){return t>>>e|t<<32-e},iI.rotl32=function(t,e){return t<>>32-e},iI.sum32=function(t,e){return t+e>>>0},iI.sum32_3=function(t,e,r){return t+e+r>>>0},iI.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},iI.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},iI.sum64=function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0;t[e]=+(o>>0,t[e+1]=o},iI.sum64_hi=function(t,e,r,n){return+(e+n>>>0>>0},iI.sum64_lo=function(t,e,r,n){return e+n>>>0},iI.sum64_4_hi=function(t,e,r,n,i,o,s,a){var u,c=e;return t+r+i+s+(u=0+ +((c=c+n>>>0)>>0)>>0)>>0},iI.sum64_4_lo=function(t,e,r,n,i,o,s,a){return e+n+o+a>>>0},iI.sum64_5_hi=function(t,e,r,n,i,o,s,a,u,c){var l,h=e;return t+r+i+s+u+(l=0+ +((h=h+n>>>0)>>0)>>0)>>0)>>0},iI.sum64_5_lo=function(t,e,r,n,i,o,s,a,u,c){return e+n+o+a+c>>>0},iI.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},iI.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},iI.shr64_hi=function(t,e,r){return t>>>r},iI.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},iI}var iO={};function iN(){if(eH)return iO;eH=1;var t=iC(),e=iR();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return iO.BlockHash=r,r.prototype.update=function(e,r){if(e=t.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=t.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(o=8,n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o>>3},iD.g1_256=function(e){return t(e,17)^t(e,19)^e>>>10},iD}function iL(){if(eZ)return eq;eZ=1;var t=iC(),e=iN(),r=iP(),n=iR(),i=t.sum32,o=t.sum32_4,s=t.sum32_5,a=r.ch32,u=r.maj32,c=r.s0_256,l=r.s1_256,h=r.g0_256,f=r.g1_256,p=e.BlockHash,d=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function m(){if(!(this instanceof m))return new m;p.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=d,this.W=Array(64)}return t.inherits(m,p),eq=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(t,e){for(var r=this.W,p=0;p<16;p++)r[p]=t[e+p];for(;pthis.blockSize&&(t=new this.Hash().update(t).digest()),e(t.length<=this.blockSize);for(var r=t.length;r(r=e)=>{let n="",i=0|r;for(;i--;)n+=t[Math.random()*t.length|0];return n},iz=(t=21)=>{let e="",r=0|t;for(;r--;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},iW=t=>Math.floor(1440*t),iH=(t=0)=>{let e=t;return()=>++e},iK=()=>iH(),iG=()=>iH(1),iV=()=>iH(),iq=()=>iH(),iZ=()=>iz().toLowerCase(),iX=t=>iM.sha1().update(t instanceof ArrayBuffer?new Uint8Array(t):t).digest("hex"),i$=t=>ij("1234567890abcdef",t)(),iY=()=>`${i$(8)}-${i$(4)}-${i$(4)}-${i$(4)}-${i$(12)}`,iJ={PAGE:"page"},iQ={PAGE:"page"},i0=()=>new nH({name:"wp:simplePos",attributes:{x:{key:"x",value:0},y:{key:"y",value:0}}}),i1=t=>new nH({name:"wp:align",children:[t]}),i2=t=>new nH({name:"wp:posOffset",children:[t.toString()]}),i6=({relative:t,align:e,offset:r})=>new nH({name:"wp:positionH",attributes:{relativeFrom:{key:"relativeFrom",value:null!=t?t:iJ.PAGE}},children:[(()=>{if(e)return i1(e);if(void 0!==r)return i2(r);throw Error("There is no configuration provided for floating position (Align or offset)")})()]}),i5=({relative:t,align:e,offset:r})=>new nH({name:"wp:positionV",attributes:{relativeFrom:{key:"relativeFrom",value:null!=t?t:iQ.PAGE}},children:[(()=>{if(e)return i1(e);if(void 0!==r)return i2(r);throw Error("There is no configuration provided for floating position (Align or offset)")})()]});class i3 extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{uri:"uri"})}}let i8=t=>new nH({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${t.fileName}}`}}}),i4=t=>new nH({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[i8(t)]}),i9=t=>new nH({name:"a:extLst",children:[i4(t)]}),i7=t=>new nH({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${"svg"===t.type?t.fallback.fileName:t.fileName}}`},cstate:{key:"cstate",value:"none"}},children:"svg"===t.type?[i9(t)]:[]});class ot extends rd{constructor(){super("a:srcRect")}}class oe extends rd{constructor(){super("a:fillRect")}}class or extends rd{constructor(){super("a:stretch"),this.root.push(new oe)}}class on extends rd{constructor(t){super("pic:blipFill"),this.root.push(i7(t)),this.root.push(new ot),this.root.push(new or)}}class oi extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class oo extends rd{constructor(){super("a:picLocks"),this.root.push(new oi({noChangeAspect:1,noChangeArrowheads:1}))}}class os extends rd{constructor(){super("pic:cNvPicPr"),this.root.push(new oo)}}let oa=(t,e)=>new nH({name:"a:hlinkClick",attributes:rc(ru({},e?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${t}`}})});class ou extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class oc extends rd{constructor(){super("pic:cNvPr"),this.root.push(new ou({id:0,name:"",descr:""}))}prepForXml(t){for(let e=t.stack.length-1;e>=0;e--){let r=t.stack[e];if(r instanceof sw){this.root.push(oa(r.linkId,!1));break}}return super.prepForXml(t)}}class ol extends rd{constructor(){super("pic:nvPicPr"),this.root.push(new oc),this.root.push(new os)}}class oh extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class of extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class op extends rd{constructor(t,e){super("a:ext"),rl(this,"attributes"),this.attributes=new of({cx:t,cy:e}),this.root.push(this.attributes)}}class od extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{x:"x",y:"y"})}}class om extends rd{constructor(){super("a:off"),this.root.push(new od({x:0,y:0}))}}class og extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class ow extends rd{constructor(t){var e,r;super("a:xfrm"),rl(this,"extents"),this.root.push(new og({flipVertical:null==(e=t.flip)?void 0:e.vertical,flipHorizontal:null==(r=t.flip)?void 0:r.horizontal,rotation:t.rotation})),this.extents=new op(t.emus.x,t.emus.y),this.root.push(new om),this.root.push(this.extents)}}let oy=()=>new nH({name:"a:noFill"}),ob=t=>new nH({name:"a:srgbClr",attributes:{value:{key:"val",value:t.value}}}),ov=t=>new nH({name:"a:schemeClr",attributes:{value:{key:"val",value:t.value}}}),ox=t=>new nH({name:"a:solidFill",children:["rgb"===t.type?ob(t):ov(t)]}),o_=t=>new nH({name:"a:ln",attributes:{width:{key:"w",value:t.width},cap:{key:"cap",value:t.cap},compoundLine:{key:"cmpd",value:t.compoundLine},align:{key:"algn",value:t.align}},children:["noFill"===t.type?oy():"rgb"===t.solidFillType?ox({type:"rgb",value:t.value}):ox({type:"scheme",value:t.value})]});class oE extends rd{constructor(){super("a:avLst")}}class oT extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{prst:"prst"})}}class oA extends rd{constructor(){super("a:prstGeom"),this.root.push(new oT({prst:"rect"})),this.root.push(new oE)}}class oS extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{bwMode:"bwMode"})}}class ok extends rd{constructor({outline:t,transform:e}){super("pic:spPr"),rl(this,"form"),this.root.push(new oS({bwMode:"auto"})),this.form=new ow(e),this.root.push(this.form),this.root.push(new oA),t&&(this.root.push(oy()),this.root.push(o_(t)))}}class oI extends rd{constructor({mediaData:t,transform:e,outline:r}){super("pic:pic"),this.root.push(new oh({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new ol),this.root.push(new on(t)),this.root.push(new ok({transform:e,outline:r}))}}class oR extends rd{constructor({mediaData:t,transform:e,outline:r}){super("a:graphicData"),rl(this,"pic"),this.root.push(new i3({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new oI({mediaData:t,transform:e,outline:r}),this.root.push(this.pic)}}class oC extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{a:"xmlns:a"})}}class oO extends rd{constructor({mediaData:t,transform:e,outline:r}){super("a:graphic"),rl(this,"data"),this.root.push(new oC({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new oR({mediaData:t,transform:e,outline:r}),this.root.push(this.data)}}let oN={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},oF={BOTH_SIDES:"bothSides"};class oD extends rd{constructor(){super("wp:wrapNone")}}class oP extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class oL extends rd{constructor(t,e={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new oP({wrapText:t.side||oF.BOTH_SIDES,distT:e.top,distB:e.bottom,distL:e.left,distR:e.right}))}}class oB extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class oU extends rd{constructor(t={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new oB({distT:t.top,distB:t.bottom}))}}class oM extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class oj extends rd{constructor(t={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new oM({distT:t.top,distB:t.bottom}))}}class oz extends rd{constructor({name:t,description:e,title:r}={name:"",description:"",title:""}){super("wp:docPr"),rl(this,"docPropertiesUniqueNumericId",iV());let n={id:{key:"id",value:this.docPropertiesUniqueNumericId()},name:{key:"name",value:t}};null!=e&&(n.description={key:"descr",value:e}),null!=r&&(n.title={key:"title",value:r}),this.root.push(new rw(n))}prepForXml(t){for(let e=t.stack.length-1;e>=0;e--){let r=t.stack[e];if(r instanceof sw){this.root.push(oa(r.linkId,!0));break}}return super.prepForXml(t)}}let oW=({top:t,right:e,bottom:r,left:n})=>new nH({name:"wp:effectExtent",attributes:{top:{key:"t",value:t},right:{key:"r",value:e},bottom:{key:"b",value:r},left:{key:"l",value:n}}}),oH=({x:t,y:e})=>new nH({name:"wp:extent",attributes:{x:{key:"cx",value:t},y:{key:"cy",value:e}}});class oK extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class oG extends rd{constructor(){super("a:graphicFrameLocks"),this.root.push(new oK({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}let oV=()=>new nH({name:"wp:cNvGraphicFramePr",children:[new oG]});class oq extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class oZ extends rd{constructor({mediaData:t,transform:e,drawingOptions:r}){super("wp:anchor");let n=ru({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},r.floating);if(this.root.push(new oq({distT:n.margins&&n.margins.top||0,distB:n.margins&&n.margins.bottom||0,distL:n.margins&&n.margins.left||0,distR:n.margins&&n.margins.right||0,simplePos:"0",allowOverlap:!0===n.allowOverlap?"1":"0",behindDoc:!0===n.behindDocument?"1":"0",locked:!0===n.lockAnchor?"1":"0",layoutInCell:!0===n.layoutInCell?"1":"0",relativeHeight:n.zIndex?n.zIndex:e.emus.y})),this.root.push(i0()),this.root.push(i6(n.horizontalPosition)),this.root.push(i5(n.verticalPosition)),this.root.push(oH({x:e.emus.x,y:e.emus.y})),this.root.push(oW({top:0,right:0,bottom:0,left:0})),void 0!==r.floating&&void 0!==r.floating.wrap)switch(r.floating.wrap.type){case oN.SQUARE:this.root.push(new oL(r.floating.wrap,r.floating.margins));break;case oN.TIGHT:this.root.push(new oU(r.floating.margins));break;case oN.TOP_AND_BOTTOM:this.root.push(new oj(r.floating.margins));break;case oN.NONE:default:this.root.push(new oD)}else this.root.push(new oD);this.root.push(new oz(r.docProperties)),this.root.push(oV()),this.root.push(new oO({mediaData:t,transform:e,outline:r.outline}))}}let oX=({mediaData:t,transform:e,docProperties:r,outline:n})=>{var i,o,s,a;return new nH({name:"wp:inline",attributes:{distanceTop:{key:"distT",value:0},distanceBottom:{key:"distB",value:0},distanceLeft:{key:"distL",value:0},distanceRight:{key:"distR",value:0}},children:[oH({x:e.emus.x,y:e.emus.y}),oW(n?{top:(null!=(i=n.width)?i:9525)*2,right:(null!=(o=n.width)?o:9525)*2,bottom:(null!=(s=n.width)?s:9525)*2,left:(null!=(a=n.width)?a:9525)*2}:{top:0,right:0,bottom:0,left:0}),new oz(r),oV(),new oO({mediaData:t,transform:e,outline:n})]})};class o$ extends rd{constructor(t,e={}){super("w:drawing"),e.floating?this.root.push(new oZ({mediaData:t,transform:t.transformation,drawingOptions:e})):this.root.push(oX({mediaData:t,transform:t.transformation,docProperties:e.docProperties,outline:e.outline}))}}let oY=t=>{if("function"!=typeof atob)return new(require("buffer")).Buffer(t,"base64");{let e=";base64,",r=t.indexOf(e),n=-1===r?0:r+e.length;return new Uint8Array(atob(t.substring(n)).split("").map(t=>t.charCodeAt(0)))}},oJ=t=>"string"==typeof t?oY(t):t,oQ=(t,e)=>({data:oJ(t.data),fileName:e,transformation:{pixels:{x:Math.round(t.transformation.width),y:Math.round(t.transformation.height)},emus:{x:Math.round(9525*t.transformation.width),y:Math.round(9525*t.transformation.height)},flip:t.transformation.flip,rotation:t.transformation.rotation?6e4*t.transformation.rotation:void 0}});class o0 extends iA{constructor(t){super({}),rl(this,"imageData");let e=iX(t.data),r=`${e}.${t.type}`;this.imageData="svg"===t.type?rc(ru({type:t.type},oQ(t,r)),{fallback:ru({type:t.fallback.type},oQ(rc(ru({},t.fallback),{transformation:t.transformation}),`${iX(t.fallback.data)}.${t.fallback.type}`))}):ru({type:t.type},oQ(t,r));let n=new o$(this.imageData,{floating:t.floating,docProperties:t.altText,outline:t.outline});this.root.push(n)}prepForXml(t){return t.file.Media.addImage(this.imageData.fileName,this.imageData),"svg"===this.imageData.type&&t.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(t)}}class o1 extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{xmlns:"xmlns"})}}class o2 extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}let o6={EXTERNAL:"External"};class o5 extends rd{constructor(t,e,r,n){super("Relationship"),this.root.push(new o2({id:t,type:e,target:r,targetMode:n}))}}class o3 extends rd{constructor(){super("Relationships"),this.root.push(new o1({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(t,e,r,n){let i=new o5(`rId${t}`,e,r,n);return this.root.push(i),i}get RelationshipCount(){return this.root.length-1}}class o8 extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class o4 extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}}class o9 extends rd{constructor({id:t,initials:e,author:r,date:n=new Date,children:i}){for(let o of(super("w:comment"),this.root.push(new o8({id:t,initials:e,author:r,date:n.toISOString()})),i))this.root.push(o)}}class o7 extends rd{constructor({children:t}){for(let e of(super("w:comments"),rl(this,"relationships"),this.root.push(new o4({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"})),t))this.root.push(new o9(e));this.relationships=new o3}get Relationships(){return this.relationships}}let st={PAGE:"page"};class se extends rd{constructor(t){super("w:br"),this.root.push(new ry({type:t}))}}class sr extends iA{constructor(){super({}),this.root.push(new se(st.PAGE))}}class sn extends rd{constructor(){super("w:pageBreakBefore")}}let si={AUTO:"auto"};class so extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule",beforeAutoSpacing:"w:beforeAutospacing",afterAutoSpacing:"w:afterAutospacing"})}}class ss extends rd{constructor(t){super("w:spacing"),this.root.push(new so(t))}}let sa=class extends rd{constructor(t){super("w:pStyle"),this.root.push(new ry({val:t}))}};class su extends rd{constructor(t){for(let e of(super("w:tabs"),t))this.root.push(new sh(e))}}let sc={LEFT:"left",RIGHT:"right"};class sl extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class sh extends rd{constructor({type:t,position:e,leader:r}){super("w:tab"),this.root.push(new sl({val:t,pos:e,leader:r}))}}class sf extends rd{constructor(t,e){super("w:numPr"),this.root.push(new sp(e)),this.root.push(new sd(t))}}class sp extends rd{constructor(t){if(super("w:ilvl"),t>9)throw Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new ry({val:t}))}}class sd extends rd{constructor(t){super("w:numId"),this.root.push(new ry({val:"string"==typeof t?`{${t}}`:t}))}}class sm extends rd{constructor(){super(...arguments),rl(this,"fileChild",Symbol())}}class sg extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class sw extends rd{constructor(t,e,r){super("w:hyperlink"),rl(this,"linkId"),this.linkId=e;let n=new sg({history:1,anchor:r||void 0,id:r?void 0:`rId${this.linkId}`});this.root.push(n),t.forEach(t=>{this.root.push(t)})}}class sy extends sw{constructor(t){super(t.children,iZ(),t.anchor)}}class sb extends rd{constructor(t){super("w:externalHyperlink"),this.options=t}}class sv extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class sx extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{id:"w:id"})}}class s_{constructor(t){rl(this,"bookmarkUniqueNumericId",iq()),rl(this,"start"),rl(this,"children"),rl(this,"end");let e=this.bookmarkUniqueNumericId();this.start=new sE(t.id,e),this.children=t.children,this.end=new sT(e)}}class sE extends rd{constructor(t,e){super("w:bookmarkStart");let r=new sv({name:t,id:e});this.root.push(r)}}class sT extends rd{constructor(t){super("w:bookmarkEnd");let e=new sx({id:t});this.root.push(e)}}class sA extends rd{constructor(t){super("w:outlineLvl"),this.level=t,this.root.push(new ry({val:t}))}}rc(ru({},{TOP:"top",CENTER:"center",BOTTOM:"bottom"}),{BOTH:"both"});class sS extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{verticalAlign:"w:val"})}}class sk extends rd{constructor(t){super("w:vAlign"),this.root.push(new sS({verticalAlign:t}))}}class sI extends rd{constructor({space:t,count:e,separate:r,equalWidth:n,children:i}){super("w:cols"),this.root.push(new rw({space:{key:"w:space",value:void 0===t?void 0:nN(t)},count:{key:"w:num",value:void 0===e?void 0:nE(e)},separate:{key:"w:sep",value:r},equalWidth:{key:"w:equalWidth",value:n}})),!n&&i&&i.forEach(t=>this.addChildElement(t))}}let sR=({type:t,linePitch:e,charSpace:r})=>new nH({name:"w:docGrid",attributes:{type:{key:"w:type",value:t},linePitch:{key:"w:linePitch",value:nE(e)},charSpace:{key:"w:charSpace",value:r?nE(r):void 0}}}),sC={DEFAULT:"default",FIRST:"first",EVEN:"even"};class sO extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{type:"w:type",id:"r:id"})}}let sN={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class sF extends rd{constructor(t,e){super(t),this.root.push(new sO({type:e.type||sC.DEFAULT,id:`rId${e.id}`}))}}let sD=({countBy:t,start:e,restart:r,distance:n})=>new nH({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:void 0===t?void 0:nE(t)},start:{key:"w:start",value:void 0===e?void 0:nE(e)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:void 0===n?void 0:nN(n)}}});class sP extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class sL extends rm{constructor(t){if(super("w:pgBorders"),!t)return this;t.pageBorders?this.root.push(new sP({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new sP({})),t.pageBorderTop&&this.root.push(new nq("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new nq("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new nq("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new nq("w:right",t.pageBorderRight))}}class sB extends rd{constructor(t,e,r,n,i,o,s){super("w:pgMar"),this.root.push(new rw({top:{key:"w:top",value:nC(t)},right:{key:"w:right",value:nN(e)},bottom:{key:"w:bottom",value:nC(r)},left:{key:"w:left",value:nN(n)},header:{key:"w:header",value:nN(i)},footer:{key:"w:footer",value:nN(o)},gutter:{key:"w:gutter",value:nN(s)}}))}}class sU extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class sM extends rd{constructor({start:t,formatType:e,separator:r}){super("w:pgNumType"),this.root.push(new sU({start:void 0===t?void 0:nE(t),formatType:e,separator:r}))}}let sj={PORTRAIT:"portrait",LANDSCAPE:"landscape"},sz=({width:t,height:e,orientation:r,code:n})=>{let i=nN(t),o=nN(e);return new nH({name:"w:pgSz",attributes:{width:{key:"w:w",value:r===sj.LANDSCAPE?o:i},height:{key:"w:h",value:r===sj.LANDSCAPE?i:o},orientation:{key:"w:orient",value:r},code:{key:"w:code",value:n}}})};class sW extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val"})}}class sH extends rd{constructor(t){super("w:textDirection"),this.root.push(new sW({val:t}))}}class sK extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val"})}}class sG extends rd{constructor(t){super("w:type"),this.root.push(new sK({val:t}))}}let sV={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},sq={WIDTH:11906,HEIGHT:16838,ORIENTATION:sj.PORTRAIT};class sZ extends rd{constructor({page:{size:{width:t=sq.WIDTH,height:e=sq.HEIGHT,orientation:r=sq.ORIENTATION}={},margin:{top:n=sV.TOP,right:i=sV.RIGHT,bottom:o=sV.BOTTOM,left:s=sV.LEFT,header:a=sV.HEADER,footer:u=sV.FOOTER,gutter:c=sV.GUTTER}={},pageNumbers:l={},borders:h,textDirection:f}={},grid:{linePitch:p=360,charSpace:d,type:m}={},headerWrapperGroup:g={},footerWrapperGroup:w={},lineNumbers:y,titlePage:b,verticalAlign:v,column:x,type:_}={}){super("w:sectPr"),this.addHeaderFooterGroup(sN.HEADER,g),this.addHeaderFooterGroup(sN.FOOTER,w),_&&this.root.push(new sG(_)),this.root.push(sz({width:t,height:e,orientation:r})),this.root.push(new sB(n,i,o,s,a,u,c)),h&&this.root.push(new sL(h)),y&&this.root.push(sD(y)),this.root.push(new sM(l)),x&&this.root.push(new sI(x)),v&&this.root.push(new sk(v)),void 0!==b&&this.root.push(new nL("w:titlePg",b)),f&&this.root.push(new sH(f)),this.root.push(sR({linePitch:p,charSpace:d,type:m}))}addHeaderFooterGroup(t,e){e.default&&this.root.push(new sF(t,{type:sC.DEFAULT,id:e.default.View.ReferenceId})),e.first&&this.root.push(new sF(t,{type:sC.FIRST,id:e.first.View.ReferenceId})),e.even&&this.root.push(new sF(t,{type:sC.EVEN,id:e.even.View.ReferenceId}))}}class sX extends rd{constructor(){super("w:body"),rl(this,"sections",[])}addSection(t){let e=this.sections.pop();this.root.push(this.createSectionParagraph(e)),this.sections.push(new sZ(t))}prepForXml(t){return 1===this.sections.length&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(t)}push(t){this.root.push(t)}createSectionParagraph(t){let e=new s8({}),r=new s3({});return r.push(t),e.addChildElement(r),e}}let s$={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"};class sY extends rg{constructor(t,e){super(ru({Ignorable:e},Object.fromEntries(t.map(t=>[t,s$[t]])))),rl(this,"xmlKeys",ru({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(s$).map(t=>[t,`xmlns:${t}`]))))}}class sJ extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class sQ extends rd{constructor(t){super("w:background"),this.root.push(new sJ({color:void 0===t.color?void 0:nR(t.color),themeColor:t.themeColor,themeShade:void 0===t.themeShade?void 0:nS(t.themeShade),themeTint:void 0===t.themeTint?void 0:nS(t.themeTint)}))}}class s0 extends rd{constructor(t){super("w:document"),rl(this,"body"),this.root.push(new sY(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new sX,t.background&&this.root.push(new sQ(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}}class s1{constructor(t){rl(this,"document"),rl(this,"relationships"),this.document=new s0(t),this.relationships=new o3}get View(){return this.document}get Relationships(){return this.relationships}}class s2 extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val"})}}class s6 extends rd{constructor(){super("w:wordWrap"),this.root.push(new s2({val:0}))}}let s5=t=>{var e,r;return new nH({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:t.anchorLock},dropCap:{key:"w:dropCap",value:t.dropCap},width:{key:"w:w",value:t.width},height:{key:"w:h",value:t.height},x:{key:"w:x",value:t.position?t.position.x:void 0},y:{key:"w:y",value:t.position?t.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:t.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:t.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:null==(e=t.space)?void 0:e.horizontal},spaceVertical:{key:"w:vSpace",value:null==(r=t.space)?void 0:r.vertical},rule:{key:"w:hRule",value:t.rule},alignmentX:{key:"w:xAlign",value:t.alignment?t.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:t.alignment?t.alignment.y:void 0},lines:{key:"w:lines",value:t.lines},wrap:{key:"w:wrap",value:t.wrap}}})};class s3 extends rm{constructor(t){var e,r;if(super("w:pPr"),rl(this,"numberingReferences",[]),!t)return this;t.heading&&this.push(new sa(t.heading)),t.bullet&&this.push(new sa("ListParagraph")),!t.numbering||t.style||t.heading||t.numbering.custom||this.push(new sa("ListParagraph")),t.style&&this.push(new sa(t.style)),void 0!==t.keepNext&&this.push(new nL("w:keepNext",t.keepNext)),void 0!==t.keepLines&&this.push(new nL("w:keepLines",t.keepLines)),t.pageBreakBefore&&this.push(new sn),t.frame&&this.push(s5(t.frame)),void 0!==t.widowControl&&this.push(new nL("w:widowControl",t.widowControl)),t.bullet&&this.push(new sf(1,t.bullet.level)),t.numbering?(this.numberingReferences.push({reference:t.numbering.reference,instance:null!=(e=t.numbering.instance)?e:0}),this.push(new sf(`${t.numbering.reference}-${null!=(r=t.numbering.instance)?r:0}`,t.numbering.level))):!1===t.numbering&&this.push(new sf(0,0)),t.border&&this.push(new n$(t.border)),t.thematicBreak&&this.push(new nY),t.shading&&this.push(new ir(t.shading)),t.wordWrap&&this.push(new s6),t.overflowPunctuation&&this.push(new nL("w:overflowPunct",t.overflowPunctuation));let n=[...void 0!==t.rightTabStop?[{type:sc.RIGHT,position:t.rightTabStop}]:[],...t.tabStops?t.tabStops:[],...void 0!==t.leftTabStop?[{type:sc.LEFT,position:t.leftTabStop}]:[]];n.length>0&&this.push(new su(n)),void 0!==t.bidirectional&&this.push(new nL("w:bidi",t.bidirectional)),t.spacing&&this.push(new ss(t.spacing)),t.indent&&this.push(new nJ(t.indent)),void 0!==t.contextualSpacing&&this.push(new nL("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new nV(t.alignment)),void 0!==t.outlineLevel&&this.push(new sA(t.outlineLevel)),void 0!==t.suppressLineNumbers&&this.push(new nL("w:suppressLineNumbers",t.suppressLineNumbers)),void 0!==t.autoSpaceEastAsianText&&this.push(new nL("w:autoSpaceDN",t.autoSpaceEastAsianText)),t.run&&this.push(new ix(t.run))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof s1)for(let e of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(e.reference,e.instance);return super.prepForXml(t)}}class s8 extends sm{constructor(t){if(super("w:p"),rl(this,"properties"),"string"==typeof t)return this.properties=new s3({}),this.root.push(this.properties),this.root.push(new iS(t)),this;if(this.properties=new s3(t),this.root.push(this.properties),t.text&&this.root.push(new iS(t.text)),t.children)for(let e of t.children){if(e instanceof s_){for(let t of(this.root.push(e.start),e.children))this.root.push(t);this.root.push(e.end);continue}this.root.push(e)}}prepForXml(t){for(let e of this.root)if(e instanceof sb){let r=this.root.indexOf(e),n=new sw(e.options.children,iZ());t.viewWrapper.Relationships.createRelationship(n.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",e.options.link,o6.EXTERNAL),this.root[r]=n}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}}class s4 extends rd{constructor(t){for(let e of(super("w:tblGrid"),t))this.root.push(new s9(e))}}class s9 extends rd{constructor(t){super("w:gridCol"),void 0!==t&&this.root.push(new rw({width:{key:"w:w",value:nN(t)}}))}}let s7={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"};class at extends rm{constructor(t,{marginUnitType:e=ae.DXA,top:r,left:n,bottom:i,right:o}){super(t),void 0!==r&&this.root.push(new ar("w:top",{type:e,size:r})),void 0!==n&&this.root.push(new ar("w:left",{type:e,size:n})),void 0!==i&&this.root.push(new ar("w:bottom",{type:e,size:i})),void 0!==o&&this.root.push(new ar("w:right",{type:e,size:o}))}}let ae={AUTO:"auto",DXA:"dxa",NIL:"nil",PERCENTAGE:"pct"};class ar extends rd{constructor(t,{type:e=ae.AUTO,size:r}){super(t);let n=r;e===ae.PERCENTAGE&&"number"==typeof r&&(n=`${r}%`),this.root.push(new rw({type:{key:"w:type",value:e},size:{key:"w:w",value:nD(n)}}))}}class an extends rm{constructor(t){super("w:tcBorders"),t.top&&this.root.push(new nq("w:top",t.top)),t.start&&this.root.push(new nq("w:start",t.start)),t.left&&this.root.push(new nq("w:left",t.left)),t.bottom&&this.root.push(new nq("w:bottom",t.bottom)),t.end&&this.root.push(new nq("w:end",t.end)),t.right&&this.root.push(new nq("w:right",t.right))}}class ai extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val"})}}class ao extends rd{constructor(t){super("w:gridSpan"),this.root.push(new ai({val:nE(t)}))}}let as={CONTINUE:"continue",RESTART:"restart"};class aa extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val"})}}class au extends rd{constructor(t){super("w:vMerge"),this.root.push(new aa({val:t}))}}class ac extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val"})}}class al extends rd{constructor(t){super("w:textDirection"),this.root.push(new ac({val:t}))}}class ah extends rm{constructor(t){super("w:tcPr"),t.width&&this.root.push(new ar("w:tcW",t.width)),t.columnSpan&&this.root.push(new ao(t.columnSpan)),t.verticalMerge?this.root.push(new au(t.verticalMerge)):t.rowSpan&&t.rowSpan>1&&this.root.push(new au(as.RESTART)),t.borders&&this.root.push(new an(t.borders)),t.shading&&this.root.push(new ir(t.shading)),t.margins&&this.root.push(new at(s7.TABLE_CELL,t.margins)),t.textDirection&&this.root.push(new al(t.textDirection)),t.verticalAlign&&this.root.push(new sk(t.verticalAlign))}}class af extends rd{constructor(t){for(let e of(super("w:tc"),this.options=t,this.root.push(new ah(t)),t.children))this.root.push(e)}prepForXml(t){return this.root[this.root.length-1]instanceof s8||this.root.push(new s8({})),super.prepForXml(t)}}let ap={style:nX.NONE,size:0,color:"auto"},ad={style:nX.SINGLE,size:4,color:"auto"};class am extends rd{constructor(t){super("w:tblBorders"),t.top?this.root.push(new nq("w:top",t.top)):this.root.push(new nq("w:top",ad)),t.left?this.root.push(new nq("w:left",t.left)):this.root.push(new nq("w:left",ad)),t.bottom?this.root.push(new nq("w:bottom",t.bottom)):this.root.push(new nq("w:bottom",ad)),t.right?this.root.push(new nq("w:right",t.right)):this.root.push(new nq("w:right",ad)),t.insideHorizontal?this.root.push(new nq("w:insideH",t.insideHorizontal)):this.root.push(new nq("w:insideH",ad)),t.insideVertical?this.root.push(new nq("w:insideV",t.insideVertical)):this.root.push(new nq("w:insideV",ad))}}rl(am,"NONE",{top:ap,bottom:ap,left:ap,right:ap,insideHorizontal:ap,insideVertical:ap});class ag extends rd{constructor({horizontalAnchor:t,verticalAnchor:e,absoluteHorizontalPosition:r,relativeHorizontalPosition:n,absoluteVerticalPosition:i,relativeVerticalPosition:o,bottomFromText:s,topFromText:a,leftFromText:u,rightFromText:c,overlap:l}){super("w:tblpPr"),this.root.push(new rw({leftFromText:{key:"w:leftFromText",value:void 0===u?void 0:nN(u)},rightFromText:{key:"w:rightFromText",value:void 0===c?void 0:nN(c)},topFromText:{key:"w:topFromText",value:void 0===a?void 0:nN(a)},bottomFromText:{key:"w:bottomFromText",value:void 0===s?void 0:nN(s)},absoluteHorizontalPosition:{key:"w:tblpX",value:void 0===r?void 0:nC(r)},absoluteVerticalPosition:{key:"w:tblpY",value:void 0===i?void 0:nC(i)},horizontalAnchor:{key:"w:horzAnchor",value:void 0===t?void 0:t},relativeHorizontalPosition:{key:"w:tblpXSpec",value:n},relativeVerticalPosition:{key:"w:tblpYSpec",value:o},verticalAnchor:{key:"w:vertAnchor",value:e}})),l&&this.root.push(new nz("w:tblOverlap",l))}}let aw={AUTOFIT:"autofit",FIXED:"fixed"};class ay extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{type:"w:type"})}}class ab extends rd{constructor(t){super("w:tblLayout"),this.root.push(new ay({type:t}))}}let av={DXA:"dxa"};class ax extends rd{constructor({type:t=av.DXA,value:e}){super("w:tblCellSpacing"),this.root.push(new rw({type:{key:"w:type",value:t},value:{key:"w:w",value:nD(e)}}))}}class a_ extends rm{constructor(t){super("w:tblPr"),t.style&&this.root.push(new nU("w:tblStyle",t.style)),t.float&&this.root.push(new ag(t.float)),void 0!==t.visuallyRightToLeft&&this.root.push(new nL("w:bidiVisual",t.visuallyRightToLeft)),t.width&&this.root.push(new ar("w:tblW",t.width)),t.alignment&&this.root.push(new nV(t.alignment)),t.indent&&this.root.push(new ar("w:tblInd",t.indent)),t.borders&&this.root.push(new am(t.borders)),t.shading&&this.root.push(new ir(t.shading)),t.layout&&this.root.push(new ab(t.layout)),t.cellMargin&&this.root.push(new at(s7.TABLE,t.cellMargin)),t.cellSpacing&&this.root.push(new ax(t.cellSpacing))}}class aE extends sm{constructor({rows:t,width:e,columnWidths:r=Array(Math.max(...t.map(t=>t.CellCount))).fill(100),margins:n,indent:i,float:o,layout:s,style:a,borders:u,alignment:c,visuallyRightToLeft:l,cellSpacing:h}){for(let f of(super("w:tbl"),this.root.push(new a_({borders:null!=u?u:{},width:null!=e?e:{size:100},indent:i,float:o,layout:s,style:a,alignment:c,cellMargin:n,visuallyRightToLeft:l,cellSpacing:h})),this.root.push(new s4(r)),t))this.root.push(f);t.forEach((e,r)=>{if(r===t.length-1)return;let n=0;e.cells.forEach(e=>{if(e.options.rowSpan&&e.options.rowSpan>1){let i=new af({rowSpan:e.options.rowSpan-1,columnSpan:e.options.columnSpan,borders:e.options.borders,children:[],verticalMerge:as.CONTINUE});t[r+1].addCellToColumnIndex(i,n)}n+=e.options.columnSpan||1})})}}class aT extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class aA extends rd{constructor(t,e){super("w:trHeight"),this.root.push(new aT({value:nN(t),rule:e}))}}class aS extends rm{constructor(t){super("w:trPr"),void 0!==t.cantSplit&&this.root.push(new nL("w:cantSplit",t.cantSplit)),void 0!==t.tableHeader&&this.root.push(new nL("w:tblHeader",t.tableHeader)),t.height&&this.root.push(new aA(t.height.value,t.height.rule)),t.cellSpacing&&this.root.push(new ax(t.cellSpacing))}}class ak extends rd{constructor(t){for(let e of(super("w:tr"),this.options=t,this.root.push(new aS(t)),t.children))this.root.push(e)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(t=>t instanceof af)}addCellToIndex(t,e){this.root.splice(e+1,0,t)}addCellToColumnIndex(t,e){let r=this.columnIndexToRootIndex(e,!0);this.addCellToIndex(t,r-1)}rootIndexToColumnIndex(t){if(t<1||t>=this.root.length)throw Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let e=0;for(let r=1;r=this.root.length){if(e)return this.root.length;throw Error(`cell 'columnIndex' should not great than ${r-1}`)}let t=this.root[n];n+=1,r+=t&&t.options.columnSpan||1}return n-1}}class aI extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class aR extends rd{constructor(){super("Properties"),this.root.push(new aI({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class aC extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{xmlns:"xmlns"})}}class aO extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class aN extends rd{constructor(t,e){super("Default"),this.root.push(new aO({contentType:t,extension:e}))}}class aF extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class aD extends rd{constructor(t,e){super("Override"),this.root.push(new aF({contentType:t,partName:e}))}}class aP extends rd{constructor(){super("Types"),this.root.push(new aC({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new aN("image/png","png")),this.root.push(new aN("image/jpeg","jpeg")),this.root.push(new aN("image/jpeg","jpg")),this.root.push(new aN("image/bmp","bmp")),this.root.push(new aN("image/gif","gif")),this.root.push(new aN("image/svg+xml","svg")),this.root.push(new aN("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new aN("application/xml","xml")),this.root.push(new aN("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new aD("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new aD("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new aD("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new aD("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new aD("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new aD("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new aD("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new aD("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new aD("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new aD("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(t){this.root.push(new aD("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${t}.xml`))}addHeader(t){this.root.push(new aD("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${t}.xml`))}}class aL extends rd{constructor(t){super("cp:coreProperties"),this.root.push(new sY(["cp","dc","dcterms","dcmitype","xsi"])),t.title&&this.root.push(new nW("dc:title",t.title)),t.subject&&this.root.push(new nW("dc:subject",t.subject)),t.creator&&this.root.push(new nW("dc:creator",t.creator)),t.keywords&&this.root.push(new nW("cp:keywords",t.keywords)),t.description&&this.root.push(new nW("dc:description",t.description)),t.lastModifiedBy&&this.root.push(new nW("cp:lastModifiedBy",t.lastModifiedBy)),t.revision&&this.root.push(new nW("cp:revision",String(t.revision))),this.root.push(new aU("dcterms:created")),this.root.push(new aU("dcterms:modified"))}}class aB extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{type:"xsi:type"})}}class aU extends rd{constructor(t){super(t),this.root.push(new aB({type:"dcterms:W3CDTF"})),this.root.push(nP(new Date))}}class aM extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class aj extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class az extends rd{constructor(t,e){super("property"),this.root.push(new aj({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:e.name})),this.root.push(new aW(e.value))}}class aW extends rd{constructor(t){super("vt:lpwstr"),this.root.push(t)}}class aH extends rd{constructor(t){for(let e of(super("Properties"),rl(this,"nextId"),rl(this,"properties",[]),this.root.push(new aM({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2,t))this.addCustomProperty(e)}prepForXml(t){return this.properties.forEach(t=>this.root.push(t)),super.prepForXml(t)}addCustomProperty(t){this.properties.push(new az(this.nextId++,t))}}let aK=({id:t,fontKey:e,subsetted:r},n)=>new nH({name:n,attributes:ru({id:{key:"r:id",value:t}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...r?[new nL("w:subsetted",r)]:[]]}),aG=({name:t,altName:e,panose1:r,charset:n,family:i,notTrueType:o,pitch:s,sig:a,embedRegular:u,embedBold:c,embedItalic:l,embedBoldItalic:h})=>new nH({name:"w:font",attributes:{name:{key:"w:name",value:t}},children:[...e?[nM("w:altName",e)]:[],...r?[nM("w:panose1",r)]:[],...n?[nM("w:charset",n)]:[],nM("w:family",i),...o?[new nL("w:notTrueType",o)]:[],nM("w:pitch",s),...a?[new nH({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:a.usb0},usb1:{key:"w:usb1",value:a.usb1},usb2:{key:"w:usb2",value:a.usb2},usb3:{key:"w:usb3",value:a.usb3},csb0:{key:"w:csb0",value:a.csb0},csb1:{key:"w:csb1",value:a.csb1}}})]:[],...u?[aK(u,"w:embedRegular")]:[],...c?[aK(c,"w:embedBold")]:[],...l?[aK(l,"w:embedItalic")]:[],...h?[aK(h,"w:embedBoldItalic")]:[]]}),aV=({name:t,index:e,fontKey:r,characterSet:n})=>aG({name:t,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${e}`}}),aq=t=>new nH({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:t.map((t,e)=>aV({name:t.name,index:e+1,fontKey:t.fontKey}))});class aZ{constructor(t){rl(this,"fontTable"),rl(this,"relationships"),rl(this,"fontOptionsWithKey",[]),this.options=t,this.fontOptionsWithKey=t.map(t=>rc(ru({},t),{fontKey:iY()})),this.fontTable=aq(this.fontOptionsWithKey),this.relationships=new o3;for(let e=0;e9)throw Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new uo({ilvl:nE(t),tentative:1}))}}class uf extends uh{}class up extends rd{constructor(t){super("w:multiLevelType"),this.root.push(new ry({val:t}))}}class ud extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class um extends rd{constructor(t,e){for(let r of(super("w:abstractNum"),rl(this,"id"),this.root.push(new ud({abstractNumId:nE(t),restartNumberingAfterBreak:0})),this.root.push(new up("hybridMultilevel")),this.id=t,e))this.root.push(new uf(r))}}class ug extends rd{constructor(t){super("w:abstractNumId"),this.root.push(new ry({val:t}))}}class uw extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{numId:"w:numId"})}}class uy extends rd{constructor(t){if(super("w:num"),rl(this,"numId"),rl(this,"reference"),rl(this,"instance"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new uw({numId:nE(t.numId)})),this.root.push(new ug(nE(t.abstractNumId))),t.overrideLevels&&t.overrideLevels.length)for(let e of t.overrideLevels)this.root.push(new uv(e.num,e.start))}}class ub extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{ilvl:"w:ilvl"})}}class uv extends rd{constructor(t,e){super("w:lvlOverride"),this.root.push(new ub({ilvl:t})),void 0!==e&&this.root.push(new u_(e))}}class ux extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val"})}}class u_ extends rd{constructor(t){super("w:startOverride"),this.root.push(new ux({val:t}))}}class uE extends rd{constructor(t){super("w:numbering"),rl(this,"abstractNumberingMap",new Map),rl(this,"concreteNumberingMap",new Map),rl(this,"referenceConfigMap",new Map),rl(this,"abstractNumUniqueNumericId",iK()),rl(this,"concreteNumUniqueNumericId",iG()),this.root.push(new sY(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));let e=new um(this.abstractNumUniqueNumericId(),[{level:0,format:ui.BULLET,text:"●",alignment:nK.LEFT,style:{paragraph:{indent:{left:iW(.5),hanging:iW(.25)}}}},{level:1,format:ui.BULLET,text:"○",alignment:nK.LEFT,style:{paragraph:{indent:{left:iW(1),hanging:iW(.25)}}}},{level:2,format:ui.BULLET,text:"■",alignment:nK.LEFT,style:{paragraph:{indent:{left:2160,hanging:iW(.25)}}}},{level:3,format:ui.BULLET,text:"●",alignment:nK.LEFT,style:{paragraph:{indent:{left:2880,hanging:iW(.25)}}}},{level:4,format:ui.BULLET,text:"○",alignment:nK.LEFT,style:{paragraph:{indent:{left:3600,hanging:iW(.25)}}}},{level:5,format:ui.BULLET,text:"■",alignment:nK.LEFT,style:{paragraph:{indent:{left:4320,hanging:iW(.25)}}}},{level:6,format:ui.BULLET,text:"●",alignment:nK.LEFT,style:{paragraph:{indent:{left:5040,hanging:iW(.25)}}}},{level:7,format:ui.BULLET,text:"●",alignment:nK.LEFT,style:{paragraph:{indent:{left:5760,hanging:iW(.25)}}}},{level:8,format:ui.BULLET,text:"●",alignment:nK.LEFT,style:{paragraph:{indent:{left:6480,hanging:iW(.25)}}}}]);for(let r of(this.concreteNumberingMap.set("default-bullet-numbering",new uy({numId:1,abstractNumId:e.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",e),t.config))this.abstractNumberingMap.set(r.reference,new um(this.abstractNumUniqueNumericId(),r.levels)),this.referenceConfigMap.set(r.reference,r.levels)}prepForXml(t){for(let t of this.abstractNumberingMap.values())this.root.push(t);for(let t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(t)}createConcreteNumberingInstance(t,e){let r=this.abstractNumberingMap.get(t);if(!r)return;let n=`${t}-${e}`;if(this.concreteNumberingMap.has(n))return;let i=this.referenceConfigMap.get(t),o=i&&i[0].start,s={numId:this.concreteNumUniqueNumericId(),abstractNumId:r.id,reference:t,instance:e,overrideLevels:[o&&Number.isInteger(o)?{num:0,start:o}:{num:0,start:1}]};this.concreteNumberingMap.set(n,new uy(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class uT extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class uA extends rd{constructor(t){super("w:compatSetting"),this.root.push(new uT({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class uS extends rd{constructor(t){super("w:compat"),t.version&&this.root.push(new uA(t.version)),t.useSingleBorderforContiguousCells&&this.root.push(new nL("w:useSingleBorderforContiguousCells",t.useSingleBorderforContiguousCells)),t.wordPerfectJustification&&this.root.push(new nL("w:wpJustification",t.wordPerfectJustification)),t.noTabStopForHangingIndent&&this.root.push(new nL("w:noTabHangInd",t.noTabStopForHangingIndent)),t.noLeading&&this.root.push(new nL("w:noLeading",t.noLeading)),t.spaceForUnderline&&this.root.push(new nL("w:spaceForUL",t.spaceForUnderline)),t.noColumnBalance&&this.root.push(new nL("w:noColumnBalance",t.noColumnBalance)),t.balanceSingleByteDoubleByteWidth&&this.root.push(new nL("w:balanceSingleByteDoubleByteWidth",t.balanceSingleByteDoubleByteWidth)),t.noExtraLineSpacing&&this.root.push(new nL("w:noExtraLineSpacing",t.noExtraLineSpacing)),t.doNotLeaveBackslashAlone&&this.root.push(new nL("w:doNotLeaveBackslashAlone",t.doNotLeaveBackslashAlone)),t.underlineTrailingSpaces&&this.root.push(new nL("w:ulTrailSpace",t.underlineTrailingSpaces)),t.doNotExpandShiftReturn&&this.root.push(new nL("w:doNotExpandShiftReturn",t.doNotExpandShiftReturn)),t.spacingInWholePoints&&this.root.push(new nL("w:spacingInWholePoints",t.spacingInWholePoints)),t.lineWrapLikeWord6&&this.root.push(new nL("w:lineWrapLikeWord6",t.lineWrapLikeWord6)),t.printBodyTextBeforeHeader&&this.root.push(new nL("w:printBodyTextBeforeHeader",t.printBodyTextBeforeHeader)),t.printColorsBlack&&this.root.push(new nL("w:printColBlack",t.printColorsBlack)),t.spaceWidth&&this.root.push(new nL("w:wpSpaceWidth",t.spaceWidth)),t.showBreaksInFrames&&this.root.push(new nL("w:showBreaksInFrames",t.showBreaksInFrames)),t.subFontBySize&&this.root.push(new nL("w:subFontBySize",t.subFontBySize)),t.suppressBottomSpacing&&this.root.push(new nL("w:suppressBottomSpacing",t.suppressBottomSpacing)),t.suppressTopSpacing&&this.root.push(new nL("w:suppressTopSpacing",t.suppressTopSpacing)),t.suppressSpacingAtTopOfPage&&this.root.push(new nL("w:suppressSpacingAtTopOfPage",t.suppressSpacingAtTopOfPage)),t.suppressTopSpacingWP&&this.root.push(new nL("w:suppressTopSpacingWP",t.suppressTopSpacingWP)),t.suppressSpBfAfterPgBrk&&this.root.push(new nL("w:suppressSpBfAfterPgBrk",t.suppressSpBfAfterPgBrk)),t.swapBordersFacingPages&&this.root.push(new nL("w:swapBordersFacingPages",t.swapBordersFacingPages)),t.convertMailMergeEsc&&this.root.push(new nL("w:convMailMergeEsc",t.convertMailMergeEsc)),t.truncateFontHeightsLikeWP6&&this.root.push(new nL("w:truncateFontHeightsLikeWP6",t.truncateFontHeightsLikeWP6)),t.macWordSmallCaps&&this.root.push(new nL("w:mwSmallCaps",t.macWordSmallCaps)),t.usePrinterMetrics&&this.root.push(new nL("w:usePrinterMetrics",t.usePrinterMetrics)),t.doNotSuppressParagraphBorders&&this.root.push(new nL("w:doNotSuppressParagraphBorders",t.doNotSuppressParagraphBorders)),t.wrapTrailSpaces&&this.root.push(new nL("w:wrapTrailSpaces",t.wrapTrailSpaces)),t.footnoteLayoutLikeWW8&&this.root.push(new nL("w:footnoteLayoutLikeWW8",t.footnoteLayoutLikeWW8)),t.shapeLayoutLikeWW8&&this.root.push(new nL("w:shapeLayoutLikeWW8",t.shapeLayoutLikeWW8)),t.alignTablesRowByRow&&this.root.push(new nL("w:alignTablesRowByRow",t.alignTablesRowByRow)),t.forgetLastTabAlignment&&this.root.push(new nL("w:forgetLastTabAlignment",t.forgetLastTabAlignment)),t.adjustLineHeightInTable&&this.root.push(new nL("w:adjustLineHeightInTable",t.adjustLineHeightInTable)),t.autoSpaceLikeWord95&&this.root.push(new nL("w:autoSpaceLikeWord95",t.autoSpaceLikeWord95)),t.noSpaceRaiseLower&&this.root.push(new nL("w:noSpaceRaiseLower",t.noSpaceRaiseLower)),t.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new nL("w:doNotUseHTMLParagraphAutoSpacing",t.doNotUseHTMLParagraphAutoSpacing)),t.layoutRawTableWidth&&this.root.push(new nL("w:layoutRawTableWidth",t.layoutRawTableWidth)),t.layoutTableRowsApart&&this.root.push(new nL("w:layoutTableRowsApart",t.layoutTableRowsApart)),t.useWord97LineBreakRules&&this.root.push(new nL("w:useWord97LineBreakRules",t.useWord97LineBreakRules)),t.doNotBreakWrappedTables&&this.root.push(new nL("w:doNotBreakWrappedTables",t.doNotBreakWrappedTables)),t.doNotSnapToGridInCell&&this.root.push(new nL("w:doNotSnapToGridInCell",t.doNotSnapToGridInCell)),t.selectFieldWithFirstOrLastCharacter&&this.root.push(new nL("w:selectFldWithFirstOrLastChar",t.selectFieldWithFirstOrLastCharacter)),t.applyBreakingRules&&this.root.push(new nL("w:applyBreakingRules",t.applyBreakingRules)),t.doNotWrapTextWithPunctuation&&this.root.push(new nL("w:doNotWrapTextWithPunct",t.doNotWrapTextWithPunctuation)),t.doNotUseEastAsianBreakRules&&this.root.push(new nL("w:doNotUseEastAsianBreakRules",t.doNotUseEastAsianBreakRules)),t.useWord2002TableStyleRules&&this.root.push(new nL("w:useWord2002TableStyleRules",t.useWord2002TableStyleRules)),t.growAutofit&&this.root.push(new nL("w:growAutofit",t.growAutofit)),t.useFELayout&&this.root.push(new nL("w:useFELayout",t.useFELayout)),t.useNormalStyleForList&&this.root.push(new nL("w:useNormalStyleForList",t.useNormalStyleForList)),t.doNotUseIndentAsNumberingTabStop&&this.root.push(new nL("w:doNotUseIndentAsNumberingTabStop",t.doNotUseIndentAsNumberingTabStop)),t.useAlternateEastAsianLineBreakRules&&this.root.push(new nL("w:useAltKinsokuLineBreakRules",t.useAlternateEastAsianLineBreakRules)),t.allowSpaceOfSameStyleInTable&&this.root.push(new nL("w:allowSpaceOfSameStyleInTable",t.allowSpaceOfSameStyleInTable)),t.doNotSuppressIndentation&&this.root.push(new nL("w:doNotSuppressIndentation",t.doNotSuppressIndentation)),t.doNotAutofitConstrainedTables&&this.root.push(new nL("w:doNotAutofitConstrainedTables",t.doNotAutofitConstrainedTables)),t.autofitToFirstFixedWidthCell&&this.root.push(new nL("w:autofitToFirstFixedWidthCell",t.autofitToFirstFixedWidthCell)),t.underlineTabInNumberingList&&this.root.push(new nL("w:underlineTabInNumList",t.underlineTabInNumberingList)),t.displayHangulFixedWidth&&this.root.push(new nL("w:displayHangulFixedWidth",t.displayHangulFixedWidth)),t.splitPgBreakAndParaMark&&this.root.push(new nL("w:splitPgBreakAndParaMark",t.splitPgBreakAndParaMark)),t.doNotVerticallyAlignCellWithSp&&this.root.push(new nL("w:doNotVertAlignCellWithSp",t.doNotVerticallyAlignCellWithSp)),t.doNotBreakConstrainedForcedTable&&this.root.push(new nL("w:doNotBreakConstrainedForcedTable",t.doNotBreakConstrainedForcedTable)),t.ignoreVerticalAlignmentInTextboxes&&this.root.push(new nL("w:doNotVertAlignInTxbx",t.ignoreVerticalAlignmentInTextboxes)),t.useAnsiKerningPairs&&this.root.push(new nL("w:useAnsiKerningPairs",t.useAnsiKerningPairs)),t.cachedColumnBalance&&this.root.push(new nL("w:cachedColBalance",t.cachedColumnBalance))}}class uk extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}}class uI extends rd{constructor(t){var e,r,n,i,o,s,a,u;super("w:settings"),this.root.push(new uk({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new nL("w:displayBackgroundShape",!0)),void 0!==t.trackRevisions&&this.root.push(new nL("w:trackRevisions",t.trackRevisions)),void 0!==t.evenAndOddHeaders&&this.root.push(new nL("w:evenAndOddHeaders",t.evenAndOddHeaders)),void 0!==t.updateFields&&this.root.push(new nL("w:updateFields",t.updateFields)),void 0!==t.defaultTabStop&&this.root.push(new nj("w:defaultTabStop",t.defaultTabStop)),(null==(e=t.hyphenation)?void 0:e.autoHyphenation)!==void 0&&this.root.push(new nL("w:autoHyphenation",t.hyphenation.autoHyphenation)),(null==(r=t.hyphenation)?void 0:r.hyphenationZone)!==void 0&&this.root.push(new nj("w:hyphenationZone",t.hyphenation.hyphenationZone)),(null==(n=t.hyphenation)?void 0:n.consecutiveHyphenLimit)!==void 0&&this.root.push(new nj("w:consecutiveHyphenLimit",t.hyphenation.consecutiveHyphenLimit)),(null==(i=t.hyphenation)?void 0:i.doNotHyphenateCaps)!==void 0&&this.root.push(new nL("w:doNotHyphenateCaps",t.hyphenation.doNotHyphenateCaps)),this.root.push(new uS(rc(ru({},null!=(o=t.compatibility)?o:{}),{version:null!=(u=null!=(a=null==(s=t.compatibility)?void 0:s.version)?a:t.compatibilityModeVersion)?u:15})))}}class uR extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{val:"w:val"})}}class uC extends rd{constructor(t){super("w:name"),this.root.push(new uR({val:t}))}}class uO extends rd{constructor(t){super("w:uiPriority"),this.root.push(new uR({val:nE(t)}))}}class uN extends rg{constructor(){super(...arguments),rl(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class uF extends rd{constructor(t,e){super("w:style"),this.root.push(new uN(t)),e.name&&this.root.push(new uC(e.name)),e.basedOn&&this.root.push(new nU("w:basedOn",e.basedOn)),e.next&&this.root.push(new nU("w:next",e.next)),e.link&&this.root.push(new nU("w:link",e.link)),void 0!==e.uiPriority&&this.root.push(new uO(e.uiPriority)),void 0!==e.semiHidden&&this.root.push(new nL("w:semiHidden",e.semiHidden)),void 0!==e.unhideWhenUsed&&this.root.push(new nL("w:unhideWhenUsed",e.unhideWhenUsed)),void 0!==e.quickFormat&&this.root.push(new nL("w:qFormat",e.quickFormat))}}class uD extends uF{constructor(t){super({type:"paragraph",styleId:t.id},t),rl(this,"paragraphProperties"),rl(this,"runProperties"),this.paragraphProperties=new s3(t.paragraph),this.runProperties=new ix(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class uP extends uF{constructor(t){super({type:"character",styleId:t.id},ru({uiPriority:99,unhideWhenUsed:!0},t)),rl(this,"runProperties"),this.runProperties=new ix(t.run),this.root.push(this.runProperties)}}class uL extends uD{constructor(t){super(ru({basedOn:"Normal",next:"Normal",quickFormat:!0},t))}}class uB extends uL{constructor(t){super(ru({id:"Title",name:"Title"},t))}}class uU extends uL{constructor(t){super(ru({id:"Heading1",name:"Heading 1"},t))}}class uM extends uL{constructor(t){super(ru({id:"Heading2",name:"Heading 2"},t))}}class uj extends uL{constructor(t){super(ru({id:"Heading3",name:"Heading 3"},t))}}class uz extends uL{constructor(t){super(ru({id:"Heading4",name:"Heading 4"},t))}}class uW extends uL{constructor(t){super(ru({id:"Heading5",name:"Heading 5"},t))}}class uH extends uL{constructor(t){super(ru({id:"Heading6",name:"Heading 6"},t))}}class uK extends uL{constructor(t){super(ru({id:"Strong",name:"Strong"},t))}}class uG extends uD{constructor(t){super(ru({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},t))}}class uV extends uD{constructor(t){super(ru({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:si.AUTO}},run:{size:20}},t))}}class uq extends uP{constructor(t){super(ru({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},t))}}class uZ extends uP{constructor(t){super(ru({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},t))}}class uX extends uP{constructor(t){super(ru({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:ib.SINGLE}}},t))}}class u$ extends rd{constructor(t){if(super("w:styles"),t.initialStyles&&this.root.push(t.initialStyles),t.importedStyles)for(let e of t.importedStyles)this.root.push(e);if(t.paragraphStyles)for(let e of t.paragraphStyles)this.root.push(new uD(e));if(t.characterStyles)for(let e of t.characterStyles)this.root.push(new uP(e))}}class uY extends rd{constructor(t){super("w:pPrDefault"),this.root.push(new s3(t))}}class uJ extends rd{constructor(t){super("w:rPrDefault"),this.root.push(new ix(t))}}class uQ extends rd{constructor(t){super("w:docDefaults"),rl(this,"runPropertiesDefaults"),rl(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new uJ(t.run),this.paragraphPropertiesDefaults=new uY(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class u0{newInstance(t){let e;for(let r of nw.xml2js(t,{compact:!1}).elements||[])"w:styles"===r.name&&(e=r);if(void 0===e)throw Error("can not find styles element");let r=e.elements||[];return new u$({initialStyles:new nx(e.attributes),importedStyles:r.map(t=>ny(t))})}}class u1{newInstance(t={}){var e;return{initialStyles:new sY(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new uQ(null!=(e=t.document)?e:{}),new uB(ru({run:{size:56}},t.title)),new uU(ru({run:{color:"2E74B5",size:32}},t.heading1)),new uM(ru({run:{color:"2E74B5",size:26}},t.heading2)),new uj(ru({run:{color:"1F4D78",size:24}},t.heading3)),new uz(ru({run:{color:"2E74B5",italics:!0}},t.heading4)),new uW(ru({run:{color:"2E74B5"}},t.heading5)),new uH(ru({run:{color:"1F4D78"}},t.heading6)),new uK(ru({run:{bold:!0}},t.strong)),new uG(t.listParagraph||{}),new uX(t.hyperlink||{}),new uq(t.footnoteReference||{}),new uV(t.footnoteText||{}),new uZ(t.footnoteTextChar||{})]}}}class u2{constructor(t){var e,r,n,i,o,s,a,u,c,l,h,f;if(rl(this,"currentRelationshipId",1),rl(this,"documentWrapper"),rl(this,"headers",[]),rl(this,"footers",[]),rl(this,"coreProperties"),rl(this,"numbering"),rl(this,"media"),rl(this,"fileRelationships"),rl(this,"footnotesWrapper"),rl(this,"settings"),rl(this,"contentTypes"),rl(this,"customProperties"),rl(this,"appProperties"),rl(this,"styles"),rl(this,"comments"),rl(this,"fontWrapper"),this.coreProperties=new aL(rc(ru({},t),{creator:null!=(e=t.creator)?e:"Un-named",revision:null!=(r=t.revision)?r:1,lastModifiedBy:null!=(n=t.lastModifiedBy)?n:"Un-named"})),this.numbering=new uE(t.numbering?t.numbering:{config:[]}),this.comments=new o7(null!=(i=t.comments)?i:{children:[]}),this.fileRelationships=new o3,this.customProperties=new aH(null!=(o=t.customProperties)?o:[]),this.appProperties=new aR,this.footnotesWrapper=new a7,this.contentTypes=new aP,this.documentWrapper=new s1({background:t.background}),this.settings=new uI({compatibilityModeVersion:t.compatabilityModeVersion,compatibility:t.compatibility,evenAndOddHeaders:!!t.evenAndOddHeaderAndFooters,trackRevisions:null==(s=t.features)?void 0:s.trackRevisions,updateFields:null==(a=t.features)?void 0:a.updateFields,defaultTabStop:t.defaultTabStop,hyphenation:{autoHyphenation:null==(u=t.hyphenation)?void 0:u.autoHyphenation,hyphenationZone:null==(c=t.hyphenation)?void 0:c.hyphenationZone,consecutiveHyphenLimit:null==(l=t.hyphenation)?void 0:l.consecutiveHyphenLimit,doNotHyphenateCaps:null==(h=t.hyphenation)?void 0:h.doNotHyphenateCaps}}),this.media=new un,void 0!==t.externalStyles){let e=new u0;this.styles=e.newInstance(t.externalStyles)}else if(t.styles){let e=new u1().newInstance(t.styles.default);this.styles=new u$(ru(ru({},e),t.styles))}else{let t=new u1;this.styles=new u$(t.newInstance())}for(let e of(this.addDefaultRelationships(),t.sections))this.addSection(e);if(t.footnotes)for(let e in t.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(e),t.footnotes[e].children);this.fontWrapper=new aZ(null!=(f=t.fonts)?f:[])}addSection({headers:t={},footers:e={},children:r,properties:n}){for(let i of(this.documentWrapper.View.Body.addSection(rc(ru({},n),{headerWrapperGroup:{default:t.default?this.createHeader(t.default):void 0,first:t.first?this.createHeader(t.first):void 0,even:t.even?this.createHeader(t.even):void 0},footerWrapperGroup:{default:e.default?this.createFooter(e.default):void 0,first:e.first?this.createFooter(e.first):void 0,even:e.even?this.createFooter(e.even):void 0}})),r))this.documentWrapper.View.add(i)}createHeader(t){let e=new ur(this.media,this.currentRelationshipId++);for(let r of t.options.children)e.add(r);return this.addHeaderToDocument(e),e}createFooter(t){let e=new aY(this.media,this.currentRelationshipId++);for(let r of t.options.children)e.add(r);return this.addFooterToDocument(e),e}addHeaderToDocument(t,e=sC.DEFAULT){this.headers.push({header:t,type:e}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(t,e=sC.DEFAULT){this.footers.push({footer:t,type:e}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(t=>t.header)}get Footers(){return this.footers.map(t=>t.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get FontTable(){return this.fontWrapper}}class u6{constructor(t={children:[]}){rl(this,"options"),this.options=t}}var u5=nf();function u3(t){throw Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var u8={exports:{}};let u4=rv(e8?u8.exports:(e8=1,u8.exports=(function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){if(!a&&u3)return u3(s,!0);if(o)return o(s,!0);var u=Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[s]={exports:{}};e[s][0].call(c.exports,function(t){return i(e[s][1][t]||t)},c,c.exports,t,e,r,n)}return r[s].exports}for(var o=u3,s=0;s>2,a=(3&e)<<4|r>>4,u=1>6:64,c=2>4,r=(15&s)<<4|(a=o.indexOf(t.charAt(c++)))>>2,n=(3&a)<<6|(u=o.indexOf(t.charAt(c++))),f[l++]=e,64!==a&&(f[l++]=r),64!==u&&(f[l++]=n);return f}},{"./support":30,"./utils":32}],2:[function(t,e,r){var n=t("./external"),i=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),s=t("./stream/DataLengthProbe");function a(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i}a.prototype={getContentWorker:function(){var t=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),e=this;return t.on("end",function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),t},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,r){return t.pipe(new o).pipe(new s("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){var n=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){var n=t("./utils"),i=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?0xedb88320^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,e,r,n){var o=0+r;t^=-1;for(var s=0;s>>8^i[255&(t^e[s])];return -1^t}(0|e,t,t.length,0):function(t,e,r,n){var o=0+r;t^=-1;for(var s=0;s>>8^i[255&(t^e.charCodeAt(s))];return -1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){var n=null;e.exports={Promise:"undefined"!=typeof Promise?Promise:t("lie")}},{lie:37}],7:[function(t,e,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),a=n?"uint8array":"array";function u(t,e){s.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic="\b\0",o.inherits(u,s),u.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,t.data),!1)},u.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(t){return new u("Deflate",t)},r.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){function n(t,e){var r,n="";for(r=0;r>>=8;return n}function i(t,e,r,i,s,l){var h,f,p,d,m=t.file,g=t.compression,w=l!==a.utf8encode,y=o.transformTo("string",l(m.name)),b=o.transformTo("string",a.utf8encode(m.name)),v=m.comment,x=o.transformTo("string",l(v)),_=o.transformTo("string",a.utf8encode(v)),E=b.length!==m.name.length,T=_.length!==v.length,A="",S="",k="",I=m.dir,R=m.date,C={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(C.crc32=t.crc32,C.compressedSize=t.compressedSize,C.uncompressedSize=t.uncompressedSize);var O=0;e&&(O|=8),!w&&(E||T)&&(O|=2048);var N=0,F=0;I&&(N|=16),"UNIX"===s?(F=798,N|=(f=h=m.unixPermissions,h||(f=I?16893:33204),(65535&f)<<16)):(F=20,N|=63&(m.dosPermissions||0)),p=(R.getUTCHours()<<6|R.getUTCMinutes())<<5|R.getUTCSeconds()/2,d=(R.getUTCFullYear()-1980<<4|R.getUTCMonth()+1)<<5|R.getUTCDate(),E&&(S=n(1,1)+n(u(y),4)+b,A+="up"+n(S.length,2)+S),T&&(k=n(1,1)+n(u(x),4)+_,A+="uc"+n(k.length,2)+k);var D="";return D+="\n\0",D+=n(O,2),D+=g.magic,D+=n(p,2),D+=n(d,2),D+=n(C.crc32,4),D+=n(C.compressedSize,4),D+=n(C.uncompressedSize,4),D+=n(y.length,2),D+=n(A.length,2),{fileRecord:c.LOCAL_FILE_HEADER+D+y+A,dirRecord:c.CENTRAL_FILE_HEADER+n(F,2)+D+n(x.length,2)+"\0\0\0\0"+n(N,4)+n(i,4)+y+A+x}}var o=t("../utils"),s=t("../stream/GenericWorker"),a=t("../utf8"),u=t("../crc32"),c=t("../signature");function l(t,e,r,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(l,s),l.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,s.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-n-1))/r:100}}))},l.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=i(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=i(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:c.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var t,e,r,i,s=this.bytesWritten,a=0;a=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return n.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=i},{"../utils":32}],19:[function(t,e,r){var n=t("./Uint8ArrayReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){var n=t("./DataReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){var n=t("./ArrayReader");function i(t){n.call(this,t)}t("../utils").inherits(i,n),i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){var n=t("../utils"),i=t("../support"),o=t("./ArrayReader"),s=t("./StringReader"),a=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");e.exports=function(t){var e=n.getTypeOf(t);return n.checkSupport(e),"string"!==e||i.uint8array?"nodebuffer"===e?new a(t):i.uint8array?new u(n.transformTo("uint8array",t)):new o(n.transformTo("array",t)):new s(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,e,r){var n=t("./GenericWorker"),i=t("../utils");function o(t){n.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(o,n),o.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){var n=t("./GenericWorker"),i=t("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,n),o.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){var n=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}n.inherits(o,i),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}i.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){var n=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=n.getTypeOf(t),e.isPaused||e._tickAndRepeat()},function(t){e.error(t)})}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){function n(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r "+t:t}},e.exports=n},{}],29:[function(t,e,r){var n=t("../utils"),i=t("./ConvertWorker"),o=t("./GenericWorker"),s=t("../base64"),a=t("../support"),u=t("../external"),c=null;if(a.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function l(t,e,r){var s=e;switch(e){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=e,this._mimeType=r,n.checkSupport(s),this._worker=t.pipe(new i(s)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}l.prototype={accumulate:function(t){var e;return e=this,new u.Promise(function(r,i){var o=[],a=e._internalType,u=e._outputType,c=e._mimeType;e.on("data",function(e,r){o.push(e),t&&t(r)}).on("error",function(t){o=[],i(t)}).on("end",function(){try{var t=function(t,e,r){switch(t){case"blob":return n.newBlob(n.transformTo("arraybuffer",e),r);case"base64":return s.encode(e);default:return n.transformTo(t,e)}}(u,function(t,e){var r,n=0,i=null,o=0;for(r=0;r>>6:(r<65536?e[s++]=224|r>>>12:(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63),e[s++]=128|r>>>6&63),e[s++]=128|63&r);return e}(t)},r.utf8decode=function(t){return i.nodebuffer?n.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,r,i,o,s=t.length,u=Array(2*s);for(e=r=0;e>10&1023,u[r++]=56320|1023&i)}return u.length!==r&&(u.subarray?u=u.subarray(0,r):u.length=r),n.applyFromCharCode(u)}(t=n.transformTo(i.uint8array?"uint8array":"array",t))},n.inherits(c,s),c.prototype.processChunk=function(t){var e=n.transformTo(i.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var s=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+a[t[r]]>e?r:e}(e),u=e;s!==e.length&&(i.uint8array?(u=e.subarray(0,s),this.leftOver=e.subarray(s,e.length)):(u=e.slice(0,s),this.leftOver=e.slice(s,e.length))),this.push({data:r.utf8decode(u),meta:t.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(l,s),l.prototype.processChunk=function(t){this.push({data:r.utf8encode(t.data),meta:t.meta})},r.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,r){var n=t("./support"),i=t("./base64"),o=t("./nodejsUtils"),s=t("./external");function a(t){return t}function u(t,e){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,r,n,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4>>6:(r<65536?e[s++]=224|r>>>12:(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63),e[s++]=128|r>>>6&63),e[s++]=128|63&r);return e},r.buf2binstring=function(t){return u(t,t.length)},r.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r>10&1023,c[n++]=56320|1023&i)}return u(c,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+s[t[r]]>e?r:e}},{"./common":41}],43:[function(t,e,r){e.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,s=0;0!==r;){for(r-=s=2e3>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,i){var o=i+r;t^=-1;for(var s=i;s>>8^n[255&(t^e[s])];return -1^t}},{}],46:[function(t,e,r){var n,i=t("../utils/common"),o=t("./trees"),s=t("./adler32"),a=t("./crc32"),u=t("./messages");function c(t,e){return t.msg=u[e],e}function l(t){return(t<<1)-9*(4t.avail_out&&(r=t.avail_out),0!==r&&(i.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function p(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,f(t.strm)}function d(t,e){t.pending_buf[t.pending++]=e}function m(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function g(t,e){var r,n,i=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,u=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,c=t.window,l=t.w_mask,h=t.prev,f=t.strstart+258,p=c[o+s-1],d=c[o+s];t.prev_length>=t.good_match&&(i>>=2),a>t.lookahead&&(a=t.lookahead);do if(c[(r=e)+s]===d&&c[r+s-1]===p&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do;while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&ou&&0!=--i);return s<=t.lookahead?s:t.lookahead}function w(t){var e,r,n,o,u,c,l,h,f,p,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-262)){for(i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=r=t.hash_size;n=t.head[--e],t.head[e]=d<=n?n-d:0,--r;);for(e=r=d;n=t.prev[--e],t.prev[e]=d<=n?n-d:0,--r;);o+=d}if(0===t.strm.avail_in)break;if(c=t.strm,l=t.window,h=t.strstart+t.lookahead,p=void 0,(f=o)<(p=c.avail_in)&&(p=f),r=0===p?0:(c.avail_in-=p,i.arraySet(l,c.input,c.next_in,p,h),1===c.state.wrap?c.adler=s(c.adler,l,p,h):2===c.state.wrap&&(c.adler=a(c.adler,l,p,h)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=3)for(u=t.strstart-t.insert,t.ins_h=t.window[u],t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<=3){if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<=3&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(w(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,p(t,!1),0===t.strm.avail_out)||t.strstart-t.block_start>=t.w_size-262&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(p(t,!1),t.strm.avail_out),1)}),new v(4,4,8,4,y),new v(4,5,16,8,y),new v(4,6,32,32,y),new v(4,4,16,16,b),new v(8,16,32,32,b),new v(8,16,128,128,b),new v(8,32,128,256,b),new v(32,128,258,1024,b),new v(32,258,258,4096,b)],r.deflateInit=function(t,e){return T(t,e,8,15,8,0)},r.deflateInit2=T,r.deflateReset=E,r.deflateResetKeep=_,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?-2:(t.state.gzhead=e,0):-2},r.deflate=function(t,e){var r,i,s,u;if(!t||!t.state||5>8&255),d(i,i.gzhead.time>>16&255),d(i,i.gzhead.time>>24&255),d(i,9===i.level?2:4*(2<=i.strategy||i.level<2)),d(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(d(i,255&i.gzhead.extra.length),d(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=a(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(d(i,0),d(i,0),d(i,0),d(i,0),d(i,0),d(i,9===i.level?2:4*(2<=i.strategy||i.level<2)),d(i,3),i.status=113);else{var g=8+(i.w_bits-8<<4)<<8;g|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=32),g+=31-g%31,i.status=113,m(i,g),0!==i.strstart&&(m(i,t.adler>>>16),m(i,65535&t.adler)),t.adler=1}}if(69===i.status){if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),f(t),s=i.pending,i.pending!==i.pending_buf_size));)d(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73}if(73===i.status){if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),f(t),s=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexs&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91}if(91===i.status){if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),f(t),s=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexs&&(t.adler=a(t.adler,i.pending_buf,i.pending-s,s)),0===u&&(i.status=103)}else i.status=103}if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&f(t),i.pending+2<=i.pending_buf_size&&(d(i,255&t.adler),d(i,t.adler>>8&255),t.adler=0,i.status=113)):i.status=113),0!==i.pending){if(f(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&l(e)<=l(r)&&4!==e)return c(t,-5);if(666===i.status&&0!==t.avail_in)return c(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&666!==i.status){var y=2===i.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(w(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var r,n,i,s,a=t.window;;){if(t.lookahead<=258){if(w(t),t.lookahead<=258&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(p(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(p(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(p(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==y&&4!==y||(i.status=666),1===y||3===y)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(h(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),f(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(d(i,255&t.adler),d(i,t.adler>>8&255),d(i,t.adler>>16&255),d(i,t.adler>>24&255),d(i,255&t.total_in),d(i,t.total_in>>8&255),d(i,t.total_in>>16&255),d(i,t.total_in>>24&255)):(m(i,t.adler>>>16),m(i,65535&t.adler)),f(t),0=r.w_size&&(0===a&&(h(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,e,p-r.w_size,r.w_size,0),e=f,p=r.w_size),u=t.avail_in,c=t.next_in,l=t.input,t.avail_in=p,t.next_in=0,t.input=e,w(r);r.lookahead>=3;){for(n=r.strstart,o=r.lookahead-2;r.ins_h=(r.ins_h<>>=v=b>>>24,d-=v,0==(v=b>>>16&255))S[o++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=m[(65535&b)+(p&(1<>>=v,d-=v),d<15&&(p+=A[n++]<>>=v=b>>>24,d-=v,!(16&(v=b>>>16&255))){if(0==(64&v)){b=g[(65535&b)+(p&(1<>>=v,d-=v,(v=o-s)<_){if(l<(v=_-v)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(T=f,(E=0)===h){if(E+=c-v,v>3,p&=(1<<(d-=x<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function l(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):-2}function h(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,l(t)):-2}function f(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15=s.wsize?(n.arraySet(s.window,e,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(o=s.wsize-s.wnext)&&(o=i),n.arraySet(s.window,e,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,e,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=o(r.check,B,2,0),v=b=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",r.mode=30;break}if(v-=4,N=8+(15&(b>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(B[0]=255&b,B[1]=b>>>8&255,r.check=o(r.check,B,2,0)),v=b=0,r.mode=3;case 3:for(;v<32;){if(0===p)break t;p--,b+=c[h++]<>>8&255,B[2]=b>>>16&255,B[3]=b>>>24&255,r.check=o(r.check,B,4,0)),v=b=0,r.mode=4;case 4:for(;v<16;){if(0===p)break t;p--,b+=c[h++]<>8),512&r.flags&&(B[0]=255&b,B[1]=b>>>8&255,r.check=o(r.check,B,2,0)),v=b=0,r.mode=5;case 5:if(1024&r.flags){for(;v<16;){if(0===p)break t;p--,b+=c[h++]<>>8&255,r.check=o(r.check,B,2,0)),v=b=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(E=r.length)&&(E=p),E&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),n.arraySet(r.head.extra,c,h,E,N)),512&r.flags&&(r.check=o(r.check,c,E,h)),p-=E,h+=E,r.length-=E),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break t;for(E=0;N=c[h+E++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N)),N&&E>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;v<32;){if(0===p)break t;p--,b+=c[h++]<>>=7&v,v-=7&v,r.mode=27;break}for(;v<3;){if(0===p)break t;p--,b+=c[h++]<>>=1)){case 0:r.mode=14;break;case 1:if(function(t){if(g){var e;for(d=new n.Buf32(512),m=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,d,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,m,0,t.work,{bits:5}),g=!1}t.lencode=d,t.lenbits=9,t.distcode=m,t.distbits=5}(r),r.mode=20,6!==e)break;b>>>=2,v-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}b>>>=2,v-=2;break;case 14:for(b>>>=7&v,v-=7&v;v<32;){if(0===p)break t;p--,b+=c[h++]<>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&b,v=b=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(E=r.length){if(p>>=5)),v-=5,r.ncode=4+(15&(b>>>=5)),b>>>=4,v-=4,286>>=3,v-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,D={bits:r.lenbits},F=a(0,r.lens,0,19,r.lencode,0,r.work,D),r.lenbits=D.bits,F){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,I=65535&L,!((S=L>>>24)<=v);){if(0===p)break t;p--,b+=c[h++]<>>=S,v-=S,r.lens[r.have++]=I;else{if(16===I){for(P=S+2;v>>=S,v-=S,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}N=r.lens[r.have-1],E=3+(3&b),b>>>=2,v-=2}else if(17===I){for(P=S+3;v>>=S)),b>>>=3,v-=3}else{for(P=S+7;v>>=S)),b>>>=7,v-=7}if(r.have+E>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;E--;)r.lens[r.have++]=N}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,D={bits:r.lenbits},F=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,D),r.lenbits=D.bits,F){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,D={bits:r.distbits},F=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,D),r.distbits=D.bits,F){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=p&&258<=y){t.next_out=f,t.avail_out=y,t.next_in=h,t.avail_in=p,r.hold=b,r.bits=v,s(t,_),f=t.next_out,l=t.output,y=t.avail_out,h=t.next_in,c=t.input,p=t.avail_in,b=r.hold,v=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;k=(L=r.lencode[b&(1<>>16&255,I=65535&L,!((S=L>>>24)<=v);){if(0===p)break t;p--,b+=c[h++]<>R)])>>>16&255,I=65535&L,!(R+(S=L>>>24)<=v);){if(0===p)break t;p--,b+=c[h++]<>>=R,v-=R,r.back+=R}if(b>>>=S,v-=S,r.back+=S,r.length=I,0===k){r.mode=26;break}if(32&k){r.back=-1,r.mode=12;break}if(64&k){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&k,r.mode=22;case 22:if(r.extra){for(P=r.extra;v>>=r.extra,v-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;k=(L=r.distcode[b&(1<>>16&255,I=65535&L,!((S=L>>>24)<=v);){if(0===p)break t;p--,b+=c[h++]<>R)])>>>16&255,I=65535&L,!(R+(S=L>>>24)<=v);){if(0===p)break t;p--,b+=c[h++]<>>=R,v-=R,r.back+=R}if(b>>>=S,v-=S,r.back+=S,64&k){t.msg="invalid distance code",r.mode=30;break}r.offset=I,r.extra=15&k,r.mode=24;case 24:if(r.extra){for(P=r.extra;v>>=r.extra,v-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===y)break t;if(E=_-y,r.offset>E){if((E=r.offset-E)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}T=E>r.wnext?(E-=r.wnext,r.wsize-E):r.wnext-E,E>r.length&&(E=r.length),A=r.window}else A=l,T=f-r.offset,E=r.length;for(yy?(v=B[U+h[T]],F[D+h[T]]):(v=96,0),p=1<>R)+(d-=p)]=b<<24|v<<16|x|0,0!==d;);for(p=1<>=1;if(0!==p?(N&=p-1,N+=p):N=0,T++,0==--P[E]){if(E===S)break;E=e[r+h[T]]}if(k>>7)]}function x(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function _(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<>>=1,r<<=1,0<--e;);return r>>>1}function A(t,e,r){var n,i,o=Array(16),s=0;for(n=1;n<=15;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=e;i++){var a=t[2*i+1];0!==a&&(t[2*i]=T(o[a]++,a))}}function S(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function k(t){8>1;1<=r;r--)R(t,o,r);for(i=u;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,R(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,s,a,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,h=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,d=e.stat_desc.max_length,m=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)d<(o=u[2*u[2*(n=t.heap[r])+1]+1]+1)&&(o=d,m++),u[2*n+1]=o,c>=7;n<30;n++)for(w[n]=i<<7,t=0;t<1<>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),O(t,t.l_desc),O(t,t.d_desc),s=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),O(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?P(t,e,r,n):4===t.strategy||o===i?(_(t,2+ +!!n,3),C(t,c,l)):(_(t,4+ +!!n,3),function(t,e,r,n){var i;for(_(t,e-257,5),_(t,r-1,5),_(t,n-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(f[r]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){_(t,2,3),E(t,256,c),16===t.bi_valid?(x(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(t,e,r){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){(function(t){!function(t,e){if(!t.setImmediate){var r,n,i,o,s=1,a={},u=!1,c=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,r="[object process]"===({}).toString.call(t.process)?function(t){rU.nextTick(function(){f(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){f(t.data)},function(t){i.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,function(t){var e=c.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):function(t){setTimeout(f,0,t)}:(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(e){t.postMessage(o+e,"*")}),l.setImmediate=function(t){"function"!=typeof t&&(t=Function(""+t));for(var e=Array(arguments.length-1),n=0;n":">"};return e4=function(e){return e&&e.replace?e.replace(/([&"<>'])/g,function(e,r){return t[r]}):e}}(),e=nf().Stream;function r(e,n,i){var o,s,a=Array((i=i||0)||0).join(n||""),u=e;if("object"==typeof e&&(o=Object.keys(e)[0],(u=e[o])&&u._elem))return u._elem.name=o,u._elem.icount=i,u._elem.indent=n,u._elem.indents=a,u._elem.interrupt=u,u._elem;var c=[],l=[];function h(e){Object.keys(e).forEach(function(r){c.push(r+'="'+t(e[r])+'"')})}switch(typeof u){case"object":if(null===u)break;u._attr&&h(u._attr),u._cdata&&l.push(("/g,"]]]]>")+"]]>"),u.forEach&&(s=!1,l.push(""),u.forEach(function(e){"object"==typeof e?"_attr"==Object.keys(e)[0]?h(e._attr):l.push(r(e,n,i+1)):(l.pop(),s=!0,l.push(t(e)))}),s||l.push(""));break;default:l.push(t(u))}return{name:o,interrupt:!1,attributes:c,content:l,icount:i,indents:a,indent:n}}function n(t,e,r){if("object"!=typeof e)return t(!1,e);var i=e.interrupt?1:e.content.length;function o(){for(;e.content.length;){var o=e.content.shift();if(void 0!==o){if(s(o))return;n(t,o)}}t(!1,(i>1?e.indents:"")+(e.name?"":"")+(e.indent&&!r?"\n":"")),r&&r()}function s(e){return!!e.interrupt&&(e.interrupt.append=t,e.interrupt.end=o,e.interrupt=!1,t(!0),!0)}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(i?e.name?">":"":e.name?"/>":"")+(e.indent&&i>1?"\n":"")),!i)return t(!1,e.indent?"\n":"");s(e)||o()}return u9.exports=function(t,i){"object"!=typeof i&&(i={indent:i});var o,s,a=i.stream?new e:null,u="",c=!1,l=i.indent?!0===i.indent?" ":i.indent:"",h=!0;function f(t){h?rU.nextTick(t):t()}function p(t,r){if(void 0!==r&&(u+=r),t&&!c&&(a=a||new e,c=!0),t&&c){var n=u;f(function(){a.emit("data",n)}),u=""}}function d(t,e){n(p,r(t,l,+!!l),e)}function m(){if(a){var t=u;f(function(){a.emit("data",t),a.emit("end"),a.readable=!1,a.emit("close")})}}return f(function(){h=!1}),i.declaration&&(s={version:"1.0",encoding:(o=i.declaration).encoding||"UTF-8"},o.standalone&&(s.standalone=o.standalone),d({"?xml":{_attr:s}}),u=u.replace("/>","?>")),(t&&t.forEach?t.forEach(function(e,r){var n;r+1===t.length&&(n=m),d(e,n)}):d(t,m),a)?(a.readable=!0,a):u},u9.exports.element=u9.exports.Element=function(){var t=Array.prototype.slice.call(arguments),e={_elem:r(t)};return e.push=function(t){if(!this.append)throw Error("not assigned to a parent!");var e=this,i=this._elem.indent;n(this.append,r(t,i,this._elem.icount+ +!!i),function(){e.append(!0)})},e.close=function(t){void 0!==t&&this.push(t),this.end&&this.end()},e},u9.exports}()),ct=(t,e)=>{let r=e.replace(/-/g,"");if(32!==r.length)throw Error(`Error: Cannot extract GUID from font filename: ${e}`);let n=r.replace(/(..)/g,"$1 ").trim().split(" ").map(t=>parseInt(t,16));n.reverse();let i=t.slice(0,32).map((t,e)=>t^n[e%n.length]),o=new Uint8Array(0+i.length+Math.max(0,t.length-32));return o.set(t.slice(0,0)),o.set(i,0),o.set(t.slice(32),0+i.length),o};class ce{format(t,e={stack:[]}){let r=t.prepForXml(e);if(r)return r;throw Error("XMLComponent did not format correctly")}}class cr{replace(t,e,r){let n=t;return e.forEach((t,e)=>{n=n.replace(RegExp(`{${t.fileName}}`,"g"),(r+e).toString())}),n}getMediaData(t,e){return e.Array.filter(e=>t.search(`{${e.fileName}}`)>0)}}class cn{replace(t,e){let r=t;for(let t of e)r=r.replace(RegExp(`{${t.reference}-${t.instance}}`,"g"),t.numId.toString());return r}}class ci{constructor(){rl(this,"formatter"),rl(this,"imageReplacer"),rl(this,"numberingReplacer"),this.formatter=new ce,this.imageReplacer=new cr,this.numberingReplacer=new cn}compile(t,e,r=[]){let n=new u4;for(let[,r]of new Map(Object.entries(this.xmlifyFile(t,e))))if(Array.isArray(r))for(let t of r)n.file(t.path,t.data);else n.file(r.path,r.data);for(let t of r)n.file(t.path,t.data);for(let e of t.Media.Array)"svg"!==e.type?n.file(`word/media/${e.fileName}`,e.data):(n.file(`word/media/${e.fileName}`,e.data),n.file(`word/media/${e.fallback.fileName}`,e.fallback.data));for(let{data:e,name:r,fontKey:i}of t.FontTable.fontOptionsWithKey){let[t]=r.split(".");n.file(`word/fonts/${t}.odttf`,ct(e,i))}return n}xmlifyFile(t,e){let r=t.Document.Relationships.RelationshipCount+1,n=u7(this.formatter.format(t.Document.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),i=t.Comments.Relationships.RelationshipCount+1,o=u7(this.formatter.format(t.Comments,{viewWrapper:{View:t.Comments,Relationships:t.Comments.Relationships},file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),s=this.imageReplacer.getMediaData(n,t.Media),a=this.imageReplacer.getMediaData(o,t.Media);return{Relationships:{data:(s.forEach((e,n)=>{t.Document.Relationships.createRelationship(r+n,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${e.fileName}`)}),t.Document.Relationships.createRelationship(t.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),u7(this.formatter.format(t.Document.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{let e=this.imageReplacer.replace(n,s,r);return this.numberingReplacer.replace(e,t.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{let r=u7(this.formatter.format(t.Styles,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(r,t.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:u7(this.formatter.format(t.CoreProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:u7(this.formatter.format(t.Numbering,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:u7(this.formatter.format(t.FileRelationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:t.Headers.map((r,n)=>{let i=u7(this.formatter.format(r.View,{viewWrapper:r,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(i,t.Media).forEach((t,e)=>{r.Relationships.createRelationship(e,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${t.fileName}`)}),{data:u7(this.formatter.format(r.Relationships,{viewWrapper:r,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${n+1}.xml.rels`}}),FooterRelationships:t.Footers.map((r,n)=>{let i=u7(this.formatter.format(r.View,{viewWrapper:r,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(i,t.Media).forEach((t,e)=>{r.Relationships.createRelationship(e,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${t.fileName}`)}),{data:u7(this.formatter.format(r.Relationships,{viewWrapper:r,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${n+1}.xml.rels`}}),Headers:t.Headers.map((r,n)=>{let i=u7(this.formatter.format(r.View,{viewWrapper:r,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(i,t.Media),s=this.imageReplacer.replace(i,o,0);return{data:this.numberingReplacer.replace(s,t.Numbering.ConcreteNumbering),path:`word/header${n+1}.xml`}}),Footers:t.Footers.map((r,n)=>{let i=u7(this.formatter.format(r.View,{viewWrapper:r,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),o=this.imageReplacer.getMediaData(i,t.Media),s=this.imageReplacer.replace(i,o,0);return{data:this.numberingReplacer.replace(s,t.Numbering.ConcreteNumbering),path:`word/footer${n+1}.xml`}}),ContentTypes:{data:u7(this.formatter.format(t.ContentTypes,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:u7(this.formatter.format(t.CustomProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:u7(this.formatter.format(t.AppProperties,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:u7(this.formatter.format(t.FootNotes.View,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:u7(this.formatter.format(t.FootNotes.Relationships,{viewWrapper:t.FootNotes,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:u7(this.formatter.format(t.Settings,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{let e=this.imageReplacer.replace(o,a,i);return this.numberingReplacer.replace(e,t.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"},CommentsRelationships:{data:(a.forEach((e,r)=>{t.Comments.Relationships.createRelationship(i+r,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${e.fileName}`)}),u7(this.formatter.format(t.Comments.Relationships,{viewWrapper:{View:t.Comments,Relationships:t.Comments.Relationships},file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"},FontTable:{data:u7(this.formatter.format(t.FontTable.View,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:u7(this.formatter.format(t.FontTable.Relationships,{viewWrapper:t.Document,file:t,stack:[]}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}}}}let co={WITH_2_BLANKS:" "},cs=t=>!0===t?co.WITH_2_BLANKS:!1===t?void 0:t,ca=class t{static pack(t,e,r){return rh(this,arguments,function*(t,e,r,n=[]){return this.compiler.compile(t,cs(r),n).generateAsync({type:e,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toString(e,r,n=[]){return t.pack(e,"string",r,n)}static toBuffer(e,r,n=[]){return t.pack(e,"nodebuffer",r,n)}static toBase64String(e,r,n=[]){return t.pack(e,"base64",r,n)}static toBlob(e,r,n=[]){return t.pack(e,"blob",r,n)}static toArrayBuffer(e,r,n=[]){return t.pack(e,"arraybuffer",r,n)}static toStream(t,e,r=[]){let n=new u5.Stream;return this.compiler.compile(t,cs(e),r).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(t=>{n.emit("data",t),n.emit("end")}),n}};rl(ca,"compiler",new ci);let cu=ca;new ce,new ce,new cr,new Uint8Array([255,254]),new Uint8Array([254,255])}}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/822-c73eb0df0acbcf5c.js b/_backend/frontend/_next/static/chunks/822-c73eb0df0acbcf5c.js new file mode 100644 index 0000000000000000000000000000000000000000..f72d400bdbd9ab51c3ff503af93ed2dc16b6ad7e --- /dev/null +++ b/_backend/frontend/_next/static/chunks/822-c73eb0df0acbcf5c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[822],{338:(e,t,r)=>{"use strict";r.d(t,{lg:()=>w,qW:()=>g,bL:()=>b});var n,o=r(2115);function i(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}var a=r(7650),l=r(6634),s=r(5155),u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,l.TL)(`Primitive.${t}`),n=o.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?r:t,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function f(...e){return o.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=c(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}var p="dismissableLayer.update",h=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g=o.forwardRef((e,t)=>{var r,a;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:c,onPointerDownOutside:g,onFocusOutside:m,onInteractOutside:b,onDismiss:w,...E}=e,x=o.useContext(h),[S,T]=o.useState(null),N=null!==(a=null==S?void 0:S.ownerDocument)&&void 0!==a?a:null===(r=globalThis)||void 0===r?void 0:r.document,[,L]=o.useState({}),C=f(t,e=>T(e)),A=Array.from(x.layers),[R]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),k=A.indexOf(R),O=S?A.indexOf(S):-1,z=x.layersWithOutsidePointerEventsDisabled.size>0,I=O>=k,P=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=d(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){y("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...x.branches].some(e=>e.contains(t));!I||r||(null==g||g(e),null==b||b(e),e.defaultPrevented||null==w||w())},N),j=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=d(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&y("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...x.branches].some(e=>e.contains(t))||(null==m||m(e),null==b||b(e),e.defaultPrevented||null==w||w())},N);return!function(e,t=globalThis?.document){let r=function(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{O===x.layers.size-1&&(null==c||c(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},N),o.useEffect(()=>{if(S)return l&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(n=N.body.style.pointerEvents,N.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(S)),x.layers.add(S),v(),()=>{l&&1===x.layersWithOutsidePointerEventsDisabled.size&&(N.body.style.pointerEvents=n)}},[S,N,l,x]),o.useEffect(()=>()=>{S&&(x.layers.delete(S),x.layersWithOutsidePointerEventsDisabled.delete(S),v())},[S,x]),o.useEffect(()=>{let e=()=>L({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)},[]),(0,s.jsx)(u.div,{...E,ref:C,style:{pointerEvents:z?I?"auto":"none":void 0,...e.style},onFocusCapture:i(e.onFocusCapture,j.onFocusCapture),onBlurCapture:i(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:i(e.onPointerDownCapture,P.onPointerDownCapture)})});g.displayName="DismissableLayer";var m=o.forwardRef((e,t)=>{let r=o.useContext(h),n=o.useRef(null),i=f(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,s.jsx)(u.div,{...e,ref:i})});function v(){let e=new CustomEvent(p);document.dispatchEvent(e)}function y(e,t,r,n){let{discrete:o}=n,i=r.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});if(t&&i.addEventListener(e,t,{once:!0}),o)i&&a.flushSync(()=>i.dispatchEvent(l));else i.dispatchEvent(l)}m.displayName="DismissableLayerBranch";var b=g,w=m},662:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){var o,i,a;function l(r){e.removeListener(t,s),n(r)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",l),r([].slice.call(arguments))}g(e,t,s,{once:!0}),"error"!==t&&(o=e,i=l,a={once:!0},"function"==typeof o.on&&g(o,"error",i,a))})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(l(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=s(e))>0&&a.length>o&&!a.warned){a.warned=!0;var o,i,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=c.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=Array(e.length),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var a,l=Error("Unhandled error."+(a?" ("+a.message+")":""));throw l.context=a,l}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)n(s,this,t);else for(var u=s.length,c=h(s,u),r=0;r=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},1540:function(e,t,r){var n,o;void 0!==(o="function"==typeof(n=function(){"use strict";function t(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function n(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r.g&&r.g.global===r.g?r.g:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,r,a){var l=i.URL||i.webkitURL,s=document.createElement("a");s.download=r=r||e.name||"download",s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?o(s):n(s.href)?t(e,r,a):o(s,s.target="_blank")):(s.href=l.createObjectURL(e),setTimeout(function(){l.revokeObjectURL(s.href)},4e4),setTimeout(function(){o(s)},0))}:"msSaveOrOpenBlob"in navigator?function(e,r,i){if(r=r||e.name||"download","string"!=typeof e){var a;navigator.msSaveOrOpenBlob((void 0===(a=i)?a={autoBom:!1}:"object"!=typeof a&&(console.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),r)}else if(n(e))t(e,r,i);else{var l=document.createElement("a");l.href=e,l.target="_blank",setTimeout(function(){o(l)})}}:function(e,r,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,r,n);var l="application/octet-stream"===e.type,s=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||l&&s||a)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},c.readAsDataURL(e)}else{var f=i.URL||i.webkitURL,d=f.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout(function(){f.revokeObjectURL(d)},4e4)}});i.saveAs=l.saveAs=l,e.exports=l})?n.apply(t,[]):n)&&(e.exports=o)},2085:(e,t,r)=>{"use strict";r.d(t,{F:()=>a});var n=r(2596);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=n.$,a=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return i(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:l}=t,s=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==l?void 0:l[e];if(null===t)return null;let i=o(t)||o(n);return a[e][i]}),u=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return i(e,s,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...u}[t]):({...l,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},2293:(e,t,r)=>{"use strict";r.d(t,{Oh:()=>i});var n=r(2115),o=0;function i(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},2596:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",o=arguments.length;rn})},3052:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},3795:(e,t,r)=>{"use strict";r.d(t,{A:()=>Y});var n,o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}Object.create;Object.create;var a=("function"==typeof SuppressedError&&SuppressedError,r(2115)),l="right-scroll-bar-position",s="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var c="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,f=new WeakMap;function d(e){return e}var p=function(e){void 0===e&&(e={});var t,r,n,i,a=(t=null,void 0===r&&(r=d),n=[],i=!1,{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var t=r(e,i);return n.push(t),function(){n=n.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){i=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return a.options=o({async:!0,ssr:!1},e),a}(),h=function(){},g=a.forwardRef(function(e,t){var r,n,l,s,d=a.useRef(null),g=a.useState({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:h}),m=g[0],v=g[1],y=e.forwardProps,b=e.children,w=e.className,E=e.removeScrollBar,x=e.enabled,S=e.shards,T=e.sideCar,N=e.noRelative,L=e.noIsolation,C=e.inert,A=e.allowPinchZoom,R=e.as,k=e.gapMode,O=i(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=(r=[d,t],n=function(e){return r.forEach(function(t){return u(t,e)})},(l=(0,a.useState)(function(){return{value:null,callback:n,facade:{get current(){return l.value},set current(value){var e=l.value;e!==value&&(l.value=value,l.callback(value,e))}}}})[0]).callback=n,s=l.facade,c(function(){var e=f.get(s);if(e){var t=new Set(e),n=new Set(r),o=s.current;t.forEach(function(e){n.has(e)||u(e,null)}),n.forEach(function(e){t.has(e)||u(e,o)})}f.set(s,r)},[r]),s),I=o(o({},O),m);return a.createElement(a.Fragment,null,x&&a.createElement(T,{sideCar:p,removeScrollBar:E,shards:S,noRelative:N,noIsolation:L,inert:C,setCallbacks:v,allowPinchZoom:!!A,lockRef:d,gapMode:k}),y?a.cloneElement(a.Children.only(b),o(o({},I),{ref:z})):a.createElement(void 0===R?"div":R,o({},I,{className:w,ref:z}),b))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:s,zeroRight:l};var m=function(e){var t=e.sideCar,r=i(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,o({},r))};m.isSideCarExport=!0;var v=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=v();return function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},x=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[E(r),E(n),E(o)]},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=x(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},T=b(),N="data-scroll-locked",L=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(u,"px ").concat(n,";\n }\n body[").concat(N,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(s," {\n margin-right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(n,";\n }\n \n .").concat(s," .").concat(s," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(N,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},C=function(){var e=parseInt(document.body.getAttribute(N)||"0",10);return isFinite(e)?e:0},A=function(){a.useEffect(function(){return document.body.setAttribute(N,(C()+1).toString()),function(){var e=C()-1;e<=0?document.body.removeAttribute(N):document.body.setAttribute(N,e.toString())}},[])},R=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;A();var i=a.useMemo(function(){return S(o)},[o]);return a.createElement(T,{styles:L(i,!t,o,r?"":"!important")})},k=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return k=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){k=!1}var z=!!k&&{passive:!1},I=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},P=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),j(e,n)){var o=D(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},j=function(e,t){return"v"===e?I(t,"overflowY"):I(t,"overflowX")},D=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},M=function(e,t,r,n,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*n,s=r.target,u=t.contains(s),c=!1,f=l>0,d=0,p=0;do{if(!s)break;var h=D(e,s),g=h[0],m=h[1]-h[2]-a*g;(g||m)&&j(e,s)&&(d+=m,p+=g);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return f&&(o&&1>Math.abs(d)||!o&&l>d)?c=!0:!f&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},U=0,W=[];let $=(p.useMedium(function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),o=a.useState(U++)[0],i=a.useState(b)[0],l=a.useRef(e);a.useEffect(function(){l.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oMath.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===c.type)return!1;var d=P(f,c);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=P(f,c)),!d)return!1;if(!n.current&&"changedTouches"in e&&(s||u)&&(n.current=o),!o)return!0;var p=n.current||o;return M(p,t,e,"h"===p?s:u,!0)},[]),u=a.useCallback(function(e){if(W.length&&W[W.length-1]===i){var r="deltaY"in e?B(e):_(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(l.current.shards||[]).map(F).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=a.useCallback(function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=a.useCallback(function(e){r.current=_(e),n.current=void 0},[]),d=a.useCallback(function(t){c(t.type,B(t),t.target,s(t,e.lockRef.current))},[]),p=a.useCallback(function(t){c(t.type,_(t),t.target,s(t,e.lockRef.current))},[]);a.useEffect(function(){return W.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,z),document.addEventListener("touchmove",u,z),document.addEventListener("touchstart",f,z),function(){W=W.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,z),document.removeEventListener("touchmove",u,z),document.removeEventListener("touchstart",f,z)}},[]);var h=e.removeScrollBar,g=e.inert;return a.createElement(a.Fragment,null,g?a.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?a.createElement(R,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}),m);var H=a.forwardRef(function(e,t){return a.createElement(g,o({},e,{ref:t,sideCar:$}))});H.classNames=g.classNames;let Y=H},3862:(e,t,r)=>{"use strict";r.d(t,{n:()=>d});var n=r(2115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}r(7650);var i=r(6634),a=r(5155),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?r:t,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function s(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}var u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",f={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:d,onUnmountAutoFocus:v,...y}=e,[b,w]=n.useState(null),E=s(d),x=s(v),S=n.useRef(null),T=function(...e){return n.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;tw(e)),N=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(i){let e=function(e){if(N.paused||!b)return;let t=e.target;b.contains(t)?S.current=t:g(S.current,{select:!0})},t=function(e){if(N.paused||!b)return;let t=e.relatedTarget;null===t||b.contains(t)||g(S.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&g(b)});return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[i,b,N.paused]),n.useEffect(()=>{if(b){m.add(N);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(u,f);b.addEventListener(u,E),b.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(g(n,{select:t}),document.activeElement!==r)return}(p(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&g(b))}return()=>{b.removeEventListener(u,E),setTimeout(()=>{let t=new CustomEvent(c,f);b.addEventListener(c,x),b.dispatchEvent(t),t.defaultPrevented||g(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,x),m.remove(N)},0)}}},[b,E,x,N]);let L=n.useCallback(e=>{if(!r&&!i||N.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[o,i]=function(e){let t=p(e);return[h(t,e),h(t.reverse(),e)]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&g(i,{select:!0})):(e.preventDefault(),r&&g(o,{select:!0})):n===t&&e.preventDefault()}},[r,i,N.paused]);return(0,a.jsx)(l.div,{tabIndex:-1,...y,ref:T,onKeyDown:L})});function p(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function h(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function g(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=v(e,t)).unshift(t)},remove(t){var r;null===(r=(e=v(e,t))[0])||void 0===r||r.resume()}}}();function v(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},4050:(e,t,r)=>{"use strict";r.d(t,{b:()=>c,w:()=>u});var n=r(2115);r(7650);var o=r(6634),i=r(5155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,o.TL)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?r:t,{...a,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),l="horizontal",s=["horizontal","vertical"],u=n.forwardRef((e,t)=>{var r;let{decorative:n,orientation:o=l,...u}=e,c=(r=o,s.includes(r))?o:l;return(0,i.jsx)(a.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...u,ref:t})});u.displayName="Separator";var c=u},4416:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},5196:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},5453:(e,t,r)=>{"use strict";r.d(t,{v:()=>s});var n=r(2115);let o=e=>{let t;let r=new Set,n=(e,n)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},t,o),r.forEach(r=>r(t,e))}},o=()=>t,i={setState:n,getState:o,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(n,o,i);return i},i=e=>e?o(e):o,a=e=>e,l=e=>{let t=i(e),r=e=>(function(e,t=a){let r=n.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},s=e=>e?l(e):l},5657:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(9946).A)("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},6521:(e,t,r)=>{"use strict";r.d(t,{S7:()=>h,Hi:()=>g});var n=r(5976),o=r(1540);let i={1:{level:1,size:0,style:"Title"},2:{level:2,size:0,style:"Heading2"},3:{level:3,size:0},4:{level:4,size:0},5:{level:5,size:0}};var a=r(9641).Buffer;function l(e,t){let r=s(e.text,t);if(e.boldText&&r.push(new n.NTc({text:"\n",size:t.listItemSize||24}),new n.NTc({text:e.boldText,bold:!0,color:"000000",size:t.listItemSize||24})),!e.isNumbered)return new n.fzL({children:r,bullet:{level:0},spacing:{before:t.paragraphSpacing/2,after:t.paragraphSpacing/2}});{let o=`numbered-list-${e.sequenceId||1}`;return new n.fzL({children:r,numbering:{reference:o,level:0},spacing:{before:t.paragraphSpacing/2,after:t.paragraphSpacing/2}})}}function s(e,t){let r=[],o="",i=!1,a=!1,l=!1,s=-1,u=-1;for(let d=0;d=0&&(o="**"+o,i=!1),a&&u>=0&&(o="*"+o,a=!1),l&&(o="`"+o),o.trim()&&r.push(new n.NTc({text:o,bold:i,italics:a,color:"000000",size:t?.paragraphSize||24}))),0===r.length&&r.push(new n.NTc({text:"",color:"000000",size:t?.paragraphSize||24})),r}function u(e,t,r){let o=e.split("\n"),i=[];return t&&i.push(new n.NTc({text:t,font:"Courier New",size:r.codeBlockSize||18,color:"666666",bold:!0}),new n.NTc({text:"\n",font:"Courier New",size:r.codeBlockSize||18,break:1})),o.forEach((e,t)=>{let a=e.match(/^\s*/)?.[0].length||0,l="\xa0".repeat(a)+e.slice(a);i.push(new n.NTc({text:l,font:"Courier New",size:r.codeBlockSize||20,color:"444444"})),te.trim()),i=[],a=r+2;for(;ae.trim());i.push(t),a++}t.push({headers:o,rows:i})}}return t}(h);for(let e=0;e=1&&t<=5){g&&(d.push(...m),m=[],g=!1);let e=f.substring(t).trim(),r={...i[t],alignment:i[t].alignment||o.headingAlignment},{paragraph:a,bookmarkId:l}=function(e,t,r,o){let i,a;let l=e.replace(RegExp(`^#{${t.level}} `),""),s=t.level,u=l.replace(/\*\*/g,"").replace(/\*/g,""),c=`_Toc_${(a=u.replace(/[^a-zA-Z0-9_\s]/g,"").replace(/\s+/g,"_"),/^[a-zA-Z_]/.test(a)||(a="_"+a),a.substring(0,40))}_${Date.now()}`,f=r.titleSize;1===s&&r.heading1Size?f=r.heading1Size:2===s&&r.heading2Size?f=r.heading2Size:3===s&&r.heading3Size?f=r.heading3Size:4===s&&r.heading4Size?f=r.heading4Size:5===s&&r.heading5Size?f=r.heading5Size:s>1&&(f=r.titleSize-(s-1)*4),1===s&&r.heading1Alignment?i=n.Yus[r.heading1Alignment]:2===s&&r.heading2Alignment?i=n.Yus[r.heading2Alignment]:3===s&&r.heading3Alignment?i=n.Yus[r.heading3Alignment]:4===s&&r.heading4Alignment?i=n.Yus[r.heading4Alignment]:5===s&&r.heading5Alignment?i=n.Yus[r.heading5Alignment]:r.headingAlignment&&(i=n.Yus[r.headingAlignment]);let d=function(e,t){let r=[],o="",i=!1,a=!1,l=-1,s=-1;for(let u=0;u=0&&(o="**"+o,i=!1),a&&s>=0&&(o="*"+o,a=!1),o.trim()&&r.push(new n.NTc({text:o,bold:i,italics:a,color:"000000",size:t}))),0===r.length&&r.push(new n.NTc({text:"",color:"000000",size:t,bold:!0})),r}(l,f);return{paragraph:new n.fzL({children:[new n.Xhp({id:c,children:d})],heading:s,spacing:{before:1===t.level?2*r.headingSpacing:r.headingSpacing,after:r.headingSpacing/2},alignment:i,style:`Heading${s}`}),bookmarkId:c}}(f,r,o,0);p.push({text:e,level:t,bookmarkId:l}),d.push(a);continue}console.warn(`Warning: Heading level ${t} is not supported. Converting to regular paragraph.`)}}if(f.startsWith("|")&&f.endsWith("|")&&e+1new n.nA6({children:[new n.fzL({alignment:n.Yus.CENTER,style:"Strong",children:[new n.NTc({text:e,bold:!0,color:"000000"})]})],shading:{fill:"report"===t?"DDDDDD":"F2F2F2"}}))}),...e.rows.map(e=>new n.Hjg({children:e.map(e=>new n.nA6({children:[new n.fzL({children:[new n.NTc({text:e,color:"000000"})]})]}))}))],layout:n.tUz.FIXED,margins:{top:100,bottom:100,left:100,right:100}})}(S[x],a));let t=2+S[x].rows.length;e+=t-1,x++;continue}catch(t){console.warn(`Warning: Failed to process table at line ${e+1}. Converting to regular text.`),d.push(new n.fzL({children:[new n.NTc({text:f.replace(/\|/g,"").trim(),color:"000000"})]}));continue}if(f.startsWith("- ")||f.startsWith("* ")){y&&(v=1,y=!1),g=!0;let t=f.replace(/^[\s-*]+/,"").trim(),r="";e+1 ")){g&&(d.push(...m),m=[],g=!1);let e=f.replace(/^>\s*/,"").trim();d.push(function(e,t){let r;if(t.blockquoteAlignment)switch(t.blockquoteAlignment){case"LEFT":r=n.Yus.LEFT;break;case"CENTER":r=n.Yus.CENTER;break;case"RIGHT":r=n.Yus.RIGHT;break;case"JUSTIFIED":r=n.Yus.JUSTIFIED;break;default:r=void 0}return new n.fzL({children:[new n.NTc({text:e,italics:!0,color:"000000",size:t.blockquoteSize||24})],indent:{left:720},spacing:{before:t.paragraphSpacing,after:t.paragraphSpacing},border:{left:{style:n.kDD.SINGLE,size:3,color:"AAAAAA"}},alignment:r})}(e,o));continue}if(f.startsWith("COMMENT:")){g&&(d.push(...m),m=[],g=!1);let e=f.replace(/^COMMENT:\s*/,"").trim();d.push(new n.fzL({children:[new n.NTc({text:"Comment: "+e,italics:!0,color:"666666"})],spacing:{before:o.paragraphSpacing,after:o.paragraphSpacing}}));continue}let T=f.match(/!\[([^\]]*)\]\(([^)]+)\)/);if(T){let[e,t,r]=T;console.log(`Found image in markdown: ${r}`);try{console.log(`Starting image processing for: ${r}`);let e=await c(t,r,o);console.log(`Successfully processed image, adding ${e.length} paragraphs`),d.push(...e)}catch(e){console.error(`Error in image processing: ${e instanceof Error?e.message:String(e)}`),d.push(new n.fzL({children:[new n.NTc({text:`[Image could not be loaded: ${t}]`,italics:!0,color:"FF0000"})],alignment:n.Yus.CENTER}))}continue}let N=f.match(/^(?!.*!\[).*\[([^\]]+)\]\(([^)]+)\)/);if(N){let[e,t,r]=N;d.push(function(e,t,r){let o=new n.Mf2({children:[new n.NTc({text:e,color:"0000FF",underline:{type:"single"}})],link:t});return new n.fzL({children:[o],spacing:{before:r.paragraphSpacing,after:r.paragraphSpacing}})}(t,r,o));continue}if(!g){try{d.push(function(e,t){let r=s(e,t),o=t.paragraphAlignment?"CENTER"===t.paragraphAlignment?n.Yus.CENTER:"RIGHT"===t.paragraphAlignment?n.Yus.RIGHT:"JUSTIFIED"===t.paragraphAlignment?n.Yus.JUSTIFIED:n.Yus.LEFT:n.Yus.LEFT;console.log(`Paragraph alignment: ${o}, Style alignment: ${t.paragraphAlignment}`);let i="JUSTIFIED"===t.paragraphAlignment?{left:0,right:0}:void 0;return new n.fzL({children:r,spacing:{before:t.paragraphSpacing,after:t.paragraphSpacing,line:240*t.lineSpacing},alignment:o,indent:i})}(f,o))}catch(t){console.warn(`Warning: Failed to process text formatting at line ${e+1}: ${t instanceof Error?t.message:String(t)}. Using plain text.`),d.push(new n.fzL({children:[new n.NTc({text:f,color:"000000",size:o.paragraphSize||24})],spacing:{before:o.paragraphSpacing,after:o.paragraphSpacing,line:240*o.lineSpacing},alignment:o.paragraphAlignment?n.Yus[o.paragraphAlignment]:void 0}))}continue}}catch(t){console.warn(`Warning: Failed to process line ${e+1}: ${t instanceof Error?t.message:"Unknown error"}. Skipping line.`);continue}w&&E&&d.push(u(E.trim(),r,o)),g&&m.length>0&&d.push(...m);let T=[];p.length>0&&(T.push(new n.fzL({text:"Table of Contents",heading:"Heading1",alignment:n.Yus.CENTER,spacing:{after:240}})),p.forEach(e=>{let t;let r=!1,i=!1;switch(e.level){case 1:t=o.tocHeading1FontSize||o.tocFontSize,r=void 0===o.tocHeading1Bold||o.tocHeading1Bold,i=o.tocHeading1Italic||!1;break;case 2:t=o.tocHeading2FontSize||o.tocFontSize,r=void 0!==o.tocHeading2Bold&&o.tocHeading2Bold,i=o.tocHeading2Italic||!1;break;case 3:t=o.tocHeading3FontSize||o.tocFontSize,r=o.tocHeading3Bold||!1,i=o.tocHeading3Italic||!1;break;case 4:t=o.tocHeading4FontSize||o.tocFontSize,r=o.tocHeading4Bold||!1,i=o.tocHeading4Italic||!1;break;case 5:t=o.tocHeading5FontSize||o.tocFontSize,r=o.tocHeading5Bold||!1,i=o.tocHeading5Italic||!1;break;default:t=o.tocFontSize}t||(t=o.paragraphSize?o.paragraphSize-(e.level-1)*2:24-(e.level-1)*2),T.push(new n.fzL({children:[new n.ijT({anchor:e.bookmarkId,children:[new n.NTc({text:e.text,size:t,bold:r,italics:i})]})],indent:{left:(e.level-1)*400},spacing:{after:120}}))}));let N=[],L=!1;d.forEach(e=>{!0===e.__isTocPlaceholder?T.length>0&&!L?(N.push(...T),L=!0):console.warn("TOC placeholder found, but no headings collected or TOC already inserted."):N.push(e)});let C=[];for(let e=1;e<=b;e++)C.push({reference:`numbered-list-${e}`,levels:[{level:0,format:n.sQw.DECIMAL,text:"%1.",alignment:n.Yus.LEFT,style:{paragraph:{indent:{left:720,hanging:260}}}}]});let A=new n.yoT({numbering:{config:C},sections:[{properties:{page:{margin:{top:1440,right:1080,bottom:1440,left:1080},size:{orientation:n.CIp.PORTRAIT}}},footers:{default:new n.wi6({children:[new n.fzL({alignment:n.Yus.CENTER,children:[new n.NTc({children:[n.nkW.CURRENT]})]})]})},children:N}],styles:{paragraphStyles:[{id:"Title",name:"Title",basedOn:"Normal",next:"Normal",quickFormat:!0,run:{size:o.titleSize,bold:!0,color:"000000"},paragraph:{spacing:{after:240,line:240*o.lineSpacing},alignment:n.Yus.CENTER}},{id:"Heading1",name:"Heading 1",basedOn:"Normal",next:"Normal",quickFormat:!0,run:{size:o.titleSize,bold:!0,color:"000000"},paragraph:{spacing:{before:360,after:240},outlineLevel:1}},{id:"Heading2",name:"Heading 2",basedOn:"Normal",next:"Normal",quickFormat:!0,run:{size:o.titleSize-4,bold:!0,color:"000000"},paragraph:{spacing:{before:320,after:160},outlineLevel:2}},{id:"Heading3",name:"Heading 3",basedOn:"Normal",next:"Normal",quickFormat:!0,run:{size:o.titleSize-8,bold:!0,color:"000000"},paragraph:{spacing:{before:280,after:120},outlineLevel:3}},{id:"Heading4",name:"Heading 4",basedOn:"Normal",next:"Normal",quickFormat:!0,run:{size:o.titleSize-12,bold:!0,color:"000000"},paragraph:{spacing:{before:240,after:120},outlineLevel:4}},{id:"Heading5",name:"Heading 5",basedOn:"Normal",next:"Normal",quickFormat:!0,run:{size:o.titleSize-16,bold:!0,color:"000000"},paragraph:{spacing:{before:220,after:100},outlineLevel:5}},{id:"Strong",name:"Strong",run:{bold:!0}}]}});return await n.ND6.toBlob(A)}catch(e){if(e instanceof p)throw e;throw new p(`Failed to convert markdown to docx: ${e instanceof Error?e.message:"Unknown error"}`,{originalError:e})}}function g(e,t="document.docx"){if("undefined"==typeof window)throw Error("This function can only be used in browser environments");if(!(e instanceof Blob))throw Error("Invalid blob provided");if(!t||"string"!=typeof t)throw Error("Invalid filename provided");try{o(e,t)}catch(e){throw console.error("Failed to save file:",e),Error(`Failed to save file: ${e instanceof Error?e.message:"Unknown error"}`)}}},6542:(e,t,r)=>{"use strict";r.d(t,{OK:()=>K,bL:()=>G,FK:()=>w,VM:()=>T,lr:()=>j,LM:()=>V});var n=r(2115);r(7650);var o=r(6634),i=r(5155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,o.TL)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?r:t,{...a,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return n.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=l(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{},c=e=>{let{present:t,children:r}=e,o=function(e){var t,r;let[o,i]=n.useState(),a=n.useRef(null),l=n.useRef(e),s=n.useRef("none"),[c,d]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=f(a.current);s.current="mounted"===c?e:"none"},[c]),u(()=>{let t=a.current,r=l.current;if(r!==e){let n=s.current,o=f(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):r&&n!==o?d("ANIMATION_OUT"):d("UNMOUNT"),l.current=e}},[e,d]),u(()=>{if(o){var e;let t;let r=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=f(a.current).includes(e.animationName);if(e.target===o&&n&&(d("ANIMATION_END"),!l.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(s.current=f(a.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:n.useCallback(e=>{a.current=e?getComputedStyle(e):null,i(e)},[])}}(t),i="function"==typeof r?r({present:o.isPresent}):n.Children.only(r),a=s(o.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?n.cloneElement(i,{ref:a}):null};function f(e){return(null==e?void 0:e.animationName)||"none"}function d(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}c.displayName="Presence";var p=n.createContext(void 0);function h(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}var g="ScrollArea",[m,v]=function(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(t,o){let a=n.createContext(o),l=r.length;r=[...r,o];let s=t=>{let{scope:r,children:o,...s}=t,u=r?.[e]?.[l]||a,c=n.useMemo(()=>s,Object.values(s));return(0,i.jsx)(u.Provider,{value:c,children:o})};return s.displayName=t+"Provider",[s,function(r,i){let s=i?.[e]?.[l]||a,u=n.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(o,...t)]}(g),[y,b]=m(g),w=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:o="hover",dir:l,scrollHideDelay:u=600,...c}=e,[f,d]=n.useState(null),[h,g]=n.useState(null),[m,v]=n.useState(null),[b,w]=n.useState(null),[E,x]=n.useState(null),[S,T]=n.useState(0),[N,L]=n.useState(0),[C,A]=n.useState(!1),[R,k]=n.useState(!1),O=s(t,e=>d(e)),z=function(e){let t=n.useContext(p);return e||t||"ltr"}(l);return(0,i.jsx)(y,{scope:r,type:o,dir:z,scrollHideDelay:u,scrollArea:f,viewport:h,onViewportChange:g,content:m,onContentChange:v,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:C,onScrollbarXEnabledChange:A,scrollbarY:E,onScrollbarYChange:x,scrollbarYEnabled:R,onScrollbarYEnabledChange:k,onCornerWidthChange:T,onCornerHeightChange:L,children:(0,i.jsx)(a.div,{dir:z,...c,ref:O,style:{position:"relative","--radix-scroll-area-corner-width":S+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});w.displayName=g;var E="ScrollAreaViewport",x=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:l,...u}=e,c=b(E,r),f=s(t,n.useRef(null),c.onViewportChange);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,i.jsx)(a.div,{"data-radix-scroll-area-viewport":"",...u,ref:f,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,i.jsx)("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});x.displayName=E;var S="ScrollAreaScrollbar",T=n.forwardRef((e,t)=>{let{forceMount:r,...o}=e,a=b(S,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:s}=a,u="horizontal"===e.orientation;return n.useEffect(()=>(u?l(!0):s(!0),()=>{u?l(!1):s(!1)}),[u,l,s]),"hover"===a.type?(0,i.jsx)(N,{...o,ref:t,forceMount:r}):"scroll"===a.type?(0,i.jsx)(L,{...o,ref:t,forceMount:r}):"auto"===a.type?(0,i.jsx)(C,{...o,ref:t,forceMount:r}):"always"===a.type?(0,i.jsx)(A,{...o,ref:t}):null});T.displayName=S;var N=n.forwardRef((e,t)=>{let{forceMount:r,...o}=e,a=b(S,e.__scopeScrollArea),[l,s]=n.useState(!1);return n.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let r=()=>{window.clearTimeout(t),s(!0)},n=()=>{t=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[a.scrollArea,a.scrollHideDelay]),(0,i.jsx)(c,{present:r||l,children:(0,i.jsx)(C,{"data-state":l?"visible":"hidden",...o,ref:t})})}),L=n.forwardRef((e,t)=>{var r;let{forceMount:o,...a}=e,l=b(S,e.__scopeScrollArea),s="horizontal"===e.orientation,u=q(()=>d("SCROLL_END"),100),[f,d]=(r={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},"hidden"));return n.useEffect(()=>{if("idle"===f){let e=window.setTimeout(()=>d("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(e)}},[f,l.scrollHideDelay,d]),n.useEffect(()=>{let e=l.viewport,t=s?"scrollLeft":"scrollTop";if(e){let r=e[t],n=()=>{let n=e[t];r!==n&&(d("SCROLL"),u()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[l.viewport,s,d,u]),(0,i.jsx)(c,{present:o||"hidden"!==f,children:(0,i.jsx)(A,{"data-state":"hidden"===f?"hidden":"visible",...a,ref:t,onPointerEnter:h(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:h(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),C=n.forwardRef((e,t)=>{let r=b(S,e.__scopeScrollArea),{forceMount:o,...a}=e,[l,s]=n.useState(!1),u="horizontal"===e.orientation,f=q(()=>{if(r.viewport){let e=r.viewport.offsetWidth{let{orientation:r="vertical",...o}=e,a=b(S,e.__scopeScrollArea),l=n.useRef(null),s=n.useRef(0),[u,c]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=U(u.viewport,u.content),d={...o,sizes:u,onSizesChange:c,hasThumb:!!(f>0&&f<1),onThumbChange:e=>l.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function p(e,t){return function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",o=W(r),i=t||o/2,a=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-(o-i),s=r.content-r.viewport;return H([a,l],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,s.current,u,t)}return"horizontal"===r?(0,i.jsx)(R,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){let e=$(a.viewport.scrollLeft,u,a.dir);l.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=p(e,a.dir))}}):"vertical"===r?(0,i.jsx)(k,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&l.current){let e=$(a.viewport.scrollTop,u);l.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=p(e))}}):null}),R=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...a}=e,l=b(S,e.__scopeScrollArea),[u,c]=n.useState(),f=n.useRef(null),d=s(t,f,l.onScrollbarXChange);return n.useEffect(()=>{f.current&&c(getComputedStyle(f.current))},[f]),(0,i.jsx)(I,{"data-orientation":"horizontal",...a,ref:d,sizes:r,style:{bottom:0,left:"rtl"===l.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===l.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":W(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(l.viewport){let n=l.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),function(e,t){return e>0&&e{f.current&&l.viewport&&u&&o({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:F(u.paddingLeft),paddingEnd:F(u.paddingRight)}})}})}),k=n.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...a}=e,l=b(S,e.__scopeScrollArea),[u,c]=n.useState(),f=n.useRef(null),d=s(t,f,l.onScrollbarYChange);return n.useEffect(()=>{f.current&&c(getComputedStyle(f.current))},[f]),(0,i.jsx)(I,{"data-orientation":"vertical",...a,ref:d,sizes:r,style:{top:0,right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":W(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(l.viewport){let n=l.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),function(e,t){return e>0&&e{f.current&&l.viewport&&u&&o({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:F(u.paddingTop),paddingEnd:F(u.paddingBottom)}})}})}),[O,z]=m(S),I=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:l,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:m,onResize:v,...y}=e,w=b(S,r),[E,x]=n.useState(null),T=s(t,e=>x(e)),N=n.useRef(null),L=n.useRef(""),C=w.viewport,A=o.content-o.viewport,R=d(m),k=d(p),z=q(v,10);function I(e){N.current&&g({x:e.clientX-N.current.left,y:e.clientY-N.current.top})}return n.useEffect(()=>{let e=e=>{let t=e.target;(null==E?void 0:E.contains(t))&&R(e,A)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[C,E,A,R]),n.useEffect(k,[o,k]),X(E,z),X(w.content,z),(0,i.jsx)(O,{scope:r,scrollbar:E,hasThumb:l,onThumbChange:d(u),onThumbPointerUp:d(c),onThumbPositionChange:k,onThumbPointerDown:d(f),children:(0,i.jsx)(a.div,{...y,ref:T,style:{position:"absolute",...y.style},onPointerDown:h(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),N.current=E.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),I(e))}),onPointerMove:h(e.onPointerMove,I),onPointerUp:h(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=L.current,w.viewport&&(w.viewport.style.scrollBehavior=""),N.current=null})})})}),P="ScrollAreaThumb",j=n.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=z(P,e.__scopeScrollArea);return(0,i.jsx)(c,{present:r||o.hasThumb,children:(0,i.jsx)(D,{ref:t,...n})})}),D=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...l}=e,u=b(P,r),c=z(P,r),{onThumbPositionChange:f}=c,d=s(t,e=>c.onThumbChange(e)),p=n.useRef(void 0),g=q(()=>{p.current&&(p.current(),p.current=void 0)},100);return n.useEffect(()=>{let e=u.viewport;if(e){let t=()=>{g(),p.current||(p.current=Y(e,f),f())};return f(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[u.viewport,g,f]),(0,i.jsx)(a.div,{"data-state":c.hasThumb?"visible":"hidden",...l,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:h(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;c.onThumbPointerDown({x:r,y:n})}),onPointerUp:h(e.onPointerUp,c.onThumbPointerUp)})});j.displayName=P;var M="ScrollAreaCorner",_=n.forwardRef((e,t)=>{let r=b(M,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,i.jsx)(B,{...e,ref:t}):null});_.displayName=M;var B=n.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,l=b(M,r),[s,u]=n.useState(0),[c,f]=n.useState(0),d=!!(s&&c);return X(l.scrollbarX,()=>{var e;let t=(null===(e=l.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;l.onCornerHeightChange(t),f(t)}),X(l.scrollbarY,()=>{var e;let t=(null===(e=l.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;l.onCornerWidthChange(t),u(t)}),d?(0,i.jsx)(a.div,{...o,ref:t,style:{width:s,height:c,position:"absolute",right:"ltr"===l.dir?0:void 0,left:"rtl"===l.dir?0:void 0,bottom:0,...e.style}}):null});function F(e){return e?parseInt(e,10):0}function U(e,t){let r=e/t;return isNaN(r)?0:r}function W(e){let t=U(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-r)*t,18)}function $(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=W(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,l=function(e,[t,r]){return Math.min(r,Math.max(t,e))}(e,"ltr"===r?[0,a]:[-1*a,0]);return H([0,a],[0,i-n])(l)}function H(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},r={left:e.scrollLeft,top:e.scrollTop},n=0;return!function o(){let i={left:e.scrollLeft,top:e.scrollTop},a=r.left!==i.left,l=r.top!==i.top;(a||l)&&t(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function q(e,t){let r=d(e),o=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),n.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function X(e,t){let r=d(t);u(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var G=w,V=x,K=_},6634:(e,t,r)=>{"use strict";r.d(t,{DX:()=>l,TL:()=>a,Dc:()=>u});var n=r(2115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var i=r(5155);function a(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(n.isValidElement(r)){var a;let e,l;let s=(a=r,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:o,...a}=e,l=n.Children.toArray(o),s=l.find(c);if(s){let e=s.props.children,o=l.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...a,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var l=a("Slot"),s=Symbol("radix.slottable");function u(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=s,t}function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}},7268:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(2115),o=r(7650),i=r(6634),a=r(5155),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?r:t,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),s=globalThis?.document?n.useLayoutEffect:()=>{},u=n.forwardRef((e,t)=>{var r,i;let{container:u,...c}=e,[f,d]=n.useState(!1);s(()=>d(!0),[]);let p=u||f&&(null===(i=globalThis)||void 0===i?void 0:null===(r=i.document)||void 0===r?void 0:r.body);return p?o.createPortal((0,a.jsx)(l.div,{...c,ref:t}),p):null});u.displayName="Portal"},8168:(e,t,r)=>{"use strict";r.d(t,{Eq:()=>c});var n=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},o=new WeakMap,i=new WeakMap,a={},l=0,s=function(e){return e&&(e.host||s(e.parentNode))},u=function(e,t,r,n){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=s(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[r]||(a[r]=new WeakMap);var c=a[r],f=[],d=new Set,p=new Set(u),h=function(e){!(!e||d.has(e))&&(d.add(e),h(e.parentNode))};u.forEach(h);var g=function(e){!(!e||p.has(e))&&Array.prototype.forEach.call(e.children,function(e){if(d.has(e))g(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,l=(o.get(e)||0)+1,s=(c.get(e)||0)+1;o.set(e,l),c.set(e,s),f.push(e),1===l&&a&&i.set(e,!0),1===s&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return g(t),d.clear(),l++,function(){f.forEach(function(e){var t=o.get(e)-1,a=c.get(e)-1;o.set(e,t),c.set(e,a),t||(i.has(e)||e.removeAttribute(n),i.delete(e)),a||e.removeAttribute(r)}),--l||(o=new WeakMap,o=new WeakMap,i=new WeakMap,a={})}},c=function(e,t,r){void 0===r&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=t||n(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),u(o,i,r,"aria-hidden")):function(){return null}}},8606:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=Object.defineProperty,o=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),a={get:(e,t)=>"function"==typeof e[t]?e[t].bind(e):t in e?e[t]:e.getItem(t),set:(e,t,r)=>e.setItem(t,r),deleteProperty:(e,t)=>e.removeItem(t)},l="readonly",s="readwrite",u="store",c=new class{constructor(e,t=!1){if(i(this,"storageName","vault-storage"),i(this,"db",null),this.storageName=e||this.storageName,!t)return new Proxy(this,a)}async setItem(e,t,r=null){return this.do(s,n=>n.put({key:e,value:t,meta:r}))}async getItem(e){return this.do(l,t=>t.get(e)).then(e=>{var t;return null!=(t=null==e?void 0:e.value)?t:null})}async removeItem(e){return this.do(s,t=>t.delete(e))}async clear(){return this.do(s,e=>e.clear())}async keys(){return this.do(l,e=>e.getAllKeys())}async length(){return this.do(l,e=>e.count())}async getItemMeta(e){return this.do(l,t=>t.get(e)).then(e=>{var t;return null!=(t=null==e?void 0:e.meta)?t:null})}async init(){return new Promise((e,t)=>{let r=indexedDB.open(this.storageName,1);r.onupgradeneeded=e=>{e.target.result.createObjectStore(u,{keyPath:"key"})},r.onsuccess=()=>{this.db=r.result,e()},r.onerror=e=>{t(e)}})}async do(e,t){this.db||await this.init();let r=t(this.db.transaction(u,e).objectStore(u));return new Promise((t,n)=>{r.onsuccess=()=>{t(e===l?r.result:void 0)},r.onerror=()=>{n(r.error)}})}}},9359:(e,t,r)=>{"use strict";r.d(t,{bm:()=>ed,UC:()=>eu,VY:()=>ef,hJ:()=>es,ZL:()=>el,bL:()=>ei,hE:()=>ec,l9:()=>ea});var n=r(2115),o=r.t(n,2);function i(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return n.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=a(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{},c=o[" useId ".trim().toString()]||(()=>void 0),f=0;function d(e){let[t,r]=n.useState(c());return u(()=>{e||r(e=>e??String(f++))},[e]),e||(t?`radix-${t}`:"")}var p=globalThis?.document?n.useLayoutEffect:()=>{},h=o[" useInsertionEffect ".trim().toString()]||p,g=(Symbol("RADIX:SYNC_STATE"),r(338)),m=r(3862),v=r(7268),y=globalThis?.document?n.useLayoutEffect:()=>{},b=e=>{let{present:t,children:r}=e,o=function(e){var t,r;let[o,i]=n.useState(),a=n.useRef(null),l=n.useRef(e),s=n.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return n.useEffect(()=>{let e=w(a.current);s.current="mounted"===u?e:"none"},[u]),y(()=>{let t=a.current,r=l.current;if(r!==e){let n=s.current,o=w(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):r&&n!==o?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),y(()=>{if(o){var e;let t;let r=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,n=e=>{let n=w(a.current).includes(e.animationName);if(e.target===o&&n&&(c("ANIMATION_END"),!l.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(s.current=w(a.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{r.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}c("ANIMATION_END")},[o,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:n.useCallback(e=>{a.current=e?getComputedStyle(e):null,i(e)},[])}}(t),i="function"==typeof r?r({present:o.isPresent}):n.Children.only(r),a=l(o.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?e.ref:(o=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?n.cloneElement(i,{ref:a}):null};function w(e){return(null==e?void 0:e.animationName)||"none"}b.displayName="Presence",r(7650);var E=r(6634),x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,E.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(o?r:t,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),S=r(2293),T=r(3795),N=r(8168),L="Dialog",[C,A]=function(e,t=[]){let r=[],o=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return o.scopeName=e,[function(t,o){let i=n.createContext(o),a=r.length;r=[...r,o];let l=t=>{let{scope:r,children:o,...l}=t,u=r?.[e]?.[a]||i,c=n.useMemo(()=>l,Object.values(l));return(0,s.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(r,l){let s=l?.[e]?.[a]||i,u=n.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(o,...t)]}(L),[R,k]=C(L),O=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=e,u=n.useRef(null),c=n.useRef(null),[f,p]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){let[i,a,l]=function({defaultProp:e,onChange:t}){let[r,o]=n.useState(e),i=n.useRef(r),a=n.useRef(t);return h(()=>{a.current=t},[t]),n.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:t,onChange:r}),s=void 0!==e,u=s?e:i;{let t=n.useRef(void 0!==e);n.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,o])}return[u,n.useCallback(t=>{if(s){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else a(t)},[s,e,a,l])]}({prop:o,defaultProp:null!=i&&i,onChange:a,caller:L});return(0,s.jsx)(R,{scope:t,triggerRef:u,contentRef:c,contentId:d(),titleId:d(),descriptionId:d(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:l,children:r})};O.displayName=L;var z="DialogTrigger",I=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=k(z,r),a=l(t,o.triggerRef);return(0,s.jsx)(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Q(o.open),...n,ref:a,onClick:i(e.onClick,o.onOpenToggle)})});I.displayName=z;var P="DialogPortal",[j,D]=C(P,{forceMount:void 0}),M=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:i}=e,a=k(P,t);return(0,s.jsx)(j,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,s.jsx)(b,{present:r||a.open,children:(0,s.jsx)(v.Z,{asChild:!0,container:i,children:e})}))})};M.displayName=P;var _="DialogOverlay",B=n.forwardRef((e,t)=>{let r=D(_,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=k(_,e.__scopeDialog);return i.modal?(0,s.jsx)(b,{present:n||i.open,children:(0,s.jsx)(U,{...o,ref:t})}):null});B.displayName=_;var F=(0,E.TL)("DialogOverlay.RemoveScroll"),U=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=k(_,r);return(0,s.jsx)(T.A,{as:F,allowPinchZoom:!0,shards:[o.contentRef],children:(0,s.jsx)(x.div,{"data-state":Q(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),W="DialogContent",$=n.forwardRef((e,t)=>{let r=D(W,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=k(W,e.__scopeDialog);return(0,s.jsx)(b,{present:n||i.open,children:i.modal?(0,s.jsx)(H,{...o,ref:t}):(0,s.jsx)(Y,{...o,ref:t})})});$.displayName=W;var H=n.forwardRef((e,t)=>{let r=k(W,e.__scopeDialog),o=n.useRef(null),a=l(t,r.contentRef,o);return n.useEffect(()=>{let e=o.current;if(e)return(0,N.Eq)(e)},[]),(0,s.jsx)(q,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:i(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=r.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:i(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:i(e.onFocusOutside,e=>e.preventDefault())})}),Y=n.forwardRef((e,t)=>{let r=k(W,e.__scopeDialog),o=n.useRef(!1),i=n.useRef(!1);return(0,s.jsx)(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,a;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current||null===(a=r.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var n,a;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let l=t.target;(null===(a=r.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),q=n.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...u}=e,c=k(W,r),f=n.useRef(null),d=l(t,f);return(0,S.Oh)(),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,s.jsx)(g.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Q(c.open),...u,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(en,{titleId:c.titleId}),(0,s.jsx)(eo,{contentRef:f,descriptionId:c.descriptionId})]})]})}),X="DialogTitle",G=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=k(X,r);return(0,s.jsx)(x.h2,{id:o.titleId,...n,ref:t})});G.displayName=X;var V="DialogDescription",K=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=k(V,r);return(0,s.jsx)(x.p,{id:o.descriptionId,...n,ref:t})});K.displayName=V;var Z="DialogClose",J=n.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=k(Z,r);return(0,s.jsx)(x.button,{type:"button",...n,ref:t,onClick:i(e.onClick,()=>o.onOpenChange(!1))})});function Q(e){return e?"open":"closed"}J.displayName=Z;var ee="DialogTitleWarning",[et,er]=function(e,t){let r=n.createContext(t),o=e=>{let{children:t,...o}=e,i=n.useMemo(()=>o,Object.values(o));return(0,s.jsx)(r.Provider,{value:i,children:t})};return o.displayName=e+"Provider",[o,function(o){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}(ee,{contentName:W,titleName:X,docsSlug:"dialog"}),en=e=>{let{titleId:t}=e,r=er(ee),o="`".concat(r.contentName,"` requires a `").concat(r.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(r.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(r.docsSlug);return n.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},eo=e=>{let{contentRef:t,descriptionId:r}=e,o=er("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return n.useEffect(()=>{var e;let n=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");r&&n&&!document.getElementById(r)&&console.warn(i)},[i,t,r]),null},ei=O,ea=I,el=M,es=B,eu=$,ec=G,ef=K,ed=J},9641:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=s(e),a=i[0],l=i[1],u=new o((a+l)*3/4-l),c=0,f=l>0?a-4:a;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,l=n-o;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(R(e,ArrayBuffer)||e&&R(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(e,SharedArrayBuffer)||e&&R(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||R(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(e).length;default:if(o)return n?-1:N(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){var o,i,a,l=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,a=1,l=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,l/=2,s/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=r;il&&(r=l-s),i=r;i>=0;i--){for(var f=!0,d=0;dr&&(e+=" ... "),""},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,o){if(R(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,s=Math.min(i,a),u=this.slice(n,o),c=e.slice(t,r),f=0;f239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&u)<<6|63&i)>127&&(c=s);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(s=(15&u)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],(192&i)==128&&(192&a)==128&&(192&l)==128&&(s=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(c=s)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,o,i){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,n,i){return t*=1,r>>>=0,i||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,i){return t*=1,r>>>=0,i||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,l,s,u,c,f,d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a>8,o.push(r%256),o.push(n);return o}(e,this.length-c),this,c,f);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;w(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);w(this,e,t,r,o-1,-o)}var i=r-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function L(e){for(var t=[],r=0;r=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function R(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var k=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},783:function(e,t){t.read=function(e,t,r,n,o){var i,a,l=8*o-n-1,s=(1<>1,c=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=l;c>0;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,l,s,u=8*i-o-1,c=(1<>1,d=5960464477539062e-23*(23===o),p=n?0:i-1,h=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(l=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+f>=1?t+=d/s:t+=d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=c?(l=0,a=c):a+f>=1?(l=(t*s-1)*Math.pow(2,o),a+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&l,p+=h,l/=256,o-=8);for(a=a<0;e[r+p]=255&a,p+=h,a/=256,u-=8);e[r+p-h]|=128*g}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//",e.exports=n(72)}()},9688:(e,t,r)=>{"use strict";r.d(t,{QP:()=>V});let n=e=>{let t=l(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),o(r,t)||a(e)},getConflictingClassGroupIds:(e,t)=>{let o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},o=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),i=n?o(e.slice(1),n):void 0;if(i)return i;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},i=/^\[(.+)\]$/,a=e=>{if(i.test(e)){let t=i.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},l=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return f(Object.entries(e.classGroups),r).forEach(([e,r])=>{s(r,n,e,t)}),n},s=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:u(t,e)).classGroupId=r;return}if("function"==typeof e){if(c(e)){s(e(n),t,r,n);return}t.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(([e,o])=>{s(o,u(t,e),r,n)})})},u=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},c=e=>e.isThemeGetter,f=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,d=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,o=(o,i)=>{r.set(o,i),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},p=e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length,a=e=>{let r;let a=[],l=0,s=0;for(let u=0;us?r-s:void 0}};return r?e=>r({className:e,parseClassName:a}):a},h=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},g=e=>({cache:d(e.cacheSize),parseClassName:p(e),...n(e)}),m=/\s+/,v=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(m),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{modifiers:s,hasImportantModifier:u,baseClassName:c,maybePostfixModifierPosition:f}=r(t),d=!!f,p=n(d?c.substring(0,f):c);if(!p){if(!d||!(p=n(c))){l=t+(l.length>0?" "+l:l);continue}d=!1}let g=h(s).join(":"),m=u?g+"!":g,v=m+p;if(i.includes(v))continue;i.push(v);let y=o(p,d);for(let e=0;e0?" "+l:l)}return l};function y(){let e,t,r=0,n="";for(;r{let t;if("string"==typeof e)return e;let r="";for(let n=0;n{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},E=/^\[(?:([a-z-]+):)?(.+)\]$/i,x=/^\d+\/\d+$/,S=new Set(["px","full","screen"]),T=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,N=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,L=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,A=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>O(e)||S.has(e)||x.test(e),k=e=>H(e,"length",Y),O=e=>!!e&&!Number.isNaN(Number(e)),z=e=>H(e,"number",O),I=e=>!!e&&Number.isInteger(Number(e)),P=e=>e.endsWith("%")&&O(e.slice(0,-1)),j=e=>E.test(e),D=e=>T.test(e),M=new Set(["length","size","percentage"]),_=e=>H(e,M,q),B=e=>H(e,"position",q),F=new Set(["image","url"]),U=e=>H(e,F,G),W=e=>H(e,"",X),$=()=>!0,H=(e,t,r)=>{let n=E.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},Y=e=>N.test(e)&&!L.test(e),q=()=>!1,X=e=>C.test(e),G=e=>A.test(e);Symbol.toStringTag;let V=function(e,...t){let r,n,o;let i=function(l){return n=(r=g(t.reduce((e,t)=>t(e),e()))).cache.get,o=r.cache.set,i=a,a(l)};function a(e){let t=n(e);if(t)return t;let i=v(e,r);return o(e,i),i}return function(){return i(y.apply(null,arguments))}}(()=>{let e=w("colors"),t=w("spacing"),r=w("blur"),n=w("brightness"),o=w("borderColor"),i=w("borderRadius"),a=w("borderSpacing"),l=w("borderWidth"),s=w("contrast"),u=w("grayscale"),c=w("hueRotate"),f=w("invert"),d=w("gap"),p=w("gradientColorStops"),h=w("gradientColorStopPositions"),g=w("inset"),m=w("margin"),v=w("opacity"),y=w("padding"),b=w("saturate"),E=w("scale"),x=w("sepia"),S=w("skew"),T=w("space"),N=w("translate"),L=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",j,t],M=()=>[j,t],F=()=>["",R,k],H=()=>["auto",O,j],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",j],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[O,j];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[R,k],blur:["none","",D,j],brightness:Z(),borderColor:[e],borderRadius:["none","","full",D,j],borderSpacing:M(),borderWidth:F(),contrast:Z(),grayscale:V(),hueRotate:Z(),invert:V(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[P,k],inset:A(),margin:A(),opacity:Z(),padding:M(),saturate:Z(),scale:Z(),sepia:V(),skew:Z(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",j]}],container:["container"],columns:[{columns:[D]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),j]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",I,j]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",j]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",I,j]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",I,j]},j]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[I,j]},j]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",j]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",j]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",j,t]}],"min-w":[{"min-w":[j,t,"min","max","fit"]}],"max-w":[{"max-w":[j,t,"none","full","min","max","fit","prose",{screen:[D]},D]}],h:[{h:[j,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[j,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[j,t,"auto","min","max","fit"]}],"font-size":[{text:["base",D,k]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",z]}],"font-family":[{font:[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",j]}],"line-clamp":[{"line-clamp":["none",O,z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,j]}],"list-image":[{"list-image":["none",j]}],"list-style-type":[{list:["none","disc","decimal",j]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,k]}],"underline-offset":[{"underline-offset":["auto",R,j]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),B]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},U]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:q()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[R,j]}],"outline-w":[{outline:[R,k]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[R,k]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",D,W]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",D,j]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",j]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",j]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",j]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[I,j]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",j]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",j]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",j]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[R,k,z]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},9946:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(2115);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var a={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"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:u="",children:c,iconNode:f,...d}=e;return(0,n.createElement)("svg",{ref:t,...a,width:o,height:o,stroke:r,strokeWidth:s?24*Number(l)/Number(o):l,className:i("lucide",u),...d},[...f.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,a)=>{let{className:s,...u}=r;return(0,n.createElement)(l,{ref:a,iconNode:t,className:i("lucide-".concat(o(e)),s),...u})});return r.displayName="".concat(e),r}}}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/app/_not-found/page-b63df5a8d3225455.js b/_backend/frontend/_next/static/chunks/app/_not-found/page-b63df5a8d3225455.js new file mode 100644 index 0000000000000000000000000000000000000000..8bf5f40747adfa7233af581ca9ce8acad6f5e226 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/app/_not-found/page-b63df5a8d3225455.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{3632:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let l=r(5155),n=r(6395);function o(){return(0,l.jsx)(n.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3868:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return r(3632)}])},6395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTTPAccessErrorFallback",{enumerable:!0,get:function(){return o}}),r(8229);let l=r(5155);r(2115);let n={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function o(e){let{status:t,message:r}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t+": "+r}),(0,l.jsx)("div",{style:n.error,children:(0,l.jsxs)("div",{children:[(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,l.jsx)("h1",{className:"next-error-h1",style:n.h1,children:t}),(0,l.jsx)("div",{style:n.desc,children:(0,l.jsx)("h2",{style:n.h2,children:r})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[441,684,358],()=>t(3868)),_N_E=e.O()}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/app/layout-6da5960c930aa43b.js b/_backend/frontend/_next/static/chunks/app/layout-6da5960c930aa43b.js new file mode 100644 index 0000000000000000000000000000000000000000..9907969950df65eb5ba8961f7f7a4b7b1d2cda47 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/app/layout-6da5960c930aa43b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{347:()=>{},2523:(e,a,t)=>{"use strict";t.d(a,{p:()=>n});var r=t(5155),s=t(2115),i=t(9434);let n=s.forwardRef((e,a)=>{let{className:t,type:s,...n}=e;return(0,r.jsx)("input",{type:s,className:(0,i.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:a,...n})});n.displayName="Input"},2558:(e,a,t)=>{"use strict";t.d(a,{Toaster:()=>h});var r=t(5155),s=t(7481),i=t(2115),n=t(1114),d=t(2085),o=t(4416),l=t(9434);let c=n.Kq,u=i.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)(n.LM,{ref:a,className:(0,l.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...s})});u.displayName=n.LM.displayName;let m=(0,d.F)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),f=i.forwardRef((e,a)=>{let{className:t,variant:s,...i}=e;return(0,r.jsx)(n.bL,{ref:a,className:(0,l.cn)(m({variant:s}),t),...i})});f.displayName=n.bL.displayName,i.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)(n.rc,{ref:a,className:(0,l.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...s})}).displayName=n.rc.displayName;let p=i.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)(n.bm,{ref:a,className:(0,l.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...s,children:(0,r.jsx)(o.A,{className:"h-4 w-4"})})});p.displayName=n.bm.displayName;let x=i.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)(n.hE,{ref:a,className:(0,l.cn)("text-sm font-semibold",t),...s})});x.displayName=n.hE.displayName;let b=i.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)(n.VY,{ref:a,className:(0,l.cn)("text-sm opacity-90",t),...s})});function h(){let{toasts:e}=(0,s.dj)();return(0,r.jsxs)(c,{children:[e.map(function(e){let{id:a,title:t,description:s,action:i,...n}=e;return(0,r.jsxs)(f,{...n,children:[(0,r.jsxs)("div",{className:"grid gap-1",children:[t&&(0,r.jsx)(x,{children:t}),s&&(0,r.jsx)(b,{children:s})]}),i,(0,r.jsx)(p,{})]},a)}),(0,r.jsx)(u,{})]})}b.displayName=n.VY.displayName},2668:(e,a,t)=>{"use strict";t.d(a,{default:()=>M});var r=t(5155),s=t(2115),i=t(4616),n=t(5543),d=t(1497),o=t(5657),l=t(3276),c=t(514),u=t(5623),m=t(6287),f=t(4126),p=t(4165),x=t(285),b=t(2523);function h(e){let{chatId:a,initialTitle:t,onRename:i,isOpen:n,onClose:d}=e,[o,l]=(0,s.useState)(t);return(0,r.jsx)(p.lG,{open:n,onOpenChange:d,children:(0,r.jsxs)(p.Cf,{children:[(0,r.jsxs)(p.c7,{children:[(0,r.jsx)(p.L3,{children:"Rename Chat"}),(0,r.jsx)(p.rr,{children:"Change the title of this chat conversation"})]}),(0,r.jsx)("div",{className:"flex gap-2",children:(0,r.jsx)(b.p,{value:o,onChange:e=>l(e.target.value),placeholder:"New chat name"})}),(0,r.jsxs)(p.Es,{children:[(0,r.jsx)(x.$,{variant:"outline",onClick:d,children:"Cancel"}),(0,r.jsx)(x.$,{onClick:()=>{i&&o.trim()&&i(a,o).then(e=>{e&&d()})},children:"Save"})]})]})})}function g(e){let{chatId:a,onDelete:t,isOpen:s,onClose:i}=e;return(0,r.jsx)(p.lG,{open:s,onOpenChange:i,children:(0,r.jsxs)(p.Cf,{children:[(0,r.jsxs)(p.c7,{children:[(0,r.jsx)(p.L3,{children:"Delete Chat"}),(0,r.jsx)(p.rr,{children:"Are you sure you want to delete this chat? This action cannot be undone."})]}),(0,r.jsxs)(p.Es,{children:[(0,r.jsx)(x.$,{variant:"outline",onClick:i,children:"Cancel"}),(0,r.jsx)(x.$,{variant:"destructive",onClick:()=>{t&&t(a).then(e=>{e&&i()})},children:"Delete"})]})]})})}var v=t(7711),w=t(3052),j=t(5196),N=t(9428),y=t(9434);let k=v.bL,C=v.l9;v.YJ,v.ZL,v.Pb,v.z6,s.forwardRef((e,a)=>{let{className:t,inset:s,children:i,...n}=e;return(0,r.jsxs)(v.ZP,{ref:a,className:(0,y.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s&&"pl-8",t),...n,children:[i,(0,r.jsx)(w.A,{className:"ml-auto"})]})}).displayName=v.ZP.displayName,s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)(v.G5,{ref:a,className:(0,y.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...s})}).displayName=v.G5.displayName;let S=s.forwardRef((e,a)=>{let{className:t,sideOffset:s=4,...i}=e;return(0,r.jsx)(v.ZL,{children:(0,r.jsx)(v.UC,{ref:a,sideOffset:s,className:(0,y.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})})});S.displayName=v.UC.displayName;let R=s.forwardRef((e,a)=>{let{className:t,inset:s,...i}=e;return(0,r.jsx)(v.q7,{ref:a,className:(0,y.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s&&"pl-8",t),...i})});R.displayName=v.q7.displayName,s.forwardRef((e,a)=>{let{className:t,children:s,checked:i,...n}=e;return(0,r.jsxs)(v.H_,{ref:a,className:(0,y.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:i,...n,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(v.VF,{children:(0,r.jsx)(j.A,{className:"h-4 w-4"})})}),s]})}).displayName=v.H_.displayName,s.forwardRef((e,a)=>{let{className:t,children:s,...i}=e;return(0,r.jsxs)(v.hN,{ref:a,className:(0,y.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...i,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(v.VF,{children:(0,r.jsx)(N.A,{className:"h-2 w-2 fill-current"})})}),s]})}).displayName=v.hN.displayName,s.forwardRef((e,a)=>{let{className:t,inset:s,...i}=e;return(0,r.jsx)(v.JU,{ref:a,className:(0,y.cn)("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",t),...i})}).displayName=v.JU.displayName,s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)(v.wv,{ref:a,className:(0,y.cn)("-mx-1 my-1 h-px bg-muted",t),...s})}).displayName=v.wv.displayName;let z=e=>{let{chat:a,onClick:t,isSelected:i,onDelete:n,onRename:o}=e,[c,p]=(0,s.useState)(!1),[x,b]=(0,s.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.FX,{children:[(0,r.jsx)(l.Uj,{onClick:()=>t(a.id),className:"group relative rounded-lg transition-all duration-200 hover:bg-accent/50 ".concat(i?"bg-gradient-to-r from-primary/10 to-primary/5 border border-primary/20 text-primary":"hover:bg-muted/50"),children:(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[(0,r.jsx)(d.A,{className:"h-4 w-4 flex-shrink-0 ".concat(i?"text-primary":"text-muted-foreground")}),(0,r.jsx)("span",{className:"text-sm truncate font-medium",children:a.title})]})}),(0,r.jsxs)(k,{children:[(0,r.jsx)(C,{asChild:!0,children:(0,r.jsx)(l.e7,{showOnHover:!0,className:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 hover:bg-accent rounded-md",children:(0,r.jsx)(u.A,{className:"h-4 w-4"})})}),(0,r.jsxs)(S,{side:"right",align:"start",className:"w-48",children:[(0,r.jsxs)(R,{onClick:()=>p(!0),className:"cursor-pointer",children:[(0,r.jsx)(m.A,{className:"mr-2 h-4 w-4"}),(0,r.jsx)("span",{children:"Rename"})]}),(0,r.jsxs)(R,{onClick:()=>b(!0),className:"cursor-pointer text-destructive focus:text-destructive",children:[(0,r.jsx)(f.A,{className:"mr-2 h-4 w-4"}),(0,r.jsx)("span",{children:"Delete Conversation"})]})]})]})]}),(0,r.jsx)(h,{chatId:a.id,initialTitle:a.title,onRename:o,isOpen:c,onClose:()=>p(!1)}),(0,r.jsx)(g,{chatId:a.id,onDelete:n,isOpen:x,onClose:()=>b(!1)})]})};var _=t(5533),L=t(1927),A=t(4186),E=t(6424);let F=e=>{let{open:a,onOpenChange:t}=e,[i,o]=(0,s.useState)(""),[l,u]=(0,s.useState)([]),{loadChat:m}=(0,L.L)();(0,s.useEffect)(()=>{let e=async()=>{try{let e=await (0,c.rr)();u(e.reverse())}catch(e){console.error("Failed to load chats:",e)}};a&&e()},[a]);let f=l.filter(e=>e.title.toLowerCase().includes(i.toLowerCase())),h=e=>{m(e),t(!1),o("")},g=e=>{let a=new Date(e),t=Math.ceil(Math.abs(new Date().getTime()-a.getTime())/864e5);return 1===t?"Today":2===t?"Yesterday":t<=7?"".concat(t-1," days ago"):a.toLocaleDateString()};return(0,r.jsx)(p.lG,{open:a,onOpenChange:t,children:(0,r.jsxs)(p.Cf,{className:"sm:max-w-[500px] p-0",children:[(0,r.jsx)(p.c7,{className:"px-6 pt-6 pb-4",children:(0,r.jsx)(p.L3,{className:"text-lg font-semibold",children:"Search Chats"})}),(0,r.jsx)("div",{className:"px-6 pb-4",children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(n.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,r.jsx)(b.p,{placeholder:"Search your conversations...",value:i,onChange:e=>o(e.target.value),className:"pl-10 h-11 bg-muted/50 border-border/50 rounded-lg focus:bg-background",autoFocus:!0})]})}),(0,r.jsx)(E.F,{className:"max-h-[400px] px-6 pb-6",children:f.length>0?(0,r.jsx)("div",{className:"space-y-1",children:f.map(e=>(0,r.jsx)(x.$,{variant:"ghost",className:"w-full justify-start h-auto p-3 hover:bg-accent/50 rounded-lg",onClick:()=>h(e.id),children:(0,r.jsxs)("div",{className:"flex items-start gap-3 w-full",children:[(0,r.jsx)("div",{className:"w-8 h-8 bg-gradient-to-br from-primary/20 to-primary/10 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,r.jsx)(d.A,{className:"h-4 w-4 text-primary"})}),(0,r.jsxs)("div",{className:"flex-1 text-left min-w-0",children:[(0,r.jsx)("p",{className:"font-medium text-sm truncate",children:e.title}),(0,r.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,r.jsx)(A.A,{className:"h-3 w-3 text-muted-foreground"}),(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:g(e.date)})]})]})]})},e.id))}):(0,r.jsxs)("div",{className:"text-center py-8",children:[(0,r.jsx)(n.A,{className:"h-8 w-8 text-muted-foreground/50 mx-auto mb-3"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:i?"No chats found":"Start typing to search your conversations"})]})})]})})},M=()=>{let[e,a]=(0,s.useState)([]),[t,u]=(0,s.useState)(!1),{loadChat:m,selectedChatId:f,updateChatName:p,deleteChat:x}=(0,L.L)(),{state:b}=(0,l.cL)(),h="collapsed"===b,g=(0,s.useCallback)(async()=>{try{let e=await (0,c.rr)();a(e.reverse())}catch(e){console.error("Failed to load chats:",e)}},[]),v=async e=>{try{if(!await x(e))return!1;return a(a=>a.filter(a=>a.id!==e)),!0}catch(e){return console.error("Failed to delete chat:",e),!1}},w=async(e,t)=>{try{return await p(e,t),a(a=>a.map(a=>a.id===e?{...a,title:t}:a)),!0}catch(e){return console.error("Failed to rename chat:",e),!1}};(0,s.useEffect)(()=>(g(),_.tO.on(_.RC,g),()=>{_.tO.off(_.RC,g)}),[g]);let j=async()=>{try{let e=await (0,c.RL)("New Chat",[]);m(e.id),a(a=>[e,...a])}catch(e){console.error("Failed to create new chat:",e)}},N=[{icon:i.A,label:"New chat",action:j},{icon:n.A,label:"Search chats",action:()=>u(!0)}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Bx,{className:"border-r border-border/50 bg-gradient-to-b from-card/50 to-background",collapsible:"icon",children:[(0,r.jsx)(l.Gh,{className:(0,y.cn)("border-b border-border/50 bg-background/95 backdrop-blur",h&&"px-2"),children:!h&&(0,r.jsx)("div",{className:"p-4 flex items-center justify-between",children:(0,r.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,r.jsx)("h1",{className:"font-semibold text-lg bg-gradient-to-r from-foreground to-foreground/70 bg-clip-text text-transparent truncate",children:"Transcriptinator 6000"})})})}),(0,r.jsx)(l.Yv,{className:"flex-1 overflow-x-clip custom-scrollbar",children:(0,r.jsxs)(l.Cn,{children:[(0,r.jsx)(l.wZ,{className:(0,y.cn)("px-2 py-2",h&&"space-y-1"),children:N.map((e,a)=>(0,r.jsx)(l.FX,{children:(0,r.jsxs)(l.Uj,{onClick:e.action,tooltip:h?e.label:void 0,className:(0,y.cn)("transition-all duration-200 hover:bg-accent/50 rounded-lg h-10",h?"justify-center w-10":"justify-start","New chat"===e.label&&"bg-primary/10 hover:bg-primary/20 text-primary border border-primary/20"),children:[(0,r.jsx)(e.icon,{className:"h-4 w-4"}),!h&&(0,r.jsx)("span",{className:"text-sm font-medium",children:e.label})]})},a))}),!h&&(0,r.jsx)(l.jj,{className:"px-4 text-xs font-medium text-muted-foreground/80 mt-4 mb-2",children:"Recent Chats"}),(0,r.jsx)(l.rQ,{children:(0,r.jsx)(l.wZ,{className:"px-2",children:h?e.slice(0,8).map(e=>(0,r.jsx)(l.FX,{children:(0,r.jsx)(l.Uj,{onClick:()=>m(e.id),tooltip:e.title,className:(0,y.cn)("justify-center w-10 h-10 rounded-lg transition-all duration-200",f===e.id?"bg-primary/20 border border-primary/30 text-primary":"hover:bg-accent/50"),children:(0,r.jsx)(o.A,{className:(0,y.cn)("h-4 w-4",f===e.id?"text-primary":"text-muted-foreground")})})},e.id)):e.length>0?e.map(e=>(0,r.jsx)(z,{chat:e,isSelected:f===e.id,onClick:m,onDelete:v,onRename:w},e.id)):(0,r.jsxs)("div",{className:"px-4 py-8 text-center",children:[(0,r.jsx)(d.A,{className:"h-8 w-8 text-muted-foreground/50 mx-auto mb-3"}),(0,r.jsx)("p",{className:"text-sm text-muted-foreground",children:"No conversations yet"}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground/60 mt-1",children:"Create your first chat to get started"})]})})})]})})]}),(0,r.jsx)(F,{open:t,onOpenChange:u})]})}},3276:(e,a,t)=>{"use strict";t.d(a,{Bx:()=>y,Yv:()=>R,Cn:()=>z,rQ:()=>L,jj:()=>_,Gh:()=>S,SidebarInset:()=>C,wZ:()=>A,e7:()=>D,Uj:()=>M,FX:()=>E,SidebarProvider:()=>N,x2:()=>k,cL:()=>j});var r=t(5155),s=t(2115),i=t(6634),n=t(2085),d=t(2432),o=t(9434),l=t(285),c=t(2523),u=t(4050);let m=s.forwardRef((e,a)=>{let{className:t,orientation:s="horizontal",decorative:i=!0,...n}=e;return(0,r.jsx)(u.b,{ref:a,decorative:i,orientation:s,className:(0,o.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",t),...n})});m.displayName=u.b.displayName;var f=t(8382);function p(e){let{className:a,...t}=e;return(0,r.jsx)("div",{className:(0,o.cn)("animate-pulse rounded-md bg-muted",a),...t})}var x=t(3423);let b=x.Kq,h=x.bL,g=x.l9,v=s.forwardRef((e,a)=>{let{className:t,sideOffset:s=4,...i}=e;return(0,r.jsx)(x.UC,{ref:a,sideOffset:s,className:(0,o.cn)("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})});v.displayName=x.UC.displayName;let w=s.createContext(null);function j(){let e=s.useContext(w);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}let N=s.forwardRef((e,a)=>{let{defaultOpen:t=!0,open:i,onOpenChange:n,className:d,style:l,children:c,...u}=e,m=function(){let[e,a]=s.useState(void 0);return s.useEffect(()=>{let e=window.matchMedia("(max-width: ".concat(767,"px)")),t=()=>{a(window.innerWidth<768)};return e.addEventListener("change",t),a(window.innerWidth<768),()=>e.removeEventListener("change",t)},[]),!!e}(),[f,p]=s.useState(!1),[x,h]=s.useState(t),g=null!=i?i:x,v=s.useCallback(e=>{let a="function"==typeof e?e(g):e;n?n(a):h(a),document.cookie="".concat("sidebar:state","=").concat(a,"; path=/; max-age=").concat(604800)},[n,g]),j=s.useCallback(()=>m?p(e=>!e):v(e=>!e),[m,v,p]);s.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),j())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[j]);let N=g?"expanded":"collapsed",y=s.useMemo(()=>({state:N,open:g,setOpen:v,isMobile:m,openMobile:f,setOpenMobile:p,toggleSidebar:j}),[N,g,v,m,f,p,j]);return(0,r.jsx)(w.Provider,{value:y,children:(0,r.jsx)(b,{delayDuration:0,children:(0,r.jsx)("div",{style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...l},className:(0,o.cn)("relative flex w-full min-w-0 flex-col px-0",d),ref:a,...u,children:c})})})});N.displayName="SidebarProvider";let y=s.forwardRef((e,a)=>{let{side:t="left",variant:s="sidebar",collapsible:i="offcanvas",className:n,children:d,...l}=e,{isMobile:c,state:u,openMobile:m,setOpenMobile:p}=j();return"none"===i?(0,r.jsx)("div",{className:(0,o.cn)("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:a,...l,children:d}):c?(0,r.jsx)(f.cj,{open:m,onOpenChange:p,...l,children:(0,r.jsx)(f.h,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:t,children:(0,r.jsx)("div",{className:"flex h-full w-full flex-col",children:d})})}):(0,r.jsxs)("div",{ref:a,className:"group peer hidden md:block text-sidebar-foreground","data-state":u,"data-collapsible":"collapsed"===u?i:"","data-variant":s,"data-side":t,children:[(0,r.jsx)("div",{className:(0,o.cn)("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===s||"inset"===s?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,r.jsx)("div",{className:(0,o.cn)("duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex","left"===t?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===s||"inset"===s?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...l,children:(0,r.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:d})})]})});y.displayName="Sidebar";let k=s.forwardRef((e,a)=>{let{className:t,onClick:s,...i}=e,{toggleSidebar:n}=j();return(0,r.jsxs)(l.$,{ref:a,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:(0,o.cn)("h-7 w-7",t),onClick:e=>{null==s||s(e),n()},...i,children:[(0,r.jsx)(d.A,{}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});k.displayName="SidebarTrigger",s.forwardRef((e,a)=>{let{className:t,...s}=e,{toggleSidebar:i}=j();return(0,r.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:(0,o.cn)("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...s})}).displayName="SidebarRail";let C=s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)("main",{ref:a,className:(0,o.cn)("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",t),...s})});C.displayName="SidebarInset",s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)(c.p,{ref:a,"data-sidebar":"input",className:(0,o.cn)("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",t),...s})}).displayName="SidebarInput";let S=s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:a,"data-sidebar":"header",className:(0,o.cn)("flex flex-col gap-2 p-2",t),...s})});S.displayName="SidebarHeader",s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:a,"data-sidebar":"footer",className:(0,o.cn)("flex flex-col gap-2 p-2",t),...s})}).displayName="SidebarFooter",s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)(m,{ref:a,"data-sidebar":"separator",className:(0,o.cn)("mx-2 w-auto bg-sidebar-border",t),...s})}).displayName="SidebarSeparator";let R=s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:a,"data-sidebar":"content",className:(0,o.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t),...s})});R.displayName="SidebarContent";let z=s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:a,"data-sidebar":"group",className:(0,o.cn)("relative flex w-full min-w-0 flex-col p-2 px-0",t),...s})});z.displayName="SidebarGroup";let _=s.forwardRef((e,a)=>{let{className:t,asChild:s=!1,...n}=e,d=s?i.DX:"div";return(0,r.jsx)(d,{ref:a,"data-sidebar":"group-label",className:(0,o.cn)("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t),...n})});_.displayName="SidebarGroupLabel",s.forwardRef((e,a)=>{let{className:t,asChild:s=!1,...n}=e,d=s?i.DX:"button";return(0,r.jsx)(d,{ref:a,"data-sidebar":"group-action",className:(0,o.cn)("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t),...n})}).displayName="SidebarGroupAction";let L=s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:a,"data-sidebar":"group-content",className:(0,o.cn)("w-full text-sm",t),...s})});L.displayName="SidebarGroupContent";let A=s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)("ul",{ref:a,"data-sidebar":"menu",className:(0,o.cn)("flex w-full min-w-0 flex-col gap-1",t),...s})});A.displayName="SidebarMenu";let E=s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:(0,o.cn)("group/menu-item relative",t),...s})});E.displayName="SidebarMenuItem";let F=(0,n.F)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),M=s.forwardRef((e,a)=>{let{asChild:t=!1,isActive:s=!1,variant:n="default",size:d="default",tooltip:l,className:c,...u}=e,m=t?i.DX:"button",{isMobile:f,state:p}=j(),x=(0,r.jsx)(m,{ref:a,"data-sidebar":"menu-button","data-size":d,"data-active":s,className:(0,o.cn)(F({variant:n,size:d}),c),...u});return l?("string"==typeof l&&(l={children:l}),(0,r.jsxs)(h,{children:[(0,r.jsx)(g,{asChild:!0,children:x}),(0,r.jsx)(v,{side:"right",align:"center",hidden:"collapsed"!==p||f,...l})]})):x});M.displayName="SidebarMenuButton";let D=s.forwardRef((e,a)=>{let{className:t,asChild:s=!1,showOnHover:n=!1,...d}=e,l=s?i.DX:"button";return(0,r.jsx)(l,{ref:a,"data-sidebar":"menu-action",className:(0,o.cn)("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",t),...d})});D.displayName="SidebarMenuAction",s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:(0,o.cn)("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t),...s})}).displayName="SidebarMenuBadge",s.forwardRef((e,a)=>{let{className:t,showIcon:i=!1,...n}=e,d=s.useMemo(()=>"".concat(Math.floor(40*Math.random())+50,"%"),[]);return(0,r.jsxs)("div",{ref:a,"data-sidebar":"menu-skeleton",className:(0,o.cn)("rounded-md h-8 flex gap-2 px-2 items-center",t),...n,children:[i&&(0,r.jsx)(p,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,r.jsx)(p,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":d}})]})}).displayName="SidebarMenuSkeleton",s.forwardRef((e,a)=>{let{className:t,...s}=e;return(0,r.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:(0,o.cn)("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t),...s})}).displayName="SidebarMenuSub",s.forwardRef((e,a)=>{let{...t}=e;return(0,r.jsx)("li",{ref:a,...t})}).displayName="SidebarMenuSubItem",s.forwardRef((e,a)=>{let{asChild:t=!1,size:s="md",isActive:n,className:d,...l}=e,c=t?i.DX:"a";return(0,r.jsx)(c,{ref:a,"data-sidebar":"menu-sub-button","data-size":s,"data-active":n,className:(0,o.cn)("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground","sm"===s&&"text-xs","md"===s&&"text-sm","group-data-[collapsible=icon]:hidden",d),...l})}).displayName="SidebarMenuSubButton"},5808:(e,a,t)=>{"use strict";t.d(a,{default:()=>l});var r=t(5155),s=t(3276),i=t(3560),n=t(1927),d=t(285),o=t(2115);let l=()=>{let{selectedChat:e,downloadChat:a}=(0,n.L)(),[t,l]=(0,o.useState)(!1),c=(null==e?void 0:e.title)||"New Chat",u=async()=>{if(e){l(!0);try{await a()}catch(e){console.error("Download failed:",e)}finally{l(!1)}}};return(0,r.jsxs)("div",{className:"flex items-center justify-between h-14 px-4 border-b border-border/50 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(s.x2,{className:"h-8 w-8 hover:bg-accent/50 transition-colors rounded-md"}),(0,r.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,r.jsx)("div",{className:"flex items-center gap-1.5 min-w-0",children:(0,r.jsx)("h1",{className:"font-semibold text-base truncate max-w-[200px] sm:max-w-[400px]",children:c})})})]}),(null==e?void 0:e.id)&&(0,r.jsx)("div",{className:"flex items-center gap-2",children:(0,r.jsxs)(d.$,{variant:"ghost",size:"default",className:"h-8 hover:bg-accent/50",onClick:u,disabled:t,children:[(0,r.jsx)(i.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"hidden sm:inline-block ml-1",children:t?"Exporting...":"Export Chat"})]})})]})}},6254:(e,a,t)=>{Promise.resolve().then(t.t.bind(t,8062,23)),Promise.resolve().then(t.t.bind(t,347,23)),Promise.resolve().then(t.bind(t,2668)),Promise.resolve().then(t.bind(t,5808)),Promise.resolve().then(t.bind(t,3276)),Promise.resolve().then(t.bind(t,2558)),Promise.resolve().then(t.bind(t,6543))},6543:(e,a,t)=>{"use strict";t.d(a,{ThemeProvider:()=>i});var r=t(5155);t(2115);var s=t(1362);function i(e){let{children:a,...t}=e;return(0,r.jsx)(s.N,{...t,children:a})}}},e=>{var a=a=>e(e.s=a);e.O(0,[496,489,822,775,527,441,684,358],()=>a(6254)),_N_E=e.O()}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/app/page-0be14d953b17f4f9.js b/_backend/frontend/_next/static/chunks/app/page-0be14d953b17f4f9.js new file mode 100644 index 0000000000000000000000000000000000000000..8908dc7c6b2babb7d07acb8670919dd6d0e4fbf5 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/app/page-0be14d953b17f4f9.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{4836:(e,s,t)=>{Promise.resolve().then(t.bind(t,9304))},9304:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>I});var a=t(5155),r=t(2115),l=t(9434);let n=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("textarea",{className:(0,l.cn)("flex min-h-[32px] max-h-[150px] w-full rounded-md bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 resize-none",t),ref:s,...r})});n.displayName="Textarea";var i=t(3311),o=t(1154),c=t(2486),m=t(285),d=t(1927);async function u(e,s){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;s="/api/v1"+s;let l={method:e,headers:{"Content-Type":"application/json",Authorization:r?"Bearer ".concat(r):"",...a}};return t instanceof FormData&&delete l.headers["Content-Type"],null!==t&&(l.body=t instanceof FormData?t:JSON.stringify(t)),fetch(s,l)}function x(e,s,t,a){return u("POST",e,s,t,a)}async function h(e,s){return x("/chat",{chat_history:e.map(e=>(function(e){let{content:s,role:t}=e;return{content:s,role:t}})(e)),message:s.content})}async function p(e){let s=await x("/transcript",{file_name:e});if(!s.ok||!s.body)return null;let t=await s.json();return t||null}async function f(e,s){let t=await x("/generate_name",{user_query:e,assistant_response:s});if(!t.ok||!t.body)return null;let a=await t.json();return a||null}var g=t(7481);let b=(e,s,t)=>{let[a,l]=(0,r.useState)(!1),{toast:n}=(0,g.dj)(),{sendMessage:i,removeMessage:o,loadChat:c,updateChatName:m}=(0,d.L)(),u=(0,r.useCallback)(async r=>{let d=r.trim();if(!d||a||!s||!e)return;l(!0);let u="";try{let e={content:d,transcripts:[],role:"user",timestamp:new Date,id:crypto.randomUUID()};u=await i(e);let a=await c(s),r=await h(a.messages,e);if(!(null==r?void 0:r.ok))throw Error("Failed to send message");let l=await r.json(),n={content:l.response,transcripts:l.timestamps,role:"assistant",timestamp:new Date,id:crypto.randomUUID()};await i(n),t();let o=(await c(s)).messages.length;if(3===o){let t=await f(e.content,n.content);t&&m(s,t)}}catch(e){console.error("Error in chat submission:",e),o(u),n({title:"Error",description:"Failed to send message. Please try again.",variant:"destructive"})}finally{l(!1)}},[a,s,e,i,c,m,o,t,n]);return{isLoading:a,handleSubmit:u}},v=r.memo(e=>{let{selectedChat:s,selectedChatId:t,scrollToBottom:l}=e,{isLoading:d,handleSubmit:u}=b(s,t,l),[x,h]=(0,r.useState)(""),p=(0,r.useRef)(null),f=(0,r.useCallback)(()=>{let e=p.current;if(e){e.style.height="auto";let s=Math.min(e.scrollHeight,120);e.style.height="".concat(s,"px")}},[]);(0,r.useEffect)(()=>{f()},[x,f]);let g=(0,r.useCallback)(async e=>{e.preventDefault(),x.trim()&&(await u(x),h(""),setTimeout(()=>f(),0))},[u,x,f]),v=(0,r.useCallback)(async e=>{"Enter"===e.key&&!e.shiftKey&&(e.preventDefault(),x.trim()&&(await u(x),h(""),setTimeout(()=>f(),0)))},[u,x,f]);return(0,r.useEffect)(()=>{let e=e=>{var s,t;"/"===e.key&&(null===(s=document.activeElement)||void 0===s?void 0:s.tagName)!=="TEXTAREA"&&(e.preventDefault(),null===(t=p.current)||void 0===t||t.focus())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,a.jsxs)("div",{className:"p-2 max-w-4xl mx-auto w-full",children:[(0,a.jsxs)("form",{onSubmit:g,className:"flex items-end gap-2 sm:gap-3 bg-gradient-to-r from-background to-muted/20 border border-border/50 rounded-xl sm:rounded-2xl p-2 sm:p-3 shadow-lg backdrop-blur-sm",children:[(0,a.jsxs)("div",{className:"flex-1 relative min-w-0",children:[(0,a.jsx)(n,{ref:p,value:x,onChange:e=>h(e.target.value),onKeyDown:v,placeholder:"Ask about your transcripts...",className:"resize-none border-none bg-transparent focus:ring-0 focus:outline-none overflow-y-auto placeholder:text-muted-foreground/60 text-sm sm:text-base",style:{minHeight:"36px",maxHeight:"120px"},disabled:d,"aria-label":"Message input"}),!x&&(0,a.jsx)("div",{className:"absolute top-2 sm:top-3 right-2 sm:right-3 text-muted-foreground/40 pointer-events-none",children:(0,a.jsx)(i.A,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})})]}),(0,a.jsx)(m.$,{type:"submit",size:"icon",className:"h-9 w-9 sm:h-10 sm:w-10 rounded-lg sm:rounded-xl bg-gradient-to-r from-primary to-primary/80 hover:from-primary/90 hover:to-primary/70 transition-all duration-200 shadow-md hover:shadow-lg hover:scale-105 flex-shrink-0",disabled:d||null===t||!x.trim(),"aria-label":"Send message",children:d?(0,a.jsx)(o.A,{className:"h-4 w-4 animate-spin"}):(0,a.jsx)(c.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"text-center mt-2 hidden sm:block",children:(0,a.jsx)("p",{className:"text-xs text-muted-foreground/60",children:"Answers are generated by AI and may not be accurate. Use at your own discretion."})})]})});var y=t(4165);let w=r.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)("textarea",{className:(0,l.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:s,...r})});function j(e){let{open:s=!1,onOpenChange:t,message:l,prevMessage:n}=e,[i,o]=(0,r.useState)({relevance:0,accuracy:0,clarity:0,engagement:0}),c=[{name:"Relevance",value:i.relevance},{name:"Accuracy",value:i.accuracy},{name:"Clarity",value:i.clarity},{name:"User Engagement",value:i.engagement}],d=(e,s)=>{let t="user engagement"===e.toLowerCase()?"engagement":e.toLowerCase();o(e=>({...e,[t]:s}))};return(0,a.jsx)(y.lG,{open:s,onOpenChange:t,children:(0,a.jsxs)(y.Cf,{className:"sm:max-w-md",children:[(0,a.jsx)(y.c7,{children:(0,a.jsx)(y.L3,{className:"text-xl pb-2 border-b",children:"Evaluate this Response"})}),(0,a.jsxs)("div",{className:"space-y-6 py-4",children:[c.map(e=>(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("label",{className:"text-sm font-medium",children:[e.name,":"]}),(0,a.jsx)("div",{className:"flex gap-1",children:[1,2,3,4,5].map(s=>(0,a.jsx)("button",{onClick:()=>d(e.name,s),className:"text-2xl focus:outline-none",children:(0,a.jsx)("span",{className:"".concat(e.value>=s?"text-yellow-400":"text-muted-foreground"),children:"★"})},s))})]},e.name)),(0,a.jsx)(w,{placeholder:"Additional comments..."}),(0,a.jsx)(m.$,{className:"w-full",onClick:()=>{console.log("Submitting ratings:",i),t(!1)},children:"Submit"})]})]})})}function N(e){let{selectedChatId:s,hasMessages:t}=e;return null===s?(0,a.jsx)("div",{className:"flex-1 flex items-center justify-center p-4",children:(0,a.jsxs)("div",{className:"text-center space-y-6 p-4 sm:p-8 max-w-md mx-auto",children:[(0,a.jsx)("div",{className:"w-16 h-16 sm:w-20 sm:h-20 mx-auto bg-gradient-to-br from-primary/20 to-primary/5 rounded-2xl flex items-center justify-center",children:(0,a.jsx)(i.A,{className:"h-8 w-8 sm:h-10 sm:w-10 text-primary"})}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("h2",{className:"text-xl sm:text-2xl font-semibold tracking-tight",children:"Welcome to Transcriptinator 6000"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm sm:text-base",children:"Select a chat from the sidebar to get started, or create a new conversation to begin analyzing your transcripts."})]})]})}):t?null:(0,a.jsx)("div",{className:"flex-1 flex items-center justify-center p-4",children:(0,a.jsxs)("div",{className:"text-center space-y-6 p-4 sm:p-8 max-w-sm mx-auto",children:[(0,a.jsx)("div",{className:"w-14 h-14 sm:w-16 sm:h-16 mx-auto bg-gradient-to-br from-blue-500/20 to-blue-500/5 rounded-2xl flex items-center justify-center",children:(0,a.jsx)(c.A,{className:"h-7 w-7 sm:h-8 sm:w-8 text-blue-500"})}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("h3",{className:"text-lg sm:text-xl font-semibold",children:"Start the conversation"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm sm:text-base",children:"Ask a question about your transcripts to begin the analysis."})]})]})})}w.displayName="Textarea";var k=t(6424),C=t(1007),A=t(5657),T=t(7434),E=t(5196),S=t(4357),_=t(792);let D=e=>{let{message:s,handleTranscriptClick:t,onEvaluate:n}=e,i="user"===s.role?C.A:A.A,o="user"===s.role?"You":"AI Assistant",[c,d]=(0,r.useState)(!1),{toast:u}=(0,g.dj)(),x=async()=>{await navigator.clipboard.writeText(s.content),d(!0),setTimeout(()=>d(!1),2e3),u({title:"Copied to clipboard",description:"The response has been copied successfully."})};return(0,a.jsx)("div",{className:"w-full",children:(0,a.jsxs)("div",{className:(0,l.cn)("rounded-2xl p-4 sm:p-6 transition-all duration-200","max-w-full overflow-x-auto break-words","user"===s.role?"bg-gradient-to-br from-primary/10 to-primary/5 border border-primary/20 ml-0 sm:ml-12":"bg-gradient-to-br from-card to-card/50 border border-border/50 mr-0 sm:mr-12"),style:{wordBreak:"break-word"},children:[(0,a.jsx)("div",{className:(0,l.cn)("flex items-center gap-2 sm:gap-3 mb-3 sm:mb-4","assistant"===s.role?"justify-start":"justify-end"),children:(0,a.jsxs)("div",{className:(0,l.cn)("flex items-center gap-2","user"===s.role&&"flex-row-reverse"),children:[(0,a.jsx)("div",{className:(0,l.cn)("w-7 h-7 sm:w-8 sm:h-8 rounded-full flex items-center justify-center flex-shrink-0","user"===s.role?"bg-primary text-primary-foreground":"bg-gradient-to-br from-blue-500 to-purple-600 text-white"),children:(0,a.jsx)(i,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"})}),(0,a.jsxs)("div",{className:(0,l.cn)("flex flex-col","user"===s.role?"items-end":"items-start"),children:[(0,a.jsx)("span",{className:"font-medium text-xs sm:text-sm",children:o}),(0,a.jsx)("span",{className:"text-xs text-muted-foreground",children:s.timestamp.toLocaleTimeString()})]})]})}),(0,a.jsx)("div",{className:(0,l.cn)("prose prose-sm dark:prose-invert max-w-full text-sm sm:text-base","user"===s.role?"text-right":"text-left"),style:{wordBreak:"break-word"},children:(0,a.jsx)(_.oz,{components:{a:e=>{let{href:s,children:t,...r}=e;return(0,a.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",...r,children:t})}},children:s.content})}),s.transcripts.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap mt-4 sm:mt-6 gap-2",children:s.transcripts.map(e=>(0,a.jsxs)(m.$,{variant:"secondary",size:"sm",className:"text-xs h-auto min-h-7 sm:min-h-8 bg-muted/50 hover:bg-muted border border-border/50 transition-all duration-200 hover:scale-105 py-2 max-w-full overflow-x-auto",onClick:()=>t(e),style:{wordBreak:"break-word"},children:[(0,a.jsx)(T.A,{className:"mr-1 sm:mr-1.5 w-3"}),(0,a.jsxs)("span",{className:"text-start whitespace-normal break-words",children:[e.filename," @ ",e.timestamp]})]},e.id))}),"assistant"===s.role&&(0,a.jsx)("div",{className:"mt-4 sm:mt-6 flex flex-col sm:flex-row justify-start gap-2",children:(0,a.jsxs)(m.$,{variant:"ghost",size:"sm",className:"h-8 text-xs hover:bg-accent/50 transition-all duration-200 justify-start sm:justify-center",onClick:x,children:[c?(0,a.jsx)(E.A,{className:"h-3.5 w-3.5 mr-1.5 text-green-500"}):(0,a.jsx)(S.A,{className:"h-3.5 w-3.5 mr-1.5"}),c?"Copied!":"Copy Response"]})})]})})};function O(e){let{selectedChat:s,isLoading:t,scrollRef:r,onTranscriptClick:l,onEvaluate:n}=e;return s?(0,a.jsx)(k.F,{className:"flex-1 custom-scrollbar",ref:r,children:(0,a.jsxs)("div",{className:"p-3 sm:p-6 space-y-4 sm:space-y-6 min-h-full max-w-4xl mx-auto",children:[s.messages.map((e,s)=>"system"!==e.role?(0,a.jsx)("div",{className:"message-animate",children:(0,a.jsx)(D,{message:e,handleTranscriptClick:l,onEvaluate:()=>n(s)})},e.id):null),t&&(0,a.jsx)("div",{className:"flex justify-center py-6 sm:py-8",children:(0,a.jsxs)("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[(0,a.jsx)(o.A,{className:"h-4 w-4 sm:h-5 sm:w-5 animate-spin"}),(0,a.jsx)("span",{className:"text-sm",children:"Analyzing transcripts..."})]})})]})}):null}t(3052),t(8382),t(6542),t(4050);function z(e){let{selectedTranscript:s,selectedTranscripts:t,selectedChatId:a,isTranscriptsOpen:r,setIsTranscriptsOpen:l}=e;return null}let L=()=>{let e=(0,r.useRef)(null);return{scrollRef:e,scrollToBottom:()=>{if(e.current){let s=e.current.querySelector("[data-radix-scroll-area-viewport]");if(s){let e=s.scrollHeight;s.scrollTo({top:e,behavior:"smooth"})}}}}};var R=t(5533);let I=()=>{var e;let{selectedTranscripts:s,selectedTranscript:t,isLoading:l,evaluatingMessageIndex:n,setEvaluatingMessageIndex:i,selectedChat:o,selectedChatId:c,scrollRef:m,scrollToBottom:u,handleTranscriptClick:x,handleEvaluate:h,isTranscriptsOpen:f,setIsTranscriptsOpen:g}=function(){let[e,s]=(0,r.useState)([]),[t,a]=(0,r.useState)(null),[l,n]=(0,r.useState)(!1),[i,o]=(0,r.useState)(null),[c,m]=(0,r.useState)(!1),[u,x]=(0,r.useState)(!1),{selectedChat:h,selectedChatId:f}=(0,d.L)(),{scrollRef:g,scrollToBottom:b}=L(),v=async e=>{if(e&&(a(e),e.filename!==(null==t?void 0:t.filename)))try{let t=await p(e.filename);s(t),x(!0)}catch(e){console.error("Error loading transcripts:",e)}};return(0,r.useEffect)(()=>{c||(b(),m(!0));let e=()=>{c||(b(),m(!0))};return R.tO.on(R.YV,e),()=>{R.tO.off(R.YV,e)}},[b,c]),{selectedTranscripts:e,selectedTranscript:t,isLoading:l,evaluatingMessageIndex:i,setEvaluatingMessageIndex:o,selectedChat:h,selectedChatId:f,scrollRef:g,scrollToBottom:b,handleTranscriptClick:v,handleEvaluate:e=>{o(e)},isTranscriptsOpen:u,setIsTranscriptsOpen:x}}(),b=null===c||(null==o?void 0:o.messages.length)===0;return(0,a.jsxs)("div",{className:"flex-1 flex h-full bg-gradient-to-br from-background via-background to-muted/20",children:[(0,a.jsxs)("div",{className:"flex-1 flex flex-col min-w-0",children:[b?(0,a.jsx)(N,{selectedChatId:c,hasMessages:!!(null==o?void 0:null===(e=o.messages)||void 0===e?void 0:e.length)}):(0,a.jsx)(O,{selectedChat:o,isLoading:l,scrollRef:m,onTranscriptClick:x,onEvaluate:h}),c&&(0,a.jsx)("div",{className:"bg-trasparent backdrop-blur supports-[backdrop-filter]:bg-transparent",children:(0,a.jsx)(v,{selectedChatId:c,selectedChat:o,scrollToBottom:u})})]}),(0,a.jsx)(z,{selectedTranscript:t,selectedTranscripts:s,selectedChatId:c,isTranscriptsOpen:f,setIsTranscriptsOpen:g}),null!==o&&n&&(0,a.jsx)(j,{open:!!n,onOpenChange:e=>!e&&i(null),message:o.messages[n],prevMessage:o.messages[n-1]})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[489,822,558,527,441,684,358],()=>s(4836)),_N_E=e.O()}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/framework-f593a28cde54158e.js b/_backend/frontend/_next/static/chunks/framework-f593a28cde54158e.js new file mode 100644 index 0000000000000000000000000000000000000000..f52068a05e81524e59679e471a9309ecc3380609 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/framework-f593a28cde54158e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[593],{2167:(e,t,n)=>{var r=n(5364),l=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.iterator,g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function k(){}function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=b.prototype;var S=w.prototype=new k;S.constructor=w,y(S,b.prototype),S.isPureReactComponent=!0;var x=Array.isArray,E={H:null,A:null,T:null,S:null,V:null},C=Object.prototype.hasOwnProperty;function _(e,t,n,r,a,o){return{$$typeof:l,type:e,key:t,ref:void 0!==(n=o.ref)?n:null,props:o}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var z=/\/+/g;function N(e,t){var n,r;return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function T(){}function L(e,t,n){if(null==e)return e;var r=[],o=0;return!function e(t,n,r,o,i){var u,s,c,f=typeof t;("undefined"===f||"boolean"===f)&&(t=null);var d=!1;if(null===t)d=!0;else switch(f){case"bigint":case"string":case"number":d=!0;break;case"object":switch(t.$$typeof){case l:case a:d=!0;break;case m:return e((d=t._init)(t._payload),n,r,o,i)}}if(d)return i=i(t),d=""===o?"."+N(t,0):o,x(i)?(r="",null!=d&&(r=d.replace(z,"$&/")+"/"),e(i,n,r,"",function(e){return e})):null!=i&&(P(i)&&(u=i,s=r+(null==i.key||t&&t.key===i.key?"":(""+i.key).replace(z,"$&/")+"/")+d,i=_(u.type,s,void 0,void 0,void 0,u.props)),n.push(i)),1;d=0;var p=""===o?".":o+":";if(x(t))for(var g=0;g{e.exports=n(5919)},4232:(e,t,n)=>{e.exports=n(2167)},4279:(e,t,n)=>{var r,l=n(5364),a=n(2786),o=n(4232),i=n(8477);function u(e){var t="https://react.dev/errors/"+e;if(1I||(e.current=M[I],M[I]=null,I--)}function H(e,t){M[++I]=e.current,e.current=t}var $=U(null),V=U(null),B=U(null),Q=U(null);function W(e,t){switch(H(B,t),H(V,e),H($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?si(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=su(t=si(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}j($),H($,e)}function q(){j($),j(V),j(B)}function K(e){null!==e.memoizedState&&H(Q,e);var t=$.current,n=su(t,e.type);t!==n&&(H(V,e),H($,n))}function Y(e){V.current===e&&(j($),j(V)),Q.current===e&&(j(Q),sX._currentValue=F)}var G=Object.prototype.hasOwnProperty,X=a.unstable_scheduleCallback,Z=a.unstable_cancelCallback,J=a.unstable_shouldYield,ee=a.unstable_requestPaint,et=a.unstable_now,en=a.unstable_getCurrentPriorityLevel,er=a.unstable_ImmediatePriority,el=a.unstable_UserBlockingPriority,ea=a.unstable_NormalPriority,eo=a.unstable_LowPriority,ei=a.unstable_IdlePriority,eu=a.log,es=a.unstable_setDisableYieldValue,ec=null,ef=null;function ed(e){if("function"==typeof eu&&es(e),ef&&"function"==typeof ef.setStrictMode)try{ef.setStrictMode(ec,e)}catch(e){}}var ep=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(em(e)/eh|0)|0},em=Math.log,eh=Math.LN2,eg=256,ey=4194304;function ev(e){var t=42&e;if(0!==t)return t;switch(e&-e){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 4194048&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function eb(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var i=0x7ffffff&r;return 0!==i?0!=(r=i&~a)?l=ev(r):0!=(o&=i)?l=ev(o):n||0!=(n=i&~e)&&(l=ev(n)):0!=(i=r&~a)?l=ev(i):0!==o?l=ev(o):n||0!=(n=r&~e)&&(l=ev(n)),0===l?0:0!==t&&t!==l&&0==(t&a)&&((a=l&-l)>=(n=t&-t)||32===a&&0!=(4194048&n))?t:l}function ek(e,t){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ew(){var e=eg;return 0==(4194048&(eg<<=1))&&(eg=256),e}function eS(){var e=ey;return 0==(0x3c00000&(ey<<=1))&&(ey=4194304),e}function ex(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function eE(e,t){e.pendingLanes|=t,0x10000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eC(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ep(t);e.entangledLanes|=t,e.entanglements[r]=0x40000000|e.entanglements[r]|4194090&n}function e_(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ep(n),l=1<)":-1l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{e2=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?e1(n):""}function e4(e){try{var t="";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return e1(e.type);case 16:return e1("Lazy");case 13:return e1("Suspense");case 19:return e1("SuspenseList");case 0:case 15:return e3(e.type,!1);case 11:return e3(e.type.render,!1);case 1:return e3(e.type,!0);case 31:return e1("Activity");default:return""}}(e),e=e.return;while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function e8(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function e6(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function e5(e){e._valueTracker||(e._valueTracker=function(e){var t=e6(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e6(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e7(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var te=/[\n"\\]/g;function tt(e){return e.replace(te,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function tn(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+e8(t)):e.value!==""+e8(t)&&(e.value=""+e8(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?tl(e,o,e8(t)):null!=n?tl(e,o,e8(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+e8(i):e.removeAttribute("name")}function tr(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(("submit"===a||"reset"===a)&&null==t)return;n=null!=n?""+e8(n):"",t=null!=t?""+e8(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function tl(e,t,n){"number"===t&&e7(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ta(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l=ne),nr=!1;function nl(e,t){switch(e){case"keyup":return -1!==t9.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function na(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var no=!1,ni={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ni[e.type]:"textarea"===t}function ns(e,t,n,r){tv?tb?tb.push(r):tb=[r]:tv=r,0<(t=u3(t,"onChange")).length&&(n=new tH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nc=null,nf=null;function nd(e){uY(e,0)}function np(e){if(e9(e$(e)))return e}function nm(e,t){if("change"===e)return t}var nh=!1;if(tE){if(tE){var ng="oninput"in document;if(!ng){var ny=document.createElement("div");ny.setAttribute("oninput","return;"),ng="function"==typeof ny.oninput}r=ng}else r=!1;nh=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=n_(r)}}function nz(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var t=e7(e.document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e7(e.document)}return t}function nN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nT=tE&&"documentMode"in document&&11>=document.documentMode,nL=null,nO=null,nR=null,nD=!1;function nA(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nD||null==nL||nL!==e7(r)||(r="selectionStart"in(r=nL)&&nN(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},nR&&nC(nR,r)||(nR=r,0<(r=u3(nO,"onSelect")).length&&(t=new tH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nL)))}function nF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nM={animationend:nF("Animation","AnimationEnd"),animationiteration:nF("Animation","AnimationIteration"),animationstart:nF("Animation","AnimationStart"),transitionrun:nF("Transition","TransitionRun"),transitionstart:nF("Transition","TransitionStart"),transitioncancel:nF("Transition","TransitionCancel"),transitionend:nF("Transition","TransitionEnd")},nI={},nU={};function nj(e){if(nI[e])return nI[e];if(!nM[e])return e;var t,n=nM[e];for(t in n)if(n.hasOwnProperty(t)&&t in nU)return nI[e]=n[t];return e}tE&&(nU=document.createElement("div").style,"AnimationEvent"in window||(delete nM.animationend.animation,delete nM.animationiteration.animation,delete nM.animationstart.animation),"TransitionEvent"in window||delete nM.transitionend.transition);var nH=nj("animationend"),n$=nj("animationiteration"),nV=nj("animationstart"),nB=nj("transitionrun"),nQ=nj("transitionstart"),nW=nj("transitioncancel"),nq=nj("transitionend"),nK=new Map,nY="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function nG(e,t){nK.set(e,t),eq(t,[e])}nY.push("scrollEnd");var nX=new WeakMap;function nZ(e,t){if("object"==typeof e&&null!==e){var n=nX.get(e);return void 0!==n?n:(t={value:e,source:t,stack:e4(t)},nX.set(e,t),t)}return{value:e,source:t,stack:e4(t)}}var nJ=[],n0=0,n1=0;function n2(){for(var e=n0,t=n1=n0=0;t>=o,l-=o,rh=1<<32-ep(t)+l|n<a?a:8;var o=D.T,i={};D.T=i,aj(e,!1,t,n);try{var u=l(),s=D.S;if(null!==s&&s(i,u),null!==u&&"object"==typeof u&&"function"==typeof u.then){var c,f,d=(c=[],f={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},u.then(function(){f.status="fulfilled",f.value=r;for(var e=0;eh?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),rx&&ry(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),rx&&ry(l,g),c;if(null===h){for(;!v.done;g++,v=i.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return rx&&ry(l,g),c}for(h=r(h);!v.done;g++,v=i.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),rx&&ry(l,g),c}(s,c,f=b.call(f),v)}if("function"==typeof f.then)return i(s,c,aG(f),v);if(f.$$typeof===S)return i(s,c,rQ(s,f),v);aZ(s,f)}return"string"==typeof f&&""!==f||"number"==typeof f||"bigint"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(s,c.sibling),(v=l(c,f)).return=s):(n(s,c),(v=ro(f,s.mode,v)).return=s),o(s=v)):n(s,c)}(i,s,c,f);return aK=null,v}catch(e){if(e===r7||e===lt)throw e;var b=re(29,e,null,i.mode);return b.lanes=f,b.return=i,b}finally{}}}var a1=a0(!0),a2=a0(!1),a3=U(null),a4=null;function a8(e){var t=e.alternate;H(a7,1&a7.current),H(a3,e),null===a4&&(null===t||null!==lw.current?a4=e:null!==t.memoizedState&&(a4=e))}function a6(e){if(22===e.tag){if(H(a7,a7.current),H(a3,e),null===a4){var t=e.alternate;null!==t&&null!==t.memoizedState&&(a4=e)}}else a5(e)}function a5(){H(a7,a7.current),H(a3,a3.current)}function a9(e){j(a3),a4===e&&(a4=null),j(a7)}var a7=U(0);function oe(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||sb(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ot(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var on={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=i6(),l=ld(r);l.payload=t,null!=n&&(l.callback=n),null!==(t=lp(e,l,r))&&(i9(t,e,r),lm(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=i6(),l=ld(r);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=lp(e,l,r))&&(i9(t,e,r),lm(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=i6(),r=ld(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=lp(e,r,n))&&(i9(t,e,n),lm(t,e,n))}};function or(e,t,n,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||!nC(n,r)||!nC(l,a)}function ol(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&on.enqueueReplaceState(t,t.state,null)}function oa(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var l in n===t&&(n=p({},n)),e)void 0===n[l]&&(n[l]=e[l]);return n}var oo="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof l&&"function"==typeof l.emit){l.emit("uncaughtException",e);return}console.error(e)};function oi(e){oo(e)}function ou(e){console.error(e)}function os(e){oo(e)}function oc(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function of(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function od(e,t,n){return(n=ld(n)).tag=3,n.payload={element:null},n.callback=function(){oc(e,t)},n}function op(e){return(e=ld(e)).tag=3,e}function om(e,t,n,r){var l=n.type.getDerivedStateFromError;if("function"==typeof l){var a=r.value;e.payload=function(){return l(a)},e.callback=function(){of(t,n,r)}}var o=n.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){of(t,n,r),"function"!=typeof l&&(null===iG?iG=new Set([this]):iG.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var oh=Error(u(461)),og=!1;function oy(e,t,n,r){t.child=null===e?a2(t,null,n,r):a1(t,e.child,n,r)}function ov(e,t,n,r,l){n=n.render;var a=t.ref;if("ref"in r){var o={};for(var i in r)"ref"!==i&&(o[i]=r[i])}else o=r;return(rV(t),r=lU(e,t,n,o,a,l),i=lV(),null===e||og)?(rx&&i&&rb(t),t.flags|=1,oy(e,t,r,l),t.child):(lB(e,t,l),oI(e,t,l))}function ob(e,t,n,r,l){if(null===e){var a=n.type;return"function"!=typeof a||rt(a)||void 0!==a.defaultProps||null!==n.compare?((e=rl(n.type,null,r,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ok(e,t,a,r,l))}if(a=e.child,!oU(e,l)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:nC)(o,r)&&e.ref===t.ref)return oI(e,t,l)}return t.flags|=1,(e=rn(a,r)).ref=t.ref,e.return=t,t.child=e}function ok(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(nC(a,r)&&e.ref===t.ref){if(og=!1,t.pendingProps=r=a,!oU(e,l))return t.lanes=e.lanes,oI(e,t,l);0!=(131072&e.flags)&&(og=!0)}}return oE(e,t,n,r,l)}function ow(e,t,n){var r=t.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(0!=(128&t.flags)){if(r=null!==a?a.baseLanes|n:n,null!==e){for(a=0,l=t.child=e.child;null!==l;)a=a|l.lanes|l.childLanes,l=l.sibling;t.childLanes=a&~r}else t.childLanes=0,t.child=null;return oS(e,t,r,n)}if(0==(0x20000000&n))return t.lanes=t.childLanes=0x20000000,oS(e,t,null!==a?a.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&r5(t,null!==a?a.cachePool:null),null!==a?lx(t,a):lE(),a6(t)}else null!==a?(r5(t,a.cachePool),lx(t,a),a5(t),t.memoizedState=null):(null!==e&&r5(t,null),lE(),a5(t));return oy(e,t,l,n),t.child}function oS(e,t,n,r){var l=r6();return t.memoizedState={baseLanes:n,cachePool:l=null===l?null:{parent:rG._currentValue,pool:l}},null!==e&&r5(t,null),lE(),a6(t),null!==e&&rH(e,t,r,!0),null}function ox(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(u(284));(null===e||e.ref!==n)&&(t.flags|=4194816)}}function oE(e,t,n,r,l){return(rV(t),n=lU(e,t,n,r,void 0,l),r=lV(),null===e||og)?(rx&&r&&rb(t),t.flags|=1,oy(e,t,n,l),t.child):(lB(e,t,l),oI(e,t,l))}function oC(e,t,n,r,l,a){return(rV(t),t.updateQueue=null,n=lH(t,r,n,l),lj(e),r=lV(),null===e||og)?(rx&&r&&rb(t),t.flags|=1,oy(e,t,n,a),t.child):(lB(e,t,a),oI(e,t,a))}function o_(e,t,n,r,l){if(rV(t),null===t.stateNode){var a=n9,o=n.contextType;"object"==typeof o&&null!==o&&(a=rB(o)),t.memoizedState=null!==(a=new n(r,a)).state&&void 0!==a.state?a.state:null,a.updater=on,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=r,a.state=t.memoizedState,a.refs={},lc(t),o=n.contextType,a.context="object"==typeof o&&null!==o?rB(o):n9,a.state=t.memoizedState,"function"==typeof(o=n.getDerivedStateFromProps)&&(ot(t,n,o,r),a.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(o=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&on.enqueueReplaceState(a,a.state,null),lv(t,r,a,l),ly(),a.state=t.memoizedState),"function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){a=t.stateNode;var i=t.memoizedProps,u=oa(n,i);a.props=u;var s=a.context,c=n.contextType;o=n9,"object"==typeof c&&null!==c&&(o=rB(c));var f=n.getDerivedStateFromProps;c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate,i=t.pendingProps!==i,c||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(i||s!==o)&&ol(t,a,r,o),ls=!1;var d=t.memoizedState;a.state=d,lv(t,r,a,l),ly(),s=t.memoizedState,i||d!==s||ls?("function"==typeof f&&(ot(t,n,f,r),s=t.memoizedState),(u=ls||or(t,n,u,r,d,s,o))?(c||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=o,r=u):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,lf(e,t),c=oa(n,o=t.memoizedProps),a.props=c,f=t.pendingProps,d=a.context,s=n.contextType,u=n9,"object"==typeof s&&null!==s&&(u=rB(s)),(s="function"==typeof(i=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==f||d!==u)&&ol(t,a,r,u),ls=!1,d=t.memoizedState,a.state=d,lv(t,r,a,l),ly();var p=t.memoizedState;o!==f||d!==p||ls||null!==e&&null!==e.dependencies&&r$(e.dependencies)?("function"==typeof i&&(ot(t,n,i,r),p=t.memoizedState),(c=ls||or(t,n,c,r,d,p,u)||null!==e&&null!==e.dependencies&&r$(e.dependencies))?(s||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,ox(e,t),r=0!=(128&t.flags),a||r?(a=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&r?(t.child=a1(t,e.child,null,l),t.child=a1(t,null,n,l)):oy(e,t,n,l),t.memoizedState=a.state,e=t.child):e=oI(e,t,l),e}function oP(e,t,n,r){return rL(),t.flags|=256,oy(e,t,n,r),t.child}var oz={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oN(e){return{baseLanes:e,cachePool:r9()}}function oT(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=i$),e}function oL(e,t,n){var r,l=t.pendingProps,a=!1,o=0!=(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a7.current)),r&&(a=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(rx){if(a?a8(t):a5(t),rx){var i,s=rS;if(i=s){n:{for(i=s,s=rC;8!==i.nodeType;)if(!s||null===(i=sk(i.nextSibling))){s=null;break n}s=i}null!==s?(t.memoizedState={dehydrated:s,treeContext:null!==rm?{id:rh,overflow:rg}:null,retryLane:0x20000000,hydrationErrors:null},(i=re(18,null,null,0)).stateNode=s,i.return=t,t.child=i,rw=t,rS=null,i=!0):i=!1}i||rP(t)}if(null!==(s=t.memoizedState)&&null!==(s=s.dehydrated))return sb(s)?t.lanes=32:t.lanes=0x20000000,null;a9(t)}return(s=l.children,l=l.fallback,a)?(a5(t),s=oR({mode:"hidden",children:s},a=t.mode),l=ra(l,a,n,null),s.return=t,l.return=t,s.sibling=l,t.child=s,(a=t.child).memoizedState=oN(n),a.childLanes=oT(e,r,n),t.memoizedState=oz,l):(a8(t),oO(t,s))}if(null!==(i=e.memoizedState)&&null!==(s=i.dehydrated)){if(o)256&t.flags?(a8(t),t.flags&=-257,t=oD(e,t,n)):null!==t.memoizedState?(a5(t),t.child=e.child,t.flags|=128,t=null):(a5(t),a=l.fallback,s=t.mode,l=oR({mode:"visible",children:l.children},s),a=ra(a,s,n,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,a1(t,e.child,null,n),(l=t.child).memoizedState=oN(n),l.childLanes=oT(e,r,n),t.memoizedState=oz,t=a);else if(a8(t),sb(s)){if(r=s.nextSibling&&s.nextSibling.dataset)var c=r.dgst;r=c,(l=Error(u(419))).stack="",l.digest=r,rR({value:l,source:null,stack:null}),t=oD(e,t,n)}else if(og||rH(e,t,n,!1),r=0!=(n&e.childLanes),og||r){if(null!==(r=iN)&&0!==(l=0!=((l=0!=(42&(l=n&-n))?1:eP(l))&(r.suspendedLanes|n))?0:l)&&l!==i.retryLane)throw i.retryLane=l,n8(e,l),i9(r,e,l),oh;"$?"===s.data||uu(),t=oD(e,t,n)}else"$?"===s.data?(t.flags|=192,t.child=e.child,t=null):(e=i.treeContext,rS=sk(s.nextSibling),rw=t,rx=!0,rE=null,rC=!1,null!==e&&(rd[rp++]=rh,rd[rp++]=rg,rd[rp++]=rm,rh=e.id,rg=e.overflow,rm=t),t=oO(t,l.children),t.flags|=4096);return t}return a?(a5(t),a=l.fallback,s=t.mode,c=(i=e.child).sibling,(l=rn(i,{mode:"hidden",children:l.children})).subtreeFlags=0x3e00000&i.subtreeFlags,null!==c?a=rn(c,a):(a=ra(a,s,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,l=a,a=t.child,null===(s=e.child.memoizedState)?s=oN(n):(null!==(i=s.cachePool)?(c=rG._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=r9(),s={baseLanes:s.baseLanes|n,cachePool:i}),a.memoizedState=s,a.childLanes=oT(e,r,n),t.memoizedState=oz,l):(a8(t),e=(n=e.child).sibling,(n=rn(n,{mode:"visible",children:l.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function oO(e,t){return(t=oR({mode:"visible",children:t},e.mode)).return=e,e.child=t}function oR(e,t){return(e=re(22,e,null,t)).lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function oD(e,t,n){return a1(t,e.child,null,n),e=oO(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oA(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),rU(e.return,t,n)}function oF(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function oM(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(oy(e,t,r.children,n),0!=(2&(r=a7.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&oA(e,n,t);else if(19===e.tag)oA(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(H(a7,r),l){case"forwards":for(l=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===oe(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),oF(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===oe(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}oF(t,!0,n,null,a);break;case"together":oF(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oI(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),iU|=t.lanes,0==(n&t.childLanes)){if(null===e)return null;if(rH(e,t,n,!1),0==(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(u(153));if(null!==t.child){for(n=rn(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=rn(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function oU(e,t){return 0!=(e.lanes&t)||!!(null!==(e=e.dependencies)&&r$(e))}function oj(e,t,n){if(null!==e){if(e.memoizedProps!==t.pendingProps)og=!0;else{if(!oU(e,n)&&0==(128&t.flags))return og=!1,function(e,t,n){switch(t.tag){case 3:W(t,t.stateNode.containerInfo),rM(t,rG,e.memoizedState.cache),rL();break;case 27:case 5:K(t);break;case 4:W(t,t.stateNode.containerInfo);break;case 10:rM(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return a8(t),t.flags|=128,null;if(0!=(n&t.child.childLanes))return oL(e,t,n);return a8(t),null!==(e=oI(e,t,n))?e.sibling:null}a8(t);break;case 19:var l=0!=(128&e.flags);if((r=0!=(n&t.childLanes))||(rH(e,t,n,!1),r=0!=(n&t.childLanes)),l){if(r)return oM(e,t,n);t.flags|=128}if(null!==(l=t.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),H(a7,a7.current),!r)return null;break;case 22:case 23:return t.lanes=0,ow(e,t,n);case 24:rM(t,rG,e.memoizedState.cache)}return oI(e,t,n)}(e,t,n);og=0!=(131072&e.flags)}}else og=!1,rx&&0!=(1048576&t.flags)&&rv(t,rf,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,l=r._init;if(r=l(r._payload),t.type=r,"function"==typeof r)rt(r)?(e=oa(r,e),t.tag=1,t=o_(null,t,r,e,n)):(t.tag=0,t=oE(null,t,r,e,n));else{if(null!=r){if((l=r.$$typeof)===x){t.tag=11,t=ov(null,t,r,e,n);break e}if(l===_){t.tag=14,t=ob(null,t,r,e,n);break e}}throw Error(u(306,t=function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===O?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case y:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case C:return"SuspenseList";case z:return"Activity"}if("object"==typeof t)switch(t.$$typeof){case g:return"Portal";case S:return(t.displayName||"Context")+".Provider";case w:return(t._context.displayName||"Context")+".Consumer";case x:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case _:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case P:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(r)||r,""))}}return t;case 0:return oE(e,t,t.type,t.pendingProps,n);case 1:return l=oa(r=t.type,t.pendingProps),o_(e,t,r,l,n);case 3:e:{if(W(t,t.stateNode.containerInfo),null===e)throw Error(u(387));r=t.pendingProps;var a=t.memoizedState;l=a.element,lf(e,t),lv(t,r,null,n);var o=t.memoizedState;if(rM(t,rG,r=o.cache),r!==a.cache&&rj(t,[rG],n,!0),ly(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=oP(e,t,r,n);break e}if(r!==l){rR(l=nZ(Error(u(424)),t)),t=oP(e,t,r,n);break e}else for(rS=sk((e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).firstChild),rw=t,rx=!0,rE=null,rC=!0,n=a2(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(rL(),r===l){t=oI(e,t,n);break e}oy(e,t,r,n)}t=t.child}return t;case 26:return ox(e,t),null===e?(n=sL(t.type,null,t.pendingProps,null))?t.memoizedState=n:rx||(n=t.type,e=t.pendingProps,(r=so(B.current).createElement(n))[eL]=t,r[eO]=e,sr(r,n,e),eB(r),t.stateNode=r):t.memoizedState=sL(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return K(t),null===e&&rx&&(r=t.stateNode=sx(t.type,t.pendingProps,B.current),rw=t,rC=!0,l=rS,sg(t.type)?(sw=l,rS=sk(r.firstChild)):rS=l),oy(e,t,t.pendingProps.children,n),ox(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&rx&&((l=r=rS)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[eI])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(l=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||l!==n.rel||e.getAttribute("href")!==(null==n.href||""===n.href?null:n.href)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin)||e.getAttribute("title")!==(null==n.title?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((l=e.getAttribute("src"))!==(null==n.src?null:n.src)||e.getAttribute("type")!==(null==n.type?null:n.type)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var l=null==n.name?null:""+n.name;if("hidden"===n.type&&e.getAttribute("name")===l)return e}if(null===(e=sk(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,rC))?(t.stateNode=r,rw=t,rS=sk(r.firstChild),rC=!1,l=!0):l=!1),l||rP(t)),K(t),l=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,r=a.children,ss(l,a)?r=null:null!==o&&ss(l,o)&&(t.flags|=32),null!==t.memoizedState&&(sX._currentValue=l=lU(e,t,l$,null,null,n)),ox(e,t),oy(e,t,r,n),t.child;case 6:return null===e&&rx&&((e=n=rS)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n||null===(e=sk(e.nextSibling)))return null;return e}(n,t.pendingProps,rC))?(t.stateNode=n,rw=t,rS=null,e=!0):e=!1),e||rP(t)),null;case 13:return oL(e,t,n);case 4:return W(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=a1(t,null,r,n):oy(e,t,r,n),t.child;case 11:return ov(e,t,t.type,t.pendingProps,n);case 7:return oy(e,t,t.pendingProps,n),t.child;case 8:case 12:return oy(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,rM(t,t.type,r.value),oy(e,t,r.children,n),t.child;case 9:return l=t.type._context,r=t.pendingProps.children,rV(t),r=r(l=rB(l)),t.flags|=1,oy(e,t,r,n),t.child;case 14:return ob(e,t,t.type,t.pendingProps,n);case 15:return ok(e,t,t.type,t.pendingProps,n);case 19:return oM(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},null===e?(n=oR(r,n)).ref=t.ref:(n=rn(e.child,r)).ref=t.ref,t.child=n,n.return=t,t=n;case 22:return ow(e,t,n);case 24:return rV(t),r=rB(rG),null===e?(null===(l=r6())&&(l=iN,a=rX(),l.pooledCache=a,a.refCount++,null!==a&&(l.pooledCacheLanes|=n),l=a),t.memoizedState={parent:r,cache:l},lc(t),rM(t,rG,l)):(0!=(e.lanes&n)&&(lf(e,t),lv(t,null,null,n),ly()),l=e.memoizedState,a=t.memoizedState,l.parent!==r?(l={parent:r,cache:r},t.memoizedState=l,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=l),rM(t,rG,r)):(rM(t,rG,r=a.cache),r!==l.cache&&rj(t,[rG],n,!0))),oy(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function oH(e){e.flags|=4}function o$(e,t){if("stylesheet"!==t.type||0!=(4&t.state.loading))e.flags&=-0x1000001;else if(e.flags|=0x1000000,!sB(t)){if(null!==(t=a3.current)&&((4194048&iL)===iL?null!==a4:(0x3c00000&iL)!==iL&&0==(0x20000000&iL)||t!==a4))throw lo=ln,le;e.flags|=8192}}function oV(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?eS():0x20000000,e.lanes|=t,iV|=t)}function oB(e,t){if(!rx)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function oQ(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=0x3e00000&l.subtreeFlags,r|=0x3e00000&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function oW(e,t){switch(rk(t),t.tag){case 3:rI(rG),q();break;case 26:case 27:case 5:Y(t);break;case 4:q();break;case 13:a9(t);break;case 19:j(a7);break;case 10:rI(t.type);break;case 22:case 23:a9(t),lC(),null!==e&&j(r8);break;case 24:rI(rG)}}function oq(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var l=r.next;n=l;do{if((n.tag&e)===e){r=void 0;var a=n.create;n.inst.destroy=r=a()}n=n.next}while(n!==l)}}catch(e){ux(t,t.return,e)}}function oK(e,t,n){try{var r=t.updateQueue,l=null!==r?r.lastEffect:null;if(null!==l){var a=l.next;r=a;do{if((r.tag&e)===e){var o=r.inst,i=o.destroy;if(void 0!==i){o.destroy=void 0,l=t;try{i()}catch(e){ux(l,n,e)}}}r=r.next}while(r!==a)}}catch(e){ux(t,t.return,e)}}function oY(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{lk(t,n)}catch(t){ux(e,e.return,t)}}}function oG(e,t,n){n.props=oa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){ux(e,t,n)}}function oX(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){ux(e,t,n)}}function oZ(e,t){var n=e.ref,r=e.refCleanup;if(null!==n){if("function"==typeof r)try{r()}catch(n){ux(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){ux(e,t,n)}else n.current=null}}function oJ(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){ux(e,e.return,t)}}function o0(e,t,n){try{var r=e.stateNode;(function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,a=null,o=null,i=null,s=null,c=null,f=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&null!=d)switch(m){case"checked":case"value":break;case"defaultValue":s=d;default:r.hasOwnProperty(m)||st(e,t,m,null,r,d)}}for(var p in r){var m=r[p];if(d=n[p],r.hasOwnProperty(p)&&(null!=m||null!=d))switch(p){case"type":a=m;break;case"name":l=m;break;case"checked":c=m;break;case"defaultChecked":f=m;break;case"value":o=m;break;case"defaultValue":i=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(u(137,t));break;default:m!==d&&st(e,t,p,m,r,d)}}tn(e,o,i,s,c,f,a,l);return;case"select":for(a in m=o=i=p=null,n)if(s=n[a],n.hasOwnProperty(a)&&null!=s)switch(a){case"value":break;case"multiple":m=s;default:r.hasOwnProperty(a)||st(e,t,a,null,r,s)}for(l in r)if(a=r[l],s=n[l],r.hasOwnProperty(l)&&(null!=a||null!=s))switch(l){case"value":p=a;break;case"defaultValue":i=a;break;case"multiple":o=a;default:a!==s&&st(e,t,l,a,r,s)}t=i,n=o,r=m,null!=p?ta(e,!!n,p,!1):!!r!=!!n&&(null!=t?ta(e,!!n,t,!0):ta(e,!!n,n?[]:"",!1));return;case"textarea":for(i in m=p=null,n)if(l=n[i],n.hasOwnProperty(i)&&null!=l&&!r.hasOwnProperty(i))switch(i){case"value":case"children":break;default:st(e,t,i,null,r,l)}for(o in r)if(l=r[o],a=n[o],r.hasOwnProperty(o)&&(null!=l||null!=a))switch(o){case"value":p=l;break;case"defaultValue":m=l;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(u(91));break;default:l!==a&&st(e,t,o,l,r,a)}to(e,p,m);return;case"option":for(var h in n)p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h)&&("selected"===h?e.selected=!1:st(e,t,h,null,r,p));for(s in r)p=r[s],m=n[s],r.hasOwnProperty(s)&&p!==m&&(null!=p||null!=m)&&("selected"===s?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:st(e,t,s,p,r,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&st(e,t,g,null,r,p);for(c in r)if(p=r[c],m=n[c],r.hasOwnProperty(c)&&p!==m&&(null!=p||null!=m))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(u(137,t));break;default:st(e,t,c,p,r,m)}return;default:if(td(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&sn(e,t,y,void 0,r,p);for(f in r)p=r[f],m=n[f],r.hasOwnProperty(f)&&p!==m&&(void 0!==p||void 0!==m)&&sn(e,t,f,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&st(e,t,v,null,r,p);for(d in r)p=r[d],m=n[d],r.hasOwnProperty(d)&&p!==m&&(null!=p||null!=m)&&st(e,t,d,p,r,m)})(r,e.type,n,t),r[eO]=t}catch(t){ux(e,e.return,t)}}function o1(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&sg(e.type)||4===e.tag}function o2(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||o1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&sg(e.type)||2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function o3(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&sg(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(o3(e,t,n),e=e.sibling;null!==e;)o3(e,t,n),e=e.sibling}function o4(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);sr(t,r,n),t[eL]=e,t[eO]=n}catch(t){ux(e,e.return,t)}}var o8=!1,o6=!1,o5=!1,o9="function"==typeof WeakSet?WeakSet:Set,o7=null;function ie(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ip(e,n),4&r&&oq(5,n);break;case 1:if(ip(e,n),4&r){if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){ux(n,n.return,e)}else{var l=oa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ux(n,n.return,e)}}}64&r&&oY(n),512&r&&oX(n,n.return);break;case 3:if(ip(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{lk(e,t)}catch(e){ux(n,n.return,e)}}break;case 27:null===t&&4&r&&o4(n);case 26:case 5:ip(e,n),null===t&&4&r&&oJ(n),512&r&&oX(n,n.return);break;case 12:default:ip(e,n);break;case 13:ip(e,n),4&r&&io(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$?"!==e.data||"complete"===n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=uP.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||o8)){t=null!==t&&null!==t.memoizedState||o6,l=o8;var a=o6;o8=r,(o6=t)&&!a?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var l=n.alternate,a=t,o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(a,o,r),oq(4,o);break;case 1:if(e(a,o,r),"function"==typeof(a=(l=o).stateNode).componentDidMount)try{a.componentDidMount()}catch(e){ux(l,l.return,e)}if(null!==(a=(l=o).updateQueue)){var u=l.stateNode;try{var s=a.shared.hiddenCallbacks;if(null!==s)for(a.shared.hiddenCallbacks=null,a=0;a title"))),sr(a,r,n),a[eL]=e,eB(a),r=a;break e;case"link":var o=s$("link","href",l).get(r+(n.href||""));if(o){for(var i=0;i<\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eL]=t,e[eO]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,sr(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&oH(t)}}return oQ(t),t.flags&=-0x1000001,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&oH(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(u(166));if(e=B.current,rT(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(l=rw))switch(l.tag){case 27:case 5:r=l.memoizedProps}e[eL]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||u7(e.nodeValue,n)))||rP(t)}else(e=so(e).createTextNode(r))[eL]=t,t.stateNode=e}return oQ(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(l=rT(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(u(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(u(317));l[eL]=t}else rL(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;oQ(t),l=!1}else l=rO(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(256&t.flags)return a9(t),t;return a9(t),null}}if(a9(t),0!=(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),oV(t,t.updateQueue),oQ(t),null;case 4:return q(),null===e&&uJ(t.stateNode.containerInfo),oQ(t),null;case 10:return rI(t.type),oQ(t),null;case 19:if(j(a7),null===(l=t.memoizedState))return oQ(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)oB(l,!1);else{if(0!==iI||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=oe(e))){for(t.flags|=128,oB(l,!1),e=a.updateQueue,t.updateQueue=e,oV(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)rr(n,e),n=n.sibling;return H(a7,1&a7.current|2),t.child}e=e.sibling}null!==l.tail&&et()>iK&&(t.flags|=128,r=!0,oB(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=oe(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,oV(t,e),oB(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!rx)return oQ(t),null}else 2*et()-l.renderingStartTime>iK&&0x20000000!==n&&(t.flags|=128,r=!0,oB(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=et(),t.sibling=null,e=a7.current,H(a7,r?1&e|2:1&e),t;return oQ(t),null;case 22:case 23:return a9(t),lC(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(oQ(t),6&t.subtreeFlags&&(t.flags|=8192)):oQ(t),null!==(n=t.updateQueue)&&oV(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&j(r8),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),rI(rG),oQ(t),null;case 25:case 30:return null}throw Error(u(156,t.tag))}(t.alternate,t,iM);if(null!==n){iT=n;return}if(null!==(t=t.sibling)){iT=t;return}iT=t=e}while(null!==t);0===iI&&(iI=5)}function um(e,t){do{var n=function(e,t){switch(rk(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return rI(rG),q(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Y(t),null;case 13:if(a9(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(u(340));rL()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return j(a7),null;case 4:return q(),null;case 10:return rI(t.type),null;case 22:case 23:return a9(t),lC(),null!==e&&j(r8),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return rI(rG),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,iT=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling)){iT=e;return}iT=e=n}while(null!==e);iI=6,iT=null}function uh(e,t,n,r,l,a,o,i,s){e.cancelPendingCommit=null;do uk();while(0!==iX);if(0!=(6&iz))throw Error(u(327));if(null!==t){if(t===e.current)throw Error(u(177));if(!function(e,t,n,r,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(n=o&~n;0g&&(o=g,g=h,h=o);var y=nP(i,h),v=nP(i,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=f.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),h>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(f=[],p=i;p=p.parentNode;)1===p.nodeType&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;in?32:n,D.T=null,n=i2,i2=null;var a=iZ,o=i0;if(iX=0,iJ=iZ=null,i0=0,0!=(6&iz))throw Error(u(331));var i=iz;if(iz|=4,iE(a.current),iy(a,a.current,o,n),iz=i,uF(0,!1),ef&&"function"==typeof ef.onPostCommitFiberRoot)try{ef.onPostCommitFiberRoot(ec,a)}catch(e){}return!0}finally{A.p=l,D.T=r,ub(e,t)}}function uS(e,t,n){t=nZ(n,t),t=od(e.stateNode,t,2),null!==(e=lp(e,t,2))&&(eE(e,2),uA(e))}function ux(e,t,n){if(3===e.tag)uS(e,e,n);else for(;null!==t;){if(3===t.tag){uS(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===iG||!iG.has(r))){e=nZ(n,e),null!==(r=lp(t,n=op(2),2))&&(om(n,r,t,e),eE(r,2),uA(r));break}}t=t.return}}function uE(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new iP;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(iF=!0,l.add(n),e=uC.bind(null,e,t,n),t.then(e,e))}function uC(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,iN===e&&(iL&n)===n&&(4===iI||3===iI&&(0x3c00000&iL)===iL&&300>et()-iq?0==(2&iz)&&ul(e,0):iH|=n,iV===iL&&(iV=0)),uA(e)}function u_(e,t){0===t&&(t=eS()),null!==(e=n8(e,t))&&(eE(e,t),uA(e))}function uP(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),u_(e,n)}function uz(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}null!==r&&r.delete(t),u_(e,n)}var uN=null,uT=null,uL=!1,uO=!1,uR=!1,uD=0;function uA(e){e!==uT&&null===e.next&&(null===uT?uN=uT=e:uT=uT.next=e),uO=!0,uL||(uL=!0,sm(function(){0!=(6&iz)?X(er,uM):uI()}))}function uF(e,t){if(!uR&&uO){uR=!0;do for(var n=!1,r=uN;null!==r;){if(!t){if(0!==e){var l=r.pendingLanes;if(0===l)var a=0;else{var o=r.suspendedLanes,i=r.pingedLanes;a=0xc000095&(a=(1<<31-ep(42|e)+1)-1&(l&~(o&~i)))?0xc000095&a|1:a?2|a:0}0!==a&&(n=!0,uH(r,a))}else a=iL,0==(3&(a=eb(r,r===iN?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||ek(r,a)||(n=!0,uH(r,a))}r=r.next}while(n);uR=!1}}function uM(){uI()}function uI(){uO=uL=!1;var e,t=0;0!==uD&&(((e=window.event)&&"popstate"===e.type?e===sc||(sc=e,0):(sc=null,1))||(t=uD),uD=0);for(var n=et(),r=null,l=uN;null!==l;){var a=l.next,o=uU(l,n);0===o?(l.next=null,null===r?uN=a:r.next=a,null===a&&(uT=r)):(r=l,(0!==t||0!=(3&o))&&(uO=!0)),l=a}uF(t,!1)}function uU(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=-0x3c00001&e.pendingLanes;0r){n=r;var o=e.ownerDocument;if(1&n&&sE(o.documentElement),2&n&&sE(o.body),4&n)for(sE(n=o.head),o=n.firstChild;o;){var i=o.nextSibling,u=o.nodeName;o[eI]||"SCRIPT"===u||"STYLE"===u||"LINK"===u&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=i}}if(0===l){e.removeChild(a),ck(t);return}l--}else"$"===n||"$?"===n||"$!"===n?l++:r=n.charCodeAt(0)-48}else r=0;n=a}while(n);ck(t)}function sv(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":sv(n),eU(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function sb(e){return"$!"===e.data||"$?"===e.data&&"complete"===e.ownerDocument.readyState}function sk(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}var sw=null;function sS(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function sx(e,t,n){switch(t=so(n),e){case"html":if(!(e=t.documentElement))throw Error(u(452));return e;case"head":if(!(e=t.head))throw Error(u(453));return e;case"body":if(!(e=t.body))throw Error(u(454));return e;default:throw Error(u(451))}}function sE(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);eU(e)}var sC=new Map,s_=new Set;function sP(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var sz=A.d;A.d={f:function(){var e=sz.f(),t=un();return e||t},r:function(e){var t=eH(e);null!==t&&5===t.tag&&"form"===t.type?aO(t):sz.r(e)},D:function(e){sz.D(e),sT("dns-prefetch",e,null)},C:function(e,t){sz.C(e,t),sT("preconnect",e,t)},L:function(e,t,n){if(sz.L(e,t,n),sN&&e&&t){var r='link[rel="preload"][as="'+tt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(r+='[imagesrcset="'+tt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(r+='[imagesizes="'+tt(n.imageSizes)+'"]')):r+='[href="'+tt(e)+'"]';var l=r;switch(t){case"style":l=sO(e);break;case"script":l=sA(e)}sC.has(l)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),sC.set(l,e),null!==sN.querySelector(r)||"style"===t&&sN.querySelector(sR(l))||"script"===t&&sN.querySelector(sF(l))||(sr(t=sN.createElement("link"),"link",e),eB(t),sN.head.appendChild(t)))}},m:function(e,t){if(sz.m(e,t),sN&&e){var n=t&&"string"==typeof t.as?t.as:"script",r='link[rel="modulepreload"][as="'+tt(n)+'"][href="'+tt(e)+'"]',l=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=sA(e)}if(!sC.has(l)&&(e=p({rel:"modulepreload",href:e},t),sC.set(l,e),null===sN.querySelector(r))){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(sN.querySelector(sF(l)))return}sr(n=sN.createElement("link"),"link",e),eB(n),sN.head.appendChild(n)}}},X:function(e,t){if(sz.X(e,t),sN&&e){var n=eV(sN).hoistableScripts,r=sA(e),l=n.get(r);l||((l=sN.querySelector(sF(r)))||(e=p({src:e,async:!0},t),(t=sC.get(r))&&sj(e,t),eB(l=sN.createElement("script")),sr(l,"link",e),sN.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(r,l))}},S:function(e,t,n){if(sz.S(e,t,n),sN&&e){var r=eV(sN).hoistableStyles,l=sO(e);t=t||"default";var a=r.get(l);if(!a){var o={loading:0,preload:null};if(a=sN.querySelector(sR(l)))o.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=sC.get(l))&&sU(e,n);var i=a=sN.createElement("link");eB(i),sr(i,"link",e),i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),i.addEventListener("load",function(){o.loading|=1}),i.addEventListener("error",function(){o.loading|=2}),o.loading|=4,sI(a,t,sN)}a={type:"stylesheet",instance:a,count:1,state:o},r.set(l,a)}}},M:function(e,t){if(sz.M(e,t),sN&&e){var n=eV(sN).hoistableScripts,r=sA(e),l=n.get(r);l||((l=sN.querySelector(sF(r)))||(e=p({src:e,async:!0,type:"module"},t),(t=sC.get(r))&&sj(e,t),eB(l=sN.createElement("script")),sr(l,"link",e),sN.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},n.set(r,l))}}};var sN="undefined"==typeof document?null:document;function sT(e,t,n){if(sN&&"string"==typeof t&&t){var r=tt(t);r='link[rel="'+e+'"][href="'+r+'"]',"string"==typeof n&&(r+='[crossorigin="'+n+'"]'),s_.has(r)||(s_.add(r),e={rel:e,crossOrigin:n,href:t},null===sN.querySelector(r)&&(sr(t=sN.createElement("link"),"link",e),eB(t),sN.head.appendChild(t)))}}function sL(e,t,n,r){var l=(l=B.current)?sP(l):null;if(!l)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=sO(n.href),(r=(n=eV(l).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=sO(n.href);var a,o,i,s,c=eV(l).hoistableStyles,f=c.get(e);if(f||(l=l.ownerDocument||l,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=l.querySelector(sR(e)))&&!c._p&&(f.instance=c,f.state.loading=5),sC.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},sC.set(e,n),c||(a=l,o=e,i=n,s=f.state,a.querySelector('link[rel="preload"][as="style"]['+o+"]")?s.loading=1:(s.preload=o=a.createElement("link"),o.addEventListener("load",function(){return s.loading|=1}),o.addEventListener("error",function(){return s.loading|=2}),sr(o,"link",i),eB(o),a.head.appendChild(o))))),t&&null===r)throw Error(u(528,""));return f}if(t&&null!==r)throw Error(u(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=sA(n),(r=(n=eV(l).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function sO(e){return'href="'+tt(e)+'"'}function sR(e){return'link[rel="stylesheet"]['+e+"]"}function sD(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function sA(e){return'[src="'+tt(e)+'"]'}function sF(e){return"script[async]"+e}function sM(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+tt(n.href)+'"]');if(r)return t.instance=r,eB(r),r;var l=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return eB(r=(e.ownerDocument||e).createElement("style")),sr(r,"style",l),sI(r,n.precedence,e),t.instance=r;case"stylesheet":l=sO(n.href);var a=e.querySelector(sR(l));if(a)return t.state.loading|=4,t.instance=a,eB(a),a;r=sD(n),(l=sC.get(l))&&sU(r,l),eB(a=(e.ownerDocument||e).createElement("link"));var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),sr(a,"link",r),t.state.loading|=4,sI(a,n.precedence,e),t.instance=a;case"script":if(a=sA(n.src),l=e.querySelector(sF(a)))return t.instance=l,eB(l),l;return r=n,(l=sC.get(a))&&sj(r=p({},n),l),eB(l=(e=e.ownerDocument||e).createElement("script")),sr(l,"link",r),e.head.appendChild(l),t.instance=l;case"void":return null;default:throw Error(u(443,t.type))}else"stylesheet"===t.type&&0==(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,sI(r,n.precedence,e));return t.instance}function sI(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=r.length?r[r.length-1]:null,a=l,o=0;o title"):null)}function sB(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var sQ=null;function sW(){}function sq(){if(this.count--,0===this.count){if(this.stylesheets)sY(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sK=null;function sY(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sK=new Map,t.forEach(sG,e),sK=null,sq.call(e))}function sG(e,t){if(!(4&t.state.loading)){var n=sK.get(e);if(n)var r=n.get(null);else{n=new Map,sK.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a{var r=n(4232);function l(e){var t="https://react.dev/errors/"+e;if(1{function n(e,t){var n=e.length;for(e.push(t);0>>1,l=e[r];if(0>>1;ra(u,n))sa(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[i]=n,r=i);else if(sa(c,n))e[r]=c,e[s]=n,r=s;else break}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o,i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}var c=[],f=[],d=1,p=null,m=3,h=!1,g=!1,y=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,k="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function S(e){for(var t=r(f);null!==t;){if(null===t.callback)l(f);else if(t.startTime<=e)l(f),t.sortIndex=t.expirationTime,n(c,t);else break;t=r(f)}}function x(e){if(y=!1,S(e),!g){if(null!==r(c))g=!0,E||(E=!0,o());else{var t=r(f);null!==t&&O(x,t.startTime-e)}}}var E=!1,C=-1,_=5,P=-1;function z(){return!!v||!(t.unstable_now()-P<_)}function N(){if(v=!1,E){var e=t.unstable_now();P=e;var n=!0;try{e:{g=!1,y&&(y=!1,k(C),C=-1),h=!0;var a=m;try{t:{for(S(e),p=r(c);null!==p&&!(p.expirationTime>e&&z());){var i=p.callback;if("function"==typeof i){p.callback=null,m=p.priorityLevel;var u=i(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof u){p.callback=u,S(e),n=!0;break t}p===r(c)&&l(c),S(e)}else l(c);p=r(c)}if(null!==p)n=!0;else{var s=r(f);null!==s&&O(x,s.startTime-e),n=!1}}break e}finally{p=null,m=a,h=!1}n=void 0}}finally{n?o():E=!1}}}if("function"==typeof w)o=function(){w(N)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,L=T.port2;T.port1.onmessage=N,o=function(){L.postMessage(null)}}else o=function(){b(N,0)};function O(e,n){C=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125i?(e.sortIndex=a,n(f,e),null===r(c)&&e===r(f)&&(y?(k(C),C=-1):y=!0,O(x,a-i))):(e.sortIndex=u,n(c,e),g||h||(g=!0,E||(E=!0,o()))),e},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(e){var t=m;return function(){var n=m;m=t;try{return e.apply(this,arguments)}finally{m=n}}}},7876:(e,t,n)=>{e.exports=n(8228)},8228:(e,t)=>{var n=Symbol.for("react.transitional.element");function r(e,t,r){var l=null;if(void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return{$$typeof:n,type:e,key:l,ref:void 0!==(t=r.ref)?t:null,props:r}}t.Fragment=Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},8477:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4655)},8944:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4279)}}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/main-68a4efb29ad45f01.js b/_backend/frontend/_next/static/chunks/main-68a4efb29ad45f01.js new file mode 100644 index 0000000000000000000000000000000000000000..bb0e08a4fc13cbfc3e49f78c18a393dea3b48677 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/main-68a4efb29ad45f01.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[792],{536:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},541:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(2746),o=r(8040);function a(e,t,r){void 0===r&&(r=!0);let a=new URL((0,n.getLocationOrigin)()),i=t?new URL(t,a):e.startsWith(".")?new URL(window.location.href):a,{pathname:u,searchParams:l,search:s,hash:c,href:f,origin:d}=new URL(e,i);if(d!==a.origin)throw Object.defineProperty(Error("invariant: invalid relative URL, router received "+e),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:u,query:r?(0,o.searchParamsToUrlQuery)(l):void 0,search:s,hash:c,href:f.slice(d.length)}}},938:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},990:(e,t)=>{"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},1017:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}});var r=function(e){return e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e}({});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1025:(e,t,r)=>{"use strict";function n(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(6023),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1226:()=>{},1291:()=>{"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},1318:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RouteAnnouncer:function(){return l},default:function(){return s}});let n=r(4252),o=r(7876),a=n._(r(4232)),i=r(4294),u={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},l=()=>{let{asPath:e}=(0,i.useRouter)(),[t,r]=a.default.useState(""),n=a.default.useRef(e);return a.default.useEffect(()=>{if(n.current!==e){if(n.current=e,document.title)r(document.title);else{var t;let n=document.querySelector("h1");r((null!=(t=null==n?void 0:n.innerText)?t:null==n?void 0:n.textContent)||e)}}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:u,children:t})},s=l;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1533:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(2746),o=r(6023);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},1827:(e,t)=>{"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},1862:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let r=new WeakMap;function n(e,t){let n;if(!t)return{pathname:e};let o=r.get(t);o||(o=t.map(e=>e.toLowerCase()),r.set(t,o));let a=e.split("/",2);if(!a[1])return{pathname:e};let i=a[1].toLowerCase(),u=o.indexOf(i);return u<0?{pathname:e}:(n=t[u],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}},1921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let n=r(8040),o=r(8480),a=r(990),i=r(2746),u=r(8205),l=r(1533),s=r(3069),c=r(8069);function f(e,t,r){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(d))return r?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,u)}))}let i=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},2092:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return a}});let n=r(2889),o=r(8205);function a(e,t){return(0,o.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2326:(e,t)=>{"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},2455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return r}});let r=/Mediapartners-Google|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview/i},2591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{REDIRECT_ERROR_CODE:function(){return o},RedirectType:function(){return a},isRedirectError:function(){return i}});let n=r(1017),o="NEXT_REDIRECT";var a=function(e){return e.push="push",e.replace="replace",e}({});function i(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[r,a]=t,i=t.slice(2,-2).join(";"),u=Number(t.at(-2));return r===o&&("replace"===a||"push"===a)&&"string"==typeof i&&!isNaN(u)&&u in n.RedirectStatusCode}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2616:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return g},NormalizeError:function(){return _},PageNotFoundError:function(){return m},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return i},getURL:function(){return u},isAbsoluteUrl:function(){return a},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function u(){let{href:e}=window.location,t=i();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class _ extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class g extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},2792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let n=r(4252),o=r(2092),a=r(8069),i=n._(r(1827)),u=r(4591),l=r(9163),s=r(541),c=r(4902),f=r(7176);r(3802);class d{getPageList(){return(0,f.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(e){let{asPath:t,href:r,locale:n}=e,{pathname:f,query:d,search:p}=(0,s.parseRelativeUrl)(r),{pathname:h}=(0,s.parseRelativeUrl)(t),_=(0,c.removeTrailingSlash)(f);if("/"!==_[0])throw Object.defineProperty(Error('Route name should start with a "/", got "'+_+'"'),"__NEXT_ERROR_CODE",{value:"E303",enumerable:!1,configurable:!0});return(e=>{let t=(0,i.default)((0,c.removeTrailingSlash)((0,u.addLocale)(e,n)),".json");return(0,o.addBasePath)("/_next/data/"+this.buildId+t+p,!0)})(e.skipInterpolation?h:(0,l.isDynamicRoute)(_)?(0,a.interpolateAs)(f,h,d).result:_)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}constructor(e,t){this.routeLoader=(0,f.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return i},LayoutRouterContext:function(){return a},MissingSlotContext:function(){return l},TemplateContext:function(){return u}});let n=r(4252)._(r(4232)),o=n.default.createContext(null),a=n.default.createContext(null),i=n.default.createContext(null),u=n.default.createContext(null),l=n.default.createContext(new Set)},2889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let n=r(3670);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+t+r+o+a}},2917:(e,t)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},setConfig:function(){return o}});let n=()=>r;function o(e){r=e}},2959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return a},normalizeRscURL:function(){return i}});let n=r(938),o=r(8714);function a(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}},3069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(3703),o=r(9163)},3090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Portal",{enumerable:!0,get:function(){return a}});let n=r(4232),o=r(8477),a=e=>{let{children:t,type:r}=e,[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.createElement(r);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[r]),a?(0,o.createPortal)(t,a):null};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BailoutToCSRError:function(){return n},isBailoutToCSRError:function(){return o}});let r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class n extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=r}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}},3132:(e,t)=>{"use strict";function r(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},3407:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(1862),o=r(6292),a=r(3716);function i(e,t){var r,i;let{basePath:u,i18n:l,trailingSlash:s}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};u&&(0,a.pathHasPrefix)(c.pathname,u)&&(c.pathname=(0,o.removePathPrefix)(c.pathname,u),c.basePath=u);let f=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");c.buildId=e[0],f="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=f)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(i=e.pathname)?i:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(f):(0,n.normalizeLocalePath)(f,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},3575:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getReactStitchedError",{enumerable:!0,get:function(){return s}});let n=r(4252),o=n._(r(4232)),a=n._(r(6240)),i=r(8089),u="react-stack-bottom-frame",l=RegExp("(at "+u+" )|("+u+"\\@)");function s(e){let t=(0,a.default)(e),r=t&&e.stack||"",n=t?e.message:"",u=r.split("\n"),s=u.findIndex(e=>l.test(e)),c=s>=0?u.slice(0,s).join("\n"):r,f=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return Object.assign(f,e),(0,i.copyNextErrorCode)(e,f),f.stack=c,function(e){if(!o.default.captureOwnerStack)return;let t=e.stack||"",r=o.default.captureOwnerStack();r&&!1===t.endsWith(r)&&(e.stack=t+=r)}(f),f}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3670:(e,t)=>{"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},3703:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").'),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("…"))throw Object.defineProperty(Error("Detected a three-dot character ('…') at ('"+r+"'). Did you mean ('...')?"),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(r.startsWith("."))throw Object.defineProperty(Error("Segment names may not start with erroneous periods ('"+r+"')."),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function a(e,r){if(null!==e&&e!==r)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"')."),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});t.forEach(e=>{if(e===r)throw Object.defineProperty(Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Object.defineProperty(Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Object.defineProperty(Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).'),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'+e[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},o=[];for(let n=0;ne[r[t]])}},3716:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(3670);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},3718:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8757),self.__next_set_public_path__=e=>{r.p=e},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3802:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return b},APP_CLIENT_INTERNALS:function(){return Q},APP_PATHS_MANIFEST:function(){return m},APP_PATH_ROUTES_MANIFEST:function(){return g},BARREL_OPTIMIZATION_PREFIX:function(){return X},BLOCKED_PAGES:function(){return U},BUILD_ID_FILE:function(){return D},BUILD_MANIFEST:function(){return E},CLIENT_PUBLIC_FILES_PATH:function(){return F},CLIENT_REFERENCE_MANIFEST:function(){return W},CLIENT_STATIC_FILES_PATH:function(){return k},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return Z},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return K},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return $},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return et},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return er},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return J},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return ee},COMPILER_INDEXES:function(){return a},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return L},DEFAULT_RUNTIME_WEBPACK:function(){return en},DEFAULT_SANS_SERIF_FONT:function(){return el},DEFAULT_SERIF_FONT:function(){return eu},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return N},DEV_CLIENT_PAGES_MANIFEST:function(){return C},DYNAMIC_CSS_MANIFEST:function(){return Y},EDGE_RUNTIME_WEBPACK:function(){return eo},EDGE_UNSUPPORTED_NODE_APIS:function(){return ep},EXPORT_DETAIL:function(){return O},EXPORT_MARKER:function(){return v},FUNCTIONS_CONFIG_MANIFEST:function(){return y},IMAGES_MANIFEST:function(){return j},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return z},MIDDLEWARE_BUILD_MANIFEST:function(){return q},MIDDLEWARE_MANIFEST:function(){return w},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return V},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return H},NEXT_FONT_MANIFEST:function(){return R},PAGES_MANIFEST:function(){return h},PHASE_DEVELOPMENT_SERVER:function(){return f},PHASE_EXPORT:function(){return l},PHASE_INFO:function(){return p},PHASE_PRODUCTION_BUILD:function(){return s},PHASE_PRODUCTION_SERVER:function(){return c},PHASE_TEST:function(){return d},PRERENDER_MANIFEST:function(){return S},REACT_LOADABLE_MANIFEST:function(){return M},ROUTES_MANIFEST:function(){return T},RSC_MODULE_TYPES:function(){return ed},SERVER_DIRECTORY:function(){return x},SERVER_FILES_MANIFEST:function(){return A},SERVER_PROPS_ID:function(){return ei},SERVER_REFERENCE_MANIFEST:function(){return G},STATIC_PROPS_ID:function(){return ea},STATIC_STATUS_PAGES:function(){return es},STRING_LITERAL_DROP_BUNDLE:function(){return B},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return P},SYSTEM_ENTRYPOINTS:function(){return eh},TRACE_OUTPUT_VERSION:function(){return ec},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return I},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ef},UNDERSCORE_NOT_FOUND_ROUTE:function(){return i},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return u},WEBPACK_STATS:function(){return _}});let n=r(4252)._(r(6582)),o={client:"client",server:"server",edgeServer:"edge-server"},a={[o.client]:0,[o.server]:1,[o.edgeServer]:2},i="/_not-found",u=""+i+"/page",l="phase-export",s="phase-production-build",c="phase-production-server",f="phase-development-server",d="phase-test",p="phase-info",h="pages-manifest.json",_="webpack-stats.json",m="app-paths-manifest.json",g="app-path-routes-manifest.json",E="build-manifest.json",b="app-build-manifest.json",y="functions-config-manifest.json",P="subresource-integrity-manifest",R="next-font-manifest",v="export-marker.json",O="export-detail.json",S="prerender-manifest.json",T="routes-manifest.json",j="images-manifest.json",A="required-server-files.json",C="_devPagesManifest.json",w="middleware-manifest.json",I="_clientMiddlewareManifest.json",N="_devMiddlewareManifest.json",M="react-loadable-manifest.json",x="server",L=["next.config.js","next.config.mjs","next.config.ts"],D="BUILD_ID",U=["/_document","/_app","/_error"],F="public",k="static",B="__NEXT_DROP_CLIENT_FILE__",H="__NEXT_BUILTIN_DOCUMENT__",X="__barrel_optimize__",W="client-reference-manifest",G="server-reference-manifest",q="middleware-build-manifest",V="middleware-react-loadable-manifest",z="interception-route-rewrite-manifest",Y="dynamic-css-manifest",K="main",$=""+K+"-app",Q="app-pages-internals",J="react-refresh",Z="amp",ee="webpack",et="polyfills",er=Symbol(et),en="webpack-runtime",eo="edge-runtime-webpack",ea="__N_SSG",ei="__N_SSP",eu={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},el={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},es=["/500"],ec=1,ef=6e3,ed={client:"client",server:"server"},ep=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eh=new Set([K,J,Z,$]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3836:(e,t,r)=>{"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(3670),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3996:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return E},handleClientScriptLoad:function(){return _},initScriptLoader:function(){return m}});let n=r(4252),o=r(8365),a=r(7876),i=n._(r(8477)),u=o._(r(4232)),l=r(8831),s=r(9611),c=r(6959),f=new Map,d=new Set,p=e=>{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:"style"})});return}{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:u="afterInteractive",onError:l,stylesheets:c}=e,h=r||t;if(h&&d.has(h))return;if(f.has(t)){d.add(h),f.get(t).then(n,l);return}let _=()=>{o&&o(),d.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),_()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});a?(m.innerHTML=a.__html||"",_()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",_()):t&&(m.src=t,f.set(t,g)),(0,s.setAttributesFromProps)(m,e),"worker"===u&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",u),c&&p(c),document.body.appendChild(m)};function _(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(_),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:f,stylesheets:p,..._}=e,{updateScripts:m,scripts:g,getIsSsr:E,appDir:b,nonce:y}=(0,u.useContext)(l.HeadManagerContext),P=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;P.current||(o&&e&&d.has(e)&&o(),P.current=!0)},[o,t,r]);let R=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!R.current){if("afterInteractive"===s)h(e);else if("lazyOnload"===s)"complete"===document.readyState?(0,c.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))});R.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(m?(g[s]=(g[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:f,..._}]),m(g)):E&&E()?d.add(t||r):E&&!E()&&h(e)),b){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)return r?(i.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:y,crossOrigin:_.crossOrigin}:{as:"script",nonce:y,crossOrigin:_.crossOrigin}),(0,a.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{..._,id:t}])+")"}})):(_.dangerouslySetInnerHTML&&(_.children=_.dangerouslySetInnerHTML.__html,delete _.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{..._,id:t}])+")"}}));"afterInteractive"===s&&r&&i.default.preload(r,_.integrity?{as:"script",integrity:_.integrity,nonce:y,crossOrigin:_.crossOrigin}:{as:"script",nonce:y,crossOrigin:_.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let E=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4069:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,0x5bd1e995);return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},4181:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTTPAccessErrorStatus:function(){return r},HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return o},getAccessFallbackErrorTypeByStatus:function(){return u},getAccessFallbackHTTPStatus:function(){return i},isHTTPAccessFallbackError:function(){return a}});let r={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},n=new Set(Object.values(r)),o="NEXT_HTTP_ERROR_FALLBACK";function a(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r]=e.digest.split(";");return t===o&&n.has(Number(r))}function i(e){return Number(e.digest.split(";")[1])}function u(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4252:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:()=>n})},4294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},createRouter:function(){return _},default:function(){return p},makePublicRouterInstance:function(){return m},useRouter:function(){return h},withRouter:function(){return l.default}});let n=r(4252),o=n._(r(4232)),a=n._(r(8276)),i=r(9948),u=n._(r(6240)),l=n._(r(8147)),s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw Object.defineProperty(Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return s.router}Object.defineProperty(s,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(s,e,{get:()=>d()[e]})}),f.forEach(e=>{s[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{s.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),s.readyCallbacks=[],s.router}function m(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,f.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},4547:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return i},isEqualNode:function(){return a}});let o=r(9611);function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function i(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let r=t.title?t.title[0]:null,o="";if(r){let{children:e}=r.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let r=document.querySelector("head");if(!r)return;let n=new Set(r.querySelectorAll(""+e+"[data-next-head]"));if("meta"===e){let e=r.querySelector("meta[charset]");null!==e&&n.add(e)}let i=[];for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4591:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(8205);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(4252)._(r(9871));class o{end(e){if("ended"===this.state.state)throw Object.defineProperty(Error("Span has already ended"),"__NEXT_ERROR_CODE",{value:"E17",enumerable:!1,configurable:!0});this.state={state:"ended",endTime:null!=e?e:Date.now()},this.onSpanEnd(this)}constructor(e,t,r){var n,o;this.name=e,this.attributes=null!=(n=t.attributes)?n:{},this.startTime=null!=(o=t.startTime)?o:Date.now(),this.onSpanEnd=r,this.state={state:"inprogress"}}}class a{startSpan(e,t){return new o(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,n.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}}let i=new a;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4902:(e,t)=>{"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},4980:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return u}});let n=r(4902),o=r(2889),a=r(7952),i=r(6711);function u(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},5195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(3069),o=r(5419);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},5214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getNamedMiddlewareRegex:function(){return _},getNamedRouteRegex:function(){return h},getRouteRegex:function(){return f},parseParameter:function(){return l}});let n=r(9308),o=r(7188),a=r(1924),i=r(4902),u=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function l(e){let t=e.match(u);return t?s(t[2]):s(e)}function s(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function c(e,t,r){let n={},l=1,c=[];for(let f of(0,i.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.find(e=>f.startsWith(e)),i=f.match(u);if(e&&i&&i[2]){let{key:t,optional:r,repeat:o}=s(i[2]);n[t]={pos:l++,repeat:o,optional:r},c.push("/"+(0,a.escapeStringRegexp)(e)+"([^/]+?)")}else if(i&&i[2]){let{key:e,repeat:t,optional:o}=s(i[2]);n[e]={pos:l++,repeat:t,optional:o},r&&i[1]&&c.push("/"+(0,a.escapeStringRegexp)(i[1]));let u=t?o?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";r&&i[1]&&(u=u.substring(1)),c.push(u)}else c.push("/"+(0,a.escapeStringRegexp)(f));t&&i&&i[3]&&c.push((0,a.escapeStringRegexp)(i[3]))}return{parameterizedRoute:c.join(""),groups:n}}function f(e,t){let{includeSuffix:r=!1,includePrefix:n=!1,excludeOptionalTrailingSlash:o=!1}=void 0===t?{}:t,{parameterizedRoute:a,groups:i}=c(e,r,n),u=a;return o||(u+="(?:/)?"),{re:RegExp("^"+u+"$"),groups:i}}function d(e){let t,{interceptionMarker:r,getSafeRouteKey:n,segment:o,routeKeys:i,keyPrefix:u,backreferenceDuplicateKeys:l}=e,{key:c,optional:f,repeat:d}=s(o),p=c.replace(/\W/g,"");u&&(p=""+u+p);let h=!1;(0===p.length||p.length>30)&&(h=!0),isNaN(parseInt(p.slice(0,1)))||(h=!0),h&&(p=n());let _=p in i;u?i[p]=""+u+c:i[p]=c;let m=r?(0,a.escapeStringRegexp)(r):"";return t=_&&l?"\\k<"+p+">":d?"(?<"+p+">.+?)":"(?<"+p+">[^/]+?)",f?"(?:/"+m+t+")?":"/"+m+t}function p(e,t,r,l,s){let c;let f=(c=0,()=>{let e="",t=++c;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),p={},h=[];for(let c of(0,i.removeTrailingSlash)(e).slice(1).split("/")){let e=o.INTERCEPTION_ROUTE_MARKERS.some(e=>c.startsWith(e)),i=c.match(u);if(e&&i&&i[2])h.push(d({getSafeRouteKey:f,interceptionMarker:i[1],segment:i[2],routeKeys:p,keyPrefix:t?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,backreferenceDuplicateKeys:s}));else if(i&&i[2]){l&&i[1]&&h.push("/"+(0,a.escapeStringRegexp)(i[1]));let e=d({getSafeRouteKey:f,segment:i[2],routeKeys:p,keyPrefix:t?n.NEXT_QUERY_PARAM_PREFIX:void 0,backreferenceDuplicateKeys:s});l&&i[1]&&(e=e.substring(1)),h.push(e)}else h.push("/"+(0,a.escapeStringRegexp)(c));r&&i&&i[3]&&h.push((0,a.escapeStringRegexp)(i[3]))}return{namedParameterizedRoute:h.join(""),routeKeys:p}}function h(e,t){var r,n,o;let a=p(e,t.prefixRouteKeys,null!=(r=t.includeSuffix)&&r,null!=(n=t.includePrefix)&&n,null!=(o=t.backreferenceDuplicateKeys)&&o),i=a.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(i+="(?:/)?"),{...f(e,t),namedRegex:"^"+i+"$",routeKeys:a.routeKeys}}function _(e,t){let{parameterizedRoute:r}=c(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=p(e,!1,!1,!1,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},5364:(e,t,r)=>{"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(5861)},5419:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},5519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(2746);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw Object.defineProperty(new n.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},i={};for(let[e,t]of Object.entries(r)){let r=o[t.pos];void 0!==r&&(t.repeat?i[e]=r.split("/").map(e=>a(e)):i[e]=a(r))}return i}}},5842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(3718);let n=r(9525);window.next={version:n.version,get router(){return n.router},emitter:n.emitter},(0,n.initialize)({}).then(()=>(0,n.hydrate)()).catch(console.error),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5861:e=>{!function(){var t={229:function(e){var t,r,n,o=e.exports={};function a(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l=[],s=!1,c=-1;function f(){s&&n&&(s=!1,n.length?l=n.concat(l):c=-1,l.length&&d())}function d(){if(!s){var e=u(f);s=!0;for(var t=l.length;t;){for(n=l,l=[];++c1)for(var r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathParamsContext:function(){return i},PathnameContext:function(){return a},SearchParamsContext:function(){return o}});let n=r(4232),o=(0,n.createContext)(null),a=(0,n.createContext)(null),i=(0,n.createContext)(null)},6023:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let n=r(3716);function o(e){return(0,n.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(8096);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Object.defineProperty(Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},6292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(3716);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},6582:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},6711:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(2889),o=r(3716);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},6818:(e,t)=>{"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return a}});let n=r(4181),o=r(2591);function a(e){return(0,o.isRedirectError)(e)||(0,n.isHTTPAccessFallbackError)(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return m},getClientBuildManifest:function(){return h},isAssetError:function(){return c},markAssetError:function(){return s}}),r(4252),r(1827);let n=r(6818),o=r(6959),a=r(8757),i=r(536);function u(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,{resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let l=Symbol("ASSET_LOAD_ERROR");function s(e){return Object.defineProperty(e,l,{})}function c(e){return e&&l in e}let f=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),d=()=>(0,a.getDeploymentIdQueryOrEmptyString)();function p(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function h(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):p(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,s(Object.defineProperty(Error("Failed to load client build manifest"),"__NEXT_ERROR_CODE",{value:"E273",enumerable:!1,configurable:!0})))}function _(e,t){return h().then(r=>{if(!(t in r))throw s(Object.defineProperty(Error("Failed to lookup route: "+t),"__NEXT_ERROR_CODE",{value:"E446",enumerable:!1,configurable:!0}));let o=r[t].map(t=>e+"/_next/"+(0,i.encodeURIPath)(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+d()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+d())}})}function m(e){let t=new Map,r=new Map,n=new Map,a=new Map;function i(e){{var t;let n=r.get(e.toString());return n?n:document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(s(Object.defineProperty(Error("Failed to load script: "+e),"__NEXT_ERROR_CODE",{value:"E74",enumerable:!1,configurable:!0}))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n)}}function l(e){let t=n.get(e);return t||n.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Object.defineProperty(Error("Failed to load stylesheet: "+e),"__NEXT_ERROR_CODE",{value:"E189",enumerable:!1,configurable:!0});return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw s(e)})),t}return{whenEntrypoint:e=>u(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),a.delete(e))})},loadRoute(r,n){return u(r,a,()=>{let o;return p(_(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(i)),Promise.all(o.map(l))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,s(Object.defineProperty(Error("Route did not complete loading: "+r),"__NEXT_ERROR_CODE",{value:"E12",enumerable:!1,configurable:!0}))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():_(e,t).then(e=>Promise.all(f?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{let a='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(s(Object.defineProperty(Error("Failed to prefetch: "+t),"__NEXT_ERROR_CODE",{value:"E268",enumerable:!1,configurable:!0}))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return a}});let n=r(2959),o=["(..)(..)","(.)","(..)","(...)"];function a(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function i(e){let t,r,a;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,a]=e.split(r,2);break}if(!t||!r||!a)throw Object.defineProperty(Error("Invalid interception route: "+e+". Must be in the format //(..|...|..)(..)/"),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":a="/"===t?"/"+a:t+"/"+a;break;case"(..)":if("/"===t)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..) marker at the root level, use (.) instead."),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});a=t.split("/").slice(0,-1).concat(a).join("/");break;case"(...)":a="/"+a;break;case"(..)(..)":let i=t.split("/");if(i.length<=2)throw Object.defineProperty(Error("Invalid interception route: "+e+". Cannot use (..)(..) marker at the root level or one level up."),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});a=i.slice(0,-2).concat(a).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:t,interceptedRoute:a}}},7207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"onRecoverableError",{enumerable:!0,get:function(){return l}});let n=r(4252),o=r(3123),a=r(4569),i=r(3575),u=n._(r(6240)),l=(e,t)=>{let r=(0,u.default)(e)&&"cause"in e?e.cause:e,n=(0,i.getReactStitchedError)(r);(0,o.isBailoutToCSRError)(r)||(0,a.reportGlobalError)(n)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7407:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HTML_LIMITED_BOT_UA_RE:function(){return n.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return a},getBotType:function(){return l},isBot:function(){return u}});let n=r(2455),o=/Googlebot|Google-PageRenderer|AdsBot-Google|googleweblight|Storebot-Google/i,a=n.HTML_LIMITED_BOT_UA_RE.source;function i(e){return n.HTML_LIMITED_BOT_UA_RE.test(e)}function u(e){return o.test(e)||i(e)}function l(e){return o.test(e)?"dom":i(e)?"html":void 0}},7539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},7952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(3670);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},8040:(e,t)=>{"use strict";function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(5519),o=r(5214);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),u=i.groups,l=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=u[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:s,result:a}}},8089:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{copyNextErrorCode:function(){return n},createDigestWithErrorCode:function(){return r},extractNextErrorCode:function(){return o}});let r=(e,t)=>"object"==typeof e&&null!==e&&"__NEXT_ERROR_CODE"in e?`${t}@${e.__NEXT_ERROR_CODE}`:t,n=(e,t)=>{let r=o(e);r&&"object"==typeof t&&null!==t&&Object.defineProperty(t,"__NEXT_ERROR_CODE",{value:r,enumerable:!1,configurable:!0})},o=e=>"object"==typeof e&&null!==e&&"__NEXT_ERROR_CODE"in e&&"string"==typeof e.__NEXT_ERROR_CODE?e.__NEXT_ERROR_CODE:"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest?e.digest.split("@").find(e=>e.startsWith("E")):void 0},8096:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},8147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}}),r(4252);let n=r(7876);r(4232);let o=r(4294);function a(e){function t(t){return(0,n.jsx)(e,{router:(0,o.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8205:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return a}});let n=r(4902),o=r(3670),a=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:a}=(0,o.parsePath)(e);return""+(0,n.removeTrailingSlash)(t)+r+a};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8213:(e,t)=>{"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},8276:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return G},default:function(){return z},matchesMiddleware:function(){return D}});let n=r(4252),o=r(8365),a=r(4902),i=r(7176),u=r(3996),l=o._(r(6240)),s=r(5195),c=r(1862),f=n._(r(9871)),d=r(2746),p=r(9163),h=r(541);r(1226);let _=r(5519),m=r(5214),g=r(8480);r(2616);let E=r(3670),b=r(4591),y=r(3836),P=r(1025),R=r(2092),v=r(6023),O=r(1921),S=r(2326),T=r(3407),j=r(4980),A=r(4359),C=r(1533),w=r(7407),I=r(990),N=r(8069),M=r(3132),x=r(9308);function L(){return Object.assign(Object.defineProperty(Error("Route Cancelled"),"__NEXT_ERROR_CODE",{value:"E315",enumerable:!1,configurable:!0}),{cancelled:!0})}async function D(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,E.parsePath)(e.asPath),n=(0,v.hasBasePath)(r)?(0,P.removeBasePath)(r):r,o=(0,R.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function U(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function F(e,t,r){let[n,o]=(0,O.resolveHref)(e,t,!0),a=(0,d.getLocationOrigin)(),i=n.startsWith(a),u=o&&o.startsWith(a);n=U(n),o=o?U(o):o;let l=i?n:(0,R.addBasePath)(n),s=r?U((0,O.resolveHref)(e,r)):o||n;return{url:l,as:u?s:(0,R.addBasePath)(s)}}function k(e,t){let r=(0,a.removeTrailingSlash)((0,s.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,m.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){if(!await D(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!1},o=t.headers.get("x-nextjs-rewrite"),u=o||t.headers.get("x-nextjs-matched-path"),l=t.headers.get(x.MATCHED_PATH_HEADER);if(!l||u||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(u=l),u){if(u.startsWith("/")){let t=(0,h.parseRelativeUrl)(u),l=(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),s=(0,a.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:u}]=a,f=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(f)||!o&&i.includes((0,c.normalizeLocalePath)((0,P.removeBasePath)(f),r.router.locales).pathname)){let r=(0,T.getNextPathnameInfo)((0,h.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});t.pathname=f=(0,R.addBasePath)(r.pathname)}if(!i.includes(s)){let e=k(s,i);e!==s&&(s=e)}let d=i.includes(s)?s:k((0,c.normalizeLocalePath)((0,P.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,p.isDynamicRoute)(d)){let e=(0,_.getRouteMatcher)((0,m.getRouteRegex)(d))(f);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,E.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,j.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let s=t.headers.get("x-nextjs-redirect");if(s){if(s.startsWith("/")){let e=(0,E.parsePath)(s),t=(0,j.formatNextPathnameInfo)({...(0,T.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:s})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let H=Symbol("SSG_DATA_NOT_FOUND");function X(e){try{return JSON.parse(e)}catch(e){return null}}function W(e){let{dataHref:t,inflightCache:r,isPrefetch:n,hasMiddleware:o,isServerRender:a,parseJSON:u,persistCache:l,isBackground:s,unstable_skipClientCache:c}=e,{href:f}=new URL(t,window.location.href),d=e=>{var s;return(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(t,a?3:1,{headers:Object.assign({},n?{purpose:"prefetch"}:{},n&&o?{"x-middleware-prefetch":"1"}:{},{}),method:null!=(s=null==e?void 0:e.method)?s:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:f}:r.text().then(e=>{if(!r.ok){if(o&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:f};if(404===r.status){var n;if(null==(n=X(e))?void 0:n.notFound)return{dataHref:t,json:{notFound:H},response:r,text:e,cacheKey:f}}let u=Object.defineProperty(Error("Failed to load static props"),"__NEXT_ERROR_CODE",{value:"E124",enumerable:!1,configurable:!0});throw a||(0,i.markAssetError)(u),u}return{dataHref:t,json:u?X(e):null,response:r,text:e,cacheKey:f}})).then(e=>(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[f],e)).catch(e=>{throw c||delete r[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e})};return c&&l?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[f]=Promise.resolve(e)),e)):void 0!==r[f]?r[f]:r[f]=d(s?{method:"HEAD"}:{})}function G(){return Math.random().toString(36).slice(2,10)}function q(e){let{url:t,router:r}=e;if(t===(0,R.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Object.defineProperty(Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href),"__NEXT_ERROR_CODE",{value:"E282",enumerable:!1,configurable:!0});window.location.href=t}let V=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Object.defineProperty(Error('Abort fetching component for route: "'+t+'"'),"__NEXT_ERROR_CODE",{value:"E483",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class z{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=F(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,n,o){{if(!this._bfl_s&&!this._bfl_d){let t,a;let{BloomFilter:u}=r(4069);try{({__routerFilterStatic:t,__routerFilterDynamic:a}=await (0,i.getClientBuildManifest)())}catch(t){if(console.error(t),o)return!0;return q({url:(0,R.addBasePath)((0,b.addLocale)(e,n||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}(null==t?void 0:t.numHashes)&&(this._bfl_s=new u(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==a?void 0:a.numHashes)&&(this._bfl_d=new u(a.numItems,a.errorRate),this._bfl_d.import(a))}let c=!1,f=!1;for(let{as:r,allowMatchCurrent:i}of[{as:e},{as:t}])if(r){let t=(0,a.removeTrailingSlash)(new URL(r,"http://n").pathname),d=(0,R.addBasePath)((0,b.addLocale)(t,n||this.locale));if(i||t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var u,l,s;for(let e of(c=c||!!(null==(u=this._bfl_s)?void 0:u.contains(t))||!!(null==(l=this._bfl_s)?void 0:l.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!f&&e{})}}}}return!1}async change(e,t,r,n,o){var s,c,f,O,S,T,j,w,M;let x,U;if(!(0,C.isLocalURL)(t))return q({url:t,router:this}),!1;let B=1===n._h;B||n.shallow||await this._bfl(r,void 0,n.locale);let X=B||n._shouldResolveHref||(0,E.parsePath)(t).pathname===(0,E.parsePath)(r).pathname,W={...this.state},G=!0!==this.isReady;this.isReady=!0;let V=this.isSsr;if(B||(this.isSsr=!1),B&&this.clc)return!1;let Y=W.locale;d.ST&&performance.mark("routeChange");let{shallow:K=!1,scroll:$=!0}=n,Q={shallow:K};this._inFlightRoute&&this.clc&&(V||z.events.emit("routeChangeError",L(),this._inFlightRoute,Q),this.clc(),this.clc=null),r=(0,R.addBasePath)((0,b.addLocale)((0,v.hasBasePath)(r)?(0,P.removeBasePath)(r):r,n.locale,this.defaultLocale));let J=(0,y.removeLocale)((0,v.hasBasePath)(r)?(0,P.removeBasePath)(r):r,W.locale);this._inFlightRoute=r;let Z=Y!==W.locale;if(!B&&this.onlyAHashChange(J)&&!Z){W.asPath=J,z.events.emit("hashChangeStart",r,Q),this.changeState(e,t,r,{...n,scroll:!1}),$&&this.scrollToHash(J);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&z.events.emit("routeChangeError",e,J,Q),e}return z.events.emit("hashChangeComplete",r,Q),!0}let ee=(0,h.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[x,{__rewrites:U}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return q({url:r,router:this}),!1}this.urlIsNew(J)||Z||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,P.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,h.parseRelativeUrl)(r).pathname;if(null==(s=this.components[et])?void 0:s.__appRouter)return q({url:r,router:this}),new Promise(()=>{});let ei=!!(ea&&eo!==ea&&(!(0,p.isDynamicRoute)(eo)||!(0,_.getRouteMatcher)((0,m.getRouteRegex)(eo))(ea))),eu=!n.shallow&&await D({asPath:r,locale:W.locale,router:this});if(B&&eu&&(X=!1),X&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=k(et,x),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,R.addBasePath)(et),eu||(t=(0,g.formatWithValidation)(ee)))),!(0,C.isLocalURL)(r))return q({url:r,router:this}),!1;en=(0,y.removeLocale)((0,P.removeBasePath)(en),W.locale),eo=(0,a.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(eo)){let e=(0,h.parseRelativeUrl)(en),n=e.pathname,o=(0,m.getRouteRegex)(eo);el=(0,_.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,N.interpolateAs)(eo,n,er):{};if(el&&(!a||i.result))a?r=(0,g.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,I.omit)(er,i.params)})):Object.assign(er,el);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!eu)throw Object.defineProperty(Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as")),"__NEXT_ERROR_CODE",{value:"E344",enumerable:!1,configurable:!0})}}B||z.events.emit("routeChangeStart",r,Q);let es="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:Q,locale:W.locale,isPreview:W.isPreview,hasMiddleware:eu,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:B&&!this.isFallback,isMiddlewareRewrite:ei});if(B||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,W.locale),"route"in a&&eu){eo=et=a.route||eo,Q.shallow||(er=Object.assign({},a.query||{},er));let e=(0,v.hasBasePath)(ee.pathname)?(0,P.removeBasePath)(ee.pathname):ee.pathname;if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&er[e]===el[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!Q.shallow&&a.resolvedAs?a.resolvedAs:(0,R.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,W.locale),!0);(0,v.hasBasePath)(e)&&(e=(0,P.removeBasePath)(e));let t=(0,m.getRouteRegex)(et),n=(0,_.getRouteMatcher)(t)(new URL(e,location.href).pathname);n&&Object.assign(er,n)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return q({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader&&[].concat(i.unstable_scriptLoader()).forEach(e=>{(0,u.handleClientScriptLoad)(e.props)}),(a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,h.parseRelativeUrl)(t);r.pathname=k(r.pathname,x);let{url:o,as:a}=F(this,t,t);return this.change(e,o,a,n)}return q({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on /404"),"__NEXT_ERROR_CODE",{value:"E158",enumerable:!1,configurable:!0})}}B&&"/_error"===this.pathname&&(null==(f=self.__NEXT_DATA__.props)?void 0:null==(c=f.pageProps)?void 0:c.statusCode)===500&&(null==(O=a.props)?void 0:O.pageProps)&&(a.props.pageProps.statusCode=500);let s=n.shallow&&W.route===(null!=(S=a.route)?S:eo),d=null!=(T=n.scroll)?T:!B&&!s,g=null!=o?o:d?{x:0,y:0}:null,E={...W,route:eo,pathname:et,query:er,asPath:J,isFallback:!1};if(B&&es){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:B&&!this.isFallback}),"type"in a)throw Object.defineProperty(Error("Unexpected middleware effect on "+this.pathname),"__NEXT_ERROR_CODE",{value:"E225",enumerable:!1,configurable:!0});"/_error"===this.pathname&&(null==(w=self.__NEXT_DATA__.props)?void 0:null==(j=w.pageProps)?void 0:j.statusCode)===500&&(null==(M=a.props)?void 0:M.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(E,a,g)}catch(e){throw(0,l.default)(e)&&e.cancelled&&z.events.emit("routeChangeError",e,J,Q),e}return!0}if(z.events.emit("beforeHistoryChange",r,Q),this.changeState(e,t,r,n),!(B&&!g&&!G&&!Z&&(0,A.compareRouterStates)(E,this.state))){try{await this.set(E,a,g)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw B||z.events.emit("routeChangeError",a.error,J,Q),a.error;B||z.events.emit("routeChangeComplete",r,Q),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:G()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw z.events.emit("routeChangeError",e,n,o),q({url:n,router:this}),L();console.error(e);try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Object.defineProperty(Error(e+""),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0}),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:u,locale:s,hasMiddleware:f,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:h,isMiddlewareRewrite:_,isNotFound:m}=e,E=t;try{var b,y,R,v;let e=this.components[E];if(u.shallow&&e&&this.route===E)return e;let t=V({route:E,router:this});f&&(e=void 0);let l=!e||"initial"in e?void 0:e,O={dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:m?"/404":i,locale:s}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:h?this.sbc:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:h},T=h&&!_?null:await B({fetchData:()=>W(O),asPath:m?"/404":i,locale:s,router:this}).catch(e=>{if(h)return null;throw e});if(T&&("/_error"===r||"/404"===r)&&(T.effect=void 0),h&&(T?T.json=self.__NEXT_DATA__.props:T={json:self.__NEXT_DATA__.props}),t(),(null==T?void 0:null==(b=T.effect)?void 0:b.type)==="redirect-internal"||(null==T?void 0:null==(y=T.effect)?void 0:y.type)==="redirect-external")return T.effect;if((null==T?void 0:null==(R=T.effect)?void 0:R.type)==="rewrite"){let t=(0,a.removeTrailingSlash)(T.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!h||o.includes(t))&&(E=t,r=T.effect.resolvedHref,n={...n,...T.effect.parsedAs.query},i=(0,P.removeBasePath)((0,c.normalizeLocalePath)(T.effect.parsedAs.pathname,this.locales).pathname),e=this.components[E],u.shallow&&e&&this.route===E&&!f))return{...e,route:E}}if((0,S.isAPIRoute)(E))return q({url:o,router:this}),new Promise(()=>{});let j=l||await this.fetchComponent(E).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),A=null==T?void 0:null==(v=T.response)?void 0:v.headers.get("x-middleware-skip"),C=j.__N_SSG||j.__N_SSP;A&&(null==T?void 0:T.dataHref)&&delete this.sdc[T.dataHref];let{props:w,cacheKey:I}=await this._getData(async()=>{if(C){if((null==T?void 0:T.json)&&!A)return{cacheKey:T.cacheKey,props:T.json};let e=(null==T?void 0:T.dataHref)?T.dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:s}),t=await W({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:A?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:o,locale:s,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&O.dataHref&&I&&delete this.sdc[I],this.isPreview||!j.__N_SSG||h||W(Object.assign({},O,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),w.pageProps=Object.assign({},w.pageProps),j.props=w,j.route=E,j.query=n,j.resolvedAs=i,this.components[E]=j,j}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,n,o,u)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[n,o]=e.split("#",2);return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#",2);(0,M.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}let n=document.getElementsByName(e)[0];n&&n.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,w.isBot)(window.navigator.userAgent))return;let n=(0,h.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:u}=n,l=i,s=await this.pageLoader.getPageList(),c=t,f=void 0!==r.locale?r.locale||void 0:this.locale,d=await D({asPath:t,locale:f,router:this});n.pathname=k(n.pathname,s),(0,p.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(u,(0,_.getRouteMatcher)((0,m.getRouteRegex)(n.pathname))((0,E.parsePath)(t).pathname)||{}),d||(e=(0,g.formatWithValidation)(n)));let b=await B({fetchData:()=>W({dataHref:this.pageLoader.getDataHref({href:(0,g.formatWithValidation)({pathname:l,query:u}),skipInterpolation:!0,asPath:c,locale:f}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:f,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,u={...u,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,g.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let y=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(y).then(t=>!!t&&W({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:f}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](y)])}async fetchComponent(e){let t=V({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Object.defineProperty(Error("Loading initial props cancelled"),"__NEXT_ERROR_CODE",{value:"E405",enumerable:!1,configurable:!0});throw e.cancelled=!0,e}return e})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,d.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,r,{initialProps:n,pageLoader:o,App:i,wrapApp:u,Component:l,err:s,subscription:c,isFallback:f,locale:_,locales:m,defaultLocale:E,domainLocales:b,isPreview:y}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=G(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,g.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),(0,d.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:u}=n;this._key=u;let{pathname:l}=(0,h.parseRelativeUrl)(o);(!this.isSsr||a!==(0,R.addBasePath)(this.asPath)||l!==(0,R.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let P=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[P]={Component:l,initial:!0,props:n,err:s,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:i,styleSheets:[]},this.events=z.events,this.pageLoader=o;let v=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=u,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!v&&!self.location.search),this.state={route:P,pathname:e,query:t,asPath:v?e:r,isPreview:!!y,locale:void 0,isFallback:f},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!r.startsWith("//")){let n={locale:_},o=(0,d.getURL)();this._initialMatchesMiddlewarePromise=D({router:this,locale:_,asPath:o}).then(a=>(n._shouldResolveHref=r!==e,this.changeState("replaceState",a?o:(0,g.formatWithValidation)({pathname:(0,R.addBasePath)(e),query:t}),o,n),a))}window.addEventListener("popstate",this.onPopState)}}z.events=(0,f.default)()},8365:(e,t,r)=>{"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function o(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(o,i,u):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}r.r(t),r.d(t,{_:()=>o})},8480:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return i}});let n=r(8365)._(r(8040)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,a=e.protocol||"",i=e.pathname||"",u=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||o.test(a))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+a+s+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return a(e)}},8677:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=r(4252)._(r(4232)),o=r(7539),a=n.default.createContext(o.imageConfigDefault)},8714:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function o(e,t){if(e.includes(a)){let e=JSON.stringify(t);return"{}"!==e?a+"?"+e:a}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return a},addSearchParamsIfPageSegment:function(){return o},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let a="__PAGE__",i="__DEFAULT__"},8757:(e,t)=>{"use strict";function r(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return r}})},8831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext({})},9163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let n=r(7188),o=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,a=/\/\[[^/]+\](?=\/|$)/;function i(e,t){return(void 0===t&&(t=!0),(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),t)?a.test(e):o.test(e)}},9308:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_SUFFIX:function(){return f},APP_DIR_ALIAS:function(){return I},CACHE_ONE_YEAR:function(){return v},DOT_NEXT_ALIAS:function(){return C},ESLINT_DEFAULT_DIRS:function(){return $},GSP_NO_RETURNED_VALUE:function(){return G},GSSP_COMPONENT_MEMBER_ERROR:function(){return z},GSSP_NO_RETURNED_VALUE:function(){return q},INFINITE_CACHE:function(){return O},INSTRUMENTATION_HOOK_FILENAME:function(){return j},MATCHED_PATH_HEADER:function(){return o},MIDDLEWARE_FILENAME:function(){return S},MIDDLEWARE_LOCATION_REGEXP:function(){return T},NEXT_BODY_SUFFIX:function(){return h},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return R},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return m},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return g},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return P},NEXT_CACHE_TAGS_HEADER:function(){return _},NEXT_CACHE_TAG_MAX_ITEMS:function(){return b},NEXT_CACHE_TAG_MAX_LENGTH:function(){return y},NEXT_DATA_SUFFIX:function(){return d},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return n},NEXT_META_SUFFIX:function(){return p},NEXT_QUERY_PARAM_PREFIX:function(){return r},NEXT_RESUME_HEADER:function(){return E},NON_STANDARD_NODE_ENV:function(){return Y},PAGES_DIR_ALIAS:function(){return A},PRERENDER_REVALIDATE_HEADER:function(){return a},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return i},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return F},ROOT_DIR_ALIAS:function(){return w},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return U},RSC_ACTION_ENCRYPTION_ALIAS:function(){return D},RSC_ACTION_PROXY_ALIAS:function(){return x},RSC_ACTION_VALIDATE_ALIAS:function(){return M},RSC_CACHE_WRAPPER_ALIAS:function(){return L},RSC_MOD_REF_PROXY_ALIAS:function(){return N},RSC_PREFETCH_SUFFIX:function(){return u},RSC_SEGMENTS_DIR_SUFFIX:function(){return l},RSC_SEGMENT_SUFFIX:function(){return s},RSC_SUFFIX:function(){return c},SERVER_PROPS_EXPORT_ERROR:function(){return W},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return B},SERVER_PROPS_SSG_CONFLICT:function(){return H},SERVER_RUNTIME:function(){return Q},SSG_FALLBACK_EXPORT_ERROR:function(){return K},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return k},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return X},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return V},WEBPACK_LAYERS:function(){return Z},WEBPACK_RESOURCE_QUERIES:function(){return ee}});let r="nxtP",n="nxtI",o="x-matched-path",a="x-prerender-revalidate",i="x-prerender-revalidate-if-generated",u=".prefetch.rsc",l=".segments",s=".segment.rsc",c=".rsc",f=".action",d=".json",p=".meta",h=".body",_="x-next-cache-tags",m="x-next-revalidated-tags",g="x-next-revalidate-tag-token",E="next-resume",b=128,y=256,P=1024,R="_N_T_",v=31536e3,O=0xfffffffe,S="middleware",T=`(?:src/)?${S}`,j="instrumentation",A="private-next-pages",C="private-dot-next",w="private-next-root-dir",I="private-next-app-dir",N="private-next-rsc-mod-ref-proxy",M="private-next-rsc-action-validate",x="private-next-rsc-server-reference",L="private-next-rsc-cache-wrapper",D="private-next-rsc-action-encryption",U="private-next-rsc-action-client-wrapper",F="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",k="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",B="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",H="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",X="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",W="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",G="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",q="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",V="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",z="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Y='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',K="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",$=["app","pages","components","lib","src"],Q={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},J={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},Z={...J,GROUP:{builtinReact:[J.reactServerComponents,J.actionBrowser],serverOnly:[J.reactServerComponents,J.actionBrowser,J.instrument,J.middleware],neutralTarget:[J.apiNode,J.apiEdge],clientOnly:[J.serverSideRendering,J.appPagesBrowser],bundled:[J.reactServerComponents,J.actionBrowser,J.serverSideRendering,J.appPagesBrowser,J.shared,J.instrument,J.middleware],appPages:[J.reactServerComponents,J.serverSideRendering,J.appPagesBrowser,J.actionBrowser]}},ee={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},9525:(e,t,r)=>{"use strict";let n,o,a,i,u,l,s,c,f,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{emitter:function(){return H},hydrate:function(){return eu},initialize:function(){return q},router:function(){return n},version:function(){return B}});let _=r(4252),m=r(7876);r(1291);let g=_._(r(4232)),E=_._(r(8944)),b=r(8831),y=_._(r(9871)),P=r(9948),R=r(3132),v=r(9163),O=r(8040),S=r(2917),T=r(2746),j=r(3090),A=_._(r(4547)),C=_._(r(2792)),w=r(1318),I=r(4294),N=r(6240),M=r(8677),x=r(1025),L=r(6023),D=r(2850),U=r(9609),F=r(5931),k=r(7207);r(4609),r(6999);let B="15.2.4",H=(0,y.default)(),X=e=>[].slice.call(e),W=!1;class G extends g.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),n.isSsr&&(o.isFallback||o.nextExport&&((0,v.isDynamicRoute)(n.pathname)||location.search||W)||o.props&&o.props.__N_SSG&&(location.search||W))&&n.replace(n.pathname+"?"+String((0,O.assign)((0,O.urlQueryToSearchParams)(n.query),new URLSearchParams(location.search))),a,{_h:1,shallow:!o.isFallback&&!W}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function q(e){void 0===e&&(e={}),o=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=o,h=o.defaultLocale;let t=o.assetPrefix||"";if(self.__next_set_public_path__(""+t+"/_next/"),(0,S.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:o.runtimeConfig||{}}),a=(0,T.getURL)(),(0,L.hasBasePath)(a)&&(a=(0,x.removeBasePath)(a)),o.scriptLoader){let{initScriptLoader:e}=r(3996);e(o.scriptLoader)}i=new C.default(o.buildId,t);let s=e=>{let[t,r]=e;return i.routeLoader.onEntrypoint(t,r)};return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>s(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=s,(l=(0,A.default)()).getIsSsr=()=>n.isSsr,u=document.getElementById("__next"),{assetPrefix:t}}function V(e,t){return(0,m.jsx)(e,{...t})}function z(e){var t;let{children:r}=e,o=g.default.useMemo(()=>(0,U.adaptForAppRouterInstance)(n),[]);return(0,m.jsx)(G,{fn:e=>K({App:f,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,m.jsx)(D.AppRouterContext.Provider,{value:o,children:(0,m.jsx)(F.SearchParamsContext.Provider,{value:(0,U.adaptForSearchParams)(n),children:(0,m.jsx)(U.PathnameContextProviderAdapter,{router:n,isAutoExport:null!=(t=self.__NEXT_DATA__.autoExport)&&t,children:(0,m.jsx)(F.PathParamsContext.Provider,{value:(0,U.adaptForPathParams)(n),children:(0,m.jsx)(P.RouterContext.Provider,{value:(0,I.makePublicRouterInstance)(n),children:(0,m.jsx)(b.HeadManagerContext.Provider,{value:l,children:(0,m.jsx)(M.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0},children:r})})})})})})})})}let Y=e=>t=>{let r={...t,Component:p,err:o.err,router:n};return(0,m.jsx)(z,{children:V(e,r)})};function K(e){let{App:t,err:u}=e;return console.error(u),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),i.loadPage("/_error").then(n=>{let{page:o,styleSheets:a}=n;return(null==s?void 0:s.Component)===o?r.e(341).then(r.t.bind(r,9341,23)).then(n=>r.e(472).then(r.t.bind(r,472,23)).then(r=>(e.App=t=r.default,n))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:o,styleSheets:a}}).then(r=>{var i;let{ErrorComponent:l,styleSheets:s}=r,c=Y(t),f={Component:l,AppTree:c,router:n,ctx:{err:u,pathname:o.page,query:o.query,asPath:a,AppTree:c}};return Promise.resolve((null==(i=e.props)?void 0:i.err)?e.props:(0,T.loadGetInitialProps)(t,f)).then(t=>ea({...e,err:u,Component:l,styleSheets:s,props:t}))})}function $(e){let{callback:t}=e;return g.default.useLayoutEffect(()=>t(),[t]),null}let Q={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},J={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},Z=null,ee=!0;function et(){[Q.beforeRender,Q.afterHydrate,Q.afterRender,Q.routeChange].forEach(e=>performance.clearMarks(e))}function er(){T.ST&&(performance.mark(Q.afterHydrate),performance.getEntriesByName(Q.beforeRender,"mark").length&&(performance.measure(J.beforeHydration,Q.navigationStart,Q.beforeRender),performance.measure(J.hydration,Q.beforeRender,Q.afterHydrate)),d&&performance.getEntriesByName(J.hydration).forEach(d),et())}function en(){if(!T.ST)return;performance.mark(Q.afterRender);let e=performance.getEntriesByName(Q.routeChange,"mark");e.length&&(performance.getEntriesByName(Q.beforeRender,"mark").length&&(performance.measure(J.routeChangeToRender,e[0].name,Q.beforeRender),performance.measure(J.render,Q.beforeRender,Q.afterRender),d&&(performance.getEntriesByName(J.render).forEach(d),performance.getEntriesByName(J.routeChangeToRender).forEach(d))),et(),[J.routeChangeToRender,J.render].forEach(e=>performance.clearMeasures(e)))}function eo(e){let{callbacks:t,children:r}=e;return g.default.useLayoutEffect(()=>t.forEach(e=>e()),[t]),r}function ea(e){let t,{App:r,Component:o,props:a,err:i}=e,l="initial"in e?void 0:e.styleSheets;o=o||s.Component;let f={...a=a||s.props,Component:o,err:i,router:n};s=f;let d=!1,p=new Promise((e,r)=>{c&&c(),t=()=>{c=null,e()},c=()=>{d=!0,c=null;let e=Object.defineProperty(Error("Cancel rendering route"),"__NEXT_ERROR_CODE",{value:"E503",enumerable:!1,configurable:!0});e.cancelled=!0,r(e)}});function h(){t()}!function(){if(!l)return;let e=new Set(X(document.querySelectorAll("style[data-n-href]")).map(e=>e.getAttribute("data-n-href"))),t=document.querySelector("noscript[data-n-css]"),r=null==t?void 0:t.getAttribute("data-n-css");l.forEach(t=>{let{href:n,text:o}=t;if(!e.has(n)){let e=document.createElement("style");e.setAttribute("data-n-href",n),e.setAttribute("media","x"),r&&e.setAttribute("nonce",r),document.head.appendChild(e),e.appendChild(document.createTextNode(o))}})}();let _=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)($,{callback:function(){if(l&&!d){let e=new Set(l.map(e=>e.href)),t=X(document.querySelectorAll("style[data-n-href]")),r=t.map(e=>e.getAttribute("data-n-href"));for(let n=0;n{let{href:t}=e,r=document.querySelector('style[data-n-href="'+t+'"]');r&&(n.parentNode.insertBefore(r,n.nextSibling),n=r)}),X(document.querySelectorAll("link[data-n-p]")).forEach(e=>{e.parentNode.removeChild(e)})}if(e.scroll){let{x:t,y:r}=e.scroll;(0,R.handleSmoothScroll)(()=>{window.scrollTo(t,r)})}}}),(0,m.jsxs)(z,{children:[V(r,f),(0,m.jsx)(j.Portal,{type:"next-route-announcer",children:(0,m.jsx)(w.RouteAnnouncer,{})})]})]});return!function(e,t){T.ST&&performance.mark(Q.beforeRender);let r=t(ee?er:en);Z?(0,g.default.startTransition)(()=>{Z.render(r)}):(Z=E.default.hydrateRoot(e,r,{onRecoverableError:k.onRecoverableError}),ee=!1)}(u,e=>(0,m.jsx)(eo,{callbacks:[e,h],children:_})),p}async function ei(e){if(e.err&&(void 0===e.Component||!e.isHydratePass)){await K(e);return}try{await ea(e)}catch(r){let t=(0,N.getProperError)(r);if(t.cancelled)throw t;await K({...e,err:t})}}async function eu(e){let t=o.err;try{let e=await i.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:r}=e;f=t,r&&r.reportWebVitals&&(d=e=>{let t,{id:n,name:o,startTime:a,value:i,duration:u,entryType:l,entries:s,attribution:c}=e,f=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);s&&s.length&&(t=s[0].startTime);let d={id:n||f,name:o,startTime:a||t,value:null==i?u:i,label:"mark"===l||"measure"===l?"custom":"web-vital"};c&&(d.attribution=c),r.reportWebVitals(d)});let n=await i.routeLoader.whenEntrypoint(o.page);if("error"in n)throw n.error;p=n.component}catch(e){t=(0,N.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(o.dynamicIds),n=(0,I.createRouter)(o.page,o.query,a,{initialProps:o.props,pageLoader:i,App:f,Component:p,wrapApp:Y,err:t,isFallback:!!o.isFallback,subscription:(e,t,r)=>ei(Object.assign({},e,{App:t,scroll:r})),locale:o.locale,locales:o.locales,defaultLocale:h,domainLocales:o.domainLocales,isPreview:o.isPreview}),W=await n._initialMatchesMiddlewarePromise;let r={App:f,initial:!0,Component:p,props:o.props,err:t,isHydratePass:!0};(null==e?void 0:e.beforeRender)&&await e.beforeRender(),ei(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9609:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PathnameContextProviderAdapter:function(){return p},adaptForAppRouterInstance:function(){return c},adaptForPathParams:function(){return d},adaptForSearchParams:function(){return f}});let n=r(8365),o=r(7876),a=n._(r(4232)),i=r(5931),u=r(3069),l=r(8213),s=r(5214);function c(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},hmrRefresh(){},push(t,r){let{scroll:n}=void 0===r?{}:r;e.push(t,void 0,{scroll:n})},replace(t,r){let{scroll:n}=void 0===r?{}:r;e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)}}}function f(e){return e.isReady&&e.query?(0,l.asPathToSearchParams)(e.asPath):new URLSearchParams}function d(e){if(!e.isReady||!e.query)return null;let t={};for(let r of Object.keys((0,s.getRouteRegex)(e.pathname).groups))t[r]=e.query[r];return t}function p(e){let{children:t,router:r,...n}=e,l=(0,a.useRef)(n.isAutoExport),s=(0,a.useMemo)(()=>{let e;let t=l.current;if(t&&(l.current=!1),(0,u.isDynamicRoute)(r.pathname)&&(r.isFallback||t&&!r.isReady))return null;try{e=new URL(r.asPath,"http://f")}catch(e){return"/"}return e.pathname},[r.asPath,r.isFallback,r.isReady,r.pathname]);return(0,o.jsx)(i.PathnameContext.Provider,{value:s,children:t})}},9611:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return a}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},n=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function o(e){return["async","defer","noModule"].includes(e)}function a(e,t){for(let[a,i]of Object.entries(t)){if(!t.hasOwnProperty(a)||n.includes(a)||void 0===i)continue;let u=r[a]||a.toLowerCase();"SCRIPT"===e.tagName&&o(u)?e[u]=!!i:e.setAttribute(u,String(i)),(!1===i||"SCRIPT"===e.tagName&&o(u)&&(!i||"false"===i))&&(e.setAttribute(u,""),e.removeAttribute(u))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9871:(e,t)=>{"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},9948:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(4252)._(r(4232)).default.createContext(null)}},e=>{var t=t=>e(e.s=t);e.O(0,[593],()=>t(5842)),_N_E=e.O()}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/main-app-373aaee17d94d527.js b/_backend/frontend/_next/static/chunks/main-app-373aaee17d94d527.js new file mode 100644 index 0000000000000000000000000000000000000000..a9dc7b031973fb025c03af5c03748144a7b1af4b --- /dev/null +++ b/_backend/frontend/_next/static/chunks/main-app-373aaee17d94d527.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[358],{3503:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,894,23)),Promise.resolve().then(n.t.bind(n,4970,23)),Promise.resolve().then(n.t.bind(n,6614,23)),Promise.resolve().then(n.t.bind(n,6975,23)),Promise.resolve().then(n.t.bind(n,7555,23)),Promise.resolve().then(n.t.bind(n,4911,23)),Promise.resolve().then(n.t.bind(n,9665,23)),Promise.resolve().then(n.t.bind(n,1295,23))}},e=>{var s=s=>e(e.s=s);e.O(0,[441,684],()=>(s(5415),s(3503))),_N_E=e.O()}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/pages/_app-92f2aae776f86b9c.js b/_backend/frontend/_next/static/chunks/pages/_app-92f2aae776f86b9c.js new file mode 100644 index 0000000000000000000000000000000000000000..92b02b7494c8e6311eab32361b4de450c2391c1d --- /dev/null +++ b/_backend/frontend/_next/static/chunks/pages/_app-92f2aae776f86b9c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[472,636],{326:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(472)}])},472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let u=n(4252),l=n(7876),a=u._(n(4232)),o=n(2746);async function r(e){let{Component:t,ctx:n}=e;return{pageProps:await (0,o.loadGetInitialProps)(t,n)}}class s extends a.default.Component{render(){let{Component:e,pageProps:t}=this.props;return(0,l.jsx)(e,{...t})}}s.origGetInitialProps=r,s.getInitialProps=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[593,792],()=>(t(326),t(4294))),_N_E=e.O()}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/pages/_error-71d2b6a7b832d02a.js b/_backend/frontend/_next/static/chunks/pages/_error-71d2b6a7b832d02a.js new file mode 100644 index 0000000000000000000000000000000000000000..3420baada14c9f123c8811a6e9e7c9833e2793f6 --- /dev/null +++ b/_backend/frontend/_next/static/chunks/pages/_error-71d2b6a7b832d02a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[341,731],{303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(4252)._(n(4232)).default.createContext({})},2164:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return n(9341)}])},3776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(4232),o=r.useLayoutEffect,l=r.useEffect;function i(e){let{headManager:t,reduceComponentsToState:n}=e;function i(){if(t&&t.mountedInstances){let o=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(o,e))}}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=i),()=>{t&&(t._pendingUpdate=i)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},5679:(e,t,n)=>{"use strict";var r=n(5364);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return y},defaultHead:function(){return p}});let o=n(4252),l=n(8365),i=n(7876),a=l._(n(4232)),s=o._(n(3776)),d=n(303),u=n(8831),c=n(6807);function p(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(6079);let h=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(p(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return o=>{let l=!0,i=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){i=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?l=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?l=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e{let o=e.key||t;if(r.env.__NEXT_OPTIMIZE_FONTS&&!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,a.default.cloneElement(e,t)}return a.default.cloneElement(e,{key:o})})}let y=function(e){let{children:t}=e,n=(0,a.useContext)(d.AmpStateContext),r=(0,a.useContext)(u.HeadManagerContext);return(0,i.jsx)(s.default,{reduceComponentsToState:m,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6079:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},6807:(e,t)=>{"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},9341:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(4252),o=n(7876),l=r._(n(4232)),i=r._(n(5679)),a={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function s(e){let{req:t,res:n,err:r}=e;return{statusCode:n&&n.statusCode?n.statusCode:r?r.statusCode:404,hostname:window.location.hostname}}let d={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class u extends l.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,n=this.props.title||a[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:d.error,children:[(0,o.jsx)(i.default,{children:(0,o.jsx)("title",{children:e?e+": "+n:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:d.desc,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:d.h1,children:e}):null,(0,o.jsx)("div",{style:d.wrap,children:(0,o.jsxs)("h2",{style:d.h2,children:[this.props.title||e?n:(0,o.jsxs)(o.Fragment,{children:["Application error: a client-side exception has occurred"," ",!!this.props.hostname&&(0,o.jsxs)(o.Fragment,{children:["while loading ",this.props.hostname]})," ","(see the browser console for more information)"]}),"."]})})]})]})}}u.displayName="ErrorPage",u.getInitialProps=s,u.origGetInitialProps=s,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{var t=t=>e(e.s=t);e.O(0,[636,593,792],()=>t(2164)),_N_E=e.O()}]); \ No newline at end of file diff --git a/_backend/frontend/_next/static/chunks/polyfills-42372ed130431b0a.js b/_backend/frontend/_next/static/chunks/polyfills-42372ed130431b0a.js new file mode 100644 index 0000000000000000000000000000000000000000..ab422b94a4fbe76275d31c0bf7ef334768b39cae --- /dev/null +++ b/_backend/frontend/_next/static/chunks/polyfills-42372ed130431b0a.js @@ -0,0 +1 @@ +!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r,n,o=function(t){return t&&t.Math===Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),s=!a(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),c=Function.prototype.call,f=s?c.bind(c):function(){return c.apply(c,arguments)},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p=h&&!l.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:l,v={f:p},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.call,m=s&&g.bind.bind(y,y),b=s?m:function(t){return function(){return y.apply(t,arguments)}},w=b({}.toString),S=b("".slice),E=function(t){return S(w(t),8,-1)},O=Object,x=b("".split),R=a(function(){return!O("z").propertyIsEnumerable(0)})?function(t){return"String"===E(t)?x(t,""):O(t)}:O,P=function(t){return null==t},A=TypeError,j=function(t){if(P(t))throw new A("Can't call method on "+t);return t},k=function(t){return R(j(t))},I="object"==typeof document&&document.all,T=void 0===I&&void 0!==I?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},M=function(t){return"object"==typeof t?null!==t:T(t)},L=function(t,e){return arguments.length<2?T(r=i[t])?r:void 0:i[t]&&i[t][e];var r},U=b({}.isPrototypeOf),N=i.navigator,C=N&&N.userAgent,_=C?String(C):"",F=i.process,B=i.Deno,D=F&&F.versions||B&&B.version,z=D&&D.v8;z&&(n=(r=z.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&_&&(!(r=_.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=_.match(/Chrome\/(\d+)/))&&(n=+r[1]);var W=n,q=i.String,H=!!Object.getOwnPropertySymbols&&!a(function(){var t=Symbol("symbol detection");return!q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41}),$=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=Object,G=$?function(t){return"symbol"==typeof t}:function(t){var e=L("Symbol");return T(e)&&U(e.prototype,K(t))},V=String,Y=function(t){try{return V(t)}catch(t){return"Object"}},X=TypeError,J=function(t){if(T(t))return t;throw new X(Y(t)+" is not a function")},Q=function(t,e){var r=t[e];return P(r)?void 0:J(r)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e},rt=e(function(t){var e="__core-js_shared__",r=t.exports=i[e]||et(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),nt=function(t,e){return rt[t]||(rt[t]=e||{})},ot=Object,it=function(t){return ot(j(t))},at=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return at(it(t),e)},st=0,ct=Math.random(),ft=b(1..toString),lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ft(++st+ct,36)},ht=i.Symbol,pt=nt("wks"),vt=$?ht.for||ht:ht&&ht.withoutSetter||lt,dt=function(t){return ut(pt,t)||(pt[t]=H&&ut(ht,t)?ht[t]:vt("Symbol."+t)),pt[t]},gt=TypeError,yt=dt("toPrimitive"),mt=function(t,e){if(!M(t)||G(t))return t;var r,n=Q(t,yt);if(n){if(void 0===e&&(e="default"),r=f(n,t,e),!M(r)||G(r))return r;throw new gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&T(r=t.toString)&&!M(n=f(r,t)))return n;if(T(r=t.valueOf)&&!M(n=f(r,t)))return n;if("string"!==e&&T(r=t.toString)&&!M(n=f(r,t)))return n;throw new Z("Can't convert object to primitive value")}(t,e)},bt=function(t){var e=mt(t,"string");return G(e)?e:e+""},wt=i.document,St=M(wt)&&M(wt.createElement),Et=function(t){return St?wt.createElement(t):{}},Ot=!u&&!a(function(){return 7!==Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a}),xt=Object.getOwnPropertyDescriptor,Rt={f:u?xt:function(t,e){if(t=k(t),e=bt(e),Ot)try{return xt(t,e)}catch(t){}if(ut(t,e))return d(!f(v.f,t,e),t[e])}},Pt=u&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),At=String,jt=TypeError,kt=function(t){if(M(t))return t;throw new jt(At(t)+" is not an object")},It=TypeError,Tt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Lt="enumerable",Ut="configurable",Nt="writable",Ct={f:u?Pt?function(t,e,r){if(kt(t),e=bt(e),kt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Nt in r&&!r[Nt]){var n=Mt(t,e);n&&n[Nt]&&(t[e]=r.value,r={configurable:Ut in r?r[Ut]:n[Ut],enumerable:Lt in r?r[Lt]:n[Lt],writable:!1})}return Tt(t,e,r)}:Tt:function(t,e,r){if(kt(t),e=bt(e),kt(r),Ot)try{return Tt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new It("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},_t=u?function(t,e,r){return Ct.f(t,e,d(1,r))}:function(t,e,r){return t[e]=r,t},Ft=Function.prototype,Bt=u&&Object.getOwnPropertyDescriptor,Dt=ut(Ft,"name"),zt={EXISTS:Dt,PROPER:Dt&&"something"===function(){}.name,CONFIGURABLE:Dt&&(!u||u&&Bt(Ft,"name").configurable)},Wt=b(Function.toString);T(rt.inspectSource)||(rt.inspectSource=function(t){return Wt(t)});var qt,Ht,$t,Kt=rt.inspectSource,Gt=i.WeakMap,Vt=T(Gt)&&/native code/.test(String(Gt)),Yt=nt("keys"),Xt=function(t){return Yt[t]||(Yt[t]=lt(t))},Jt={},Qt="Object already initialized",Zt=i.TypeError;if(Vt||rt.state){var te=rt.state||(rt.state=new(0,i.WeakMap));te.get=te.get,te.has=te.has,te.set=te.set,qt=function(t,e){if(te.has(t))throw new Zt(Qt);return e.facade=t,te.set(t,e),e},Ht=function(t){return te.get(t)||{}},$t=function(t){return te.has(t)}}else{var ee=Xt("state");Jt[ee]=!0,qt=function(t,e){if(ut(t,ee))throw new Zt(Qt);return e.facade=t,_t(t,ee,e),e},Ht=function(t){return ut(t,ee)?t[ee]:{}},$t=function(t){return ut(t,ee)}}var re,ne={set:qt,get:Ht,has:$t,enforce:function(t){return $t(t)?Ht(t):qt(t,{})},getterFor:function(t){return function(e){var r;if(!M(e)||(r=Ht(e)).type!==t)throw new Zt("Incompatible receiver, "+t+" required");return r}}},oe=e(function(t){var e=zt.CONFIGURABLE,r=ne.enforce,n=ne.get,o=String,i=Object.defineProperty,s=b("".slice),c=b("".replace),f=b([].join),l=u&&!a(function(){return 8!==i(function(){},"length",{value:8}).length}),h=String(String).split("String"),p=t.exports=function(t,n,a){"Symbol("===s(o(n),0,7)&&(n="["+c(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),a&&a.getter&&(n="get "+n),a&&a.setter&&(n="set "+n),(!ut(t,"name")||e&&t.name!==n)&&(u?i(t,"name",{value:n,configurable:!0}):t.name=n),l&&a&&ut(a,"arity")&&t.length!==a.arity&&i(t,"length",{value:a.arity});try{a&&ut(a,"constructor")&&a.constructor?u&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=r(t);return ut(p,"source")||(p.source=f(h,"string"==typeof n?n:"")),t};Function.prototype.toString=p(function(){return T(this)&&n(this).source||Kt(this)},"toString")}),ie=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(T(r)&&oe(r,i,n),n.global)o?t[e]=r:et(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:Ct.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ae=Math.ceil,ue=Math.floor,se=Math.trunc||function(t){var e=+t;return(e>0?ue:ae)(e)},ce=function(t){var e=+t;return e!=e||0===e?0:se(e)},fe=Math.max,le=Math.min,he=function(t,e){var r=ce(t);return r<0?fe(r+e,0):le(r,e)},pe=Math.min,ve=function(t){var e=ce(t);return e>0?pe(e,9007199254740991):0},de=function(t){return ve(t.length)},ge=function(t){return function(e,r,n){var o=k(e),i=de(o);if(0===i)return!t&&-1;var a,u=he(n,i);if(t&&r!=r){for(;i>u;)if((a=o[u++])!=a)return!0}else for(;i>u;u++)if((t||u in o)&&o[u]===r)return t||u||0;return!t&&-1}},ye={includes:ge(!0),indexOf:ge(!1)},me=ye.indexOf,be=b([].push),we=function(t,e){var r,n=k(t),o=0,i=[];for(r in n)!ut(Jt,r)&&ut(n,r)&&be(i,r);for(;e.length>o;)ut(n,r=e[o++])&&(~me(i,r)||be(i,r));return i},Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ee=Se.concat("length","prototype"),Oe={f:Object.getOwnPropertyNames||function(t){return we(t,Ee)}},xe={f:Object.getOwnPropertySymbols},Re=b([].concat),Pe=L("Reflect","ownKeys")||function(t){var e=Oe.f(kt(t)),r=xe.f;return r?Re(e,r(t)):e},Ae=function(t,e,r){for(var n=Pe(e),o=Ct.f,i=Rt.f,a=0;aa;)Ct.f(t,r=o[a++],n[r]);return t},Be={f:Fe},De=L("document","documentElement"),ze="prototype",We="script",qe=Xt("IE_PROTO"),He=function(){},$e=function(t){return"<"+We+">"+t+""},Ke=function(t){t.write($e("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ge=function(){try{re=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Ge="undefined"!=typeof document?document.domain&&re?Ke(re):(e=Et("iframe"),r="java"+We+":",e.style.display="none",De.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write($e("document.F=Object")),t.close(),t.F):Ke(re);for(var n=Se.length;n--;)delete Ge[ze][Se[n]];return Ge()};Jt[qe]=!0;var Ve=Object.create||function(t,e){var r;return null!==t?(He[ze]=kt(t),r=new He,He[ze]=null,r[qe]=t):r=Ge(),void 0===e?r:Be.f(r,e)},Ye=Ct.f,Xe=dt("unscopables"),Je=Array.prototype;void 0===Je[Xe]&&Ye(Je,Xe,{configurable:!0,value:Ve(null)});var Qe=function(t){Je[Xe][t]=!0};Ce({target:"Array",proto:!0},{at:function(t){var e=it(this),r=de(e),n=ce(t),o=n>=0?n:r+n;return o<0||o>=r?void 0:e[o]}}),Qe("at");var Ze=function(t,e){return b(i[t].prototype[e])},tr=(Ze("Array","at"),TypeError),er=function(t,e){if(!delete t[e])throw new tr("Cannot delete property "+Y(e)+" of "+Y(t))},rr=Math.min,nr=[].copyWithin||function(t,e){var r=it(this),n=de(r),o=he(t,n),i=he(e,n),a=arguments.length>2?arguments[2]:void 0,u=rr((void 0===a?n:he(a,n))-i,n-o),s=1;for(i0;)i in r?r[o]=r[i]:er(r,o),o+=s,i+=s;return r};Ce({target:"Array",proto:!0},{copyWithin:nr}),Qe("copyWithin"),Ze("Array","copyWithin"),Ce({target:"Array",proto:!0},{fill:function(t){for(var e=it(this),r=de(e),n=arguments.length,o=he(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:he(i,r);a>o;)e[o++]=t;return e}}),Qe("fill"),Ze("Array","fill");var or=function(t){if("Function"===E(t))return b(t)},ir=or(or.bind),ar=function(t,e){return J(t),void 0===e?t:s?ir(t,e):function(){return t.apply(e,arguments)}},ur=Array.isArray||function(t){return"Array"===E(t)},sr={};sr[dt("toStringTag")]="z";var cr="[object z]"===String(sr),fr=dt("toStringTag"),lr=Object,hr="Arguments"===E(function(){return arguments}()),pr=cr?E:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=lr(t),fr))?r:hr?E(e):"Object"===(n=E(e))&&T(e.callee)?"Arguments":n},vr=function(){},dr=L("Reflect","construct"),gr=/^\s*(?:class|function)\b/,yr=b(gr.exec),mr=!gr.test(vr),br=function(t){if(!T(t))return!1;try{return dr(vr,[],t),!0}catch(t){return!1}},wr=function(t){if(!T(t))return!1;switch(pr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return mr||!!yr(gr,Kt(t))}catch(t){return!0}};wr.sham=!0;var Sr=!dr||a(function(){var t;return br(br.call)||!br(Object)||!br(function(){t=!0})||t})?wr:br,Er=dt("species"),Or=Array,xr=function(t,e){return new(function(t){var e;return ur(t)&&(Sr(e=t.constructor)&&(e===Or||ur(e.prototype))||M(e)&&null===(e=e[Er]))&&(e=void 0),void 0===e?Or:e}(t))(0===e?0:e)},Rr=b([].push),Pr=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(s,c,f,l){for(var h,p,v=it(s),d=R(v),g=de(d),y=ar(c,f),m=0,b=l||xr,w=e?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in d)&&(p=y(h=d[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:Rr(w,h)}else switch(t){case 4:return!1;case 7:Rr(w,h)}return i?-1:n||o?o:w}},Ar={forEach:Pr(0),map:Pr(1),filter:Pr(2),some:Pr(3),every:Pr(4),find:Pr(5),findIndex:Pr(6),filterReject:Pr(7)},jr=Ar.find,kr="find",Ir=!0;kr in[]&&Array(1)[kr](function(){Ir=!1}),Ce({target:"Array",proto:!0,forced:Ir},{find:function(t){return jr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(kr),Ze("Array","find");var Tr=Ar.findIndex,Mr="findIndex",Lr=!0;Mr in[]&&Array(1)[Mr](function(){Lr=!1}),Ce({target:"Array",proto:!0,forced:Lr},{findIndex:function(t){return Tr(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe(Mr),Ze("Array","findIndex");var Ur=TypeError,Nr=function(t){if(t>9007199254740991)throw Ur("Maximum allowed index exceeded");return t},Cr=function(t,e,r,n,o,i,a,u){for(var s,c,f=o,l=0,h=!!a&&ar(a,u);l0&&ur(s)?(c=de(s),f=Cr(t,e,s,c,f,i-1)-1):(Nr(f+1),t[f]=s),f++),l++;return f},_r=Cr;Ce({target:"Array",proto:!0},{flatMap:function(t){var e,r=it(this),n=de(r);return J(t),(e=xr(r,0)).length=_r(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}}),Qe("flatMap"),Ze("Array","flatMap"),Ce({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=it(this),r=de(e),n=xr(e,0);return n.length=_r(n,e,e,r,0,void 0===t?1:ce(t)),n}}),Qe("flat"),Ze("Array","flat");var Fr,Br,Dr,zr=String,Wr=function(t){if("Symbol"===pr(t))throw new TypeError("Cannot convert a Symbol value to a string");return zr(t)},qr=b("".charAt),Hr=b("".charCodeAt),$r=b("".slice),Kr=function(t){return function(e,r){var n,o,i=Wr(j(e)),a=ce(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Hr(i,a))<55296||n>56319||a+1===u||(o=Hr(i,a+1))<56320||o>57343?t?qr(i,a):n:t?$r(i,a,a+2):o-56320+(n-55296<<10)+65536}},Gr={codeAt:Kr(!1),charAt:Kr(!0)},Vr=!a(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Yr=Xt("IE_PROTO"),Xr=Object,Jr=Xr.prototype,Qr=Vr?Xr.getPrototypeOf:function(t){var e=it(t);if(ut(e,Yr))return e[Yr];var r=e.constructor;return T(r)&&e instanceof r?r.prototype:e instanceof Xr?Jr:null},Zr=dt("iterator"),tn=!1;[].keys&&("next"in(Dr=[].keys())?(Br=Qr(Qr(Dr)))!==Object.prototype&&(Fr=Br):tn=!0);var en=!M(Fr)||a(function(){var t={};return Fr[Zr].call(t)!==t});en&&(Fr={}),T(Fr[Zr])||ie(Fr,Zr,function(){return this});var rn={IteratorPrototype:Fr,BUGGY_SAFARI_ITERATORS:tn},nn=Ct.f,on=dt("toStringTag"),an=function(t,e,r){t&&!r&&(t=t.prototype),t&&!ut(t,on)&&nn(t,on,{configurable:!0,value:e})},un={},sn=rn.IteratorPrototype,cn=function(){return this},fn=function(t,e,r,n){var o=e+" Iterator";return t.prototype=Ve(sn,{next:d(+!n,r)}),an(t,o,!1),un[o]=cn,t},ln=function(t,e,r){try{return b(J(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}},hn=String,pn=TypeError,vn=function(t){if(function(t){return M(t)||null===t}(t))return t;throw new pn("Can't set "+hn(t)+" as a prototype")},dn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ln(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return j(r),vn(n),M(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),gn=zt.PROPER,yn=zt.CONFIGURABLE,mn=rn.IteratorPrototype,bn=rn.BUGGY_SAFARI_ITERATORS,wn=dt("iterator"),Sn="keys",En="values",On="entries",xn=function(){return this},Rn=function(t,e,r,n,o,i,a){fn(r,e,n);var u,s,c,l=function(t){if(t===o&&g)return g;if(!bn&&t&&t in v)return v[t];switch(t){case Sn:case En:case On:return function(){return new r(this,t)}}return function(){return new r(this)}},h=e+" Iterator",p=!1,v=t.prototype,d=v[wn]||v["@@iterator"]||o&&v[o],g=!bn&&d||l(o),y="Array"===e&&v.entries||d;if(y&&(u=Qr(y.call(new t)))!==Object.prototype&&u.next&&(Qr(u)!==mn&&(dn?dn(u,mn):T(u[wn])||ie(u,wn,xn)),an(u,h,!0)),gn&&o===En&&d&&d.name!==En&&(yn?_t(v,"name",En):(p=!0,g=function(){return f(d,this)})),o)if(s={values:l(En),keys:i?g:l(Sn),entries:l(On)},a)for(c in s)(bn||p||!(c in v))&&ie(v,c,s[c]);else Ce({target:e,proto:!0,forced:bn||p},s);return v[wn]!==g&&ie(v,wn,g,{name:o}),un[e]=g,s},Pn=function(t,e){return{value:t,done:e}},An=Gr.charAt,jn="String Iterator",kn=ne.set,In=ne.getterFor(jn);Rn(String,"String",function(t){kn(this,{type:jn,string:Wr(t),index:0})},function(){var t,e=In(this),r=e.string,n=e.index;return n>=r.length?Pn(void 0,!0):(t=An(r,n),e.index+=t.length,Pn(t,!1))});var Tn=function(t,e,r){var n,o;kt(t);try{if(!(n=Q(t,"return"))){if("throw"===e)throw r;return r}n=f(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return kt(n),r},Mn=function(t,e,r,n){try{return n?e(kt(r)[0],r[1]):e(r)}catch(e){Tn(t,"throw",e)}},Ln=dt("iterator"),Un=Array.prototype,Nn=function(t){return void 0!==t&&(un.Array===t||Un[Ln]===t)},Cn=function(t,e,r){u?Ct.f(t,e,d(0,r)):t[e]=r},_n=dt("iterator"),Fn=function(t){if(!P(t))return Q(t,_n)||Q(t,"@@iterator")||un[pr(t)]},Bn=TypeError,Dn=function(t,e){var r=arguments.length<2?Fn(t):e;if(J(r))return kt(f(r,t));throw new Bn(Y(t)+" is not iterable")},zn=Array,Wn=function(t){var e=it(t),r=Sr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=ar(o,n>2?arguments[2]:void 0));var a,u,s,c,l,h,p=Fn(e),v=0;if(!p||this===zn&&Nn(p))for(a=de(e),u=r?new this(a):zn(a);a>v;v++)h=i?o(e[v],v):e[v],Cn(u,v,h);else for(u=r?new this:[],l=(c=Dn(e,p)).next;!(s=f(l,c)).done;v++)h=i?Mn(c,o,[s.value,v],!0):s.value,Cn(u,v,h);return u.length=v,u},qn=dt("iterator"),Hn=!1;try{var $n=0,Kn={next:function(){return{done:!!$n++}},return:function(){Hn=!0}};Kn[qn]=function(){return this},Array.from(Kn,function(){throw 2})}catch(t){}var Gn=function(t,e){try{if(!e&&!Hn)return!1}catch(t){return!1}var r=!1;try{var n={};n[qn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Vn=!Gn(function(t){Array.from(t)});Ce({target:"Array",stat:!0,forced:Vn},{from:Wn});var Yn=i,Xn=ye.includes,Jn=a(function(){return!Array(1).includes()});Ce({target:"Array",proto:!0,forced:Jn},{includes:function(t){return Xn(this,t,arguments.length>1?arguments[1]:void 0)}}),Qe("includes"),Ze("Array","includes");var Qn=Ct.f,Zn="Array Iterator",to=ne.set,eo=ne.getterFor(Zn),ro=Rn(Array,"Array",function(t,e){to(this,{type:Zn,target:k(t),index:0,kind:e})},function(){var t=eo(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Pn(void 0,!0);switch(t.kind){case"keys":return Pn(r,!1);case"values":return Pn(e[r],!1)}return Pn([r,e[r]],!1)},"values"),no=un.Arguments=un.Array;if(Qe("keys"),Qe("values"),Qe("entries"),u&&"values"!==no.name)try{Qn(no,"name",{value:"values"})}catch(t){}cr||ie(Object.prototype,"toString",cr?{}.toString:function(){return"[object "+pr(this)+"]"},{unsafe:!0}),Ze("Array","values");var oo=Array,io=a(function(){function t(){}return!(oo.of.call(t)instanceof t)});Ce({target:"Array",stat:!0,forced:io},{of:function(){for(var t=0,e=arguments.length,r=new(Sr(this)?this:oo)(e);e>t;)Cn(r,t,arguments[t++]);return r.length=e,r}});var ao=dt("hasInstance"),uo=Function.prototype;ao in uo||Ct.f(uo,ao,{value:oe(function(t){if(!T(this)||!M(t))return!1;var e=this.prototype;return M(e)?U(e,t):t instanceof this},ao)}),dt("hasInstance");var so=function(t,e,r){return r.get&&oe(r.get,e,{getter:!0}),r.set&&oe(r.set,e,{setter:!0}),Ct.f(t,e,r)},co=zt.EXISTS,fo=Function.prototype,lo=b(fo.toString),ho=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,po=b(ho.exec);u&&!co&&so(fo,"name",{configurable:!0,get:function(){try{return po(ho,lo(this))[1]}catch(t){return""}}});var vo=b([].slice),go=Oe.f,yo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mo={f:function(t){return yo&&"Window"===E(t)?function(t){try{return go(t)}catch(t){return vo(yo)}}(t):go(k(t))}},bo=a(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),wo=Object.isExtensible,So=a(function(){wo(1)})||bo?function(t){return!!M(t)&&(!bo||"ArrayBuffer"!==E(t))&&(!wo||wo(t))}:wo,Eo=!a(function(){return Object.isExtensible(Object.preventExtensions({}))}),Oo=e(function(t){var e=Ct.f,r=!1,n=lt("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=Oe.f,e=b([].splice),o={};o[n]=1,t(o).length&&(Oe.f=function(r){for(var o=t(r),i=0,a=o.length;ii;i++)if((u=y(t[i]))&&U(Po,u))return u;return new Ro(!1)}n=Dn(t,o)}for(s=h?t.next:n.next;!(c=f(s,n)).done;){try{u=y(c.value)}catch(t){Tn(n,"throw",t)}if("object"==typeof u&&u&&U(Po,u))return u}return new Ro(!1)},jo=TypeError,ko=function(t,e){if(U(e,t))return t;throw new jo("Incorrect invocation")},Io=function(t,e,r){var n,o;return dn&&T(n=e.constructor)&&n!==r&&M(o=n.prototype)&&o!==r.prototype&&dn(t,o),t},To=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),u=n?"set":"add",s=i[t],c=s&&s.prototype,f=s,l={},h=function(t){var e=b(c[t]);ie(c,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!M(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!M(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!M(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Ue(t,!T(s)||!(o||c.forEach&&!a(function(){(new s).entries().next()}))))f=r.getConstructor(e,t,n,u),Oo.enable();else if(Ue(t,!0)){var p=new f,v=p[u](o?{}:-0,1)!==p,d=a(function(){p.has(1)}),g=Gn(function(t){new s(t)}),y=!o&&a(function(){for(var t=new s,e=5;e--;)t[u](e,e);return!t.has(-0)});g||((f=e(function(t,e){ko(t,c);var r=Io(new s,t,f);return P(e)||Ao(e,r[u],{that:r,AS_ENTRIES:n}),r})).prototype=c,c.constructor=f),(d||y)&&(h("delete"),h("has"),n&&h("get")),(y||v)&&h(u),o&&c.clear&&delete c.clear}return l[t]=f,Ce({global:!0,constructor:!0,forced:f!==s},l),an(f,t),o||r.setStrong(f,t,n),f},Mo=function(t,e,r){for(var n in e)ie(t,n,e[n],r);return t},Lo=dt("species"),Uo=function(t){var e=L(t);u&&e&&!e[Lo]&&so(e,Lo,{configurable:!0,get:function(){return this}})},No=Oo.fastKey,Co=ne.set,_o=ne.getterFor,Fo={getConstructor:function(t,e,r,n){var o=t(function(t,o){ko(t,i),Co(t,{type:e,index:Ve(null),first:null,last:null,size:0}),u||(t.size=0),P(o)||Ao(o,t[n],{that:t,AS_ENTRIES:r})}),i=o.prototype,a=_o(e),s=function(t,e,r){var n,o,i=a(t),s=c(t,e);return s?s.value=r:(i.last=s={index:o=No(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=s),n&&(n.next=s),u?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},c=function(t,e){var r,n=a(t),o=No(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return Mo(i,{clear:function(){for(var t=a(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=Ve(null),u?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=c(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),u?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=ar(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),Mo(i,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}}),u&&so(i,"size",{configurable:!0,get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=_o(e),i=_o(n);Rn(t,e,function(t,e){Co(this,{type:n,target:t,state:o(t),kind:e,last:null})},function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Pn("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,Pn(void 0,!0))},r?"entries":"values",!r,!0),Uo(e)}};To("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo);var Bo=Map.prototype,Do={Map:Map,set:b(Bo.set),get:b(Bo.get),has:b(Bo.has),remove:b(Bo.delete),proto:Bo},zo=Do.Map,Wo=Do.has,qo=Do.get,Ho=Do.set,$o=b([].push),Ko=a(function(){return 1!==zo.groupBy("ab",function(t){return t}).get("a").length});Ce({target:"Map",stat:!0,forced:Ko},{groupBy:function(t,e){j(t),J(e);var r=new zo,n=0;return Ao(t,function(t){var o=e(t,n++);Wo(r,o)?$o(qo(r,o),t):Ho(r,o,[t])}),r}});var Go={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Vo=Et("span").classList,Yo=Vo&&Vo.constructor&&Vo.constructor.prototype,Xo=Yo===Object.prototype?void 0:Yo,Jo=dt("iterator"),Qo=ro.values,Zo=function(t,e){if(t){if(t[Jo]!==Qo)try{_t(t,Jo,Qo)}catch(e){t[Jo]=Qo}if(an(t,e,!0),Go[e])for(var r in ro)if(t[r]!==ro[r])try{_t(t,r,ro[r])}catch(e){t[r]=ro[r]}}};for(var ti in Go)Zo(i[ti]&&i[ti].prototype,ti);Zo(Xo,"DOMTokenList");var ei=function(t,e,r){return function(n){var o=it(n),i=arguments.length,a=i>1?arguments[1]:void 0,u=void 0!==a,s=u?ar(a,i>2?arguments[2]:void 0):void 0,c=new t,f=0;return Ao(o,function(t){var n=u?s(t,f++):t;r?e(c,kt(n)[0],n[1]):e(c,n)}),c}};Ce({target:"Map",stat:!0,forced:!0},{from:ei(Do.Map,Do.set,!0)});var ri=function(t,e,r){return function(){for(var n=new t,o=arguments.length,i=0;i1?arguments[1]:void 0);return!1!==di(e,function(t,n){if(!r(t,n,e))return!1},!0)}});var gi=Do.Map,yi=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new gi;return di(e,function(t,o){r(t,o,e)&&yi(n,o,t)}),n}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=di(e,function(t,n){if(r(t,n,e))return{value:t}},!0);return n&&n.value}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=di(e,function(t,n){if(r(t,n,e))return{key:n}},!0);return n&&n.key}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===di(oi(this),function(e){if((r=e)===(n=t)||r!=r&&n!=n)return!0;var r,n},!0)}});var mi=Do.Map;Ce({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var r=new(T(this)?this:mi);J(e);var n=J(r.set);return Ao(t,function(t){f(n,r,e(t),t)}),r}}),Ce({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=di(oi(this),function(e,r){if(e===t)return{key:r}},!0);return e&&e.key}});var bi=Do.Map,wi=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new bi;return di(e,function(t,o){wi(n,r(t,o,e),t)}),n}});var Si=Do.Map,Ei=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=oi(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new Si;return di(e,function(t,o){Ei(n,o,r(t,o,e))}),n}});var Oi=Do.set;Ce({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=oi(this),r=arguments.length,n=0;n1?arguments[1]:void 0);return!0===di(e,function(t,n){if(r(t,n,e))return!0},!0)}});var Ri=TypeError,Pi=Do.get,Ai=Do.has,ji=Do.set;Ce({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var r=oi(this),n=arguments.length;J(e);var o=Ai(r,t);if(!o&&n<3)throw new Ri("Updating absent value");var i=o?Pi(r,t):J(n>2?arguments[2]:void 0)(t,r);return ji(r,t,e(i,t,r)),r}});var ki=TypeError,Ii=function(t,e){var r,n=kt(this),o=J(n.get),i=J(n.has),a=J(n.set),u=arguments.length>2?arguments[2]:void 0;if(!T(e)&&!T(u))throw new ki("At least one callback required");return f(i,n,t)?(r=f(o,n,t),T(e)&&(r=e(r),f(a,n,t,r))):T(u)&&(r=u(),f(a,n,t,r)),r};Ce({target:"Map",proto:!0,real:!0,forced:!0},{upsert:Ii}),Ce({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:Ii});var Ti=b(1..valueOf),Mi="\t\n\v\f\r                 \u2028\u2029\ufeff",Li=b("".replace),Ui=RegExp("^["+Mi+"]+"),Ni=RegExp("(^|[^"+Mi+"])["+Mi+"]+$"),Ci=function(t){return function(e){var r=Wr(j(e));return 1&t&&(r=Li(r,Ui,"")),2&t&&(r=Li(r,Ni,"$1")),r}},_i={start:Ci(1),end:Ci(2),trim:Ci(3)},Fi=Oe.f,Bi=Rt.f,Di=Ct.f,zi=_i.trim,Wi="Number",qi=i[Wi],Hi=qi.prototype,$i=i.TypeError,Ki=b("".slice),Gi=b("".charCodeAt),Vi=Ue(Wi,!qi(" 0o1")||!qi("0b1")||qi("+0x1")),Yi=function(t){var e,r=arguments.length<1?0:qi(function(t){var e=mt(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,o,i,a,u,s,c=mt(t,"number");if(G(c))throw new $i("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=zi(c),43===(e=Gi(c,0))||45===e){if(88===(r=Gi(c,2))||120===r)return NaN}else if(48===e){switch(Gi(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=Ki(c,2)).length,u=0;uo)return NaN;return parseInt(i,n)}return+c}(e)}(t));return U(Hi,e=this)&&a(function(){Ti(e)})?Io(Object(r),this,Yi):r};Yi.prototype=Hi,Vi&&(Hi.constructor=Yi),Ce({global:!0,constructor:!0,wrap:!0,forced:Vi},{Number:Yi}),Vi&&function(t,e){for(var r,n=u?Fi(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)ut(e,r=n[o])&&!ut(t,r)&&Di(t,r,Bi(e,r))}(Yn[Wi],qi),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var Xi=i.isFinite;Ce({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&Xi(t)}});var Ji=Math.floor,Qi=Number.isInteger||function(t){return!M(t)&&isFinite(t)&&Ji(t)===t};Ce({target:"Number",stat:!0},{isInteger:Qi}),Ce({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Zi=Math.abs;Ce({target:"Number",stat:!0},{isSafeInteger:function(t){return Qi(t)&&Zi(t)<=9007199254740991}}),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),Ce({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var ta=_i.trim,ea=b("".charAt),ra=i.parseFloat,na=i.Symbol,oa=na&&na.iterator,ia=1/ra(Mi+"-0")!=-Infinity||oa&&!a(function(){ra(Object(oa))})?function(t){var e=ta(Wr(t)),r=ra(e);return 0===r&&"-"===ea(e,0)?-0:r}:ra;Ce({target:"Number",stat:!0,forced:Number.parseFloat!==ia},{parseFloat:ia});var aa=_i.trim,ua=i.parseInt,sa=i.Symbol,ca=sa&&sa.iterator,fa=/^[+-]?0x/i,la=b(fa.exec),ha=8!==ua(Mi+"08")||22!==ua(Mi+"0x16")||ca&&!a(function(){ua(Object(ca))})?function(t,e){var r=aa(Wr(t));return ua(r,e>>>0||(la(fa,r)?16:10))}:ua;Ce({target:"Number",stat:!0,forced:Number.parseInt!==ha},{parseInt:ha});var pa=b(v.f),va=b([].push),da=u&&a(function(){var t=Object.create(null);return t[2]=2,!pa(t,2)}),ga=function(t){return function(e){for(var r,n=k(e),o=_e(n),i=da&&null===Qr(n),a=o.length,s=0,c=[];a>s;)r=o[s++],u&&!(i?r in n:pa(n,r))||va(c,t?[r,n[r]]:n[r]);return c}},ya={entries:ga(!0),values:ga(!1)},ma=ya.entries;Ce({target:"Object",stat:!0},{entries:function(t){return ma(t)}}),Ce({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(t){for(var e,r,n=k(t),o=Rt.f,i=Pe(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&Cn(a,e,r);return a}});var ba=a(function(){_e(1)});Ce({target:"Object",stat:!0,forced:ba},{keys:function(t){return _e(it(t))}});var wa=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Ce({target:"Object",stat:!0},{is:wa});var Sa=ya.values;Ce({target:"Object",stat:!0},{values:function(t){return Sa(t)}}),Ce({target:"Object",stat:!0},{hasOwn:ut});var Ea=Function.prototype,Oa=Ea.apply,xa=Ea.call,Ra="object"==typeof Reflect&&Reflect.apply||(s?xa.bind(Oa):function(){return xa.apply(Oa,arguments)}),Pa=!a(function(){Reflect.apply(function(){})});Ce({target:"Reflect",stat:!0,forced:Pa},{apply:function(t,e,r){return Ra(J(t),e,kt(r))}});var Aa=Function,ja=b([].concat),ka=b([].join),Ia={},Ta=s?Aa.bind:function(t){var e=J(this),r=e.prototype,n=vo(arguments,1),o=function(){var r=ja(n,vo(arguments));return this instanceof o?function(t,e,r){if(!ut(Ia,e)){for(var n=[],o=0;ob)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}),gs=Oe.f,ys=ne.enforce,ms=dt("match"),bs=i.RegExp,ws=bs.prototype,Ss=i.SyntaxError,Es=b(ws.exec),Os=b("".charAt),xs=b("".replace),Rs=b("".indexOf),Ps=b("".slice),As=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,js=/a/g,ks=/a/g,Is=new bs(js)!==js,Ts=cs.MISSED_STICKY,Ms=cs.UNSUPPORTED_Y,Ls=u&&(!Is||Ts||ps||ds||a(function(){return ks[ms]=!1,bs(js)!==js||bs(ks)===ks||"/a/i"!==String(bs(js,"i"))}));if(Ue("RegExp",Ls)){for(var Us=function(t,e){var r,n,o,i,a,u,s=U(ws,this),c=es(t),f=void 0===e,l=[],h=t;if(!s&&c&&f&&t.constructor===Us)return t;if((c||U(ws,t))&&(t=t.source,f&&(e=os(h))),t=void 0===t?"":Wr(t),e=void 0===e?"":Wr(e),h=t,ps&&"dotAll"in js&&(n=!!e&&Rs(e,"s")>-1)&&(e=xs(e,/s/g,"")),r=e,Ts&&"sticky"in js&&(o=!!e&&Rs(e,"y")>-1)&&Ms&&(e=xs(e,/y/g,"")),ds&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],a=Ve(null),u=!1,s=!1,c=0,f="";n<=r;n++){if("\\"===(e=Os(t,n)))e+=Os(t,++n);else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:if(o+=e,"?:"===Ps(t,n+1,n+3))continue;Es(As,Ps(t,n+1))&&(n+=2,s=!0),c++;continue;case">"===e&&s:if(""===f||ut(a,f))throw new Ss("Invalid capture group name");a[f]=!0,i[i.length]=[f,c],s=!1,f="";continue}s?f+=e:o+=e}return[o,i]}(t),t=i[0],l=i[1]),a=Io(bs(t,e),s?this:ws,Us),(n||o||l.length)&&(u=ys(a),n&&(u.dotAll=!0,u.raw=Us(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=Os(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+Os(t,++n);return o}(t),r)),o&&(u.sticky=!0),l.length&&(u.groups=l)),t!==h)try{_t(a,"source",""===h?"(?:)":h)}catch(t){}return a},Ns=gs(bs),Cs=0;Ns.length>Cs;)ls(Us,bs,Ns[Cs++]);ws.constructor=Us,Us.prototype=ws,ie(i,"RegExp",Us,{constructor:!0})}Uo("RegExp");var _s=zt.PROPER,Fs="toString",Bs=RegExp.prototype,Ds=Bs[Fs];(a(function(){return"/a/b"!==Ds.call({source:"a",flags:"b"})})||_s&&Ds.name!==Fs)&&ie(Bs,Fs,function(){var t=kt(this);return"/"+Wr(t.source)+"/"+Wr(os(t))},{unsafe:!0});var zs=ne.get,Ws=RegExp.prototype,qs=TypeError;u&&ps&&so(Ws,"dotAll",{configurable:!0,get:function(){if(this!==Ws){if("RegExp"===E(this))return!!zs(this).dotAll;throw new qs("Incompatible receiver, RegExp required")}}});var Hs=ne.get,$s=nt("native-string-replace",String.prototype.replace),Ks=RegExp.prototype.exec,Gs=Ks,Vs=b("".charAt),Ys=b("".indexOf),Xs=b("".replace),Js=b("".slice),Qs=function(){var t=/a/,e=/b*/g;return f(Ks,t,"a"),f(Ks,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Zs=cs.BROKEN_CARET,tc=void 0!==/()??/.exec("")[1];(Qs||tc||Zs||ps||ds)&&(Gs=function(t){var e,r,n,o,i,a,u,s=this,c=Hs(s),l=Wr(t),h=c.raw;if(h)return h.lastIndex=s.lastIndex,e=f(Gs,h,l),s.lastIndex=h.lastIndex,e;var p=c.groups,v=Zs&&s.sticky,d=f(rs,s),g=s.source,y=0,m=l;if(v&&(d=Xs(d,"y",""),-1===Ys(d,"g")&&(d+="g"),m=Js(l,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Vs(l,s.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,y++),r=new RegExp("^(?:"+g+")",d)),tc&&(r=new RegExp("^"+g+"$(?!\\s)",d)),Qs&&(n=s.lastIndex),o=f(Ks,v?r:s,m),v?o?(o.input=Js(o.input,y),o[0]=Js(o[0],y),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Qs&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),tc&&o&&o.length>1&&f($s,o[0],r,function(){for(i=1;i]*>)/g,Oc=/\$([$&'`]|\d{1,2})/g,xc=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Oc;return void 0!==o&&(o=it(o),s=Ec),wc(i,s,function(i,s){var c;switch(bc(s,0)){case"$":return"$";case"&":return t;case"`":return Sc(e,0,r);case"'":return Sc(e,a);case"<":c=o[Sc(s,1,-1)];break;default:var f=+s;if(0===f)return i;if(f>u){var l=mc(f/10);return 0===l?i:l<=u?void 0===n[l-1]?bc(s,1):n[l-1]+bc(s,1):i}c=n[f-1]}return void 0===c?"":c})},Rc=dt("replace"),Pc=Math.max,Ac=Math.min,jc=b([].concat),kc=b([].push),Ic=b("".indexOf),Tc=b("".slice),Mc="$0"==="a".replace(/./,"$0"),Lc=!!/./[Rc]&&""===/./[Rc]("a","$0"),Uc=!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")});pc("replace",function(t,e,r){var n=Lc?"$":"$0";return[function(t,r){var n=j(this),o=P(t)?void 0:Q(t,Rc);return o?f(o,t,n,r):f(e,Wr(n),t,r)},function(t,o){var i=kt(this),a=Wr(t);if("string"==typeof o&&-1===Ic(o,n)&&-1===Ic(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var s=T(o);s||(o=Wr(o));var c,f=i.global;f&&(c=i.unicode,i.lastIndex=0);for(var l,h=[];null!==(l=yc(i,a))&&(kc(h,l),f);)""===Wr(l[0])&&(i.lastIndex=dc(a,ve(i.lastIndex),c));for(var p,v="",d=0,g=0;g=d&&(v+=Tc(a,d,b)+y,d=b+m.length)}return v+Tc(a,d)}]},!Uc||!Mc||Lc),pc("search",function(t,e,r){return[function(e){var r=j(this),n=P(e)?void 0:Q(e,t);return n?f(n,e,r):new RegExp(e)[t](Wr(r))},function(t){var n=kt(this),o=Wr(t),i=r(e,n,o);if(i.done)return i.value;var a=n.lastIndex;wa(a,0)||(n.lastIndex=0);var u=yc(n,o);return wa(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]});var Nc=dt("species"),Cc=function(t,e){var r,n=kt(t).constructor;return void 0===n||P(r=kt(n)[Nc])?e:La(r)},_c=cs.UNSUPPORTED_Y,Fc=Math.min,Bc=b([].push),Dc=b("".slice),zc=!a(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),Wc="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;pc("split",function(t,e,r){var n="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:f(e,this,t,r)}:e;return[function(e,r){var o=j(this),i=P(e)?void 0:Q(e,t);return i?f(i,e,o,r):f(n,Wr(o),e,r)},function(t,o){var i=kt(this),a=Wr(t);if(!Wc){var u=r(n,i,a,o,n!==e);if(u.done)return u.value}var s=Cc(i,RegExp),c=i.unicode,f=new s(_c?"^(?:"+i.source+")":i,(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(_c?"g":"y")),l=void 0===o?4294967295:o>>>0;if(0===l)return[];if(0===a.length)return null===yc(f,a)?[a]:[];for(var h=0,p=0,v=[];p0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},Kc=b($c),Gc=b("".slice),Vc=Math.ceil,Yc=function(t){return function(e,r,n){var o,i,a=Wr(j(e)),u=ve(r),s=a.length,c=void 0===n?" ":Wr(n);return u<=s||""===c?a:((i=Kc(c,Vc((o=u-s)/c.length))).length>o&&(i=Gc(i,0,o)),t?a+i:i+a)}},Xc={start:Yc(!1),end:Yc(!0)},Jc=Xc.start,Qc=Array,Zc=RegExp.escape,tf=b("".charAt),ef=b("".charCodeAt),rf=b(1.1.toString),nf=b([].join),of=/^[0-9a-z]/i,af=/^[$()*+./?[\\\]^{|}]/,uf=RegExp("^[!\"#%&',\\-:;<=>@`~"+Mi+"]"),sf=b(of.exec),cf={"\t":"t","\n":"n","\v":"v","\f":"f","\r":"r"},ff=function(t){var e=rf(ef(t,0),16);return e.length<3?"\\x"+Jc(e,2,"0"):"\\u"+Jc(e,4,"0")},lf=!Zc||"\\x61b"!==Zc("ab");Ce({target:"RegExp",stat:!0,forced:lf},{escape:function(t){!function(t){if("string"==typeof t)return t;throw new qc("Argument is not a string")}(t);for(var e=t.length,r=Qc(e),n=0;n=56320||n+1>=e||56320!=(64512&ef(t,n+1))?r[n]=ff(o):(r[n]=o,r[++n]=tf(t,n))}}return nf(r,"")}}),To("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Fo);var hf=Set.prototype,pf={Set:Set,add:b(hf.add),has:b(hf.has),remove:b(hf.delete),proto:hf},vf=pf.has,df=function(t){return vf(t),t},gf=pf.Set,yf=pf.proto,mf=b(yf.forEach),bf=b(yf.keys),wf=bf(new gf).next,Sf=function(t,e,r){return r?ci({iterator:bf(t),next:wf},e):mf(t,e)},Ef=pf.Set,Of=pf.add,xf=function(t){var e=new Ef;return Sf(t,function(t){Of(e,t)}),e},Rf=ln(pf.proto,"size","get")||function(t){return t.size},Pf="Invalid size",Af=RangeError,jf=TypeError,kf=Math.max,If=function(t,e){this.set=t,this.size=kf(e,0),this.has=J(t.has),this.keys=J(t.keys)};If.prototype={getIterator:function(){return{iterator:t=kt(f(this.keys,this.set)),next:t.next,done:!1};var t},includes:function(t){return f(this.has,this.set,t)}};var Tf=function(t){kt(t);var e=+t.size;if(e!=e)throw new jf(Pf);var r=ce(e);if(r<0)throw new Af(Pf);return new If(t,r)},Mf=pf.has,Lf=pf.remove,Uf=function(t){var e=df(this),r=Tf(t),n=xf(e);return Rf(e)<=r.size?Sf(e,function(t){r.includes(t)&&Lf(n,t)}):ci(r.getIterator(),function(t){Mf(e,t)&&Lf(n,t)}),n},Nf=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},Cf=function(t){var e=L("Set");try{(new e)[t](Nf(0));try{return(new e)[t](Nf(-1)),!1}catch(t){return!0}}catch(t){return!1}};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("difference")},{difference:Uf});var _f=pf.Set,Ff=pf.add,Bf=pf.has,Df=function(t){var e=df(this),r=Tf(t),n=new _f;return Rf(e)>r.size?ci(r.getIterator(),function(t){Bf(e,t)&&Ff(n,t)}):Sf(e,function(t){r.includes(t)&&Ff(n,t)}),n},zf=!Cf("intersection")||a(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))});Ce({target:"Set",proto:!0,real:!0,forced:zf},{intersection:Df});var Wf=pf.has,qf=function(t){var e=df(this),r=Tf(t);if(Rf(e)<=r.size)return!1!==Sf(e,function(t){if(r.includes(t))return!1},!0);var n=r.getIterator();return!1!==ci(n,function(t){if(Wf(e,t))return Tn(n,"normal",!1)})};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("isDisjointFrom")},{isDisjointFrom:qf});var Hf=function(t){var e=df(this),r=Tf(t);return!(Rf(e)>r.size)&&!1!==Sf(e,function(t){if(!r.includes(t))return!1},!0)};Ce({target:"Set",proto:!0,real:!0,forced:!Cf("isSubsetOf")},{isSubsetOf:Hf});var $f=pf.has,Kf=function(t){var e=df(this),r=Tf(t);if(Rf(e)1?arguments[1]:void 0);return!1!==Sf(e,function(t){if(!r(t,t,e))return!1},!0)}});var el=dt("iterator"),rl=Object,nl=L("Set"),ol=function(t){return function(t){return M(t)&&"number"==typeof t.size&&T(t.has)&&T(t.keys)}(t)?t:function(t){if(P(t))return!1;var e=rl(t);return void 0!==e[el]||"@@iterator"in e||ut(un,pr(e))}(t)?new nl(t):t};Ce({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(t){return f(Uf,this,ol(t))}});var il=pf.Set,al=pf.add;Ce({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new il;return Sf(e,function(t){r(t,t,e)&&al(n,t)}),n}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{find:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=Sf(e,function(t){if(r(t,t,e))return{value:t}},!0);return n&&n.value}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(t){return f(Df,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(t){return f(qf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(t){return f(Hf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(t){return f(Kf,this,ol(t))}});var ul=b([].join),sl=b([].push);Ce({target:"Set",proto:!0,real:!0,forced:!0},{join:function(t){var e=df(this),r=void 0===t?",":Wr(t),n=[];return Sf(e,function(t){sl(n,t)}),ul(n,r)}});var cl=pf.Set,fl=pf.add;Ce({target:"Set",proto:!0,real:!0,forced:!0},{map:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0),n=new cl;return Sf(e,function(t){fl(n,r(t,t,e))}),n}});var ll=TypeError;Ce({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=df(this),r=arguments.length<2,n=r?void 0:arguments[1];if(J(t),Sf(e,function(o){r?(r=!1,n=o):n=t(n,o,o,e)}),r)throw new ll("Reduce of empty set with no initial value");return n}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{some:function(t){var e=df(this),r=ar(t,arguments.length>1?arguments[1]:void 0);return!0===Sf(e,function(t){if(r(t,t,e))return!0},!0)}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(t){return f(Xf,this,ol(t))}}),Ce({target:"Set",proto:!0,real:!0,forced:!0},{union:function(t){return f(Qf,this,ol(t))}});var hl=dt("species"),pl=dt("isConcatSpreadable"),vl=W>=51||!a(function(){var t=[];return t[pl]=!1,t.concat()[0]!==t}),dl=function(t){if(!M(t))return!1;var e=t[pl];return void 0!==e?!!e:ur(t)},gl=!(vl&&(W>=51||!a(function(){var t=[];return(t.constructor={})[hl]=function(){return{foo:1}},1!==t.concat(Boolean).foo})));Ce({target:"Array",proto:!0,arity:1,forced:gl},{concat:function(t){var e,r,n,o,i,a=it(this),u=xr(a,0),s=0;for(e=-1,n=arguments.length;e1?arguments[1]:void 0,n=e.length,o=void 0===r?n:ip(ve(r),n),i=Wr(t);return op(e,o-i.length,o)===i}}),Ze("String","endsWith");var sp=RangeError,cp=String.fromCharCode,fp=String.fromCodePoint,lp=b([].join);Ce({target:"String",stat:!0,arity:1,forced:!!fp&&1!==fp.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],he(e,1114111)!==e)throw new sp(e+" is not a valid code point");r[o]=e<65536?cp(e):cp(55296+((e-=65536)>>10),e%1024+56320)}return lp(r,"")}});var hp=b("".indexOf);Ce({target:"String",proto:!0,forced:!rp("includes")},{includes:function(t){return!!~hp(Wr(j(this)),Wr(tp(t)),arguments.length>1?arguments[1]:void 0)}}),Ze("String","includes"),b(un.String);var pp=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(_),vp=Xc.start;Ce({target:"String",proto:!0,forced:pp},{padStart:function(t){return vp(this,t,arguments.length>1?arguments[1]:void 0)}}),Ze("String","padStart");var dp=Xc.end;Ce({target:"String",proto:!0,forced:pp},{padEnd:function(t){return dp(this,t,arguments.length>1?arguments[1]:void 0)}}),Ze("String","padEnd");var gp=b([].push),yp=b([].join);Ce({target:"String",stat:!0},{raw:function(t){var e=k(it(t).raw),r=de(e);if(!r)return"";for(var n=arguments.length,o=[],i=0;;){if(gp(o,Wr(e[i++])),i===r)return yp(o,"");i1?arguments[1]:void 0,e.length)),n=Wr(t);return bp(e,r,r+n.length)===n}}),Ze("String","startsWith");var Op=zt.PROPER,xp=function(t){return a(function(){return!!Mi[t]()||"​…᠎"!=="​…᠎"[t]()||Op&&Mi[t].name!==t})},Rp=_i.start,Pp=xp("trimStart")?function(){return Rp(this)}:"".trimStart;Ce({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==Pp},{trimLeft:Pp}),Ce({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==Pp},{trimStart:Pp}),Ze("String","trimLeft");var Ap=_i.end,jp=xp("trimEnd")?function(){return Ap(this)}:"".trimEnd;Ce({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==jp},{trimRight:jp}),Ce({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==jp},{trimEnd:jp}),Ze("String","trimRight");var kp=Object.getOwnPropertyDescriptor,Ip=function(t){if(!u)return i[t];var e=kp(i,t);return e&&e.value},Tp=dt("iterator"),Mp=!a(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach(function(t,r){e.delete("b"),n+=r+t}),r.delete("a",2),r.delete("b",void 0),!e.size&&!u||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Tp]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host}),Lp=TypeError,Up=function(t,e){if(t0;)t[o]=t[--o];o!==i++&&(t[o]=n)}else for(var a=Np(r/2),u=Cp(vo(t,0,a),e),s=Cp(vo(t,a),e),c=u.length,f=s.length,l=0,h=0;l0&&0!=(t&r);r>>=1)e++;return e},pv=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},vv=function(t){for(var e=(t=nv(t,cv," ")).length,r="",n=0;ne){r+="%",n++;continue}var i=lv(t,n+1);if(i!=i){r+=o,n++;continue}n+=2;var a=hv(i);if(0===a)o=Jp(i);else{if(1===a||a>4){r+="�",n++;continue}for(var u=[i],s=1;se||"%"!==tv(t,n));){var c=lv(t,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;rv(u,c),n+=2,s++}if(u.length!==a){r+="�";continue}var f=pv(u);null===f?r+="�":o=Qp(f)}}r+=o,n++}return r},dv=/[!'()~]|%20/g,gv={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},yv=function(t){return gv[t]},mv=function(t){return nv(Xp(t),dv,yv)},bv=fn(function(t,e){zp(this,{type:Dp,target:Wp(t).entries,index:0,kind:e})},Bp,function(){var t=qp(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Pn(void 0,!0);var n=e[r];switch(t.kind){case"keys":return Pn(n.key,!1);case"values":return Pn(n.value,!1)}return Pn([n.key,n.value],!1)},!0),wv=function(t){this.entries=[],this.url=null,void 0!==t&&(M(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===tv(t,0)?uv(t,1):t:Wr(t)))};wv.prototype={type:Bp,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,u,s=this.entries,c=Fn(t);if(c)for(r=(e=Dn(t,c)).next;!(n=f(r,e)).done;){if(o=Dn(kt(n.value)),(a=f(i=o.next,o)).done||(u=f(i,o)).done||!f(i,o).done)throw new Yp("Expected sequence with length 2");rv(s,{key:Wr(a.value),value:Wr(u.value)})}else for(var l in t)ut(t,l)&&rv(s,{key:l,value:Wr(t[l])})},parseQuery:function(t){if(t)for(var e,r,n=this.entries,o=av(t,"&"),i=0;i0?arguments[0]:void 0));u||(this.size=t.entries.length)},Ev=Sv.prototype;if(Mo(Ev,{append:function(t,e){var r=Wp(this);Up(arguments.length,2),rv(r.entries,{key:Wr(t),value:Wr(e)}),u||this.length++,r.updateURL()},delete:function(t){for(var e=Wp(this),r=Up(arguments.length,1),n=e.entries,o=Wr(t),i=r<2?void 0:arguments[1],a=void 0===i?i:Wr(i),s=0;se.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,r=Wp(this).entries,n=ar(t,arguments.length>1?arguments[1]:void 0),o=0;o1?Rv(arguments[1]):{})}}),T($p)){var Pv=function(t){return ko(this,Gp),new $p(t,arguments.length>1?Rv(arguments[1]):{})};Gp.constructor=Pv,Pv.prototype=Gp,Ce({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pv})}}var Av={URLSearchParams:Sv,getState:Wp},jv=URLSearchParams,kv=jv.prototype,Iv=b(kv.append),Tv=b(kv.delete),Mv=b(kv.forEach),Lv=b([].push),Uv=new jv("a=1&a=2&b=3");Uv.delete("a",1),Uv.delete("b",void 0),Uv+""!="a=2"&&ie(kv,"delete",function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return Tv(this,t);var n=[];Mv(this,function(t,e){Lv(n,{key:e,value:t})}),Up(e,1);for(var o,i=Wr(t),a=Wr(r),u=0,s=0,c=!1,f=n.length;uo;)for(var s,c=R(arguments[o++]),l=i?$v(_e(c),i(c)):_e(c),h=l.length,p=0;h>p;)s=l[p++],u&&!f(a,c,s)||(r[s]=c[s]);return r}:qv,Gv=2147483647,Vv=/[^\0-\u007E]/,Yv=/[.\u3002\uFF0E\uFF61]/g,Xv="Overflow: input needs wider integers to process",Jv=RangeError,Qv=b(Yv.exec),Zv=Math.floor,td=String.fromCharCode,ed=b("".charCodeAt),rd=b([].join),nd=b([].push),od=b("".replace),id=b("".split),ad=b("".toLowerCase),ud=function(t){return t+22+75*(t<26)},sd=function(t,e,r){var n=0;for(t=r?Zv(t/700):t>>1,t+=Zv(t/e);t>455;)t=Zv(t/35),n+=36;return Zv(n+36*t/(t+38))},cd=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r=55296&&o<=56319&&r=i&&nZv((Gv-a)/l))throw new Jv(Xv);for(a+=(f-i)*l,i=f,r=0;rGv)throw new Jv(Xv);if(n===i){for(var h=a,p=36;;){var v=p<=u?1:p>=u+26?26:p-u;if(h?@[\\\]^|]/,qd=/[\0\t\n\r #/:<>?@[\\\]^|]/,Hd=/^[\u0000-\u0020]+/,$d=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Kd=/[\t\n\r]/g,Gd=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)Td(e,t%256),t=md(t/256);return Ed(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=Od(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},Vd={},Yd=Kv({},Vd,{" ":1,'"':1,"<":1,">":1,"`":1}),Xd=Kv({},Yd,{"#":1,"?":1,"{":1,"}":1}),Jd=Kv({},Xd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Qd=function(t,e){var r=fd(t,0);return r>32&&r<127&&!ut(e,t)?t:encodeURIComponent(t)},Zd={ftp:21,file:null,http:80,https:443,ws:80,wss:443},tg=function(t,e){var r;return 2===t.length&&Sd(Nd,wd(t,0))&&(":"===(r=wd(t,1))||!e&&"|"===r)},eg=function(t){var e;return t.length>1&&tg(kd(t,0,2))&&(2===t.length||"/"===(e=wd(t,2))||"\\"===e||"?"===e||"#"===e)},rg=function(t){return"."===t||"%2e"===Id(t)},ng={},og={},ig={},ag={},ug={},sg={},cg={},fg={},lg={},hg={},pg={},vg={},dg={},gg={},yg={},mg={},bg={},wg={},Sg={},Eg={},Og={},xg=function(t,e,r){var n,o,i,a=Wr(t);if(e){if(o=this.parse(a))throw new gd(o);this.searchParams=null}else{if(void 0!==r&&(n=new xg(r,!0)),o=this.parse(a,null,n))throw new gd(o);(i=vd(new pd)).bindURL(this),this.searchParams=i}};xg.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,u,s=this,c=e||ng,f=0,l="",h=!1,p=!1,v=!1;for(t=Wr(t),e||(s.scheme="",s.username="",s.password="",s.host=null,s.port=null,s.path=[],s.query=null,s.fragment=null,s.cannotBeABaseURL=!1,t=Pd(t,Hd,""),t=Pd(t,$d,"$1")),t=Pd(t,Kd,""),n=Wn(t);f<=n.length;){switch(o=n[f],c){case ng:if(!o||!Sd(Nd,o)){if(e)return Md;c=ig;continue}l+=Id(o),c=og;break;case og:if(o&&(Sd(Cd,o)||"+"===o||"-"===o||"."===o))l+=Id(o);else{if(":"!==o){if(e)return Md;l="",c=ig,f=0;continue}if(e&&(s.isSpecial()!==ut(Zd,l)||"file"===l&&(s.includesCredentials()||null!==s.port)||"file"===s.scheme&&!s.host))return;if(s.scheme=l,e)return void(s.isSpecial()&&Zd[s.scheme]===s.port&&(s.port=null));l="","file"===s.scheme?c=gg:s.isSpecial()&&r&&r.scheme===s.scheme?c=ag:s.isSpecial()?c=fg:"/"===n[f+1]?(c=ug,f++):(s.cannotBeABaseURL=!0,Rd(s.path,""),c=Sg)}break;case ig:if(!r||r.cannotBeABaseURL&&"#"!==o)return Md;if(r.cannotBeABaseURL&&"#"===o){s.scheme=r.scheme,s.path=vo(r.path),s.query=r.query,s.fragment="",s.cannotBeABaseURL=!0,c=Og;break}c="file"===r.scheme?gg:sg;continue;case ag:if("/"!==o||"/"!==n[f+1]){c=sg;continue}c=lg,f++;break;case ug:if("/"===o){c=hg;break}c=wg;continue;case sg:if(s.scheme=r.scheme,o===Wv)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=r.query;else if("/"===o||"\\"===o&&s.isSpecial())c=cg;else if("?"===o)s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query="",c=Eg;else{if("#"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.path.length--,c=wg;continue}s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,s.path=vo(r.path),s.query=r.query,s.fragment="",c=Og}break;case cg:if(!s.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){s.username=r.username,s.password=r.password,s.host=r.host,s.port=r.port,c=wg;continue}c=hg}else c=lg;break;case fg:if(c=lg,"/"!==o||"/"!==wd(l,f+1))continue;f++;break;case lg:if("/"!==o&&"\\"!==o){c=hg;continue}break;case hg:if("@"===o){h&&(l="%40"+l),h=!0,i=Wn(l);for(var d=0;d65535)return Ud;s.port=s.isSpecial()&&m===Zd[s.scheme]?null:m,l=""}if(e)return;c=bg;continue}return Ud}l+=o;break;case gg:if(s.scheme="file","/"===o||"\\"===o)c=yg;else{if(!r||"file"!==r.scheme){c=wg;continue}switch(o){case Wv:s.host=r.host,s.path=vo(r.path),s.query=r.query;break;case"?":s.host=r.host,s.path=vo(r.path),s.query="",c=Eg;break;case"#":s.host=r.host,s.path=vo(r.path),s.query=r.query,s.fragment="",c=Og;break;default:eg(Ed(vo(n,f),""))||(s.host=r.host,s.path=vo(r.path),s.shortenPath()),c=wg;continue}}break;case yg:if("/"===o||"\\"===o){c=mg;break}r&&"file"===r.scheme&&!eg(Ed(vo(n,f),""))&&(tg(r.path[0],!0)?Rd(s.path,r.path[0]):s.host=r.host),c=wg;continue;case mg:if(o===Wv||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&tg(l))c=wg;else if(""===l){if(s.host="",e)return;c=bg}else{if(a=s.parseHost(l))return a;if("localhost"===s.host&&(s.host=""),e)return;l="",c=bg}continue}l+=o;break;case bg:if(s.isSpecial()){if(c=wg,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==Wv&&(c=wg,"/"!==o))continue}else s.fragment="",c=Og;else s.query="",c=Eg;break;case wg:if(o===Wv||"/"===o||"\\"===o&&s.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(u=Id(u=l))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(s.shortenPath(),"/"===o||"\\"===o&&s.isSpecial()||Rd(s.path,"")):rg(l)?"/"===o||"\\"===o&&s.isSpecial()||Rd(s.path,""):("file"===s.scheme&&!s.path.length&&tg(l)&&(s.host&&(s.host=""),l=wd(l,0)+":"),Rd(s.path,l)),l="","file"===s.scheme&&(o===Wv||"?"===o||"#"===o))for(;s.path.length>1&&""===s.path[0];)Ad(s.path);"?"===o?(s.query="",c=Eg):"#"===o&&(s.fragment="",c=Og)}else l+=Qd(o,Xd);break;case Sg:"?"===o?(s.query="",c=Eg):"#"===o?(s.fragment="",c=Og):o!==Wv&&(s.path[0]+=Qd(o,Vd));break;case Eg:e||"#"!==o?o!==Wv&&("'"===o&&s.isSpecial()?s.query+="%27":s.query+="#"===o?"%23":Qd(o,Vd)):(s.fragment="",c=Og);break;case Og:o!==Wv&&(s.fragment+=Qd(o,Yd))}f++}},parseHost:function(t){var e,r,n;if("["===wd(t,0)){if("]"!==wd(t,t.length-1))return Ld;if(e=function(t){var e,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return wd(t,l)};if(":"===h()){if(":"!==wd(t,1))return;l+=2,f=++c}for(;h();){if(8===c)return;if(":"!==h()){for(e=r=0;r<4&&Sd(zd,h());)e=16*e+yd(h(),16),l++,r++;if("."===h()){if(0===r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!("."===h()&&n<4))return;l++}if(!Sd(_d,h()))return;for(;Sd(_d,h());){if(i=yd(h(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;l++}s[c]=256*s[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===h()){if(l++,!h())return}else if(h())return;s[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!==c&&a>0;)u=s[c],s[c--]=s[f+a-1],s[f+--a]=u;else if(8!==c)return;return s}(kd(t,1,-1)),!e)return Ld;this.host=e}else if(this.isSpecial()){if(t=function(t){var e,r,n=[],o=id(od(ad(t),Yv,"."),".");for(e=0;e4)return t;for(r=[],n=0;n1&&"0"===wd(o,0)&&(i=Sd(Fd,o)?16:8,o=kd(o,8===i?1:2)),""===o)a=0;else{if(!Sd(10===i?Dd:8===i?Bd:zd,o))return t;a=yd(o,i)}Rd(r,a)}for(n=0;n=bd(256,5-e))return null}else if(a>255)return null;for(u=xd(r),n=0;n1?arguments[1]:void 0,n=ld(e,new xg(t,!1,r));u||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Pg=Rg.prototype,Ag=function(t,e){return{get:function(){return hd(this)[t]()},set:e&&function(t){return hd(this)[e](t)},configurable:!0,enumerable:!0}};if(u&&(so(Pg,"href",Ag("serialize","setHref")),so(Pg,"origin",Ag("getOrigin")),so(Pg,"protocol",Ag("getProtocol","setProtocol")),so(Pg,"username",Ag("getUsername","setUsername")),so(Pg,"password",Ag("getPassword","setPassword")),so(Pg,"host",Ag("getHost","setHost")),so(Pg,"hostname",Ag("getHostname","setHostname")),so(Pg,"port",Ag("getPort","setPort")),so(Pg,"pathname",Ag("getPathname","setPathname")),so(Pg,"search",Ag("getSearch","setSearch")),so(Pg,"searchParams",Ag("getSearchParams")),so(Pg,"hash",Ag("getHash","setHash"))),ie(Pg,"toJSON",function(){return hd(this).serialize()},{enumerable:!0}),ie(Pg,"toString",function(){return hd(this).serialize()},{enumerable:!0}),dd){var jg=dd.createObjectURL,kg=dd.revokeObjectURL;jg&&ie(Rg,"createObjectURL",ar(jg,dd)),kg&&ie(Rg,"revokeObjectURL",ar(kg,dd))}an(Rg,"URL"),Ce({global:!0,constructor:!0,forced:!Mp,sham:!u},{URL:Rg});var Ig=L("URL"),Tg=Mp&&a(function(){Ig.canParse()}),Mg=a(function(){return 1!==Ig.canParse.length});Ce({target:"URL",stat:!0,forced:!Tg||Mg},{canParse:function(t){var e=Up(arguments.length,1),r=Wr(t),n=e<2||void 0===arguments[1]?void 0:Wr(arguments[1]);try{return!!new Ig(r,n)}catch(t){return!1}}});var Lg=L("URL");Ce({target:"URL",stat:!0,forced:!Mp},{parse:function(t){var e=Up(arguments.length,1),r=Wr(t),n=e<2||void 0===arguments[1]?void 0:Wr(arguments[1]);try{return new Lg(r,n)}catch(t){return null}}}),Ce({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return f(URL.prototype.toString,this)}});var Ug=WeakMap.prototype,Ng={WeakMap:WeakMap,set:b(Ug.set),get:b(Ug.get),has:b(Ug.has),remove:b(Ug.delete)},Cg=Ng.has,_g=function(t){return Cg(t),t},Fg=Ng.get,Bg=Ng.has,Dg=Ng.set;Ce({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var r,n,o=_g(this);return Bg(o,t)?(r=Fg(o,t),"update"in e&&(r=e.update(r,t,o),Dg(o,t,r)),r):(n=e.insert(t,o),Dg(o,t,n),n)}}),Ce({target:"WeakMap",stat:!0,forced:!0},{from:ei(Ng.WeakMap,Ng.set,!0)}),Ce({target:"WeakMap",stat:!0,forced:!0},{of:ri(Ng.WeakMap,Ng.set,!0)});var zg=Ng.remove;Ce({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=_g(this),r=!0,n=0,o=arguments.length;n2&&(n=r,M(o=arguments[2])&&"cause"in o&&_t(n,"cause",o.cause));var s=[];return Ao(t,ny,{that:s}),_t(r,"errors",s),r};dn?dn(oy,ry):Ae(oy,ry,{name:!0});var iy=oy.prototype=Ve(ry.prototype,{constructor:d(1,oy),message:d(1,""),name:d(1,"AggregateError")});Ce({global:!0,constructor:!0,arity:2},{AggregateError:oy});var ay,uy,sy,cy,fy=function(t){return _.slice(0,t.length)===t},ly=fy("Bun/")?"BUN":fy("Cloudflare-Workers")?"CLOUDFLARE":fy("Deno/")?"DENO":fy("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===E(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST",hy="NODE"===ly,py=/(?:ipad|iphone|ipod).*applewebkit/i.test(_),vy=i.setImmediate,dy=i.clearImmediate,gy=i.process,yy=i.Dispatch,my=i.Function,by=i.MessageChannel,wy=i.String,Sy=0,Ey={},Oy="onreadystatechange";a(function(){ay=i.location});var xy=function(t){if(ut(Ey,t)){var e=Ey[t];delete Ey[t],e()}},Ry=function(t){return function(){xy(t)}},Py=function(t){xy(t.data)},Ay=function(t){i.postMessage(wy(t),ay.protocol+"//"+ay.host)};vy&&dy||(vy=function(t){Up(arguments.length,1);var e=T(t)?t:my(t),r=vo(arguments,1);return Ey[++Sy]=function(){Ra(e,void 0,r)},uy(Sy),Sy},dy=function(t){delete Ey[t]},hy?uy=function(t){gy.nextTick(Ry(t))}:yy&&yy.now?uy=function(t){yy.now(Ry(t))}:by&&!py?(cy=(sy=new by).port2,sy.port1.onmessage=Py,uy=ar(cy.postMessage,cy)):i.addEventListener&&T(i.postMessage)&&!i.importScripts&&ay&&"file:"!==ay.protocol&&!a(Ay)?(uy=Ay,i.addEventListener("message",Py,!1)):uy=Oy in Et("script")?function(t){De.appendChild(Et("script"))[Oy]=function(){De.removeChild(this),xy(t)}}:function(t){setTimeout(Ry(t),0)});var jy={set:vy,clear:dy},ky=function(){this.head=null,this.tail=null};ky.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Iy,Ty,My,Ly,Uy,Ny=ky,Cy=/ipad|iphone|ipod/i.test(_)&&"undefined"!=typeof Pebble,_y=/web0s(?!.*chrome)/i.test(_),Fy=jy.set,By=i.MutationObserver||i.WebKitMutationObserver,Dy=i.document,zy=i.process,Wy=i.Promise,qy=Ip("queueMicrotask");if(!qy){var Hy=new Ny,$y=function(){var t,e;for(hy&&(t=zy.domain)&&t.exit();e=Hy.get();)try{e()}catch(t){throw Hy.head&&Iy(),t}t&&t.enter()};py||hy||_y||!By||!Dy?!Cy&&Wy&&Wy.resolve?((Ly=Wy.resolve(void 0)).constructor=Wy,Uy=ar(Ly.then,Ly),Iy=function(){Uy($y)}):hy?Iy=function(){zy.nextTick($y)}:(Fy=ar(Fy,i),Iy=function(){Fy($y)}):(Ty=!0,My=Dy.createTextNode(""),new By($y).observe(My,{characterData:!0}),Iy=function(){My.data=Ty=!Ty}),qy=function(t){Hy.head||Iy(),Hy.add(t)}}var Ky,Gy,Vy,Yy=qy,Xy=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Jy=i.Promise,Qy=dt("species"),Zy=!1,tm=T(i.PromiseRejectionEvent),em=Ue("Promise",function(){var t=Kt(Jy),e=t!==String(Jy);if(!e&&66===W)return!0;if(!W||W<51||!/native code/.test(t)){var r=new Jy(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((r.constructor={})[Qy]=n,!(Zy=r.then(function(){})instanceof n))return!0}return!(e||"BROWSER"!==ly&&"DENO"!==ly||tm)}),rm={CONSTRUCTOR:em,REJECTION_EVENT:tm,SUBCLASSING:Zy},nm=TypeError,om=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw new nm("Bad Promise constructor");e=t,r=n}),this.resolve=J(e),this.reject=J(r)},im={f:function(t){return new om(t)}},am=jy.set,um="Promise",sm=rm.CONSTRUCTOR,cm=rm.REJECTION_EVENT,fm=rm.SUBCLASSING,lm=ne.getterFor(um),hm=ne.set,pm=Jy&&Jy.prototype,vm=Jy,dm=pm,gm=i.TypeError,ym=i.document,mm=i.process,bm=im.f,wm=bm,Sm=!!(ym&&ym.createEvent&&i.dispatchEvent),Em="unhandledrejection",Om=function(t){var e;return!(!M(t)||!T(e=t.then))&&e},xm=function(t,e){var r,n,o,i=e.value,a=1===e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{u?(a||(2===e.rejection&&km(e),e.rejection=1),!0===u?r=i:(l&&l.enter(),r=u(i),l&&(l.exit(),o=!0)),r===t.promise?c(new gm("Promise-chain cycle")):(n=Om(r))?f(n,r,s,c):s(r)):c(i)}catch(t){l&&!o&&l.exit(),c(t)}},Rm=function(t,e){t.notified||(t.notified=!0,Yy(function(){for(var r,n=t.reactions;r=n.get();)xm(r,t);t.notified=!1,e&&!t.rejection&&Am(t)}))},Pm=function(t,e,r){var n,o;Sm?((n=ym.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),i.dispatchEvent(n)):n={promise:e,reason:r},!cm&&(o=i["on"+t])?o(n):t===Em&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",r)},Am=function(t){f(am,i,function(){var e,r=t.facade,n=t.value;if(jm(t)&&(e=Xy(function(){hy?mm.emit("unhandledRejection",n,r):Pm(Em,r,n)}),t.rejection=hy||jm(t)?2:1,e.error))throw e.value})},jm=function(t){return 1!==t.rejection&&!t.parent},km=function(t){f(am,i,function(){var e=t.facade;hy?mm.emit("rejectionHandled",e):Pm("rejectionhandled",e,t.value)})},Im=function(t,e,r){return function(n){t(e,n,r)}},Tm=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Rm(t,!0))},Mm=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new gm("Promise can't be resolved itself");var n=Om(e);n?Yy(function(){var r={done:!1};try{f(n,e,Im(Mm,r,t),Im(Tm,r,t))}catch(e){Tm(r,e,t)}}):(t.value=e,t.state=1,Rm(t,!1))}catch(e){Tm({done:!1},e,t)}}};if(sm&&(vm=function(t){ko(this,dm),J(t),f(Ky,this);var e=lm(this);try{t(Im(Mm,e),Im(Tm,e))}catch(t){Tm(e,t)}},(Ky=function(t){hm(this,{type:um,done:!1,notified:!1,parent:!1,reactions:new Ny,rejection:!1,state:0,value:null})}).prototype=ie(dm=vm.prototype,"then",function(t,e){var r=lm(this),n=bm(Cc(this,vm));return r.parent=!0,n.ok=!T(t)||t,n.fail=T(e)&&e,n.domain=hy?mm.domain:void 0,0===r.state?r.reactions.add(n):Yy(function(){xm(n,r)}),n.promise}),Gy=function(){var t=new Ky,e=lm(t);this.promise=t,this.resolve=Im(Mm,e),this.reject=Im(Tm,e)},im.f=bm=function(t){return t===vm||void 0===t?new Gy(t):wm(t)},T(Jy)&&pm!==Object.prototype)){Vy=pm.then,fm||ie(pm,"then",function(t,e){var r=this;return new vm(function(t,e){f(Vy,r,t,e)}).then(t,e)},{unsafe:!0});try{delete pm.constructor}catch(t){}dn&&dn(pm,dm)}Ce({global:!0,constructor:!0,wrap:!0,forced:sm},{Promise:vm}),an(vm,um,!1),Uo(um);var Lm=rm.CONSTRUCTOR||!Gn(function(t){Jy.all(t).then(void 0,function(){})});Ce({target:"Promise",stat:!0,forced:Lm},{all:function(t){var e=this,r=im.f(e),n=r.resolve,o=r.reject,i=Xy(function(){var r=J(e.resolve),i=[],a=0,u=1;Ao(t,function(t){var s=a++,c=!1;u++,f(r,e,t).then(function(t){c||(c=!0,i[s]=t,--u||n(i))},o)}),--u||n(i)});return i.error&&o(i.value),r.promise}});var Um=Jy&&Jy.prototype;if(Ce({target:"Promise",proto:!0,forced:rm.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),T(Jy)){var Nm=L("Promise").prototype.catch;Um.catch!==Nm&&ie(Um,"catch",Nm,{unsafe:!0})}Ce({target:"Promise",stat:!0,forced:Lm},{race:function(t){var e=this,r=im.f(e),n=r.reject,o=Xy(function(){var o=J(e.resolve);Ao(t,function(t){f(o,e,t).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}}),Ce({target:"Promise",stat:!0,forced:rm.CONSTRUCTOR},{reject:function(t){var e=im.f(this);return(0,e.reject)(t),e.promise}});var Cm=function(t,e){if(kt(t),M(e)&&e.constructor===t)return e;var r=im.f(t);return(0,r.resolve)(e),r.promise};Ce({target:"Promise",stat:!0,forced:rm.CONSTRUCTOR},{resolve:function(t){return Cm(this,t)}}),Ce({target:"Promise",stat:!0,forced:Lm},{allSettled:function(t){var e=this,r=im.f(e),n=r.resolve,o=r.reject,i=Xy(function(){var r=J(e.resolve),o=[],i=0,a=1;Ao(t,function(t){var u=i++,s=!1;a++,f(r,e,t).then(function(t){s||(s=!0,o[u]={status:"fulfilled",value:t},--a||n(o))},function(t){s||(s=!0,o[u]={status:"rejected",reason:t},--a||n(o))})}),--a||n(o)});return i.error&&o(i.value),r.promise}});var _m="No one promise resolved";Ce({target:"Promise",stat:!0,forced:Lm},{any:function(t){var e=this,r=L("AggregateError"),n=im.f(e),o=n.resolve,i=n.reject,a=Xy(function(){var n=J(e.resolve),a=[],u=0,s=1,c=!1;Ao(t,function(t){var l=u++,h=!1;s++,f(n,e,t).then(function(t){h||c||(c=!0,o(t))},function(t){h||c||(h=!0,a[l]=t,--s||i(new r(a,_m)))})}),--s||i(new r(a,_m))});return a.error&&i(a.value),n.promise}}),Ce({target:"Promise",stat:!0},{withResolvers:function(){var t=im.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}});var Fm=Jy&&Jy.prototype,Bm=!!Jy&&a(function(){Fm.finally.call({then:function(){}},function(){})});if(Ce({target:"Promise",proto:!0,real:!0,forced:Bm},{finally:function(t){var e=Cc(this,L("Promise")),r=T(t);return this.then(r?function(r){return Cm(e,t()).then(function(){return r})}:t,r?function(r){return Cm(e,t()).then(function(){throw r})}:t)}}),T(Jy)){var Dm=L("Promise").prototype.finally;Fm.finally!==Dm&&ie(Fm,"finally",Dm,{unsafe:!0})}var zm=i.Promise,Wm=!1,qm=!zm||!zm.try||Xy(function(){zm.try(function(t){Wm=8===t},8)}).error||!Wm;Ce({target:"Promise",stat:!0,forced:qm},{try:function(t){var e=arguments.length>1?vo(arguments,1):[],r=im.f(this),n=Xy(function(){return Ra(J(t),void 0,e)});return(n.error?r.reject:r.resolve)(n.value),r.promise}}),Ze("Promise","finally");var Hm="URLSearchParams"in self,$m="Symbol"in self&&"iterator"in Symbol,Km="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),Gm="FormData"in self,Vm="ArrayBuffer"in self;if(Vm)var Ym=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Xm=ArrayBuffer.isView||function(t){return t&&Ym.indexOf(Object.prototype.toString.call(t))>-1};function Jm(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function Qm(t){return"string"!=typeof t&&(t=String(t)),t}function Zm(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return $m&&(e[Symbol.iterator]=function(){return e}),e}function tb(t){this.map={},t instanceof tb?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function eb(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function rb(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function nb(t){var e=new FileReader,r=rb(e);return e.readAsArrayBuffer(t),r}function ob(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function ib(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:Km&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:Gm&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:Hm&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():Vm&&Km&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=ob(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Vm&&(ArrayBuffer.prototype.isPrototypeOf(t)||Xm(t))?this._bodyArrayBuffer=ob(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Hm&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Km&&(this.blob=function(){var t=eb(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?eb(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(nb)}),this.text=function(){var t=eb(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=rb(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function sb(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function cb(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new tb(e.headers),this.url=e.url||"",this._initBody(t)}ub.prototype.clone=function(){return new ub(this,{body:this._bodyInit})},ib.call(ub.prototype),ib.call(cb.prototype),cb.prototype.clone=function(){return new cb(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new tb(this.headers),url:this.url})},cb.error=function(){var t=new cb(null,{status:0,statusText:""});return t.type="error",t};var fb=[301,302,303,307,308];cb.redirect=function(t,e){if(-1===fb.indexOf(e))throw new RangeError("Invalid status code");return new cb(null,{status:e,headers:{location:t}})};var lb=self.DOMException;try{new lb}catch(t){(lb=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),lb.prototype.constructor=lb}function hb(t,e){return new Promise(function(r,n){var o=new ub(t,e);if(o.signal&&o.signal.aborted)return n(new lb("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new tb,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL"),r(new cb("response"in i?i.response:i.responseText,n))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.onabort=function(){n(new lb("Aborted","AbortError"))},i.open(o.method,o.url,!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&Km&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}hb.polyfill=!0,self.fetch||(self.fetch=hb,self.Headers=tb,self.Request=ub,self.Response=cb);var pb=Object.getOwnPropertySymbols,vb=Object.prototype.hasOwnProperty,db=Object.prototype.propertyIsEnumerable,gb=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i{"use strict";var e={},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}},i=!0;try{e[o].call(a.exports,a,a.exports,r),i=!1}finally{i&&delete t[o]}return a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(o){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[o,n,a];return}for(var u=1/0,i=0;i=a)&&Object.keys(r.O).every(e=>r.O[e](o[c]))?o.splice(c--,1):(l=!1,a{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&n&&o;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(a,i),a}})(),r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>"static/chunks/"+e+"."+({341:"2903e54d3da731c1",472:"a3826d29d6854395"})[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="_N_E:";r.l=(o,n,a,i)=>{if(e[o]){e[o].push(n);return}if(void 0!==a)for(var u,l,c=document.getElementsByTagName("script"),d=0;d{u.onerror=u.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],u.parentNode&&u.parentNode.removeChild(u),n&&n.forEach(e=>e(r)),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=f.bind(null,u.onerror),u.onload=f.bind(null,u.onload),l&&document.head.appendChild(u)}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("nextjs#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="/_next/",(()=>{var e={68:0,496:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n){if(n)o.push(n[2]);else if(/^(496|68)$/.test(t))e[t]=0;else{var a=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=a);var i=r.p+r.u(t),u=Error();r.l(i,o=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;u.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,n[1](u)}},"chunk-"+t,t)}}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,u,l]=o,c=0;if(i.some(t=>0!==e[t])){for(n in u)r.o(u,n)&&(r.m[n]=u[n]);if(l)var d=l(r)}for(t&&t(o);cli):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows)/10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgb(0 0 0/50%);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-3{left:.75rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1\.5{top:.375rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-20{top:5rem}.top-3\.5{top:.875rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[100\]{z-index:100}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3\.5{margin-left:.875rem;margin-right:.875rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem}.mb-1,.my-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1/1}.size-4{width:1rem;height:1rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[calc\(100vh-120px\)\]{height:calc(100vh - 120px)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.h-svh{height:100svh}.max-h-96{max-height:24rem}.max-h-\[150px\]{max-height:150px}.max-h-\[400px\]{max-height:400px}.max-h-screen{max-height:100vh}.min-h-0{min-height:0}.min-h-7{min-height:1.75rem}.min-h-\[32px\]{min-height:32px}.min-h-\[80px\]{min-height:80px}.min-h-full{min-height:100%}.min-h-svh{min-height:100svh}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[--sidebar-width\]{width:var(--sidebar-width)}.w-\[1px\]{width:1px}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.min-w-5{min-width:1.25rem}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-4xl{max-width:56rem}.max-w-\[--skeleton-width\]{max-width:var(--skeleton-width)}.max-w-\[200px\]{max-width:200px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-px{--tw-translate-x:-1px}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.translate-x-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-x-px{--tw-translate-x:1px}.translate-x-px,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-180{--tw-rotate:180deg}.rotate-180,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.resize-none{resize:none}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-clip{overflow-x:clip}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-destructive{border-color:hsl(var(--destructive))}.border-input{border-color:hsl(var(--input))}.border-primary\/20{border-color:hsl(var(--primary)/.2)}.border-primary\/30{border-color:hsl(var(--primary)/.3)}.border-sidebar-border{border-color:hsl(var(--sidebar-border))}.border-transparent{border-color:transparent}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background)/.8)}.bg-background\/95{background-color:hsl(var(--background)/.95)}.bg-black\/80{background-color:rgb(0 0 0/.8)}.bg-border{background-color:hsl(var(--border))}.bg-card\/50{background-color:hsl(var(--card)/.5)}.bg-destructive{background-color:hsl(var(--destructive))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\/50{background-color:hsl(var(--muted)/.5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary)/.1)}.bg-primary\/20{background-color:hsl(var(--primary)/.2)}.bg-secondary{background-color:hsl(var(--secondary))}.bg-sidebar{background-color:hsl(var(--sidebar-background))}.bg-sidebar-border{background-color:hsl(var(--sidebar-border))}.bg-transparent{background-color:transparent}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-background{--tw-gradient-from:hsl(var(--background)) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--background)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-500{--tw-gradient-from:#3b82f6 var(--tw-gradient-from-position);--tw-gradient-to:rgb(59 130 246/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-500\/20{--tw-gradient-from:rgb(59 130 246/0.2) var(--tw-gradient-from-position);--tw-gradient-to:rgb(59 130 246/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-card{--tw-gradient-from:hsl(var(--card)) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--card)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-card\/50{--tw-gradient-from:hsl(var(--card)/0.5) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--card)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-foreground{--tw-gradient-from:hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--foreground)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary{--tw-gradient-from:hsl(var(--primary)) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--primary)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary\/10{--tw-gradient-from:hsl(var(--primary)/0.1) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--primary)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary\/20{--tw-gradient-from:hsl(var(--primary)/0.2) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--primary)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-background{--tw-gradient-to:hsl(var(--background)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),hsl(var(--background)) var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-background{--tw-gradient-to:hsl(var(--background)) var(--tw-gradient-to-position)}.to-blue-500\/5{--tw-gradient-to:rgb(59 130 246/0.05) var(--tw-gradient-to-position)}.to-card\/50{--tw-gradient-to:hsl(var(--card)/0.5) var(--tw-gradient-to-position)}.to-foreground\/70{--tw-gradient-to:hsl(var(--foreground)/0.7) var(--tw-gradient-to-position)}.to-muted\/20{--tw-gradient-to:hsl(var(--muted)/0.2) var(--tw-gradient-to-position)}.to-primary\/10{--tw-gradient-to:hsl(var(--primary)/0.1) var(--tw-gradient-to-position)}.to-primary\/5{--tw-gradient-to:hsl(var(--primary)/0.05) var(--tw-gradient-to-position)}.to-primary\/80{--tw-gradient-to:hsl(var(--primary)/0.8) var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to:#9333ea var(--tw-gradient-to-position)}.bg-clip-text{background-clip:text}.fill-current{fill:currentColor}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-start{text-align:start}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground)/.5)}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/40{color:hsl(var(--muted-foreground)/.4)}.text-muted-foreground\/50{color:hsl(var(--muted-foreground)/.5)}.text-muted-foreground\/60{color:hsl(var(--muted-foreground)/.6)}.text-muted-foreground\/80{color:hsl(var(--muted-foreground)/.8)}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-sidebar-foreground{color:hsl(var(--sidebar-foreground))}.text-sidebar-foreground\/70{color:hsl(var(--sidebar-foreground)/.7)}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px hsl(var(--sidebar-border));--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\],.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0/0.1),0 2px 4px -2px rgb(0 0 0/0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-sidebar-ring{--tw-ring-color:hsl(var(--sidebar-ring))}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px)}.backdrop-blur,.backdrop-blur-sm{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[left\2c right\2c width\]{transition-property:left,right,width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[margin\2c opa\]{transition-property:margin,opa;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\2c height\2c padding\]{transition-property:width,height,padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{animation-timing-function:linear}body{font-family:Arial,Helvetica,sans-serif}.dark\:prose-invert:is(.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground\/60::placeholder{color:hsl(var(--muted-foreground)/.6)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:-.5rem}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent)/.5)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted)/.5)}.hover\:bg-primary\/20:hover{background-color:hsl(var(--primary)/.2)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-sidebar-accent:hover{background-color:hsl(var(--sidebar-accent))}.hover\:from-primary\/90:hover{--tw-gradient-from:hsl(var(--primary)/0.9) var(--tw-gradient-from-position);--tw-gradient-to:hsl(var(--primary)/0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\:to-primary\/70:hover{--tw-gradient-to:hsl(var(--primary)/0.7) var(--tw-gradient-to-position)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-sidebar-accent-foreground:hover{color:hsl(var(--sidebar-accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px hsl(var(--sidebar-accent));--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color)}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover,.hover\:shadow-lg:hover{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:hsl(var(--sidebar-border))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-background:focus{background-color:hsl(var(--background))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-destructive:focus{color:hsl(var(--destructive))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-sidebar-ring:focus-visible{--tw-ring-color:hsl(var(--sidebar-ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:hsl(var(--background))}.active\:bg-sidebar-accent:active{background-color:hsl(var(--sidebar-accent))}.active\:text-sidebar-accent-foreground:active{color:hsl(var(--sidebar-accent-foreground))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group\/menu-item:focus-within .group-focus-within\/menu-item\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-100,.group\/menu-item:hover .group-hover\/menu-item\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted)/.4)}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive)/.3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity:1;color:rgb(254 242 242/var(--tw-text-opacity,1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(248 113 113/var(--tw-ring-opacity,1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color:#dc2626}.peer\/menu-button:hover~.peer-hover\/menu-button\:text-sidebar-accent-foreground{color:hsl(var(--sidebar-accent-foreground))}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.group\/menu-item:has([data-sidebar=menu-action]) .group-has-\[\[data-sidebar\=menu-action\]\]\/menu-item\:pr-8{padding-right:2rem}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x:1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x:var(--radix-toast-swipe-end-x)}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end],.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x:var(--radix-toast-swipe-move-x)}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:hsl(var(--sidebar-accent))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[active\=true\]\:font-medium[data-active=true]{font-weight:500}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:hsl(var(--sidebar-accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[state\=open\]\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity:0.8}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y:-100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.data-\[state\=open\]\:hover\:bg-sidebar-accent:hover[data-state=open]{background-color:hsl(var(--sidebar-accent))}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground:hover[data-state=open]{color:hsl(var(--sidebar-accent-foreground))}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]{left:calc(var(--sidebar-width) * -1)}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]{right:calc(var(--sidebar-width) * -1)}.group[data-side=left] .group-data-\[side\=left\]\:-right-4{right:-1rem}.group[data-side=right] .group-data-\[side\=right\]\:left-0{left:0}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:-mt-8{margin-top:-2rem}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:hidden{display:none}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:\!size-8{width:2rem!important;height:2rem!important}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:w-\[--sidebar-width-icon\]{width:var(--sidebar-width-icon)}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)_\+_theme\(spacing\.4\)\)\]{width:calc(var(--sidebar-width-icon) + 1rem)}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)_\+_theme\(spacing\.4\)_\+2px\)\]{width:calc(var(--sidebar-width-icon) + 1rem + 2px)}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:w-0{width:0}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:translate-x-0{--tw-translate-x:0px}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:translate-x-0,.group[data-side=right] .group-data-\[side\=right\]\:rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-side=right] .group-data-\[side\=right\]\:rotate-180{--tw-rotate:180deg}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:overflow-hidden{overflow:hidden}.group[data-variant=floating] .group-data-\[variant\=floating\]\:rounded-lg{border-radius:var(--radius)}.group[data-variant=floating] .group-data-\[variant\=floating\]\:border{border-width:1px}.group[data-side=left] .group-data-\[side\=left\]\:border-r{border-right-width:1px}.group[data-side=right] .group-data-\[side\=right\]\:border-l{border-left-width:1px}.group[data-variant=floating] .group-data-\[variant\=floating\]\:border-sidebar-border{border-color:hsl(var(--sidebar-border))}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:\!p-0{padding:0!important}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:\!p-2{padding:.5rem!important}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:opacity-0{opacity:0}.group[data-variant=floating] .group-data-\[variant\=floating\]\:shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0/0.1),0 1px 2px -1px rgb(0 0 0/0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:after\:left-full:after{content:var(--tw-content);left:100%}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:hover\:bg-sidebar:hover{background-color:hsl(var(--sidebar-background))}.peer\/menu-button[data-size=default]~.peer-data-\[size\=default\]\/menu-button\:top-1\.5{top:.375rem}.peer\/menu-button[data-size=lg]~.peer-data-\[size\=lg\]\/menu-button\:top-2\.5{top:.625rem}.peer\/menu-button[data-size=sm]~.peer-data-\[size\=sm\]\/menu-button\:top-1{top:.25rem}.peer[data-variant=inset]~.peer-data-\[variant\=inset\]\:min-h-\[calc\(100svh-theme\(spacing\.4\)\)\]{min-height:calc(100svh - 1rem)}.peer\/menu-button[data-active=true]~.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground{color:hsl(var(--sidebar-accent-foreground))}@supports (backdrop-filter:var(--tw )){.supports-\[backdrop-filter\]\:bg-background\/60{background-color:hsl(var(--background)/.6)}.supports-\[backdrop-filter\]\:bg-transparent{background-color:transparent}}@media (min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:right-3{right:.75rem}.sm\:top-3{top:.75rem}.sm\:top-auto{top:auto}.sm\:mb-4{margin-bottom:1rem}.sm\:ml-12{margin-left:3rem}.sm\:mr-1\.5{margin-right:.375rem}.sm\:mr-12{margin-right:3rem}.sm\:mt-6{margin-top:1.5rem}.sm\:block{display:block}.sm\:inline-block{display:inline-block}.sm\:flex{display:flex}.sm\:h-10{height:2.5rem}.sm\:h-16{height:4rem}.sm\:h-20{height:5rem}.sm\:h-4{height:1rem}.sm\:h-5{height:1.25rem}.sm\:h-8{height:2rem}.sm\:h-\[calc\(100vh-150px\)\]{height:calc(100vh - 150px)}.sm\:min-h-8{min-height:2rem}.sm\:w-10{width:2.5rem}.sm\:w-16{width:4rem}.sm\:w-20{width:5rem}.sm\:w-4{width:1rem}.sm\:w-5{width:1.25rem}.sm\:w-8{width:2rem}.sm\:w-80{width:20rem}.sm\:max-w-\[400px\]{max-width:400px}.sm\:max-w-\[500px\]{max-width:500px}.sm\:max-w-md{max-width:28rem}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:justify-center{justify-content:center}.sm\:gap-3{gap:.75rem}.sm\:gap-4{gap:1rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.sm\:rounded-2xl{border-radius:1rem}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:rounded-xl{border-radius:.75rem}.sm\:p-3{padding:.75rem}.sm\:p-4{padding:1rem}.sm\:p-6{padding:1.5rem}.sm\:p-8{padding:2rem}.sm\:py-8{padding-top:2rem;padding-bottom:2rem}.sm\:pr-4{padding-right:1rem}.sm\:text-left{text-align:left}.sm\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y:100%}}@media (min-width:768px){.md\:block{display:block}.md\:flex{display:flex}.md\:max-w-\[420px\]{max-width:420px}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:opacity-0{opacity:0}.after\:md\:hidden:after{content:var(--tw-content);display:none}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:m-2{margin:.5rem}.peer[data-state=collapsed][data-variant=inset]~.md\:peer-data-\[state\=collapsed\]\:peer-data-\[variant\=inset\]\:ml-2{margin-left:.5rem}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:ml-0{margin-left:0}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:rounded-xl{border-radius:.75rem}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0/0.1),0 1px 2px -1px rgb(0 0 0/0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}}@media (min-width:1024px){.lg\:flex{display:flex}.lg\:hidden{display:none}}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>span\:last-child\]\:truncate>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\]\:size-4>svg{width:1rem;height:1rem}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:hsl(var(--sidebar-accent-foreground))}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:-.5rem}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=left] .\[\[data-side\=left\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:-.5rem}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-side=right] .\[\[data-side\=right\]_\&\]\:cursor-e-resize{cursor:e-resize} \ No newline at end of file diff --git a/_backend/frontend/_next/static/media/8c0f877bd1202585-s.woff2 b/_backend/frontend/_next/static/media/8c0f877bd1202585-s.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..7ccb7f1daf66dc642cf77d3e1e4c24d719fb8087 Binary files /dev/null and b/_backend/frontend/_next/static/media/8c0f877bd1202585-s.woff2 differ diff --git a/_backend/frontend/_next/static/media/9c18eba18d4baf22-s.p.woff2 b/_backend/frontend/_next/static/media/9c18eba18d4baf22-s.p.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..0a7219e044fd95106ac815a8d58fba132c452b38 Binary files /dev/null and b/_backend/frontend/_next/static/media/9c18eba18d4baf22-s.p.woff2 differ diff --git a/_backend/frontend/favicon.ico b/_backend/frontend/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c Binary files /dev/null and b/_backend/frontend/favicon.ico differ diff --git a/_backend/frontend/file.svg b/_backend/frontend/file.svg new file mode 100644 index 0000000000000000000000000000000000000000..004145cddf3f9db91b57b9cb596683c8eb420862 --- /dev/null +++ b/_backend/frontend/file.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/_backend/frontend/globe.svg b/_backend/frontend/globe.svg new file mode 100644 index 0000000000000000000000000000000000000000..567f17b0d7c7fb662c16d4357dd74830caf2dccb --- /dev/null +++ b/_backend/frontend/globe.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/_backend/frontend/index.html b/_backend/frontend/index.html new file mode 100644 index 0000000000000000000000000000000000000000..8856c3e09670f3bb30414038fa2bb6cc271d5b12 --- /dev/null +++ b/_backend/frontend/index.html @@ -0,0 +1 @@ +Transcription Chatbot

    New Chat

    Welcome to Transcriptinator 6000

    Select a chat from the sidebar to get started, or create a new conversation to begin analyzing your transcripts.

      \ No newline at end of file diff --git a/_backend/frontend/index.txt b/_backend/frontend/index.txt new file mode 100644 index 0000000000000000000000000000000000000000..7f8eb2ade61db4801b01556207149b86b9219502 --- /dev/null +++ b/_backend/frontend/index.txt @@ -0,0 +1,23 @@ +1:"$Sreact.fragment" +2:I[6543,["489","static/chunks/8187f03c-c57963cb1b573777.js","822","static/chunks/822-c73eb0df0acbcf5c.js","775","static/chunks/775-e50ffdc055346ff7.js","527","static/chunks/527-17021ee980e21f8b.js","177","static/chunks/app/layout-6da5960c930aa43b.js"],"ThemeProvider"] +3:I[3276,["489","static/chunks/8187f03c-c57963cb1b573777.js","822","static/chunks/822-c73eb0df0acbcf5c.js","775","static/chunks/775-e50ffdc055346ff7.js","527","static/chunks/527-17021ee980e21f8b.js","177","static/chunks/app/layout-6da5960c930aa43b.js"],"SidebarProvider"] +4:I[2668,["489","static/chunks/8187f03c-c57963cb1b573777.js","822","static/chunks/822-c73eb0df0acbcf5c.js","775","static/chunks/775-e50ffdc055346ff7.js","527","static/chunks/527-17021ee980e21f8b.js","177","static/chunks/app/layout-6da5960c930aa43b.js"],"default"] +5:I[3276,["489","static/chunks/8187f03c-c57963cb1b573777.js","822","static/chunks/822-c73eb0df0acbcf5c.js","775","static/chunks/775-e50ffdc055346ff7.js","527","static/chunks/527-17021ee980e21f8b.js","177","static/chunks/app/layout-6da5960c930aa43b.js"],"SidebarInset"] +6:I[5808,["489","static/chunks/8187f03c-c57963cb1b573777.js","822","static/chunks/822-c73eb0df0acbcf5c.js","775","static/chunks/775-e50ffdc055346ff7.js","527","static/chunks/527-17021ee980e21f8b.js","177","static/chunks/app/layout-6da5960c930aa43b.js"],"default"] +7:I[7555,[],""] +8:I[1295,[],""] +9:I[2558,["489","static/chunks/8187f03c-c57963cb1b573777.js","822","static/chunks/822-c73eb0df0acbcf5c.js","775","static/chunks/775-e50ffdc055346ff7.js","527","static/chunks/527-17021ee980e21f8b.js","177","static/chunks/app/layout-6da5960c930aa43b.js"],"Toaster"] +a:I[894,[],"ClientPageRoot"] +b:I[9304,["489","static/chunks/8187f03c-c57963cb1b573777.js","822","static/chunks/822-c73eb0df0acbcf5c.js","558","static/chunks/558-386ce3b87f5e21a9.js","527","static/chunks/527-17021ee980e21f8b.js","974","static/chunks/app/page-0be14d953b17f4f9.js"],"default"] +e:I[9665,[],"OutletBoundary"] +11:I[9665,[],"ViewportBoundary"] +13:I[9665,[],"MetadataBoundary"] +15:I[6614,[],""] +:HL["/_next/static/css/a8e3f8fe32df230d.css","style"] +0:{"P":null,"b":"-BZUAGOoGBhXHJLyfVPhi","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/a8e3f8fe32df230d.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"className":"__className_989755 antialiased","children":["$","$L2",null,{"attribute":"class","defaultTheme":"dark","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":[["$","div",null,{"className":"flex h-screen w-full","children":[["$","$L4",null,{}],["$","$L5",null,{"className":"flex-1 flex flex-col min-w-0","children":[["$","$L6",null,{}],["$","div",null,{"className":"flex-1 overflow-hidden","children":["$","$L7",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L8",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]]}],["$","$L9",null,{}]]}]}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$La",null,{"Component":"$b","searchParams":{},"params":{},"promises":["$@c","$@d"]}],"$undefined",null,["$","$Le",null,{"children":["$Lf","$L10",null]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,["$","$1","vXioDfbltONRt6hK7MmxP",{"children":[["$","$L11",null,{"children":"$L12"}],null]}],["$","$L13",null,{"children":"$L14"}]]}],false]],"m":"$undefined","G":["$15","$undefined"],"s":false,"S":true} +c:{} +d:{} +12:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] +f:null +10:null +14:[["$","title","0",{"children":"Transcription Chatbot"}],["$","meta","1",{"name":"description","content":"Generated by create next app"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"16x16"}]] diff --git a/_backend/frontend/next.svg b/_backend/frontend/next.svg new file mode 100644 index 0000000000000000000000000000000000000000..5174b28c565c285e3e312ec5178be64fbeca8398 --- /dev/null +++ b/_backend/frontend/next.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/_backend/frontend/vercel.svg b/_backend/frontend/vercel.svg new file mode 100644 index 0000000000000000000000000000000000000000..77053960334e2e34dc584dea8019925c3b4ccca9 --- /dev/null +++ b/_backend/frontend/vercel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/_backend/frontend/window.svg b/_backend/frontend/window.svg new file mode 100644 index 0000000000000000000000000000000000000000..b2b2a44f6ebc70c450043c05a002e7a93ba5d651 --- /dev/null +++ b/_backend/frontend/window.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/_backend/prompts/cle_honduras_meeting_minutes.txt b/_backend/prompts/cle_honduras_meeting_minutes.txt new file mode 100644 index 0000000000000000000000000000000000000000..2dfdd07387b90a2d0171f97973fa795c9a2e5049 --- /dev/null +++ b/_backend/prompts/cle_honduras_meeting_minutes.txt @@ -0,0 +1,11 @@ +You are an Evaluation Research Analyst and you are part of corporate level evaluation team which is conducting corporate evaluation on IFAD (International Funds for Agricultural Development)'s performance in IFAD11 and IFAD 12. As part of evidence stream, we conducted interviews across the IFAD HQ teams and we have meeting minutes from those interviews as evidence block. Your task is to analyse these meeting minutes as evidence stream and synthesise. Please make sure each line or point you are making in your statement, finding, synthesis is backed by reference (reference format: [name of file with link ?csd=1&web=1 at the end of the url to make it accessible]). +// Rules: +// 1. You must not use any external knowledge beyond these Meeting Minutes. +// 2. Your responses must be unbiased, fact-based, and only related to the meeting minutes that has been provided. +// 3. Your universe of knowledge will be the meeting minutes file that has been provided to you. +// 4. If the answer to the user query is not found in the meeting minute files, you should state that clearly that the relevant information is not present and avoid providing unrelated information. +// 5. Always cite the file from which as your source as reference. It has to be accurate. +// 6. Your responses should be clear, concise, and directly address the user query. +// 7. No information should get omitted. ALL the relevant information should be put out in the response. It should be COMPLETE. +// 8. Even if the user asks the same question twice, your answer should be very CONSISTENT & COMPLETE. +// 9. For each line add a reference with the file name and link to the file with ?csd=1&web=1 at the end of the url to make it accessible. For example: [filename](https://example.com/filename?csd=1&web=1) \ No newline at end of file diff --git a/_backend/prompts/name_generation.txt b/_backend/prompts/name_generation.txt new file mode 100644 index 0000000000000000000000000000000000000000..e8bcdf64057f1be76b396cbf16e36ac83349b615 --- /dev/null +++ b/_backend/prompts/name_generation.txt @@ -0,0 +1 @@ +Generate a short, clear, and relevant title (3–5 words) for the chat history based on the user's query and discussion focus. The title should reflect the main subject or intent of the user's query while being concise and professional. \ No newline at end of file diff --git a/_backend/requirements.txt b/_backend/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..dceb72d76b20bef792a18b019c4e925d5fa29e07 --- /dev/null +++ b/_backend/requirements.txt @@ -0,0 +1,34 @@ +openai +PyPDF2 +pymupdf==1.24.11 +python-dotenv==1.0.1 +fastapi==0.111.1 +pandas==2.2.2 + +numpy +pydantic +tiktoken +aiohttp +nano-vectordb +networkx +openai +ollama +tenacity +tqdm +xxhash +setuptools +python-dotenv +bs4 +pipmaster +lightrag-hku + +langchain +langchain_community +langchain_openai +langchain_chroma + +# Added for CLI build tool +questionary +huggingface_hub +rich +typer \ No newline at end of file diff --git a/_backend/reset_vdb.py b/_backend/reset_vdb.py new file mode 100644 index 0000000000000000000000000000000000000000..714fdf9e282bdc254364e5d277dfac25e840324c --- /dev/null +++ b/_backend/reset_vdb.py @@ -0,0 +1,69 @@ +import os +from dotenv import load_dotenv +from utils.document_management import load_document, transcript_chunker, merge_chunks +from utils.vector_db import VectorDB +from langchain.schema import Document +from uuid import uuid4 + +# Load environment variables +load_dotenv() + +# Initialize services +# Load all the transcriptions from the "transcription_data" directory +working_dir = os.path.join(os.getcwd(), "_backend","data" ,"honduras_data") +if os.getenv("ENVIRONMENT") == "production": + working_dir = os.path.join(os.getcwd(), "data","honduras_data") +vector_db_name = "transcription" +vector_db_embedding_length = 1536 + +# First, collect all documents +all_documents = [] +all_files = [] + +# Walk through the directory to find all *_transcribed.srt files +for root, dirs, files in os.walk(working_dir): + for file in files: + if file.endswith("transcribed.srt"): + file_path = os.path.join(root, file) + # clipping everything before honduras_data + relative_path = os.path.relpath(file_path, working_dir) + all_files.append(relative_path) + +for file_path in all_files: + path = os.path.join(working_dir, file_path) + + docuemnt = load_document(path) + + # Chunk the document into smaller parts + chunks = transcript_chunker(docuemnt, filename=file_path) + + merged_chunks = merge_chunks(chunks) + + # Create LangChain Document objects + documents = [Document(page_content=chunk["text"], metadata={**chunk, "chunk_id": i, "id": str(uuid4()), "filename": file_path}) for i, chunk in enumerate(merged_chunks)] + + print(f"Processing {file_path} with {len(documents)} chunks") + all_documents.extend(documents) + + +# Now create the vector database with all documents at once (this will delete and recreate) +if all_documents: + if os.path.exists(os.path.join(working_dir, "chroma_db")): + import shutil + # Remove the existing vector database directory + shutil.rmtree(os.path.join(working_dir, "chroma_db")) + print("Removed existing vector database directory.") + + + vector_db = VectorDB( + collection_name=vector_db_name, + embedding_length=vector_db_embedding_length, + open_ai_api_key=os.getenv("OPENAI_API_KEY"), + working_dir=working_dir, + documents=all_documents + ) + print(f"Created new vector database with {len(all_documents)} documents") +else: + print("No documents found to process") + +print("Vector database reset and data upload complete with ChromaDB.") \ No newline at end of file diff --git a/_backend/reset_vdb_minutes_data.py b/_backend/reset_vdb_minutes_data.py new file mode 100644 index 0000000000000000000000000000000000000000..3a0df24c3a5c79e55355fda56447bd35a0e9250e --- /dev/null +++ b/_backend/reset_vdb_minutes_data.py @@ -0,0 +1,97 @@ +import os +from dotenv import load_dotenv +from utils.document_management import load_document, generate_filename_from_details +from utils.vector_db import VectorDB +from langchain.schema import Document +from uuid import uuid4 +import re + + +# Load environment variables +load_dotenv() + +# Initialize services +# Load all the transcriptions from the "transcription_data" directory +working_dir = os.path.join(os.getcwd(), "_backend" ,"data", "meeting_minutes_data") +if os.getenv("ENVIRONMENT") == "production": + working_dir = os.path.join(os.getcwd(), "data","meeting_minutes_data") +vector_db_name = "meeting_minutes" +vector_db_embedding_length = 1536 + +# First, collect all documents +all_documents = [] +all_files = [] + +# Walk through the directory to find all *_transcribed.srt files +for root, dirs, files in os.walk(working_dir): + for file in files: + if file.endswith(".md"): + file_path = os.path.join(root, file) + # clipping everything before honduras_data + relative_path = os.path.relpath(file_path, working_dir) + all_files.append(relative_path) + +minute_start_pattern = re.compile( + r"^\|\s*---\s*\|\s*---\s*\|\s*$" # Matches | --- | --- | + r"\n" + r"^\|[^\|\n]*\w[^\|\n]*?\|\s*\|\s*$" # Matches a generic content line (e.g., date/name) + r"\n" + r"^\|\s*\*\*Interviewee Name:\*\*", # Matches the line with | **Interviewee Name:** + re.MULTILINE +) + +for file_path in all_files: + path = os.path.join(working_dir, file_path) + + content = load_document(path, raw_text=True) + + if content is None: + print(f"Skipping file {file_path} as it could not be loaded.") + continue + + # Matching the content with the regex pattern + matches = list(minute_start_pattern.finditer(content)) + header_block = "" + start_index = matches[0].start() if matches else 0 + end_index = matches[-1].end() if matches else len(content) + + header_block = content[start_index:end_index].strip() + body = content[end_index:].strip() + body = body.rstrip("| | |") + + filename, info = generate_filename_from_details(header_block) + + docuemnt = Document( + page_content=body, + metadata={ + "file_name": filename, + "interview_date": info[0], + "interviewee_name_role": info[1], + "id": str(uuid4()), + "url": f"https://ifad.sharepoint.com/:t:/r/sites/IFAD-CLEIFAD11andIFAD12/Shared%20Documents/General/07.%20HQ%20Interviews/Minutes/{filename}?csf=1&web=1", + "content": body, + } + ) + + all_documents.append(docuemnt) + +# Now create the vector database with all documents at once (this will delete and recreate) +if all_documents: + if os.path.exists(os.path.join(working_dir, "chroma_db")): + import shutil + # Remove the existing vector database directory + shutil.rmtree(os.path.join(working_dir, "chroma_db")) + print("Removed existing vector database directory.") + + vector_db = VectorDB( + collection_name=vector_db_name, + embedding_length=vector_db_embedding_length, + open_ai_api_key=os.getenv("OPENAI_API_KEY"), + working_dir=working_dir, + documents=all_documents + ) + print(f"Created new vector database with {len(all_documents)} documents") +else: + print("No documents found to process") + +print("Vector database reset and data upload complete with ChromaDB.") \ No newline at end of file diff --git a/_backend/summarize.py b/_backend/summarize.py new file mode 100644 index 0000000000000000000000000000000000000000..f7498a80af4f11e7cba756f63a4fc4ac543a149f --- /dev/null +++ b/_backend/summarize.py @@ -0,0 +1,758 @@ +#variables with hardcoded summaries +session4part2 = """## Summary Report for Day 2 Session 4 Part 2 + +### Introduction + +The second part of Day 2 Session 4 continued the discussions on IFAD’s reforms, focusing on reducing the Results Management Framework (RMF) indicators, streamlining compliance and reporting processes, and effectively tracking replenishment progress. The session involved detailed exchanges on the operational challenges, strategic initiatives, and the mechanism for monitoring IFAD’s performance and compliance. + +### Key Takeaways + +#### Reducing the RMF Indicators + +1. **Reduction Strategy:** + - For IFAD13, the number of RMF indicators has been further reduced to streamline reporting and enhance focus on key performance metrics (00:00:00). + - The introduction of a formal replenishment completion report will communicate how commitments on the RMF were achieved. + +2. **Benefits of Reduction:** + - Streamlining the indicators aims to reduce the reporting burden on field staff and ensure that data collected is meaningful and actionable. + +#### Addressing Reporting and Compliance Load + +1. **Efficiency in Reporting:** + - Participant 1 raised concerns about the high compliance and reporting load on field staff, suggesting a need for systems to streamline these processes (00:00:47). + - Chitra explained that tools like dashboards are designed to help field staff use the data for management purposes, not just for compliance. Training programs and online tools have been developed to support data collection and cleaning, making it more useful for both management and field operations (00:01:23). + +2. **System Improvements:** + - Enhancements in the Operational Results Management System (ORMS) have included quality checks and validation mechanisms to reduce errors and double work, thereby increasing efficiency (00:06:11). + - Program officers can prepare reports offline and upload them to the system later, which reduces the time spent re-entering data (00:04:50). + +#### Tracking Replenishment Progress + +1. **Monitoring Hotspots:** + - Nanthi inquired about the methodologies used to track replenishment progress and identify performance hotspots (00:06:39). + - Chitra explained that IFAD uses the RMF and the RIDE (Results and Impact Management System) report annually to monitor progress. Quarterly meetings with regional teams help identify and address areas where progress may be lagging (00:07:08). + +2. **Detailed Tracking and Remediation:** + - Quarterly meetings led by Donal, focusing on operational indicators such as proactivity and disbursements, help regions prepare targeted actions to address issues (00:08:01). + - Annual corporate portfolio stocktakes provide a comprehensive review of performance, enabling adjustments to guidelines and remedial actions as needed (00:09:21). + +3. **Hotspots and Learning from Best Practices:** + - Analysis of data from ORMS and dashboards helps track performance trends and identify where interventions are needed. Like for example, differing regional performances in mainstreaming gender initiatives (00:13:48). + - This helps inform case study selections for deeper analysis and learning from successful practices. + +#### Regional and Project-Level Focus + +1. **Mixed Selection for Case Studies:** + - To understand the effectiveness of different initiatives (like decentralization or mainstreaming), a mix of regional offices and country projects will be selected as case studies (00:16:57). + - This approach helps capture a wide range of operational contexts and outcomes, facilitating comprehensive evaluations (00:14:43). + +2. **Quarterly and Annual Reviews:** + - Internal quarterly reviews and annual stocktakes help IFAD continuously monitor and refine its strategies. These reviews are based on detailed analysis and discussions, with actions flowing back to operational teams (00:13:48). + +### Conclusion + +The session emphasized the importance of reducing the RMF indicators to streamline reporting, the ongoing efforts to enhance reporting and compliance efficiency, and the mechanisms for tracking and addressing replenishment progress. The discussions underscored the value of quarterly and annual reviews in ensuring operational effectiveness and the strategic use of data to support field operations and inform organizational improvements. The insights from these reviews will guide the selection of case studies for deeper evaluation, focusing on both hotspots and successful practices.""" +session1 = """## Summary Report for Day 1 Session 1 + +### Introduction + +The CLE (Corporate-Level Evaluation) workshop held on Day 1 aimed to introduce the evaluation process to IFAD’s management, emphasizing the significance of replenishments. Replenishments are vital for IFAD to fulfill its mission of combatting rural poverty and food insecurity globally. This evaluation marks the first IOE (Independent Office of Evaluation) assessment covering all organizational aspects of IFAD. + +### Key Takeaways + +#### Importance and Objectives of IFAD Replenishments + +1. **Role of Replenishments:** + - Replenishments serve as the critical financial backbone for IFAD’s interventions in client countries, crucial for addressing rural poverty and food insecurity worldwide (00:01:19). + +2. **Evaluation Goals:** + - The primary aim is to inform the design of IFAD14 and enhance its implementation of IFAD13 by ensuring the efficient utilization of resources mobilized through replenishments (00:19:03). + +#### Scope and Responsibility of the Evaluation + +1. **Comprehensive Coverage:** + - This is the first evaluation to cover all aspects of the organization. The evaluation team, selected for their vast experience, is entrusted with this significant responsibility (00:02:04). + +2. **Integration of Previous Evaluations:** + - The evaluation will draw from evidence in recent evaluations on decentralization, gender, nutrition, climate change, and financial architecture, updating them as needed. This ensures a comprehensive evaluation process (00:02:43). + +#### Team Composition and Roles + +1. **Introduction of the Team:** + - Indran and Nanthikesan introduced the evaluation team, highlighting their expertise in areas such as financial architecture, climate change, human resource management, and organizational design (00:03:29). + +2. **Specialized Roles:** + - Key team members include Marcus (Finance), James (Climate Change), Sally (HR and Organizational Design), among others, each contributing specialized knowledge to the evaluation (00:04:18). + +#### Focus Areas of the Evaluation + +1. **Evaluation Objectives:** + - The evaluation will assess IFAD’s performance in delivering replenishment commitments and targets, focusing on operational readiness, organizational fit-for-purpose, and financial budget frameworks (00:30:25). + +2. **Key Evaluation Question:** + - To what extent are organizational, operational, and finance-related efforts sufficient to achieve replenishment targets in support of the 2030 agenda? This question will be explored through criteria like relevance, coherence, effectiveness, and efficiency (00:31:24). + +#### Methodology and Evidence Collection + +1. **Multi-stream Evidence Collection:** + - The methodology involves multiple streams, including country case studies, thematic deep dives, interviews, statistical analyses, and reviews of recent evaluations, ensuring a robust evidence base (00:21:22). + +2. **Use of Advanced Tools:** + - The evaluation will leverage AI and advanced tools for data collection and analysis, ensuring efficiency and accuracy in handling large amounts of data (00:32:17). + +#### Timelines and Engagement + +1. **Evaluation Timeline:** + - Spanning from November 2023 to 2026, the evaluation includes key milestones like data collection, emerging findings sharing, and final report presentations, ensuring a systematic process (00:32:35). + +2. **Engagement with Core Learning Partnership Group:** + - Continuous engagement with the core learning partnership group ensures that the evaluation remains relevant and aligned with IFAD stakeholders’ expectations (00:33:10). + +#### Concerns and Clarifications + +1. **Sampling Methodology:** + - Sara raised questions about the sampling methodology, highlighting the need for random versus purposive samples to avoid biases. Nanthikesan clarified that purposive sampling is necessary to capture all relevant dimensions related to replenishment commitments (00:33:39). + +2. **Clarifications on Evidence Update:** + - Chitra inquired about the scope of updated evaluations. Nanthikesan explained that the evaluation would focus on updating post-2021 developments to reduce unnecessary workload (00:40:25). + +#### Organizational Roles and Contributions + +1. **Introduction of IFAD Units:** + - Various units, including operational policy, resource mobilization, impact assessment, financial management, and legal units, introduced themselves and expressed readiness to support the evaluation (00:09:08). + +2. **Role of Financial Departments:** + - Malek elaborated on the responsibilities of financial departments in IFAD’s operations, including policy establishment, fund disbursement, and ensuring financial discipline (00:18:43). + +#### Workshop Execution and Governance + +1. **Presentation of Initial Findings:** + - Leon inquired if initial findings would be shared internally or with member states. Nanthikesan explained that initial findings are typically shared internally for preliminary feedback (00:43:05). + +2. **Replenishment Process Governance:** + - Max provided an overview of the replenishment process governance, highlighting its structured approach to ensure accountability, transparent resource mobilization, and effective project implementation (00:44:09). + +### Conclusion + +The CLE workshop effectively set the stage for a thorough evaluation process, focusing on ensuring that IFAD’s replenishment resources are utilized effectively to combat rural poverty and food insecurity. The detailed planning, expert involvement, and structured governance are aimed at providing actionable insights to enhance IFAD’s performance and impact.""" + +session2 = """## Summary Report for Day 1 Session 2 + +### Introduction + +The second session of Day 1 provided an in-depth look at IFAD's replenishment process, addressing the challenges, methods, and governance structures involved. This session also highlighted the financial mechanisms and the complexities related to mobilizing, managing, and reporting on replenishment contributions. + +### Key Takeaways + +#### Status of IFAD13 Replenishments + +1. **Current Contributions:** + - Marcus highlighted that not all countries have given their instrument of contribution for IFAD13 (01:05:37). + - Sara mentioned that for IFAD13, the number of pledges received by the cutoff was 91, which is higher than the 85 pledges during the same period for IFAD12 (01:05:51). + +#### Core Contributions vs. Supplementary Funding + +1. **Core Contributions:** + - Core contributions are unrestricted funds that come exclusively from member states and form the capital of IFAD (01:07:11). + +2. **Supplementary Funding:** + - Supplementary funding includes various kinds of donor money, including funds from foundations, but is not part of the core contributions. Marcus noted that they have agreements amounting to around $43 million in supplementary funding (01:07:10). + - Supplementary funds can be earmarked thematically but do not provide equity stakes in IFAD (01:07:28). + +3. **Climate Contributions:** + - IFAD13 introduced a third core form of contributions called climate contributions to emphasize climate finance, recognizing it as part of the broader ODA landscape (01:07:32). + +#### Governance and Consultation Process + +1. **Governance Structures:** + - The replenishment consultation is governed both externally by the Governing Council and internally by multiple layers of committees, including the Executive Management Committee (EMC) and technical working groups (00:44:43). + +2. **Consultation Meetings:** + - The replenishment process for IFAD12 included four formal consultation meetings over a year, starting with a midterm review of previous commitments, strategic direction discussions, business and financial framework negotiations, and finally, approval of the replenishment document (00:56:18). + +#### Co-financing and Contributions + +1. **Breakdown of Financing:** + - Chitra elaborated on the distinction between domestic and international co-financing, explaining that co-financing could include private sector contributions both domestically and internationally (01:11:56). + +2. **Private Sector Contributions:** + - The private sector's share in co-financing is relatively low, but IFAD continuously seeks to involve private sector funds through trust funds and other mechanisms (01:12:05). + +3. **Reflows:** + - Reflows are a part of IFAD’s resource mobilization strategy, contributing to the financial sustainability of the fund (01:28:07). + +#### Challenges and Strategic Considerations + +1. **Replenishment Interval:** + - James questioned the feasibility of extending the replenishment cycle from three to five years to reduce the workload. Sara mentioned a past review suggesting a four-year interval, but it was not considered (01:01:24). + +2. **Impact and Sustainability:** + - Barun raised questions about the sustainability of project benefits and the dissemination of findings within IFAD. Sara explained that sustainability is assessed through ex-post quasi-experimental impact assessments, while Chitra detailed ongoing sustainability action plans and exit strategies integrated into project designs (01:18:21). + +3. **Additionality and Accountability:** + - The session discussed the need for clear definitions and separations between different types of funding (core, supplementary, and co-financing) and the importance of demonstrating additionality in mobilized funds (01:28:52). + +### Conclusion + +The second session provided a comprehensive overview of IFAD's replenishment process, emphasizing the critical role of core and supplementary contributions, the structured governance involved in replenishment consultations, and the strategic challenges faced. The session underscored the importance of effective financial management, sustainability of project benefits, and continuous engagement with member states and other stakeholders to ensure IFAD’s objectives are met efficiently.""" + + +session3 = """## Summary Report for Day 1 Session 3 + +### Introduction + +The third session of Day 1 focused on a detailed examination of the RMF (Results Management Framework) impact indicators and the evolution of IFAD’s business model and replenishment commitments. The session covered methodologies for setting targets, the role of various indicators, and the integration of mainstreaming themes in project design and implementation. + +### Key Takeaways + +#### Evolution of RMF Impact Indicators + +1. **Indicator Changes:** + - For IFAD9, the focus was on moving people out of poverty, but this was found not to align with IFAD’s corporate strategic objectives. Consequently, the indicators were shifted towards economic mobility, productive capacities, market access, and resilience in IFAD10 (01:38:33). + - In IFAD11, a target on nutrition was added, and in IFAD13, indicators on women's empowerment and food security were proposed (01:39:48). + +2. **Methodology for Setting Targets:** + - The targets are set based on a systematic assessment of IFAD’s portfolio and impact assessment results from previous cycles. For IFAD12, the targets were informed by the IFAD10 impact assessment results (01:41:06). + - An example target includes improving food security for 66 million people, as measured by the Food Insecurity Experience Scale (01:41:28). + +#### Performance and Impact Evaluation + +1. **Types of Indicators:** + - The RMF includes performance evaluation indicators and impact evaluation indicators. Impact is measured by comparing what happened with the project against what would have happened without the project (01:44:39). + +2. **Timeframe for Impact Assessment:** + - Impact assessments are conducted on a random 15% sample of projects that close within a replenishment period, generally around eight years (01:45:08). + +#### Commitments and Their Evolution + +1. **Operational Commitments:** + - Recent cycles have seen a shift towards operational commitments such as prioritizing indigenous peoples and including disabled persons in project target groups, rather than solely focusing on policy development (01:49:45). + +2. **Reducing Number of Commitments:** + - Efforts are being made to reduce the number of commitments to focus organizational resources better and ensure efficient policy implementation (01:49:28). + +#### Mainstreaming Themes + +1. **Mainstreaming Concepts:** + - Mainstreaming involves integrating themes like gender, climate, and youth into all aspects of project design and implementation to ensure comprehensive impact. Quality assurance processes ensure that themes like gender and climate risks are adequately addressed (01:51:51). + +2. **Challenges and Costs:** + - The increasing complexity of projects due to mainstreaming and other requirements has led to higher project costs. Decentralization and other organizational changes are aimed at addressing these cost challenges (02:00:42). + +3. **Role of SECAP:** + - The SECAP guidelines ensure that projects address environmental, social, and climate risks appropriately. Projects must include mitigation measures based on risk classifications (02:04:28). + +#### Strategic and Business Model Changes + +1. **Strategic Framework:** + - The strategic framework provides a long-term vision and is reviewed periodically. It serves as the foundation for replenishment commitments and business model adjustments (02:11:10). + - The new strategic framework is expected to be in place next year, aligning with IFAD14 (02:11:26). + +2. **Resource Allocation:** + - The allocation of resources has evolved from a purely formula-based approach to combining PBAS for low-income countries and a demand-based mechanism for others (02:08:47). + - The business model now includes thematic instruments to tap into different funding envelopes and enhance resource mobilization (02:09:07). + +3. **Sustainable Replenishment Baseline:** + - Ensuring that new grant contributions cover expenses and grants going out is crucial for financial sustainability (02:10:07). + +### Conclusion + +The third session provided a comprehensive overview of the RMF impact indicators, target setting methodologies, and the evolution of IFAD’s business model. Discussions highlighted the importance of integrating mainstreaming themes into project design and the challenges associated with increased project complexity and costs. The session also touched upon the strategic framework’s role in guiding replenishment commitments and business model changes, emphasizing the need for a sustainable replenishment baseline to ensure operational efficacy.""" +session4part1 = """## Summary Report for Day 2 Session 4 Part 1 + +### Introduction + +The fourth session of Day 2 provided a detailed examination of the extensive reforms within IFAD from 2016 to 2024. Edward Gallagher and other key representatives discussed the motivations behind these reforms and the structural adjustments implemented to enhance IFAD's operational capacity. The session covered decentralization, organizational restructuring, the role and evolution of the Field Support Unit (FSU), the implementation of mainstreaming themes, SECAP (Social, Environmental, and Climate Assessment Procedures), and changes in policy and resource allocation mechanisms. + +### Key Takeaways + +#### Overview of Organizational Reforms (2016-2024) + +1. **Initial Assessment and Need for Reforms:** + - A self-assessment in May 2017 revealed that IFAD was not on track to meet the 2030 agenda and the SDGs. Staff surveys indicated issues such as siloed operations, hierarchical structures, HQ-centric focus, and inadequate field capacity (00:02:15). + - These findings necessitated the development of the OpEx (Operational Excellence) reforms to decentralize operations, enhance mobility, and better align organizational functions to support operations. + +2. **OpEx Period (2017-2018):** + - Implemented a decentralized map of 40 ICOs (International Country Offices) and increased field staffing from 18% to 30%. + - Established the SKD (Strategy and Knowledge Department) and consolidated operational oversight into the OPR (Operational Policy and Results Division). + - Recalibrated the project design process to reduce the time from concept to first disbursement and initiated a business process review to streamline decision-making (00:10:30). + +3. **Transition Phase (2019-2021):** + - Conducted a comprehensive assessment of the first wave of decentralization, visiting 14 hubs globally to gather lessons learned. Initiated the second wave aimed at achieving 50 ICOs and 45% staff in the field (00:12:00). + - Enhanced financial architecture to leverage IFAD's balance sheet, introduced the private sector strategy, and established special initiatives like the OPSF (Operational Performance Support Facility) in response to COVID-19. + +4. **People, Processes, and Technology Plan (PPTP):** + - Addressed HR capacity and capability through the McKinsey study and introduced an integrated talent management framework. + - Re-engineered core business processes, including project procurement and loan disbursement, and enhanced enterprise risk management (00:22:30). + - Focused on fostering an innovative culture and improving workplace diversity, equity, and inclusion. + +5. **Current Recalibration (Post-2021):** + - The recalibration focuses on returning to core operations. Setting up the Private Sector Division and establishing the Office of Development Effectiveness (ODE) to house compliance and results functions under the VP for a more operations-focused approach (00:22:00). + +#### Role and Evolution of the Field Support Unit (FSU) + +1. **Historical Context:** + - Established around 2013 to integrate services for decentralized offices, initially focusing on general administration and security (00:45:08). + - In 2019, the FSU was further empowered to support the decentralization plan with the introduction of Corporate Service Managers (CSM) in regional offices. + +2. **Current Functions:** + - FSU serves as the single point of contact for field offices, coordinating responses to needs related to office setup, IT, security, and other administrative services. It ensures efficiency and centralized coordination (01:05:09). + +#### Mainstreaming Themes and SECAP + +1. **Evolution of Mainstreaming Themes:** + - Over the last three replenishment cycles, mainstream themes like climate, gender, and nutrition have been integrated into strategy with increasing targets and formalized tracking methods (01:42:32 to 01:38:40). + - **IFAD10:** Introduced mainstreaming themes with initial targets. + - **IFAD11:** Established formal tracking methodology and introduced youth as a mainstream theme. + - **IFAD12:** Increased targets for climate finance (40%) and social themes. + - **IFAD13:** Further increased climate finance targets (45%) and maintained high targets for other themes. + +2. **SECAP (Social, Environmental, and Climate Assessment Procedures):** + - Evolved from basic environmental and social assessments to include comprehensive safeguards for modern issues such as gender-based violence, labor conditions, and climate risk. + - **SECAP 2021:** Introduced a four-tier risk classification (high, substantial, moderate, low) and developed an online screening tool for risk categorization (01:43:10 to 01:48:31). + - **SECAP Compliance:** Focuses on alignment with global standards and enhancing the capacity of borrowers to manage compliance. Continuous refinement based on feedback and practical lessons learned (01:46:00). + +#### Policy, Design Processes, and Resource Allocation + +1. **Policy and Design Processes:** + - Transitioned from lengthy project design processes to more streamlined, efficient methodologies through successive reforms. + - Early reforms focused on decentralization and establishing a clearer project design framework that integrates a theory of change, risk management, and enhanced readiness for implementation (02:07:31). + - **IFAD12-13:** Introduced additional financial instruments and policies to address fragility, technical assistance, and emergency responses (02:18:09). + +2. **Resource Allocation Mechanisms:** + - Evolved from a single financing window using the PBAS (Performance-Based Allocation System) to implementing the Borrowed Resource Access Mechanism (BRAM) and other instruments to optimize resource allocation. + - **IFAD11:** Introduced country selectivity and special allocations for fragile states and regions (02:40:22). + - **IFAD12:** Established BRAM, focused 100% of core resources on LICs and LMICs, and created additional climate contributions (02:40:22). + - **IFAD13:** Further refined resource allocation with increased targets for fragile states and climate priorities, and introduced regional lending guidelines (02:40:22). + +### Conclusion + +The session provided an extensive overview of the numerous organizational reforms within IFAD over the past eight years. Key areas of focus included decentralization, structural adjustments at headquarters, the role of FSU, the mainstreaming of critical themes, the evolution of SECAP, and changes in policy and resource allocation mechanisms. These reforms aim to enhance IFAD's operational efficiency and better align its actions with global development objectives, ensuring sustained impact and relevance in the fight against rural poverty and food insecurity.""" +session5 = """## Summary Report for Day 3 Session 5 + +### Introduction + +The fifth session of Day 3 provided an in-depth overview of the evolution of IFAD's financial architecture, focusing on major reforms, delegation of authority (DoA), co-financing mechanisms, and the implementation of new financial policies. Key financial representatives presented the strategic changes undertaken to enhance IFAD's financial sustainability and operational efficiency. This session included detailed presentations, interactive discussions, and a Q&A segment that addressed various aspects of IFAD’s financial evolution. + +### Key Takeaways + +#### Presentations and Introductions + +1. **Introduction of Key Financial Officers:** + - Gulnara Yunusova, director and treasurer, introduced herself and facilitated the session (00:00:28). + - Contributions from other key financial officers included Claudio as an advisor, Advit Nath as director and controller, Malek, and Allegra Saitto, chief financial reporting officer. Natalia Toschi, head of funding and treasury solutions, joined virtually (00:00:38 to 00:02:03). + +2. **Introduction of the Evaluation Team:** + - The evaluation team introduced themselves, including Barun Chatterjee (strategic budgeting), Sally (HR and organizational development), James Gasana (rural development and climate change), Marcus Fedder (financial architecture), Hannah den Boer (research), and other supporting members (00:03:08 to 00:05:06). + +#### Evolution of IFAD's Financial Architecture + +1. **Background and Unique Financial Model:** + - IFAD operates in a crowded development finance space with a unique financial model that integrates replenishment funds and access to capital markets. This hybrid model positions IFAD alongside entities like the African Development Fund (ADF) (00:06:13). + - Discussion on the importance of IFAD's mandate focusing on SDG 2, global reach, and expertise in agriculture, food systems, and rural development emphasized how these factors make IFAD distinct in its operational space (00:09:50 to 00:10:03). + +2. **Financial Policy Reforms:** + - Referred to the Debt Sustainability Framework (DSF) reform, which tightened grant extensions to ensure they align with available resources. + - Credit rating exercises led to enhanced financial policies, such as ALM (Asset-Liability Management) framework, to better manage financial risks. + - Implementation of the Borrowed Resource Allocation Mechanism (BRAM) and integrated borrowing strategies to diversify funding sources (00:14:49 to 00:16:47). + +3. **Hybrid Financing Model:** + - Transitioned from a pure replenishment fund model to a hybrid financing model, leveraging market borrowings to extend the program of loans and grants. This allows flexibility in addressing the needs across different income levels while maintaining universality (00:16:47 to 00:18:43). + - This model ensures a balance in operations, leveraging contributions, reflows, and concessional partner loans (CPL) to manage grants and concessional loans effectively. + +4. **Funding Cost Pass-Through:** + - Introduced funding cost pass-through to align loan pricing with IFAD's actual cost of borrowing, making financial operations more sustainable (00:14:49). + +5. **Concessional Partner Loans (CPL) and Ordinary Loans:** + - Long-term concessional loans from member countries are treated as unrestricted funds, contributing to the general fund. Ordinary loans are priced based on market conditions, ensuring competitive rates (00:16:47 to 00:17:24). + +#### Delegation of Authority (DoA) + +1. **Framework and Integrated Approach:** + - The DoA framework integrates accountability with authority, ensuring principle-based delegation updated regularly. This supports decentralization by empowering regional and country directors to make administrative decisions (00:36:32 to 00:40:00). + - Emphasis on the principle that authority should be delegated to the lowest competent level, ensuring efficiency and accountability (00:50:04). + +2. **Field-Centric Focus:** + - Significant powers have been delegated to country directors, enabling them to manage local operations effectively. This shift addresses previous complaints about the lack of decision-making authority at the country level (00:40:00). + - Recognition of the adaptive changes in DoA, responding to evolving needs, and recent shifts like expanding country directors' authority to commit funds for local operations (00:43:11 to 00:44:55). + +3. **Monitoring and Training:** + - Annual certifications, spot checks, and online training modules ensure all delegates understand and execute their responsibilities properly. This mechanism includes dashboards for monitoring the use of delegated authority (01:05:14 to 01:05:14). + +4. **Accountability Mechanisms:** + - A structured process involving a working group and formal memos ensures that any changes to the DoA are well-documented and transparent. The president retains ultimate authority, but decisions are made collaboratively (01:05:14 to 01:07:32). + +#### Co-financing and Resource Mobilization + +1. **Role of Delegation in Co-financing:** + - Co-financing and resource mobilization, including supplementary funds, require well-coordinated efforts across IFAD. Delegation of authority plays a crucial role in enabling regional and country directors to leverage local opportunities effectively (01:15:05 to 01:19:17). + - Emphasis on the integration of technical support and strategic collaboration in achieving higher co-financing targets (01:19:17). + +2. **Integrated Approach:** + - Decisions regarding co-financing and resource mobilization are strategy-driven and involve cross-functional collaboration. This ensures that different departments contribute to achieving higher co-financing targets (01:19:17). + +#### Financial Strategies and Leverage + +1. **Leverage Ratio:** + - Discussions about whether to increase IFAD's leverage ratio from 0.5 to a higher value were highlighted. Rating agencies indicated that IFAD has the capacity to increase leverage without affecting its AA rating, provided the business model remains consistent (01:20:40 to 01:22:27). + - Potential strategic directions and the implications of increasing leverage were discussed, with an emphasis on maintaining financial sustainability (01:20:40 to 01:22:27). + +#### Closing Discussions + +1. **Efficiency Improvements:** + - Efforts to streamline processes and improve efficiency through financial policy reforms and effective delegation of authority have been highlighted as key drivers of IFAD's enhanced operational capability (01:22:27). + - Continuous monitoring and adaptation of the delegation framework ensure responsiveness to evolving operational needs (01:19:17). + +2. **Future Directions:** + - Strategic discussions on future financial strategies, including the introduction of new instruments and increasing leverage, indicate a forward-looking approach aligned with IFAD’s goals (01:22:27). + +### Conclusion + +The session provided a comprehensive overview of the significant reforms in IFAD's financial architecture, highlighting the evolution of policies, delegation of authority, and co-financing mechanisms. The discussions emphasized the importance of a hybrid financing model, effective delegation, and strategic resource mobilization in enhancing IFAD's operational efficiency and financial sustainability. The evaluation team plans to explore these themes further in subsequent sessions and incorporate the insights into their final assessment. The session demonstrated IFAD's commitment to continuous improvement and adaptation in response to operational challenges and strategic objectives.""" + + +session6 = """## Summary Report for Day 3 Session 6 + +### Introduction + +Day 3, Session 6 delved into the intricate details of IFAD's broader financial framework, focusing on supplementary funds, co-financing mechanisms, and the evolution of IFAD's financial architecture beyond its core capital. Max and his team provided comprehensive insights into how non-core resources are mobilized, managed, and aligned with IFAD’s strategic goals, replenishment commitments, and thematic priorities. The session also scrutinized the delegation of authority concerning resource mobilization and the administrative processes associated with supplementary funds. + +### Key Takeaways + +#### Presentations and Introductions + +1. **Introduction of Key Participants:** + - Max introduced his team members, Denisa Butnaru (partnership officer focusing on earmarked funding supplementary funds) and Linda Reyna (supporting the management of supplementary funds). The evaluation team, led by Nanthikesan, also reintroduced themselves, ensuring a clear understanding of roles and areas of focus (00:00:00 to 00:00:48). + +#### Overview of Supplementary Resources and Co-financing + +1. **Definition and Classification of Supplementary Resources:** + - Max explained that supplementary resources encompass all funding mobilized and managed by IFAD beyond core contributions and borrowed resources. This includes both supplementary funds and IFAD-managed co-financing (00:01:03 to 00:06:03). + - Supplementary funds are divided into single-donor initiatives, multi-donor initiatives, and trust funds, while co-financing is categorized into supplementary funds, IFAD-managed co-financing, and fully parallel co-financing (00:06:03 to 00:10:24). + +#### Key Points and Trends in Supplementary Resources + +1. **Mobilization and Administration:** + - The 8% management fee on supplementary funds is deducted upon receipt of funds from donors. This fee covers indirect costs, while direct costs are included in project budgets (00:22:00 to 00:48:03). + - Investments through supplementary funds often entail multi-stakeholder engagement agreements, focusing on thematic initiatives such as climate adaptation, SME investments, and private sector development (00:21:03 to 00:22:00). + +2. **Volume and Growth:** + - The trend of incoming supplementary funds has shown significant growth. Annual new agreements rose from around $150 million in 2019 to over $350 million in 2023. The total portfolio managed increased to approximately $1.67 billion (00:44:00 to 00:45:15). + +3. **Geographical and Source Distribution:** + - Most supplementary funds are sourced from international organizations, global climate funds, and member states. The majority of these funds are allocated to African regions, especially Sub-Saharan Africa (00:54:30 to 00:56:03). + +#### Replenishment Commitments and Aspirations + +1. **Targets in IFAD11 and IFAD12:** + - In IFAD11, numerical targets, aspirational goals, and thematic priorities were set for supplementary funds and co-financing (00:32:57 to 00:35:52). + - IFAD12 saw the establishment of thematic funds such as ASAP+ for climate adaptation and PSFP for the private sector, aiming to mobilize $500 million and $200 million respectively. These were aspirational targets meant to galvanize donor contributions (00:32:57 to 00:35:52). + +2. **IFAD13 Aspirations:** + - IFAD13 continues this trend, emphasizing the need for supplementary funds to achieve strategic goals. This includes ensuring financial sustainability, fostering global partnerships, and aligning donor priorities with IFAD's thematic areas (00:36:10 to 00:41:00). + +#### Delegation of Authority (DoA) and Resource Mobilization + +1. **Framework and Integrated Approach:** + - The DoA framework integrates accountability with authority, ensuring that delegation is principle-based and updated regularly. This framework supports decentralization by empowering regional and country directors to make administrative decisions (00:36:32 to 00:40:00). + +2. **Field-Centric Focus:** + - Significant powers have been delegated to country directors, enabling them to manage local operations. This shift addresses previous complaints about the lack of decision-making authority at the country level (00:40:00). + - The delegation of authority encompasses various levels of administrative and operational decisions, ensuring efficiency and accountability across all levels (00:43:11 to 00:44:55). + +3. **Monitoring and Training:** + - Annual certifications, spot checks, and online training modules ensure all delegates understand and execute their responsibilities. The mechanism includes dashboards for monitoring the use of delegated authority (01:05:14 to 01:05:14). + - This ongoing training and monitoring system helps to streamline processes and improve the efficiency of field operations (00:46:00). + +#### Program of Work (PoW) and Financial Allocations + +1. **Composition and Trends in Program of Work (PoW):** + - The PoW consists of IFAD financing, domestic co-financing, and international co-financing. The size of the PoW has seen consistent growth, primarily driven by increases in international co-financing (00:58:00 to 01:01:14). + - From 2021 onwards, the trend indicates a stable combination of IFAD and domestic financing, with a notable rise in international co-financing (00:58:00 to 01:01:14). + +2. **Budgetary Implications:** + - Collected management fees from supplementary funds are allocated annually to cover indirect costs, integrated into overall budgeting and financial planning. This careful allocation ensures efficient use of collected fees in supporting administrative and indirect project costs (00:46:38 to 00:48:03). + - The evaluation team noted the importance of ensuring that collected management fees are effectively utilized to improve project management and administration (00:46:38 to 00:48:03). + +### Conclusion + +Day 3, Session 6 provided an in-depth examination of IFAD's non-core financial resources, emphasizing the strategic importance of supplementary funds and co-financing in achieving IFAD's goals. The session highlighted the mechanisms for collecting and utilizing management fees, the trends in supplementary fund volumes, and the delegation of authority necessary for efficient resource mobilization. Future evaluations will focus on the effectiveness and sustainability of these resource mobilization strategies, ensuring IFAD's continued alignment with its strategic objectives and thematic priorities. The session underscored the importance of adaptive management, integrated financial planning, and strategic donor engagement in maximizing the impact of supplementary funds in fulfilling IFAD’s mission.""" + + +session7 = """## Summary Report for Day 3 Session 7 + +### Introduction + +Day 3, Session 7 focused on the Risk Management Office (RMO) of IFAD, providing an in-depth look at its evolution, structure, responsibilities, and methodologies. Alberto Cogliati led the discussion, supported by his colleagues Laura and Jose, offering comprehensive insights into the RMO's role in mitigating both financial and non-financial risks. The session also addressed the development of the risk culture within IFAD and the systemic procedures put in place to manage risk effectively. + +### Key Takeaways + +#### Presentations and Introductions + +1. **Introduction of Key Participants:** + - Alberto Cogliati opened the session, highlighting the establishment of the Risk Management Office (RMO) in 2020 following an Independent Office of Evaluation (IOE) CLE report and the need for a structured risk management model to achieve a credit rating (00:04:37 to 00:11:12). + - Alberto's team members, Laura and Jose, were also introduced, who handle non-financial and financial risks, respectively (00:22:00). + +#### Overview of the Risk Management Office + +1. **Development and Structure of RMO:** + - The RMO was developed to address gaps identified in the risk management framework. This included establishing a risk management policy, a risk management office charter, and risk committees to oversee the systematic management of risks (00:11:12 to 00:22:00). + - Risk management is structured around financial and non-financial risks, adhering to a three-lines-of-defense model. The first line is responsible for managing risks they generate, while the second line (RMO) provides oversight, tools, procedures, and continuous monitoring (00:09:12 to 00:22:00). + +2. **Financial and Non-Financial Risk Taxonomy:** + - Financial risks include credit risk, market risk, and liquidity risk. Non-financial risks encompass operational risks, strategic risks, and compliance risks (00:11:12 to 00:22:00). + - A risk appetite statement, developed through extensive internal discussion and approved by the Executive Board, guides the management of these risks. This statement balances the need to maintain financial discipline and manage risks in fragile and marginal countries (00:34:40 to 00:38:31). + +#### Key Activities and Procedures + +1. **Operational Risk Incident Reporting:** + - A key initiative to improve risk culture, the operational risk incident reporting procedure mandates that staff report incidents with potential or actual consequences. This data is used to monitor and assess operational risks systematically (00:47:00 to 01:02:00). + - The reporting process is supported by a compulsory training module available to all staff, ensuring widespread risk awareness and compliance (00:22:00 to 00:56:51). + +2. **Integration into Strategic Decision-Making:** + - The RMO's input is considered in strategic decision-making processes, ensuring that risk assessments are integral to project proposals and management decisions. Strategic initiatives are accompanied by risk assessments, which are discussed at the Executive Management Committee (EMC) level before being presented to the Board (00:55:07). + +#### Examples of Risk Management Practices + +1. **Evaluating Strategic Risks:** + - Strategic risks involve assessing whether IFAD can allocate and deploy resources effectively to implement its strategy. This includes examining the feasibility of entering new sectors, such as private sector engagement, and ensuring the necessary financial and operational capacities are in place (01:07:05 to 01:11:19). + - Program delivery risks focus on the ability to achieve expected results in projects and programs. While strategic risks are assessed at the EMC level, program delivery risks are monitored at the project level in conjunction with partner governments (01:09:03 to 01:14:12). + +2. **Scenario Analysis and Risk Mitigation:** + - Scenario analysis helps establish deployable capital by considering factors such as concessionality, ratings trajectories of borrowing countries, and geopolitical risks. This analysis informs strategic decisions and resource allocations (00:39:56 to 00:46:38). + +#### Long-Term View and Future Directions + +1. **Risk and Control Self-Assessment (RCSA):** + - A recent initiative, RCSA involves identifying inherent and residual risks within the organization post-implementation of controls. The pilot phase with the Financial Operational Department was completed successfully, and the process will be extended to other departments (01:21:44 to 01:25:08). + - The RCSA aims to provide a comprehensive picture of significant risks and the associated action plans to mitigate them (00:22:00). + +2. **Capital Allocation and Risk Limits:** + - Capital is allocated to various risks, with a specific limit of 10% for non-core risks, such as market risk and operational risk. The majority of capital is dedicated to development-related risks, reflecting IFAD's mission and strategic priorities (01:25:17 to 01:26:00). + +### Conclusion + +Day 3, Session 7 offered an exhaustive overview of IFAD's Risk Management Office, elucidating its framework, methodologies, and strategic importance. The discussions highlighted the systematic procedures put in place to manage both financial and non-financial risks, the integration of risk assessments into strategic decisions, and the ongoing efforts to cultivate a robust risk culture within IFAD. The session underscored the necessity of continuous improvement and adaptive management to ensure that IFAD can effectively mitigate risks while fulfilling its development mandate. The insights gained will inform future evaluations, focusing on the effectiveness and sustainability of IFAD's risk management strategies.""" + +session8 = """## Summary Report for Day 4 Session 8 + +### Introduction + +The eighth session on Day 4 focused on the formation and functions of the Planning, Organization Development, and Budget Division (POB) within IFAD, highlighting its role in aligning strategic planning with budgeting, monitoring, and organizational development. The session was conducted by Edward Gallagher and Francesco Ranalletta, who provided an in-depth look at the strategic changes, key responsibilities, and innovations within the POB. + +### Key Takeaways + +#### Presentations and Introductions + +1. **Introduction of Key Officers:** + - Edward Gallagher, Francesca Ranalletta, and other participants introduced themselves, setting the stage for a detailed discussion on the POB's functions and its significance in IFAD's strategic framework (00:00:31 to 00:01:34). + +2. **Overview of POB Division:** + - Edward Gallagher highlighted that POB was established under the current administration to integrate planning and budgeting functions, aligning them with organizational development and ongoing change initiatives such as decentralization and recalibration (00:03:05). + +#### Strategic Functions and Responsibilities of POB + +1. **Integration of Planning and Budgeting:** + - The POB is responsible for aligning three-year plans with annual budgets, ensuring that strategic objectives are translated into tangible financial plans. This integration supports a continuous monitoring mechanism, replacing traditional large mid-year reviews with more dynamic, quarterly assessments (00:03:28 to 00:06:05). + +2. **Strategic Framework Alignment:** + - POB’s work is guided by four pillars: country program delivery, knowledge building, financial capacity and instruments, and institutional functions. These pillars ensure that plans and budgets are aligned with IFAD’s long-term strategic framework and replenishment commitments (00:06:05 to 00:10:01). + +3. **Dynamic Workforce Planning:** + - The division manages dynamic workforce planning, integrating staffing resources with budgetary constraints. This includes a committee that reviews staffing needs, evaluates retirements, and considers upskilling and reskilling opportunities to fill gaps effectively (00:10:01 to 00:12:44). + +4. **Administrative Budget and Supplementary Funds:** + - POB oversees the administrative budget, which includes regular, capital, and IOE budgets. It is also responsible for integrating supplementary funds into the planning process, ensuring coherence with core resource allocations (00:15:56 to 00:22:05). + +#### Recent Reforms and Future Directions + +1. **Linking Budget to Deliverables:** + - A key reform is the effort to link budgets directly to deliverables. For the first time, specific outputs such as the number of project designs and supervision missions are included in the budget document. This approach aims to shift discussions with the executive board from cost-cutting to outcome-focused budgeting (00:22:05 to 00:24:33). + +2. **Efficiency Indicators:** + - New efficiency indicators have been proposed to identify savings across various pillars and reallocate them to operations, enhancing value for money and ensuring that budget allocations are used effectively (00:24:33). + +3. **Medium-Term Outlook:** + - POB has introduced a medium-term budget outlook that includes assumptions for cost patterns over three years. This provides a more strategic conversation with the executive board, focusing on the implications of potential future scenarios (00:24:33 to 00:28:37). + +4. **Regular Budget Monitoring:** + - The division is moving towards more agile budget monitoring, incentivizing accurate forecasts and the efficient use of funds throughout the year to avoid the “use it or lose it” mentality (00:28:37). + +#### Detailed Discussions and Questions + +1. **Granularity of Data and BRAM Loans:** + - Marcus inquired about the granularity of cost data and whether IFAD tracks the full costs, including preparation and supervision, of different types of loans like BRAM loans. Edward acknowledged that while non-staff costs are tracked, there is a need for more detailed models to capture staff costs and allocate them appropriately (00:26:30 to 00:35:00). + +2. **DeCentralized Budget and Vacancy Pool:** + - Edward explained the concept of a decentralized vacancy pool where funds saved from vacant positions are reallocated to departments to cover essential needs such as hiring consultants. This approach ensures that vacancies do not hinder organizational performance (00:35:53 to 00:38:05). + +3. **Results-Based Budgeting and Value for Money:** + - Edward discussed the importance of aligning budgets with strategic outcomes and ensuring value for money. The goal is to focus on outcomes rather than merely cutting costs, promoting a culture where funds are used efficiently to achieve strategic objectives (00:39:57 to 00:45:38). + +4. **Integration of Supplementary Funds:** + - Barun highlighted the need for better integration of supplementary funds into the overall budget. Edward agreed that supplementary funds should align with core business activities to avoid creating parallel systems and ensure coherence in financial planning (00:46:35 to 00:48:26). + +5. **Dynamic Workforce Planning:** + - Sally asked about the criteria and processes used by the dynamic workforce planning committee. Edward explained that the committee evaluates vacancy announcements and staffing needs based on strategic priorities and ensures that staffing decisions align with overall organizational goals (01:07:30 to 01:10:47). + +6. **Handling External Risks:** + - Marcus inquired about IFAD’s contingency planning for “black swan” events such as significant political changes in donor countries. Edward confirmed that such scenarios are considered, and historical responses to similar situations are used to guide current planning (01:02:08 to 01:07:55). + +### Conclusion + +The session provided comprehensive insights into the establishment and functions of the POB division at IFAD. The discussions underscored the importance of integrating planning and budgeting with strategic objectives and dynamic workforce planning. The strategic reforms and future directions highlighted by Edward and Francesco indicate a move towards more agile, transparent, and outcome-focused financial management at IFAD. The evaluation team will incorporate these insights into their assessment, focusing on how these changes impact overall organizational performance and contribute to achieving IFAD’s strategic goals.""" + +sessionB ="""## Summary Report Day 4 Session B + +**Introduction:** +Day 4 of Session B centered on refining the evaluation framework and discussing various operational, financial, and strategic elements that contribute to organizational efficiency. Key topics included the development of evaluation questions and indicators, criteria for case study selection, and the integration of supplementary funds. Various participants contributed to the discussion, ensuring a multi-faceted exploration of the themes. + +**Main Points and Body:** + +1. **Evaluation Framework and Indicators:** + - The session underscored the necessity of developing a comprehensive evaluation framework. Sally and Participant 1 initiated discussions on identifying main evaluation questions and sub-questions, each tagged with corresponding indicators to measure performance and outcomes (00:53:19). + - An initial framework draft was proposed, with participants agreeing on the importance of dedicating significant time to quality development, even if the framework couldn't be entirely finalized within the session (00:49:01). + +2. **Case Study Selection:** + - Criteria for selecting case study countries were put forth, aiming to create a shortlist based on various factors such as fragility, operational context, and strategic need. This step was agreed upon as crucial in ensuring a representative and insightful evaluation (00:49:01). + - Anoop highlighted the importance of considering the unique operational challenges in fragile states compared to more stable environments, suggesting differentiated strategies for case study selection (00:48:21). + +3. **Data and Organizational Insights:** + - The session emphasized the critical role of data in facilitating a robust evaluation process. Participant 2 stressed the need for granular, data-driven insights to eliminate inefficiencies and enhance decision-making (00:51:30). + - Discussions also touched upon the organizational changes and human resource (HR) involvement in the evaluation, despite HR’s physical absence in the session. There was a consensus on the vital role HR data plays in the overall evaluation (00:51:09). + +4. **Private Sector and Financial Architecture:** + - Participant 2 and Marcus delved into the intricacies of private sector engagement in IFAD’s projects, debating the need for clear delineation of costs and sustainability models. The discourse covered the financial implications and operational sustainability of private sector initiatives (00:44:10). + - The challenge of ensuring that private sector activities are financially self-sustaining was scrutinized, with a suggestion to model these activities within a private sector profit and loss (P&L) statement to capture real costs accurately (00:41:45). + +5. **Impact of Vacancy Periods:** + - Sally and Participant 1 discussed how vacancy periods influenced office efficiency and project success. They underscored the need to map these periods and analyze their impacts statistically to improve operational continuity (00:03:04). + +6. **Strategic Alignment through Bi-Annual Budgeting:** + - James posited that annual planning might be insufficient for aligning long-term strategies and recommended bi-annual budgeting as a better alternative. Marcus supported this idea by citing successful examples from other organizations (00:03:31). + +7. **Incremental Budgeting vs. Data-Driven Insights:** + - Participant 2 criticized the traditional incremental budgeting approach for lacking detailed, data-driven insights. A push towards more research-based budgeting was recommended to account for dynamic operational changes and requirements (00:06:01; 00:07:07). + +8. **Direct vs. Indirect Cost Analysis:** + - Detailed examination of the distinctions between direct project costs and indirect administrative costs was suggested. This analysis is crucial for optimizing the allocation of resources and ensuring budget efficiency (00:16:01). + +9. **Delegation of Authority and Procurement Efficiency:** + - Anoop highlighted inefficiencies arising from procurement officers reporting to headquarters instead of local country directors, stressing the importance of better delegation of authority to improve project timelines and outcomes (00:23:36). + +10. **Integration of Supplementary Funds:** + - The session explored the need to integrate supplementary funds with the regular budget, ensuring that these funds are managed with the same level of oversight and diligence as the main budget. This approach aims to optimize resource utilization and transparency (00:32:10). + +**Conclusion:** +Session B was pivotal in laying the groundwork for the development of a robust evaluation framework. Key areas of focus included the formulation of evaluation questions, the identification of indicators, and the criteria for case study selection. The integration of organizational insights and data-driven approaches was stressed, alongside a critical examination of the financial sustainability of private sector engagements. These discussions set the stage for further refinement of the evaluation framework and strategic alignment in subsequent meetings.""" +session9 = """## Summary Report Day 5 Session 9 + +**Introduction:** +Session 9 of Day 5 was the concluding segment of a design workshop focused on evaluating IFAD's replenishment efforts and organizational aspects. Led by Indran Naidoo and attended by key stakeholders including Nigel Brett and Chitra, the session involved reflections on the progress made during the workshop, discussions on the evaluation framework, and addressing various concerns related to the evaluation process. + +**Main Points and Body:** + +1. **Overall Workshop Reflections:** + - **Indran Naidoo** highlighted the significance of the workshop and the robust discussions that took place, emphasizing the goal of understanding IFAD's replenishment efforts comprehensively. He appreciated the constructive engagement and valuable insights from various departments (00:00:00). + - Indran acknowledged the unprecedented scope of this IOE evaluation, which aims to cover all aspects of the organization related to replenishment, making it a strategic and comprehensive effort (00:00:52). + +2. **Statements from Key Stakeholders:** + - **Nigel Brett** conveyed a message on behalf of Donal, appreciating the collaboration between IOE and management. He underlined the CLE's broad and unprecedented scope and its potential to influence future strategies, especially in light of the transition from IFAD11 to IFAD13 and the upcoming IFAD14 (00:02:39). + - Nigel pointed out the operational challenges posed by the COVID-19 pandemic and geopolitical events like the war in Ukraine, emphasizing the need to consider these factors in the evaluation (00:03:26). + +3. **Collaborative Approach:** + - Nigel stressed the importance of continuous collaboration and detailed follow-ups with regional divisions and other departments to manage the workload effectively and ensure comprehensive evaluation coverage (00:03:26). + +4. **Concerns and Responses:** + - **Chitra** raised points about integrating findings from previous evaluations into the current framework. She emphasized synthesizing insights from recent evaluations on nutrition, gender, knowledge management, and climate. She also stressed the need for a phased approach to providing detailed evidence and conducting key informant interviews (00:11:24). + - Indran confirmed the use of meta-evaluations to incorporate past findings and updates into the current evaluation, ensuring a cohesive understanding of IFAD's operations and effectiveness. He assured a process-driven approach with multiple touchpoints for reflection (00:13:50). + +5. **Importance of Data and Methodology:** + - **Sara** from RIA volunteered to present methodologies of impact assessments and projections to the evaluation team, recognizing the benefit of understanding the nuances of different impact indicators (00:16:45). + - **Max von Bonsdorff** echoed the importance of early findings and their integration into IFAD14 preparations. He emphasized the need for continuous discussions and timely insights to inform future strategies (00:17:18). + +6. **Budget and Efficiency Discussions:** + - **Barun Chatterjee** focused on the thematic deep dive into the budget, exploring how well the budget supports strategic priorities and replenishment commitments. He emphasized the dual role of budgets as both enablers of development and controllers of expenditure (00:19:49). + - **Nigel**, in response, discussed the challenges of implementing a staff time recording system in a small organization like IFAD and highlighted the ongoing efforts to improve budget allocation methods (00:25:29). + +7. **Private Sector Engagement:** + - Barun pointed out the board’s directive that private sector operations must be financially self-sustaining, necessitating a clear understanding of their cost structures (00:29:05). + - **Edward Gallagher** added that a reasonable cost allocation method for staff costs needs to be established, possibly without resorting to detailed timesheets (00:33:40). + +8. **Operational and Data Collection Challenges:** + - Indran assured that schedules and missions would be managed to avoid disruptions. He stressed the need for comprehensive data from various departments to aid the evaluation, requesting a centralized support system for data identification and collection (00:31:30). + - **Chitra** suggested organizing internal discussions similar to those for the MOPAN evaluation to streamline input provision and data collection (00:36:52). + +**Conclusion:** +Session 9 marked the culmination of a productive week of discussions and reflections on evaluating IFAD's replenishment efforts and organizational strategies. The session highlighted the importance of robust collaboration, data-driven insights, and continuous engagement with various departments. Key stakeholders expressed their commitment to supporting the evaluation process, acknowledging its potential to shape future strategies and enhance organizational efficiency. The session concluded with a shared commitment to maintaining the momentum and ensuring a thorough and impactful evaluation. + +**Final Comments:** +- **Nigel Brett** reiterated the management’s readiness to support the evaluation, emphasizing its significance in preparing for IFAD14 and future organizational strategies (00:40:21). +- **Indran Naidoo** emphasized the learning opportunity provided by the workshop, thanking all participants for their engagement and collaboration (00:41:16).""" + +session10 = """## Summary Report Day 5 Session 10 + +**Introduction:** +Session 10 of Day 5 was dedicated to reviewing and refining the theory of change and the list of evaluation questions included in the approach paper. Led by Nanthikesan, the session focused on capturing feedback from key stakeholders, including Nigel Brett, Chitra, Matteo, Leon, and others, to ensure the evaluation framework comprehensively addresses IFAD’s strategic goals and replenishment commitments. + +**Main Points and Body:** + +1. **Introduction and Overview by Nanthikesan:** + - **Nanthikesan** started the session by detailing the slightly tweaked theory of change, previously shared in the approach paper, and the list of evaluation questions. He emphasized the significance of incorporating feedback to refine these elements and explained the color-coded categories for organizational (yellow), operational (green), and financial/resource allocation (blue) aspects (00:42:00). + - Nanthikesan highlighted the need for comments on the theory of change and evaluation questions, inviting participants to identify any noticeable absences, unnecessary points, or required additions (00:43:02). + +2. **Theory of Change Explanation:** + - Nanthikesan walked participants through the theory of change, explaining how inputs and activities are translated into outputs, outcomes, and impacts. He focused on three pillars: operations, organizational arrangements, and financial/resource allocation mechanisms (00:55:39). + - **Operational Inputs:** Guidelines, quality design mechanisms, and mainstream lessons learned. + - **Organizational Inputs:** Realistic commitments, senior management leadership, and learning from experiences. + - **Financial Inputs:** Maintaining financial discipline and ensuring resource allocations for core services. + +3. **Feedback on Theory of Change:** + - **Nigel Brett** emphasized the need to think beyond 2030, considering future targets and the post-2030 agenda. He mentioned the rigidity introduced to ensure financial viability and the necessity to find ways within those confines (00:56:04). + - Nigel discussed the inclusion of PBAS in the theory of change and the importance of considering the broader financial architecture and its impact on the PoLG (00:59:49). + - **Chitra** highlighted the need to focus on instruments responsive to changing contexts, such as BRAM and other financial mechanisms. She also stressed considering the role of PMUs and their high turnover in capacity-building, and aligning M&E capacities with both IFAD staff and PMUs (01:03:16). + +4. **Operational and Financial Adaptability:** + - Nigel pointed out that while IFAD needs to be flexible and adaptive, it must operate within certain rigidities developed for financial stability. Identifying ways to achieve flexibility within these constraints is crucial for optimizing operations (01:05:13). + - **Max von Bonsdorff** added that resource mobilization should consider not only raising equity and debt but also strategies for increasing co-financing and supplementary funding, linking back to past targets (01:07:04). + +5. **Evaluation Questions and Criteria:** + - Nanthikesan explained the four evaluation criteria: relevance, effectiveness, efficiency, and coherence. Each criterion was designed to gather comprehensive insights into IFAD’s operational and strategic approaches (01:29:02). + - Relevance questions would assess alignment with global, IFAD, and local priorities. + - Effectiveness questions would measure progress towards achieving targets. + - Efficiency questions focused on adaptive management and lessons learned. + - Coherence questions looked at the consistency and synergy across different organizational aspects. + +6. **Detailed Feedback and Suggestions:** + - **Leon** highlighted the political nature of replenishment documents and their heavily negotiated language, pointing out potential mismatches between internal documents and replenishment commitments (01:09:38). + - **Stella** from HR confirmed the availability of requested HR data and emphasized the need for sufficient lead time to gather and provide the information (02:01:41). + - **Kaushik** raised issues of benchmarking ICO staffing levels and aligning IFAD’s coherence and efficiency with national systems, noting that replenishment commitments could often place additional burdens on national ministries (02:11:26). + +7. **Data Collection and Management:** + - **Sally** detailed the HR data requirements, such as staffing extracts with positions and job grades, vacancy rates, lead times for filling positions, and details on reassignment policies (02:01:36). + - **Barun** discussed budget-related data needs, including FTEs, staffing levels in ICOs, and the reconciliation of different data sources to ensure accurate budgeting and cost allocation (02:05:40). + +8. **Case Study Selection Criteria:** + - Nanthikesan outlined the criteria for selecting case study countries, including geographical representation, mainstreaming of themes, co-financing, private sector involvement, and the operational context such as fragility and income levels (01:46:47). + - **Sara** suggested including countries with recent CSP evaluations to reduce workloads and considering portfolio size in the selection criteria (01:54:09). + - **Gianluca** emphasized the importance of considering recently completed projects and ensuring that the country teams and directors are still available for evaluation (01:56:33). + +9. **Final Comments and Next Steps:** + - **Nigel Brett** reiterated the importance of maintaining close collaboration and ensuring that data requests are manageable and well-coordinated (01:58:07). + - **Chitra** confirmed that OPR and GPR would coordinate the internal responses and data collection efforts, with a focus on minimizing disruptions and ensuring comprehensive input (01:51:55). + +**Conclusion:** +Session 10 provided a detailed examination of the theory of change, evaluation questions, and case study criteria. The session underscored the importance of adaptability, comprehensive data collection, and strategic alignment within IFAD’s broader goals. The feedback from stakeholders will be incorporated to refine the evaluation framework, ensuring it fully addresses the complexities and needs of IFAD’s operations and strategic commitments. The session concluded with a commitment to ongoing collaboration and detailed follow-ups to ensure a thorough and impactful evaluation process.""" + +summaries = { + "Day 1 Session 1,2 & 3": session1 + "\n\n" + session2 + "\n\n" + session3, + "Day 2 Session 4 Part-1": session4part1, + "Day 2 Session 4 Part-2": session4part2, + "Day 3 Session 5": session5, + "Day 3 Session 6": session6, + "Day 3 Session 7": session7, + "Day 4 Session 8": session8, + "Day 4 Session B": sessionB, + "Day 5 Session 9 & 10": session9 + "\n\n" + session10 +} + diff --git a/_backend/transciptoor_lightrag.py b/_backend/transciptoor_lightrag.py new file mode 100644 index 0000000000000000000000000000000000000000..dc9e854a3ef22fbb607d40c3d7e6efd63922503d --- /dev/null +++ b/_backend/transciptoor_lightrag.py @@ -0,0 +1,85 @@ +from lightrag.llm.openai import gpt_4o_mini_complete, openai_embed +from lightrag import LightRAG, QueryParam +from dotenv import load_dotenv +from utils.time_funcs import * +from utils.document_management import * +import os +import json +import sys +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) + + +# Load environment variables and initialize services +load_dotenv() +vector_db_name = "transcription" +vector_db_embedding_length = 1536 + +working_dir = os.path.join(os.getcwd(), "_backend", "honduras_data", "lightrag") + +rag = LightRAG( + working_dir=working_dir, + llm_model_func=gpt_4o_mini_complete, + embedding_func=openai_embed +) + +def create_graph(data_dir: str, document_endswith: str | tuple[str], chunking_function = None): + """ + Create a graph for the LightRAG instance. + """ + if not os.path.exists(data_dir): + raise FileNotFoundError(f"Data directory {data_dir} does not exist.") + try: + # checking if directory exists + if not os.path.exists(data_dir): + raise FileNotFoundError(f"Data directory {data_dir} does not exist.") + + # checking if it has a json file that contains all the documents uploaded + json_file = os.path.join(data_dir, "files_uploaded.json") + if os.path.exists(json_file): + with open(json_file, "r") as f: + knowledge_base = json.load(f) + else: + knowledge_base = {"files_uploaded": {}} + + for root, dirs, files in os.walk(data_dir): + print(f"Searching in {root}") + for file in files: + if file.endswith(document_endswith): + # check if file is already uploaded + if file in knowledge_base["files_uploaded"]: + print(f"File {file} already uploaded, skipping.") + continue + # Load the document + document = load_document(os.path.join(root, file)) + + # Chunk the document into smaller parts + if chunking_function: + chunks = chunking_function(document, filename=file) + else: + chunks = document + + +if __name__ == "__main__": + # recursively searching for all *_transcribed.srt files + data = os.path.join(os.path.dirname(os.path.abspath(__file__)), "honduras_data") + + for root, dirs, files in os.walk(data): + print(f"Searching in {root}") + for file in files: + if file.endswith("transcribed.srt"): + # Load the document + document = load_document(os.path.join(root, file)) + + # Chunk the document into smaller parts + chunks = transcript_chunker(document, filename=file) + chunks = merge_chunks(chunks) + # Add documents to vector store + # The API has changed: now we directly pass LangChain Document objects + string_chunks = [chunk["text"] for chunk in chunks] + + rag.insert(string_chunks) + + print(f"Uploaded {len(chunks)} chunks from {file}") + + response = rag.query("Any comments on financial management and disbursements by government?", "Your data will be in spanish but please answer only in English.", param=QueryParam(mode="hybrid")) +# print("Response:", response) \ No newline at end of file diff --git a/_backend/utils/.gitignore b/_backend/utils/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7bfcd7a0b1b8c6332b97bb454d8e65332d4cc90a --- /dev/null +++ b/_backend/utils/.gitignore @@ -0,0 +1,2 @@ +__pycache__/ +*.pyc \ No newline at end of file diff --git a/_backend/utils/__init__.py b/_backend/utils/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..cc56af3dd460c3abafa5abed3f6c5240bb02f770 --- /dev/null +++ b/_backend/utils/__init__.py @@ -0,0 +1,4 @@ +from .ai import * +from .vector_db import * +from .document_management import * +from .time_funcs import * \ No newline at end of file diff --git a/_backend/utils/ai.py b/_backend/utils/ai.py new file mode 100644 index 0000000000000000000000000000000000000000..89109285a349c39ac76e0a22950edbf6d7edddf3 --- /dev/null +++ b/_backend/utils/ai.py @@ -0,0 +1,122 @@ +import re +import json +from openai import OpenAI +from langchain.prompts import ChatPromptTemplate +from langchain.document_loaders import PyPDFLoader +from langchain.embeddings.openai import OpenAIEmbeddings +from langchain.text_splitter import RecursiveCharacterTextSplitter +from langchain_openai import ChatOpenAI + +class AiService: + def __init__(self, model="gpt-4.1-mini"): + self.OPENAI_MODEL = model + self.embeddings = OpenAIEmbeddings( + model="text-embedding-3-small" + ) + self.openai = OpenAI() + + def generate_response(self, question_history=[], docs = [], extra_context: str = "", json_structure=None, instructions: str = None): + # simplified $SELECTION_PLACEHOLDER$ + original_question = question_history[-1]["content"] + + # attach supporting docs + if docs: + print(f"Found {len(docs)} supporting documents") + fragments = [str(d["payload"]) for d in docs] + question_history[-1]["content"] += "\n\nSupporting documents:\n" + "\n\n".join(fragments) + + # attach extra context + if extra_context: + question_history[-1]["content"] += "\n\nExtra context:\n" + extra_context + + try: + # common parameters + params = { + "instructions": instructions, + "input": question_history, + "model": self.OPENAI_MODEL, + "temperature": 0.0, + "top_p": 0.25 + } + + if json_structure: + params["text_format"] = json_structure + result = self.openai.responses.parse(**params) + content = result.output_parsed + else: + result = self.openai.responses.create(**params) + content = re.sub(r"\$", r"\\$", result.output_text) + + return content + + except Exception as e: + print(f"Error during API request: {e}") + return "" + + finally: + # restore original question text + question_history[-1]["content"] = original_question + + def generate_single_response(self, query, system_message, json_output=False, json_structure=None): + question_history = [{"role": "system", "content": system_message}, {"role": "user", "content": query}] + return self.generate_response(question_history, json_structure=json_structure) + + + def json_response_cleaner(self, response): + response = response.replace("\n", "").replace( + "\t", "").replace("\\", "") + return json.loads(response) + + def init_messages(self, system_message): + return [{"role": "system", "content": system_message}] + + def add_user_message(self, messages, user_message): + messages.append({"role": "user", "content": user_message}) + return messages + + def add_assistant_message(self, messages, assistant_message): + messages.append({"role": "assistant", "content": assistant_message}) + return messages + + def search_pdf(self, pdf_path, query, schema, output_format): + """ + Search through a PDF document and extract structured information. + + Args: + pdf_path (str): Path to the PDF file + query (str): Search query + schema (dict): Schema defining the required output structure + + Returns: + dict: Extracted structured information + """ + # Load and split the PDF + loader = PyPDFLoader(pdf_path) + pages = loader.load() + text_splitter = RecursiveCharacterTextSplitter( + chunk_size=1000, + chunk_overlap=100 + ) + splits = text_splitter.split_documents(pages) + + combined_content = "\n".join([chunk.page_content for chunk in splits]) + + prompt = ChatPromptTemplate.from_template( + """Extract the requested information from the following text, just write the answer to the question do not include that how the document discusses it or some other form of this. DIRECTLY ANSWER THE QUESTION.: + + {text} + + {schema} + + Query: {query}""" + ) + + messages = prompt.format_messages( + text=combined_content, + schema=schema, + query=query + ) + + llm = ChatOpenAI(temperature=0, model=self.OPENAI_MODEL).with_structured_output(output_format) + response = llm.invoke(messages) + return response \ No newline at end of file diff --git a/_backend/utils/document_management.py b/_backend/utils/document_management.py new file mode 100644 index 0000000000000000000000000000000000000000..db266cac0388197757958aa0af8666de3730f2cc --- /dev/null +++ b/_backend/utils/document_management.py @@ -0,0 +1,287 @@ +import pandas as pd +import os +from utils.text_splitter import srt_chunker as chun +from utils.vector_db import VectorDB +import fitz +from datetime import datetime +import re + +def load_document(file_path, raw_text=False): + file_extension = os.path.splitext(file_path)[1].lower() + if file_extension == '.pdf': + return load_pdf(file_path) + elif file_extension == '.csv': + return load_csv(file_path) + elif file_extension == '.srt': + with open(file_path, 'r', encoding='utf-8') as file: + content = file.read() + paragraphs = content.split('\n\n') + documents = [{"text": paragraph, "paragraph_number": index + 1} + for index, paragraph in enumerate(paragraphs) if paragraph.strip()] + return documents + elif file_extension == '.md': + if raw_text: + with open(file_path, 'r', encoding='utf-8') as file: + content = file.read() + return content + else: + with open(file_path, 'r', encoding='utf-8') as file: + content = file.read() + paragraphs = content.split('\n\n') + documents = [{"text": paragraph, "paragraph_number": index + 1} + for index, paragraph in enumerate(paragraphs) if paragraph.strip()] + return documents + else: + raise ValueError(f"Unsupported file type: {file_extension}") + +def load_pdf(file_path): + """ + Load a PDF file and extract its text content into paragraphs. + + Args: + file_path (str): The path to the PDF file. + + Returns: + list[dict]: A list of dictionaries, each containing a paragraph of text and its paragraph number. + """ + paragraphs = [] + pdf_document = fitz.open(file_path) + + for page in pdf_document: + output = page.get_text("blocks") + previous_block_id = None + + for block in output: + if block[6] == 0: # Check if the block is a text block + cleaned_output = block[4].strip().replace("\n", " ") + if cleaned_output and len(cleaned_output) >= 5: + if previous_block_id != block[5]: + paragraphs.append(cleaned_output) + else: + paragraphs[-1] += " " + cleaned_output + previous_block_id = block[5] + + # Adding the paragraph number to each paragraph + documents = [{"text": paragraph, "paragraph_number": index + 1} + for index, paragraph in enumerate(paragraphs)] + + return documents + + +def load_csv(file_path): + try: + df = pd.read_csv(file_path) + documents = [] + if "Paragraph text" in df.columns: + df = df.rename(columns={"Paragraph text": "text"}) + df["page_number"] = df.index + 1 + documents = df.to_dict(orient="records") + return documents + else: + for index, row in df.iterrows(): + content = row.to_json() + documents.append({"text": content, "page_number": (index+1)}) + return documents + except Exception as e: + print(e) + return [] + + +def upload_document_to_vectorstore(chunks: list[dict], vector_db: VectorDB): + """ + Uploads the chunks and their metadata to the vector database in batches. + + Args: + chunks (list[dict]): A list of dictionaries, each containing a chunk of the document. + vector_db (VectorDB): An instance of the VectorDB class to interact with the vector database. + + Returns: + list: A list of points created in the vector store. + """ + batch_size = 2000 + qdrant_batch_size = 500 + print(f"Uploading {len(chunks)} chunks to the vector store.") + embeddings = [] + for batch_start in range(0, len(chunks), batch_size): + batch_chunks = chunks[batch_start: batch_start + batch_size] + batch_chunks = [chunk["text"] for chunk in batch_chunks] + print(f"Encoding batch of {len(batch_chunks)} chunks.") + batch_embeddings = vector_db.batch_encode_text(batch_chunks) + + embeddings.extend(batch_embeddings) + + points = vector_db.create_points(embeddings, chunks) + print(f"Uploading {len(points)} points to the vector store.") + + for batch_start in range(0, len(points), qdrant_batch_size): + batch_points = points[batch_start: batch_start + qdrant_batch_size] + vector_db.insert_data(batch_points) + print("Upload complete.") + return points + + +def document_chunker(document: list[dict], chunking_function) -> list[dict]: + """ + Chunk a document into smaller pieces using a provided chunking function. + + Args: + document (list[dict]): A list of dictionaries, each containing a 'text' key with the document content. + chunking_function (callable): A function that takes a string and returns a list of chunks. + + Returns: + list[dict]: A list of dictionaries, each containing a chunk of the document. + """ + chunks = [] + for page in document: + text = page.pop("text") + text_chunks = chunking_function(text) + for chunk in text_chunks: + chunks.append({"text": chunk, **page}) + + return chunks + + +def transcript_chunker(document: list[dict], filename) -> list[dict]: + """ + Chunk a transcript document into smaller pieces. + + Args: + document (list[dict]): A list of dictionaries, each containing a 'text' key with the transcript content. + + Returns: + list[dict]: A list of dictionaries, each containing a chunk of the transcript. + """ + + chunks = [] + + def transcript_formatter( + transcript): return f"{transcript['timestamp']} {transcript['speaker']}: {transcript['text']}" + count = 0 + for page in document: + text = page.pop("text") + transcript = chun(text) + + if transcript is None: + if "File name" in text: + continue + if chunks: + chunks[-1]["text"] += text + continue + + # Add the filename to the transcript + transcript["filename"] = filename + + # Adding the index of the transcript to the transcript + transcript["index"] = count + count += 1 + + # Add the current transcript to the chunks + chunks.append(transcript) + + # Add the previous message to the current message + if len(chunks) > 1: + chunks[-1]["previous_message"] = transcript_formatter(chunks[-2]) + + # Add the next message to the previous message + if len(chunks) > 1: + chunks[-2]["next_message"] = transcript_formatter(chunks[-1]) + + return chunks + +def merge_chunks(chunks: list[dict]) -> list[dict]: + """ + Merge consecutive chunks that have the same speaker + + Args: + chunks (list[dict]): A list of dictionaries, each containing a chunk of text and its metadata. + + Returns: + list[dict]: A list of merged chunks. + """ + if not chunks: + return [] + + merged_chunks = [] + current_chunk = chunks[0] + for chunk in chunks[1:]: + if chunk["speaker"] == current_chunk["speaker"]: + # Merge the text of the current chunk with the next one + current_chunk["text"] += " " + chunk["text"] + else: + # Add the current chunk to the merged list and start a new one + merged_chunks.append(current_chunk) + current_chunk = chunk + # Add the last chunk + merged_chunks.append(current_chunk) + return merged_chunks + + +def generate_filename_from_details(minute_block_md: str) -> str: + """ + Generates a filename from a minute block by extracting details + from a line like "| 24 March 2025, Guoqi Wu, AVP CSD | |". + Format: YYYY-MM-DD_Name1Name2_RolePart1_RolePart2_CLE.md + """ + lines = minute_block_md.splitlines() + details_str = None + + if len(lines) > 1: + # The line containing details for the filename is typically the second line of the block + # e.g., | 24 March 2025, Guoqi Wu, AVP CSD | | + header_info_line = lines[1] + + # Extract content from between the first and second pipe characters + line_parts = header_info_line.split('|') + if len(line_parts) > 2 and line_parts[1].strip(): + details_str = line_parts[1].strip() + else: + raise ValueError(f"Could not parse details for filename from line: '{header_info_line}' in minute block.") + else: + raise ValueError("Minute block has insufficient lines to extract details for filename.") + + if not details_str: + raise ValueError("Failed to extract details string from minute block.") + + # Regex to separate date from the rest of the details + match = re.match(r"(\d{1,2}\s+[A-Za-z]+\s+\d{4}),\s*(.+)", details_str) + if not match: + raise ValueError(f"Details string '{details_str}' does not match expected format 'Date, Details...'") + + date_part_str = match.group(1) + name_and_role_parts_str = match.group(2) + + # Convert date to YYYY-MM-DD + try: + dt_object = datetime.strptime(date_part_str, "%d %B %Y") + formatted_date = dt_object.strftime("%Y-%m-%d") + except ValueError: + try: + dt_object = datetime.strptime(date_part_str, "%d %b %Y") + formatted_date = dt_object.strftime("%Y-%m-%d") + except ValueError as e: + raise ValueError(f"Date string '{date_part_str}' could not be parsed: {e}") + + parts = [part.replace(" ", "") for part in name_and_role_parts_str.split(", ")] + combined_name_role = "_".join(parts) + combined_name_role_sanitized = re.sub(r'[^\w-]', '', combined_name_role.replace("(", "").replace(")", "")) + + return f"{formatted_date}_{combined_name_role_sanitized}_CLE.md", (formatted_date, combined_name_role_sanitized) + +def load_prompt(prompt_file_name:str, working_directory) -> str: + """ + Load a prompt from a file in the specified working directory's prompts folder. + + Args: + prompt_file_name (str): The name of the prompt file to load. + working_directory (str): The directory where the prompt file is located. + + Returns: + str: The content of the prompt file. + """ + prompt_file_path = os.path.join(working_directory, "prompts", prompt_file_name+".txt") + if not os.path.exists(prompt_file_path): + raise FileNotFoundError(f"Prompt file '{prompt_file_name}' at path '{prompt_file_path}' does not exist.") + + with open(prompt_file_path, 'r', encoding='utf-8') as file: + return file.read() + \ No newline at end of file diff --git a/_backend/utils/query_json_structures.py b/_backend/utils/query_json_structures.py new file mode 100644 index 0000000000000000000000000000000000000000..3d8950560e6d440d6ece5c937ba462a4ef451011 --- /dev/null +++ b/_backend/utils/query_json_structures.py @@ -0,0 +1,11 @@ +from pydantic import BaseModel +from typing import Optional + + +class RangeQueryStructure(BaseModel): + gte: int + lte: int + +class TranscriptQueryStructure(BaseModel): + speaker: Optional[str] + timestamp_seconds: Optional[RangeQueryStructure] diff --git a/_backend/utils/requirements.txt b/_backend/utils/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..f3550129f272f570504492eeacfef3da497cfed2 --- /dev/null +++ b/_backend/utils/requirements.txt @@ -0,0 +1,4 @@ +langchain +langchain_community +langchain_openai +qdrant-client \ No newline at end of file diff --git a/_backend/utils/text_splitter.py b/_backend/utils/text_splitter.py new file mode 100644 index 0000000000000000000000000000000000000000..4239511e27c6e50287f1a7ac328f3d94d726846b --- /dev/null +++ b/_backend/utils/text_splitter.py @@ -0,0 +1,95 @@ +import re +from datetime import datetime + +def chunk_text_splitter(documents, separator="\n", chunk_size=1000, chunk_overlap=100): + """ + Splits the 'text' of each document into chunks of specified size, with optional overlap. + Returns a list of dicts with the same metadata as the input. + """ + chunks = [] + for doc in documents: + text = doc["text"] + meta = {k: v for k, v in doc.items() if k != "text"} + # Split and join to normalize + split_text = text.split(separator) + joined_text = separator.join(split_text) + start = 0 + while start < len(joined_text): + end = min(start + chunk_size, len(joined_text)) + chunk = joined_text[start:end] + if chunk.strip(): + chunks.append({"text": chunk, **meta}) + start += chunk_size - chunk_overlap + return chunks + +def paragraph_text_splitter(documents, separator="\n\n"): + """ + Splits the 'text' of each document into paragraphs. + Returns a list of dicts with the same metadata as the input. + """ + chunks = [] + for doc in documents: + text = doc["text"] + meta = {k: v for k, v in doc.items() if k != "text"} + for para in text.split(separator): + if para.strip(): + chunks.append({"text": para.strip(), **meta}) + return chunks + +def transcript_chunker(documents): + """ + Splits each transcript document by lines and attaches speaker/timestamp if present. + Returns a list of dicts with the same metadata as the input. + """ + pattern = r"^\[(\d{2}:\d{2}:\d{2})\]\s+([A-Za-z]+):\s*(.*)$" + chunks = [] + for doc in documents: + meta = {k: v for k, v in doc.items() if k != "text"} + for line in doc["text"].splitlines(): + match = re.match(pattern, line) + if match: + timestamp = match.group(1) + speaker = match.group(2) + content = match.group(3) + timestamp_seconds = sum([int(x) * 60 ** i for i, x in enumerate(reversed(timestamp.split(":")))]) + chunk = { + "text": content, + "timestamp": timestamp, + "timestamp_seconds": timestamp_seconds, + "speaker": speaker, + **meta + } + chunks.append(chunk) + elif line.strip(): + # If no match, just add the line as text with metadata + chunks.append({"text": line.strip(), **meta}) + return chunks + +def srt_chunker(documents): + """ + Splits SRT transcript documents into chunks with start/end time, speaker, and content. + Returns a list of dicts with the same metadata as the input. + """ + pattern = r"(\d{2}:\d{2}:\d{2}),\d{3}\s-->\s(\d{2}:\d{2}:\d{2}),\d{3}\n\[(.*?)\]:\s(.+)" + chunks = [] + for doc in documents: + meta = {k: v for k, v in doc.items() if k != "text"} + matches = re.finditer(pattern, doc["text"], re.MULTILINE) + for match in matches: + start_time = match.group(1) + end_time = match.group(2) + speaker = match.group(3) + content = match.group(4).replace("\n", " ") + start_time_seconds = sum([int(x) * 60 ** i for i, x in enumerate(reversed(start_time.split(":")))]) + end_time_seconds = sum([int(x) * 60 ** i for i, x in enumerate(reversed(end_time.split(":")))]) + chunk = { + "text": content, + "start_time": start_time, + "end_time": end_time, + "start_time_seconds": start_time_seconds, + "end_time_seconds": end_time_seconds, + "speaker": speaker, + **meta + } + chunks.append(chunk) + return chunks diff --git a/_backend/utils/time_funcs.py b/_backend/utils/time_funcs.py new file mode 100644 index 0000000000000000000000000000000000000000..8a1be7cdb13ee07b65f322d78478d079574bb412 --- /dev/null +++ b/_backend/utils/time_funcs.py @@ -0,0 +1,78 @@ +import re +import json +from urllib.parse import urlencode, quote_plus + + +def extract_timestamps(transcript, docs) -> list[dict]: + """ + Extracts timestamps in HH:MM:SS format from the transcript. + Returns a list of tuples (timestamp_str, session_id, transcript_text). + """ + pattern = r'(\d{1,2}):(\d{2}):(\d{2})' + matches = re.finditer(pattern, transcript) + timestamps = [] + timestamps_list = [] + + doc_payloads = [doc["payload"] for doc in docs] + + for match in matches: + time_str = match.group(0) + start = match.start() + + # Checking if timestamp is already present in the timestamps_list + if time_str in timestamps_list: + continue + + transcript_text = "" + session_id = None + # Adding the data for the supporting documents + for doc in doc_payloads: + if time_str in doc["timestamp"]: + transcript_text = f'{doc["speaker"]} @ {time_str}: {doc["text"]}' + session_id = doc["filename"] # Get session name from document + break + + if transcript_text and session_id: + timestamps.append( + { + "timestamp": time_str, + "timestamp_seconds": convert_time_to_seconds(time_str), + "transcript_text": transcript_text, + "filename": session_id, + } + ) + timestamps_list.append(time_str) + + return timestamps + + +def convert_time_to_seconds(time_str): + """ + Converts a time string HH:MM:SS to total seconds. + """ + h, m, s = map(int, time_str.split(':')) + return h * 3600 + m * 60 + s + + +def get_embed_url(start_time, uid): + """ + Constructs the embed URL with the specified start time. + """ + base_url = "https://ifad.sharepoint.com/sites/IFAD-CLEIFAD11andIFAD12/_layouts/15/embed.aspx" + params = { + "UniqueId": uid, + "nav": json.dumps({ + "playbackOptions": { + "startTimeInSeconds": start_time + } + }), + "embed": json.dumps({ + "hvm": True, + "ust": True, + "hv": "CopyEmbedCode" + }), + "referrer": "StreamWebApp", + "referrerScenario": "EmbedDialog.Create" + } + query_string = urlencode(params, quote_via=quote_plus) + return f"{base_url}?{query_string}" \ No newline at end of file diff --git a/_backend/utils/vector_db.py b/_backend/utils/vector_db.py new file mode 100644 index 0000000000000000000000000000000000000000..052e5c1791377f15017bd65f061bed0abccc60b6 --- /dev/null +++ b/_backend/utils/vector_db.py @@ -0,0 +1,176 @@ +from typing import List, Dict +import os +import threading +from langchain_openai import OpenAIEmbeddings +from langchain_chroma import Chroma +from langchain.schema import Document + + +def get_openai_embeddings(api_key: str): + """Get thread-local instance of OpenAI embeddings""" + thread_local = threading.local() + if not hasattr(thread_local, 'openai'): + thread_local.openai = OpenAIEmbeddings( + model="text-embedding-3-small", + openai_api_key=api_key + ) + return thread_local.openai + +class VectorDB: + def __init__(self, collection_name: str, embedding_length: int, open_ai_api_key: str,working_dir: str = None, documents: List[Document] = None): + """Initialize ChromaDB with LangChain integration + + Args: + collection_name: Name of the collection + embedding_length: Not directly used by ChromaDB but kept for API compatibility + open_ai_api_key: OpenAI API key for embeddings + qdrant_ai_api_key: Not used with ChromaDB but kept for API compatibility + """ + # Create persistent directory path - next to this file + self.persist_directory = os.path.join(working_dir, "chroma_db") + + # Set up embedding function + self.embedding_model = "text-embedding-3-small" + self.embeddings = get_openai_embeddings(open_ai_api_key) + + # Store parameters + self.collection_name = collection_name + self.embedding_length = embedding_length # For compatibility with existing code + + if documents is not None: + self.db = Chroma.from_documents( + documents=documents, + embedding=self.embeddings, + collection_name=collection_name, + persist_directory=self.persist_directory + ) + elif self.collection_exists(collection_name): + # Initialize Chroma + self.db = Chroma( + collection_name=collection_name, + embedding_function=self.embeddings, + persist_directory=self.persist_directory + ) + else: + # Create new empty collection + self.db = Chroma( + collection_name=collection_name, + embedding_function=self.embeddings, + persist_directory=self.persist_directory + ) + + def collection_exists(self, collection_name: str) -> bool: + """Check if collection exists""" + try: + # Try to initialize a client and access the collection + from chromadb import PersistentClient + client = PersistentClient(path=self.persist_directory) + client.get_collection(collection_name) + return True + except Exception: + return False + + def reset_collection(self, collection_name: str, embedding_length: int = None) -> None: + """Reset/recreate a collection""" + print(f"Resetting collection: {collection_name}") + + # Delete collection if it exists + if self.collection_exists(collection_name): + from chromadb import PersistentClient + client = PersistentClient(path=self.persist_directory) + client.delete_collection(collection_name) + print(f"Deleted existing collection: {collection_name}") + + # Create a new collection + self.db = Chroma( + collection_name=collection_name, + embedding_function=self.embeddings, + persist_directory=self.persist_directory + ) + print(f"Created new collection: {collection_name}") + + # Update the collection name + self.collection_name = collection_name + + def delete_collection(self) -> None: + """Delete the current collection""" + from chromadb import PersistentClient + client = PersistentClient(path=self.persist_directory) + client.delete_collection(self.collection_name) + print(f"Deleted collection: {self.collection_name}") + + def add_documents(self, documents: List[Document]) -> List[str]: + """Add documents to the vector store + + Args: + documents: List of LangChain Document objects + + Returns: + List of document IDs + """ + return self.db.add_documents(documents) + + def search(self, query: str, limit: int = 5, filter: dict = None, score_threshold: float = 0.15) -> List[Dict]: + """Search for documents similar to the query + + Args: + query: The search query + limit: Maximum number of results + filter: Metadata filter criteria + score_threshold: Minimum similarity score + + Returns: + List of search results with id, score, and payload + """ + # Convert filter from Qdrant style to Chroma style if needed + chroma_filter = self._convert_filter(filter) if filter else None + + # Get results from ChromaDB + results = self.db.similarity_search_with_score( + query=query, + k=limit, + filter=chroma_filter + ) + + # Format results to match the expected structure + formatted_results = [] + # for doc, score in results: + # # ChromaDB returns distance, convert to similarity score + # similarity = 1 - score # For cosine distance + + # if similarity >= score_threshold: + # formatted_results.append({ + # "id": doc.metadata.get("id", ""), + # "score": similarity, + # "payload": doc.metadata, + # "content": doc.page_content + # }) + + for doc, score in results: + formatted_results.append({ + "id": doc.metadata.get("id", ""), + "score": 1 - score, # Convert distance to similarity + "payload": doc.metadata, + "content": doc.page_content + }) + + return formatted_results + + def _convert_filter(self, qdrant_filter: dict) -> dict: + """Convert Qdrant style filter to ChromaDB filter format""" + chroma_filter = {} + + for key, value in qdrant_filter.items(): + if isinstance(value, str) or isinstance(value, int) or isinstance(value, bool) or isinstance(value, float): + # Simple equality filter + chroma_filter[key] = value + elif isinstance(value, dict): + # Range filter - needs conversion + # This is a simplified implementation - may need expansion based on your specific filters + if "gte" in value: + chroma_filter[key] = {"$gte": value["gte"]} + if "lte" in value: + chroma_filter[key] = {"$lte": value["lte"]} + # Add other operators as needed + + return chroma_filter diff --git a/_backend/utils/vector_db_builder.py b/_backend/utils/vector_db_builder.py new file mode 100644 index 0000000000000000000000000000000000000000..915bcc1331ba8611d535d7c76b7d10121737d185 --- /dev/null +++ b/_backend/utils/vector_db_builder.py @@ -0,0 +1,93 @@ +import os +from dotenv import load_dotenv +from utils.document_management import load_document, transcript_chunker, merge_chunks +from utils.vector_db import VectorDB +from langchain.schema import Document +from uuid import uuid4 +from pathlib import Path +from typing import Optional + +def build_vector_db_for_dir( + data_dir: str, + collection_name: str = "custom_collection", + embedding_length: int = 1536, + file_suffix: Optional[str] = None, + openai_api_key: Optional[str] = None, + verbose: bool = True, +): + """ + Build a new vector database for all files in a directory. + Args: + data_dir: Directory containing files to process. + collection_name: Name for the vector DB collection. + embedding_length: Embedding vector length. + file_suffix: Only process files with this suffix (e.g. '.srt', '.md'). If None, process all files. + openai_api_key: API key for embedding (if required by backend). + verbose: Print progress. + """ + load_dotenv() + working_dir = os.path.abspath(data_dir) + if not os.path.isdir(working_dir): + raise ValueError(f"Directory not found: {working_dir}") + + all_documents = [] + all_files = [] + for root, dirs, files in os.walk(working_dir): + for file in files: + if file_suffix is None or file.endswith(file_suffix): + file_path = os.path.join(root, file) + relative_path = os.path.relpath(file_path, working_dir) + all_files.append(relative_path) + + for file_path in all_files: + path = os.path.join(working_dir, file_path) + doc = load_document(path) + if doc is None: + if verbose: + print(f"Skipping file {file_path} as it could not be loaded.") + continue + # Try chunking if transcript_chunker is available, else treat as single doc + try: + chunks = transcript_chunker(doc, filename=file_path) + merged_chunks = merge_chunks(chunks) + documents = [ + Document( + page_content=chunk["text"], + metadata={**chunk, "chunk_id": i, "id": str(uuid4()), "filename": file_path} + ) + for i, chunk in enumerate(merged_chunks) + ] + except Exception: + # Fallback: treat as single document + documents = [ + Document( + page_content=doc if isinstance(doc, str) else str(doc), + metadata={"id": str(uuid4()), "filename": file_path} + ) + ] + if verbose: + print(f"Processing {file_path} with {len(documents)} chunks") + all_documents.extend(documents) + + # Remove existing vector DB if present + chroma_db_path = os.path.join(working_dir, "chroma_db") + if all_documents: + if os.path.exists(chroma_db_path): + import shutil + shutil.rmtree(chroma_db_path) + if verbose: + print("Removed existing vector database directory.") + vector_db = VectorDB( + collection_name=collection_name, + embedding_length=embedding_length, + open_ai_api_key=openai_api_key or os.getenv("OPENAI_API_KEY"), + working_dir=working_dir, + documents=all_documents + ) + if verbose: + print(f"Created new vector database with {len(all_documents)} documents") + else: + if verbose: + print("No documents found to process") + if verbose: + print("Vector database reset and data upload complete with ChromaDB.") diff --git a/components.json b/components.json new file mode 100644 index 0000000000000000000000000000000000000000..f9862cd05820b3c9aa0f54db458985623eaf45e8 --- /dev/null +++ b/components.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "default", + "rsc": true, + "tsx": true, + "tailwind": { + "config": "tailwind.config.ts", + "css": "src/app/globals.css", + "baseColor": "blue", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + } +} diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5e955c49ab702ad6f9fff545dbc6e1a9e6cdac58 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,33 @@ +services: + backend: + build: + context: . + dockerfile: Dockerfile_meeting_minutes + ports: + - "8000:8000" + volumes: + - ./_backend:/app/_backend + - ./.prod.env:/app/_backend/.env:ro + environment: + - NAME=World + - ENVIRONMENT=production + networks: + - app-networks + frontend: + build: + context: . + dockerfile: Dockerfile + ports: + - "3000:3000" + volumes: + - ./public:/app/public + depends_on: + - backend + restart: unless-stopped + networks: + - app-networks + environment: + - NEXT_PUBLIC_INITIAL_MESSAGE=CLE +networks: + app-networks: + driver: bridge diff --git a/lightrag.log b/lightrag.log new file mode 100644 index 0000000000000000000000000000000000000000..e79dc833b93420934429a2c1ec9edc4e49dd0466 --- /dev/null +++ b/lightrag.log @@ -0,0 +1,10 @@ +2025-06-20 18:28:42,957 - lightrag - INFO - Loaded document status storage with 0 records +2025-06-20 18:30:23,767 - lightrag - INFO - Loaded document status storage with 0 records +2025-06-20 18:30:47,220 - lightrag - INFO - Loaded document status storage with 0 records +2025-06-20 18:32:17,548 - lightrag - INFO - Loaded document status storage with 0 records +2025-06-20 18:33:01,705 - lightrag - INFO - Loaded document status storage with 0 records +2025-06-20 18:33:24,017 - lightrag - INFO - Loaded document status storage with 0 records +2025-06-20 18:33:47,095 - lightrag - INFO - Creating a new event loop in main thread. +2025-06-20 18:33:48,718 - lightrag - INFO - Using hybrid mode for query processing +2025-06-20 18:33:49,610 - lightrag - INFO - Query: Hello, top_k: 60, cosine: 0.2 +2025-06-20 18:33:50,332 - lightrag - INFO - Query: Greeting, Communication, top_k: 60, cosine: 0.2 diff --git a/next.config.mjs b/next.config.mjs new file mode 100644 index 0000000000000000000000000000000000000000..5cc46f96a051842e18662645290f5ad7369af44d --- /dev/null +++ b/next.config.mjs @@ -0,0 +1,15 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + eslint: { + ignoreDuringBuilds: true, + }, + typescript: { + ignoreBuildErrors: true, + }, + images: { + unoptimized: true, + }, + output: "export", +}; + +export default nextConfig; diff --git a/next.config.ts b/next.config.ts new file mode 100644 index 0000000000000000000000000000000000000000..65c102b9243fdedf36d0d22d3db8cc5f6809ec70 --- /dev/null +++ b/next.config.ts @@ -0,0 +1,7 @@ +import type { NextConfig } from "next"; + +const nextConfig: NextConfig = { + output: "export", +}; + +export default nextConfig; diff --git a/package.json b/package.json new file mode 100644 index 0000000000000000000000000000000000000000..19c732a0e07937e2c2563193de226de6983806b8 --- /dev/null +++ b/package.json @@ -0,0 +1,78 @@ +{ + "name": "interview-synthesizer", + "version": "0.1.0", + "private": true, + "scripts": { + "build": "next build", + "dev": "next dev", + "lint": "next lint", + "start": "next start" + }, + "dependencies": { + "@hookform/resolvers": "^3.9.1", + "@mohtasham/md-to-docx": "^2.0.1", + "@radix-ui/react-accordion": "1.2.2", + "@radix-ui/react-alert-dialog": "1.1.4", + "@radix-ui/react-aspect-ratio": "1.1.1", + "@radix-ui/react-avatar": "1.1.2", + "@radix-ui/react-checkbox": "1.1.3", + "@radix-ui/react-collapsible": "1.1.2", + "@radix-ui/react-context-menu": "2.2.4", + "@radix-ui/react-dialog": "latest", + "@radix-ui/react-dropdown-menu": "latest", + "@radix-ui/react-hover-card": "1.1.4", + "@radix-ui/react-label": "latest", + "@radix-ui/react-menubar": "1.1.4", + "@radix-ui/react-navigation-menu": "1.2.3", + "@radix-ui/react-popover": "1.1.4", + "@radix-ui/react-progress": "1.1.1", + "@radix-ui/react-radio-group": "1.2.2", + "@radix-ui/react-scroll-area": "latest", + "@radix-ui/react-select": "latest", + "@radix-ui/react-separator": "latest", + "@radix-ui/react-slider": "1.2.2", + "@radix-ui/react-slot": "latest", + "@radix-ui/react-switch": "latest", + "@radix-ui/react-tabs": "1.1.2", + "@radix-ui/react-toast": "latest", + "@radix-ui/react-toggle": "1.1.1", + "@radix-ui/react-toggle-group": "1.1.1", + "@radix-ui/react-tooltip": "latest", + "@tailwindcss/typography": "latest", + "autoprefixer": "^10.4.20", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "cmdk": "1.0.4", + "date-fns": "4.1.0", + "embla-carousel-react": "8.5.1", + "events": "latest", + "immer": "latest", + "input-otp": "1.4.1", + "lucide-react": "^0.454.0", + "next": "15.2.4", + "next-themes": "latest", + "react": "^19", + "react-day-picker": "8.10.1", + "react-dom": "^19", + "react-hook-form": "^7.54.1", + "react-markdown": "latest", + "react-resizable-panels": "^2.1.7", + "recharts": "2.15.0", + "sonner": "^1.7.1", + "tailwind-merge": "^2.5.5", + "tailwindcss-animate": "^1.0.7", + "use-sync-external-store": "latest", + "vaul": "^0.9.6", + "vault-storage": "latest", + "zod": "^3.24.1", + "zustand": "latest" + }, + "devDependencies": { + "@types/node": "^22", + "@types/react": "^19", + "@types/react-dom": "^19", + "postcss": "^8.5", + "tailwindcss": "^3.4.17", + "typescript": "^5" + } +} diff --git a/postcss.config.mjs b/postcss.config.mjs new file mode 100644 index 0000000000000000000000000000000000000000..1a69fd2a450afc3bf47e08b22c149190df0ffdb4 --- /dev/null +++ b/postcss.config.mjs @@ -0,0 +1,8 @@ +/** @type {import('postcss-load-config').Config} */ +const config = { + plugins: { + tailwindcss: {}, + }, +}; + +export default config; diff --git a/public/file.svg b/public/file.svg new file mode 100644 index 0000000000000000000000000000000000000000..004145cddf3f9db91b57b9cb596683c8eb420862 --- /dev/null +++ b/public/file.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/globe.svg b/public/globe.svg new file mode 100644 index 0000000000000000000000000000000000000000..567f17b0d7c7fb662c16d4357dd74830caf2dccb --- /dev/null +++ b/public/globe.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/next.svg b/public/next.svg new file mode 100644 index 0000000000000000000000000000000000000000..5174b28c565c285e3e312ec5178be64fbeca8398 --- /dev/null +++ b/public/next.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/vercel.svg b/public/vercel.svg new file mode 100644 index 0000000000000000000000000000000000000000..77053960334e2e34dc584dea8019925c3b4ccca9 --- /dev/null +++ b/public/vercel.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/window.svg b/public/window.svg new file mode 100644 index 0000000000000000000000000000000000000000..b2b2a44f6ebc70c450043c05a002e7a93ba5d651 --- /dev/null +++ b/public/window.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/app/favicon.ico b/src/app/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c Binary files /dev/null and b/src/app/favicon.ico differ diff --git a/src/app/globals.css b/src/app/globals.css new file mode 100644 index 0000000000000000000000000000000000000000..3a66c5cb0a945f8f0f1012139caeff5e24a12013 --- /dev/null +++ b/src/app/globals.css @@ -0,0 +1,79 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +body { + font-family: Arial, Helvetica, sans-serif; +} + +@layer utilities { + .text-balance { + text-wrap: balance; + } +} + +@layer base { + :root { + --background: 0 0% 100%; + --foreground: 222.2 84% 4.9%; + --card: 0 0% 100%; + --card-foreground: 222.2 84% 4.9%; + --popover: 0 0% 100%; + --popover-foreground: 222.2 84% 4.9%; + --primary: 221.2 83.2% 53.3%; + --primary-foreground: 210 40% 98%; + --secondary: 210 40% 96.1%; + --secondary-foreground: 222.2 47.4% 11.2%; + --muted: 210 40% 96.1%; + --muted-foreground: 215.4 16.3% 46.9%; + --accent: 210 40% 96.1%; + --accent-foreground: 222.2 47.4% 11.2%; + --destructive: 0 84.2% 60.2%; + --destructive-foreground: 210 40% 98%; + --border: 214.3 31.8% 91.4%; + --input: 214.3 31.8% 91.4%; + --ring: 221.2 83.2% 53.3%; + --radius: 0.65rem; + --chart-1: 12 76% 61%; + --chart-2: 173 58% 39%; + --chart-3: 197 37% 24%; + --chart-4: 43 74% 66%; + --chart-5: 27 87% 67%; + } + + .dark { + --background: 222.2 84% 4.9%; + --foreground: 210 40% 98%; + --card: 222.2 84% 4.9%; + --card-foreground: 210 40% 98%; + --popover: 222.2 84% 4.9%; + --popover-foreground: 210 40% 98%; + --primary: 217.2 91.2% 59.8%; + --primary-foreground: 222.2 47.4% 11.2%; + --secondary: 217.2 32.6% 17.5%; + --secondary-foreground: 210 40% 98%; + --muted: 217.2 32.6% 17.5%; + --muted-foreground: 215 20.2% 65.1%; + --accent: 217.2 32.6% 17.5%; + --accent-foreground: 210 40% 98%; + --destructive: 0 62.8% 30.6%; + --destructive-foreground: 210 40% 98%; + --border: 217.2 32.6% 17.5%; + --input: 217.2 32.6% 17.5%; + --ring: 224.3 76.3% 48%; + --chart-1: 220 70% 50%; + --chart-2: 160 60% 45%; + --chart-3: 30 80% 55%; + --chart-4: 280 65% 60%; + --chart-5: 340 75% 55%; + } +} + +@layer base { + * { + @apply border-border; + } + body { + @apply bg-background text-foreground; + } +} diff --git a/src/app/layout.tsx b/src/app/layout.tsx new file mode 100644 index 0000000000000000000000000000000000000000..bcc7cfa8161607dddb26793ce85790b33f7e4f21 --- /dev/null +++ b/src/app/layout.tsx @@ -0,0 +1,41 @@ +import type React from "react" +import type { Metadata } from "next" +import { DM_Sans } from "next/font/google" +import "./globals.css" +import { ThemeProvider } from "@/providers/theme-provider" +import { SidebarProvider, SidebarInset } from "@/components/ui/sidebar" +import AppSidebar from "@/components/sidebar" +import { Toaster } from "@/components/ui/toaster" +import Topbar from "@/components/topbar" + +const font = DM_Sans({ subsets: ["latin"] }) + +export const metadata: Metadata = { + title: "Transcription Chatbot", + description: "Generated by create next app", +} + +export default function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode +}>) { + return ( + + + + +
      + + + +
      {children}
      +
      +
      + +
      +
      + + + ) +} diff --git a/src/app/page.tsx b/src/app/page.tsx new file mode 100644 index 0000000000000000000000000000000000000000..966f0886ca22af7b9a457ad6df8ef19443005ade --- /dev/null +++ b/src/app/page.tsx @@ -0,0 +1,80 @@ +"use client"; +import { type FC } from "react"; + +import MessageBar from "@/components/message_bar"; +import EvaluationModal from "@/components/evaluation_modal"; +import WelcomeScreen from "@/components/welcome-screen"; +import ChatMessages from "@/components/chat-messages"; +import TranscriptsPanel from "@/components/transcripts-panel"; +import { useChatPage } from "@/hooks/useChatPage"; + +const ChatPage: FC = () => { + const { + selectedTranscripts, + selectedTranscript, + isLoading, + evaluatingMessageIndex, + setEvaluatingMessageIndex, + selectedChat, + selectedChatId, + scrollRef, + scrollToBottom, + handleTranscriptClick, + handleEvaluate, + isTranscriptsOpen, + setIsTranscriptsOpen, + } = useChatPage(); + + const showWelcome = + selectedChatId === null || selectedChat?.messages.length === 0; + + return ( +
      +
      + {showWelcome ? ( + + ) : ( + + )} + + {selectedChatId && ( +
      + +
      + )} +
      + + + + {selectedChat !== null && evaluatingMessageIndex && ( + !open && setEvaluatingMessageIndex(null)} + message={selectedChat.messages[evaluatingMessageIndex]} + prevMessage={selectedChat.messages[evaluatingMessageIndex - 1]} + /> + )} +
      + ); +}; + +export default ChatPage; diff --git a/src/components/chat-messages.tsx b/src/components/chat-messages.tsx new file mode 100644 index 0000000000000000000000000000000000000000..aefb255bfadd944de50a5356b7e3bb33dd7e46c8 --- /dev/null +++ b/src/components/chat-messages.tsx @@ -0,0 +1,50 @@ +import { ScrollArea } from "@/components/ui/scroll-area"; +import MessageBlock from "@/components/message"; +import { Loader2 } from "lucide-react"; +import type { Chat, Transcript } from "@/lib/types"; + +interface ChatMessagesProps { + selectedChat: Chat | null; + isLoading: boolean; + scrollRef: React.RefObject; + onTranscriptClick: (transcript: Transcript) => Promise; + onEvaluate: (messageIndex: number) => void; +} + +export default function ChatMessages({ + selectedChat, + isLoading, + scrollRef, + onTranscriptClick, + onEvaluate, +}: ChatMessagesProps) { + if (!selectedChat) { + return null; + } + + return ( + +
      + {selectedChat.messages.map((message, index) => + message.role !== "system" ? ( +
      + onEvaluate(index)} + /> +
      + ) : null + )} + {isLoading && ( +
      +
      + + Analyzing transcripts... +
      +
      + )} +
      +
      + ); +} diff --git a/src/components/empty_state.tsx b/src/components/empty_state.tsx new file mode 100644 index 0000000000000000000000000000000000000000..a55727ce085bc5f4bbe2172709d578b5c3acbeca --- /dev/null +++ b/src/components/empty_state.tsx @@ -0,0 +1,16 @@ +import { Bot, LucideIcon } from "lucide-react"; +import { FC } from "react"; + +interface EmptyStateProps { + message: string; + icon?: LucideIcon; +} + +const EmptyState: FC = ({ message, icon: Icon = Bot }) => ( +
      + +

      {message}

      +
      +); + +export default EmptyState; diff --git a/src/components/evaluation_modal.tsx b/src/components/evaluation_modal.tsx new file mode 100644 index 0000000000000000000000000000000000000000..0ab060c8bfd4fe2626b4cb1957de83eb07111945 --- /dev/null +++ b/src/components/evaluation_modal.tsx @@ -0,0 +1,102 @@ +"use client"; + +import { Button } from "@/components/ui/button"; +import { + Dialog, + DialogContent, + DialogHeader, + DialogTitle, +} from "@/components/ui/dialog"; +import { Message } from "@/lib/types"; +import { useState } from "react"; +import { Textarea } from "./ui/textarea"; + +interface RatingCategory { + name: string; + value: number; +} + +export default function EvaluationModal({ + open = false, + onOpenChange, + message, + prevMessage, +}: { + open: boolean; + onOpenChange: (open: boolean) => void; + message: Message; + prevMessage: Message; +}) { + const [ratings, setRatings] = useState>({ + relevance: 0, + accuracy: 0, + clarity: 0, + engagement: 0, + }); + + const categories: RatingCategory[] = [ + { name: "Relevance", value: ratings.relevance }, + { name: "Accuracy", value: ratings.accuracy }, + { name: "Clarity", value: ratings.clarity }, + { name: "User Engagement", value: ratings.engagement }, + ]; + + const handleRating = (category: string, value: number) => { + const categoryKey = + category.toLowerCase() === "user engagement" + ? "engagement" + : category.toLowerCase(); + + setRatings((prev) => ({ + ...prev, + [categoryKey]: value, + })); + }; + + const handleSubmit = () => { + console.log("Submitting ratings:", ratings); + onOpenChange(false); + }; + + return ( + + + + + Evaluate this Response + + +
      + {categories.map((category) => ( +
      + +
      + {[1, 2, 3, 4, 5].map((star) => ( + + ))} +
      +
      + ))} +