From f6bc39812caf58bc049cb2f22d8fda023cac22a8 Mon Sep 17 00:00:00 2001 From: dev-burnern <200775118+dev-burnern@users.noreply.github.com> Date: Tue, 21 Apr 2026 15:43:21 +0900 Subject: [PATCH 01/50] docs: add v2 architecture design --- docs/plans/2026-04-21-docsearch-v2-design.md | 485 +++++++++++++++++++ 1 file changed, 485 insertions(+) create mode 100644 docs/plans/2026-04-21-docsearch-v2-design.md diff --git a/docs/plans/2026-04-21-docsearch-v2-design.md b/docs/plans/2026-04-21-docsearch-v2-design.md new file mode 100644 index 0000000..9bf3903 --- /dev/null +++ b/docs/plans/2026-04-21-docsearch-v2-design.md @@ -0,0 +1,485 @@ +# DocSearch AI v2 설계 문서 + +- 작성일: 2026-04-21 +- 상태: 설계 승인 초안 +- 대상 브랜치: `v2-redesign` +- 포트폴리오 포지션: 백엔드/AI 엔지니어 중심, 인프라/운영 설계 보조 + +## 1. 배경 + +현재 `main` 브랜치는 v1 프로토타입으로 유지한다. v2는 기존 기획인 "로컬/온프레미스 문서 검색 RAG 시스템"을 유지하되, 포트폴리오에 맞게 설계, 커밋, 브랜치, 문서, 테스트 기록을 처음부터 다시 쌓는다. + +v2의 목표는 단순 데모가 아니라 다음 역량을 보여주는 것이다. + +- 문서 업로드부터 검색, 리랭킹, 답변 생성까지 이어지는 RAG 백엔드 설계 +- LLM 서빙 계층을 애플리케이션과 분리하는 추상화 +- 사용자 문서가 외부 API로 나가지 않는 로컬/온프레미스 추론 구조 +- 비동기 문서 처리와 운영 가능한 작업 큐 설계 +- 테스트, 검색 평가, 보안, 관측성을 고려한 백엔드 품질 + +## 2. MVP 범위 + +### 포함 + +- API Key 기반 인증 +- 워크스페이스 단위 문서 접근 제어 +- PDF, TXT, Markdown 문서 업로드 +- 문서 원본 저장 +- 문서 파싱, 텍스트 정규화, 청킹 +- `BAAI/bge-m3` 기반 Dense 임베딩 +- Qdrant 기반 Dense 벡터 검색 +- 메타데이터와 접근 권한 필터링 +- `BAAI/bge-reranker-v2-m3` 기반 리랭킹 +- `google/gemma-4-E4B-it` 기반 답변 생성 +- 출처 포함 RAG 응답 +- 개발용 인프로세스 작업 처리 +- 운영형 Redis 작업 큐 확장 지점 + +### 제외 + +- Ollama 연동 +- JWT 로그인과 RBAC +- 관리자 대시보드 +- DOCX, XLSX, PPTX, 이미지 OCR +- Dense + Sparse 하이브리드 검색 +- 모델 자동 추천 UI +- 멀티모달 문서 질의 + +제외 항목은 후속 마일스톤으로 문서화한다. + +## 3. 핵심 아키텍처 + +```mermaid +flowchart TB + 사용자["사용자 / 향후 UX"] --> API["FastAPI 백엔드"] + + API --> 인증["API Key 인증"] + API --> 문서API["문서 업로드 API"] + API --> 검색API["검색 / 채팅 API"] + + 문서API --> 작업서비스["문서 처리 작업 서비스"] + 작업서비스 --> 작업큐["작업 큐 인터페이스"] + 작업큐 --> 인프로세스["개발용 인프로세스 처리"] + 작업큐 --> 레디스큐["운영형 Redis 작업 큐"] + + 인프로세스 --> 처리파이프라인["문서 처리 파이프라인"] + 레디스큐 --> 워커["문서 처리 워커"] + 워커 --> 처리파이프라인 + + 처리파이프라인 --> 파서레지스트리["문서 파서 레지스트리"] + 파서레지스트리 --> PDF["PDF 파서"] + 파서레지스트리 --> TXT["TXT 파서"] + 파서레지스트리 --> MD["Markdown 파서"] + 파서레지스트리 -. 후속 .-> 추가파서["DOCX / XLSX / PPTX / OCR"] + + 처리파이프라인 --> 청킹["문서 청킹"] + 청킹 --> 임베딩["BAAI/bge-m3 임베딩"] + 임베딩 --> 벡터DB["Qdrant 벡터 DB"] + + 검색API --> 검색기["검색기"] + 검색기 --> 접근필터["메타데이터 / 접근 권한 필터"] + 접근필터 --> 벡터DB + 검색기 --> 리랭커["BAAI/bge-reranker-v2-m3 리랭커"] + 리랭커 --> 컨텍스트["근거 컨텍스트 구성"] + 컨텍스트 --> LLM게이트웨이["LLM 게이트웨이"] + + LLM게이트웨이 --> 내부프록시["내부 LLM 프록시"] + 내부프록시 --> vLLM["vLLM 서버"] + vLLM --> 젬마["Gemma 4 E4B IT"] + + API --> PostgreSQL["PostgreSQL 메타데이터 DB"] + 문서API --> 저장소["오브젝트 스토리지"] + 처리파이프라인 --> 저장소 +``` + +## 4. MVP 처리 플로우 + +```text +문서 업로드 +-> API Key 인증 +-> 워크스페이스 확인 +-> 원본 파일 저장 +-> 문서 메타데이터와 처리 작업 생성 +-> 작업 큐 등록 +-> PDF/TXT/MD 파싱 +-> 텍스트 정규화 +-> 청크 생성 +-> BAAI/bge-m3 임베딩 +-> Qdrant 색인 +-> 사용자 질문 수신 +-> 질문 임베딩 +-> 메타데이터/접근 권한 필터 생성 +-> Qdrant Dense 검색 +-> BAAI/bge-reranker-v2-m3 리랭킹 +-> 근거 컨텍스트 구성 +-> LLM 게이트웨이 호출 +-> 내부 프록시를 통해 vLLM 호출 +-> Gemma 4 E4B IT 답변 생성 +-> 출처 포함 응답 반환 +``` + +## 5. 모델 선택 + +MVP는 한 가지 표준 모델 워크플로우로 고정한다. + +```text +LLM_MODEL=google/gemma-4-E4B-it +EMBEDDING_MODEL=BAAI/bge-m3 +RERANKER_MODEL=BAAI/bge-reranker-v2-m3 +``` + +선택 이유: + +- Gemma 4는 Apache 2.0 라이선스이며, 긴 컨텍스트와 다국어 지원을 제공한다. +- vLLM은 Gemma 4 OpenAI-compatible API 서빙 가이드를 제공한다. +- `bge-m3`는 다국어 Dense 검색에 적합하고, 후속 하이브리드 검색 확장 여지도 있다. +- `bge-reranker-v2-m3`는 다국어 리랭킹 모델로 `bge-m3` 기반 검색과 조합이 자연스럽다. + +후속 확장에서는 모델을 고정하지 않고, 사용자 환경에 따라 초록/주황/빨강 추천 등급을 보여주는 `Model Profile Advisor`를 추가한다. + +## 6. 주요 컴포넌트 + +### FastAPI 백엔드 + +외부 클라이언트가 접근하는 유일한 진입점이다. 인증, 문서 API, 검색 API, 채팅 API, 상태 조회 API를 제공한다. vLLM, Qdrant, PostgreSQL, 오브젝트 스토리지는 외부에 직접 공개하지 않는다. + +### API Key 인증 + +MVP에서는 사용자 계정 대신 API Key를 사용한다. API Key는 워크스페이스에 연결된다. 모든 문서와 검색 요청은 워크스페이스 범위 안에서만 처리된다. + +후속으로 JWT 로그인, 사용자, 조직, 역할, 감사 로그를 추가한다. + +### 문서 처리 파이프라인 + +문서 파서는 `ParserRegistry` 뒤에 둔다. MVP 구현은 PDF, TXT, Markdown만 포함한다. 파서 출력은 파일 형식과 무관하게 정규화된 내부 모델로 변환한다. + +예상 내부 모델: + +- `ParsedDocument` +- `DocumentSection` +- `DocumentChunk` +- `ChunkMetadata` + +### 작업 큐 + +`JobQueue` 인터페이스를 먼저 정의한다. + +- 개발 환경: `InProcessJobQueue` +- 운영형 환경: `RedisJobQueue` + +이 설계는 MVP 속도를 유지하면서도 워커 분리, 재시도, 실패 처리, 모니터링으로 확장 가능하게 한다. + +### 검색기 + +검색기는 질문 임베딩, 접근 권한 필터, Qdrant 검색, 리랭킹, 컨텍스트 생성을 담당한다. LLM 호출은 직접 하지 않고 RAG Orchestrator 또는 LLM Gateway로 넘긴다. + +### LLM 게이트웨이 + +애플리케이션은 vLLM에 직접 강결합하지 않는다. `LLM Gateway`는 OpenAI-compatible Chat Completions 인터페이스를 사용한다. + +주요 책임: + +- 요청 timeout +- 재시도 정책 +- 최대 입력 토큰 제한 +- 최대 출력 토큰 제한 +- system prompt 구성 +- 응답 형식 검증 +- 모델 오류를 애플리케이션 오류로 변환 + +### 내부 LLM 프록시 + +vLLM은 직접 외부 노출하지 않는다. 내부 프록시는 vLLM 앞에서 다음을 담당한다. + +- 허용 endpoint 제한 +- 요청 크기 제한 +- rate limit +- 인증 헤더 관리 +- 민감 로그 마스킹 +- vLLM 상태 확인 + +## 7. 데이터 모델 초안 + +### Workspace + +- `id` +- `name` +- `created_at` + +### ApiKey + +- `id` +- `workspace_id` +- `key_hash` +- `name` +- `last_used_at` +- `created_at` +- `revoked_at` + +### Document + +- `id` +- `workspace_id` +- `filename` +- `content_type` +- `size_bytes` +- `storage_key` +- `status` +- `tags` +- `created_at` +- `updated_at` +- `deleted_at` + +### ProcessingJob + +- `id` +- `document_id` +- `job_type` +- `status` +- `attempt_count` +- `error_code` +- `error_message` +- `created_at` +- `started_at` +- `finished_at` + +### Chunk + +- `id` +- `document_id` +- `workspace_id` +- `chunk_index` +- `text` +- `token_count` +- `page_number` +- `section_title` +- `metadata` +- `vector_id` + +## 8. 주요 API 초안 + +```text +POST /v1/documents +GET /v1/documents +GET /v1/documents/{document_id} +GET /v1/documents/{document_id}/status +DELETE /v1/documents/{document_id} + +POST /v1/search +POST /v1/chat + +GET /health +GET /ready +``` + +응답은 항상 trace 가능한 식별자를 포함한다. + +```json +{ + "request_id": "req_...", + "answer": "...", + "citations": [ + { + "document_id": "doc_...", + "filename": "example.pdf", + "chunk_id": "chk_...", + "page_number": 3, + "score": 0.87 + } + ] +} +``` + +## 9. 오류 처리 원칙 + +- 문서 업로드 오류와 문서 처리 오류를 분리한다. +- 비동기 처리 실패는 `ProcessingJob`에 남긴다. +- 사용자가 재시도 가능한 오류와 불가능한 오류를 구분한다. +- LLM timeout, vLLM unavailable, reranker unavailable은 명확한 오류 코드로 변환한다. +- 검색 결과가 부족하면 hallucination을 유도하지 않고 "근거 부족" 응답을 반환한다. + +예상 오류 코드: + +- `AUTH_INVALID_API_KEY` +- `DOCUMENT_UNSUPPORTED_TYPE` +- `DOCUMENT_PARSE_FAILED` +- `EMBEDDING_FAILED` +- `VECTOR_INDEX_FAILED` +- `RETRIEVAL_EMPTY` +- `RERANKER_UNAVAILABLE` +- `LLM_TIMEOUT` +- `LLM_UNAVAILABLE` + +## 10. 테스트 전략 + +### 단위 테스트 + +- API Key 인증 +- ParserRegistry +- PDF/TXT/MD 파서 +- 청킹 +- 메타데이터 필터 생성 +- LLM Gateway 응답 변환 + +### 통합 테스트 + +- 문서 업로드 후 처리 상태 변경 +- 청크 생성과 Qdrant 색인 +- 검색 API가 접근 권한 필터를 적용하는지 검증 +- 리랭킹 후 citation이 유지되는지 검증 + +### RAG 평가 + +작은 평가 데이터셋을 만든다. + +- 질문 +- 기대 문서 +- 기대 chunk +- 허용 답변 기준 + +평가 지표: + +- 검색 Recall@k +- 리랭킹 후 MRR +- citation 포함률 +- 근거 없는 답변 차단률 + +## 11. 보안 원칙 + +- vLLM, Qdrant, PostgreSQL, Redis, 오브젝트 스토리지는 외부 공개 대상이 아니다. +- vLLM은 내부 프록시 뒤에 둔다. +- API Key는 원문 저장하지 않고 hash만 저장한다. +- 로그에는 API Key, 원문 문서, 전체 prompt를 남기지 않는다. +- 요청 body size, 검색 top-k, LLM max tokens를 제한한다. +- 문서 삭제 시 메타데이터, 원본 파일, 벡터 삭제 정책을 함께 정의한다. + +## 12. 환경 프로필 + +### `dev` + +- InProcess 작업 처리 +- Mock LLM 또는 실제 vLLM 선택 가능 +- 로컬 PostgreSQL, Qdrant +- 빠른 테스트 우선 + +### `local-gpu` + +- Redis 작업 큐 +- Worker 프로세스 +- vLLM + Gemma 4 E4B IT +- Qdrant, PostgreSQL, 오브젝트 스토리지 + +### `prod-like` + +- 내부 프록시 +- endpoint allowlist +- rate limit +- 로그 마스킹 +- health check와 readiness check +- 운영 문서 포함 + +## 13. 브랜치와 커밋 전략 + +현재 `main`은 v1 프로토타입으로 유지한다. v2 작업은 `v2-redesign`에서 시작한다. + +권장 흐름: + +```text +main +-> v2-redesign + -> docs/design + -> feat/project-scaffold + -> feat/auth-api-key + -> feat/document-ingestion + -> feat/vector-search + -> feat/rag-chat + -> feat/vllm-serving + -> feat/worker-queue + -> feat/evaluation +``` + +커밋 메시지는 기능 단위로 남긴다. + +예시: + +```text +docs: add v2 architecture design +feat: scaffold FastAPI v2 project structure +feat: add API key authentication +feat: add parser registry for document ingestion +test: cover chunking and parser registry +docs: add local-gpu deployment guide +``` + +## 14. 마일스톤 + +### M1. 설계와 프로젝트 골격 + +- 설계 문서 +- v2 디렉터리 구조 +- 설정 관리 +- 테스트 환경 + +### M2. 인증과 문서 업로드 + +- API Key 인증 +- 문서 업로드 API +- 원본 저장 +- 처리 작업 생성 + +### M3. 문서 처리와 색인 + +- PDF/TXT/MD 파서 +- 청킹 +- bge-m3 임베딩 +- Qdrant 색인 + +### M4. 검색과 리랭킹 + +- Dense 검색 +- 메타데이터/접근 권한 필터 +- bge-reranker-v2-m3 리랭킹 +- citation 반환 + +### M5. RAG 답변 생성 + +- LLM Gateway +- 내부 vLLM 프록시 +- Gemma 4 E4B IT 호출 +- 근거 기반 답변 생성 + +### M6. 운영형 확장 + +- Redis 작업 큐 +- Worker 프로세스 +- health/readiness +- 로그 마스킹 +- 배포 문서 + +### M7. 평가와 포트폴리오 정리 + +- RAG 평가 데이터셋 +- 검색 품질 리포트 +- README 재작성 +- 아키텍처 다이어그램 +- 개발 회고 + +## 15. 후속 확장 + +- 사용자 환경 기반 모델 추천 기능 +- 초록/주황/빨강 추천 등급 UI +- Gemma 4 26B-A4B, 31B, Qwen fallback 프로필 +- JWT/RBAC +- 관리자 UX +- DOCX/XLSX/PPTX/OCR 파서 +- Dense + Sparse 하이브리드 검색 +- 멀티모달 문서 질의 +- Prometheus/Grafana 관측성 + +## 16. 참고 자료 + +- Gemma 4 model card: https://ai.google.dev/gemma/docs/core/model_card_4 +- Gemma 4 launch blog: https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/ +- vLLM Gemma 4 usage guide: https://docs.vllm.ai/projects/recipes/en/latest/Google/Gemma4.html +- BAAI/bge-m3: https://huggingface.co/BAAI/bge-m3 +- BAAI/bge-reranker-v2-m3: https://huggingface.co/BAAI/bge-reranker-v2-m3 From 721beb7c37fecda5280f8d0eb768e072f5e7deae Mon Sep 17 00:00:00 2001 From: dev-burnern <200775118+dev-burnern@users.noreply.github.com> Date: Tue, 12 May 2026 15:50:14 +0900 Subject: [PATCH 02/50] feat(scaffold): add backend v2 app skeleton --- backend/Dockerfile | 10 ++++++++++ backend/__init__.py | 1 + backend/app/__init__.py | 1 + backend/app/core/__init__.py | 1 + backend/app/core/config.py | 15 +++++++++++++++ backend/app/core/logging.py | 8 ++++++++ backend/app/main.py | 33 +++++++++++++++++++++++++++++++++ backend/requirements.txt | 2 ++ backend/tests/test_bootstrap.py | 23 +++++++++++++++++++++++ 9 files changed, 94 insertions(+) create mode 100644 backend/Dockerfile create mode 100644 backend/__init__.py create mode 100644 backend/app/__init__.py create mode 100644 backend/app/core/__init__.py create mode 100644 backend/app/core/config.py create mode 100644 backend/app/core/logging.py create mode 100644 backend/app/main.py create mode 100644 backend/requirements.txt create mode 100644 backend/tests/test_bootstrap.py diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..e3f2064 --- /dev/null +++ b/backend/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3.12-slim + +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY app ./app + +CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/backend/__init__.py b/backend/__init__.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/backend/__init__.py @@ -0,0 +1 @@ + diff --git a/backend/app/__init__.py b/backend/app/__init__.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/backend/app/__init__.py @@ -0,0 +1 @@ + diff --git a/backend/app/core/__init__.py b/backend/app/core/__init__.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/backend/app/core/__init__.py @@ -0,0 +1 @@ + diff --git a/backend/app/core/config.py b/backend/app/core/config.py new file mode 100644 index 0000000..4947f4b --- /dev/null +++ b/backend/app/core/config.py @@ -0,0 +1,15 @@ +from functools import lru_cache +import os + +from pydantic import BaseModel + + +class Settings(BaseModel): + app_name: str = os.getenv("APP_NAME", "DocSearch AI V2") + app_env: str = os.getenv("APP_ENV", "development") + debug: bool = os.getenv("DEBUG", "false").lower() == "true" + + +@lru_cache(maxsize=1) +def get_settings() -> Settings: + return Settings() diff --git a/backend/app/core/logging.py b/backend/app/core/logging.py new file mode 100644 index 0000000..3ab094f --- /dev/null +++ b/backend/app/core/logging.py @@ -0,0 +1,8 @@ +import logging + + +def configure_logging() -> None: + logging.basicConfig( + level=logging.INFO, + format="%(asctime)s %(levelname)s %(name)s %(message)s", + ) diff --git a/backend/app/main.py b/backend/app/main.py new file mode 100644 index 0000000..9e5c276 --- /dev/null +++ b/backend/app/main.py @@ -0,0 +1,33 @@ +from fastapi import FastAPI + +from backend.app.core.config import get_settings +from backend.app.core.logging import configure_logging + + +def create_app() -> FastAPI: + settings = get_settings() + configure_logging() + + app = FastAPI( + title=settings.app_name, + debug=settings.debug, + ) + + @app.get("/health") + async def health() -> dict[str, str]: + return { + "status": "healthy", + "service": "docsearch-ai-v2", + } + + @app.get("/ready") + async def ready() -> dict[str, str]: + return { + "status": "ready", + "service": "docsearch-ai-v2", + } + + return app + + +app = create_app() diff --git a/backend/requirements.txt b/backend/requirements.txt new file mode 100644 index 0000000..6eb594b --- /dev/null +++ b/backend/requirements.txt @@ -0,0 +1,2 @@ +fastapi==0.136.1 +uvicorn==0.46.0 diff --git a/backend/tests/test_bootstrap.py b/backend/tests/test_bootstrap.py new file mode 100644 index 0000000..ec7fcaa --- /dev/null +++ b/backend/tests/test_bootstrap.py @@ -0,0 +1,23 @@ +from fastapi.testclient import TestClient + +from backend.app.core.config import get_settings +from backend.app.main import create_app + + +def test_settings_load_default_values(): + settings = get_settings() + + assert settings.app_name == "DocSearch AI V2" + assert settings.app_env == "development" + + +def test_health_route_returns_expected_contract(): + client = TestClient(create_app()) + + response = client.get("/health") + + assert response.status_code == 200 + assert response.json() == { + "status": "healthy", + "service": "docsearch-ai-v2", + } From 23ff32d9da68e6a24249e3dac82427cafa37f83d Mon Sep 17 00:00:00 2001 From: dev-burnern <200775118+dev-burnern@users.noreply.github.com> Date: Tue, 12 May 2026 15:50:27 +0900 Subject: [PATCH 03/50] feat(frontend): add v2 shell --- frontend-v2/Dockerfile | 10 + frontend-v2/index.html | 12 + frontend-v2/package-lock.json | 2866 ++++++++++++++++++++++++++++++++ frontend-v2/package.json | 23 + frontend-v2/src/app/App.tsx | 64 + frontend-v2/src/main.tsx | 11 + frontend-v2/src/styles.css | 13 + frontend-v2/tsconfig.json | 21 + frontend-v2/tsconfig.node.json | 8 + frontend-v2/vite.config.ts | 9 + 10 files changed, 3037 insertions(+) create mode 100644 frontend-v2/Dockerfile create mode 100644 frontend-v2/index.html create mode 100644 frontend-v2/package-lock.json create mode 100644 frontend-v2/package.json create mode 100644 frontend-v2/src/app/App.tsx create mode 100644 frontend-v2/src/main.tsx create mode 100644 frontend-v2/src/styles.css create mode 100644 frontend-v2/tsconfig.json create mode 100644 frontend-v2/tsconfig.node.json create mode 100644 frontend-v2/vite.config.ts diff --git a/frontend-v2/Dockerfile b/frontend-v2/Dockerfile new file mode 100644 index 0000000..5a454a7 --- /dev/null +++ b/frontend-v2/Dockerfile @@ -0,0 +1,10 @@ +FROM node:22-alpine + +WORKDIR /app + +COPY package*.json ./ +RUN npm install + +COPY . . + +CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"] diff --git a/frontend-v2/index.html b/frontend-v2/index.html new file mode 100644 index 0000000..a363732 --- /dev/null +++ b/frontend-v2/index.html @@ -0,0 +1,12 @@ + + + + + + DocSearch AI V2 + + +
+ + + diff --git a/frontend-v2/package-lock.json b/frontend-v2/package-lock.json new file mode 100644 index 0000000..aeaa0b4 --- /dev/null +++ b/frontend-v2/package-lock.json @@ -0,0 +1,2866 @@ +{ + "name": "docsearch-v2-frontend", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "docsearch-v2-frontend", + "version": "0.1.0", + "dependencies": { + "antd": "^5.27.6", + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "devDependencies": { + "@types/react": "^18.3.23", + "@types/react-dom": "^18.3.7", + "@vitejs/plugin-react": "^5.1.0", + "typescript": "^5.9.3", + "vite": "^7.2.1" + } + }, + "node_modules/@ant-design/colors": { + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/@ant-design/colors/-/colors-7.2.1.tgz", + "integrity": "sha512-lCHDcEzieu4GA3n8ELeZ5VQ8pKQAWcGGLRTQ50aQM2iqPpq2evTxER84jfdPvsPAtEcZ7m44NI45edFMo8oOYQ==", + "license": "MIT", + "dependencies": { + "@ant-design/fast-color": "^2.0.6" + } + }, + "node_modules/@ant-design/cssinjs": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/@ant-design/cssinjs/-/cssinjs-1.24.0.tgz", + "integrity": "sha512-K4cYrJBsgvL+IoozUXYjbT6LHHNt+19a9zkvpBPxLjFHas1UpPM2A5MlhROb0BT8N8WoavM5VsP9MeSeNK/3mg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.11.1", + "@emotion/hash": "^0.8.0", + "@emotion/unitless": "^0.7.5", + "classnames": "^2.3.1", + "csstype": "^3.1.3", + "rc-util": "^5.35.0", + "stylis": "^4.3.4" + }, + "peerDependencies": { + "react": ">=16.0.0", + "react-dom": ">=16.0.0" + } + }, + "node_modules/@ant-design/cssinjs-utils": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@ant-design/cssinjs-utils/-/cssinjs-utils-1.1.3.tgz", + "integrity": "sha512-nOoQMLW1l+xR1Co8NFVYiP8pZp3VjIIzqV6D6ShYF2ljtdwWJn5WSsH+7kvCktXL/yhEtWURKOfH5Xz/gzlwsg==", + "license": "MIT", + "dependencies": { + "@ant-design/cssinjs": "^1.21.0", + "@babel/runtime": "^7.23.2", + "rc-util": "^5.38.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/@ant-design/fast-color": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@ant-design/fast-color/-/fast-color-2.0.6.tgz", + "integrity": "sha512-y2217gk4NqL35giHl72o6Zzqji9O7vHh9YmhUVkPtAOpoTCH4uWxo/pr4VE8t0+ChEPs0qo4eJRC5Q1eXWo3vA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.24.7" + }, + "engines": { + "node": ">=8.x" + } + }, + "node_modules/@ant-design/icons": { + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-5.6.1.tgz", + "integrity": "sha512-0/xS39c91WjPAZOWsvi1//zjx6kAp4kxWwctR6kuU6p133w8RU0D2dSCvZC19uQyharg/sAvYxGYWl01BbZZfg==", + "license": "MIT", + "dependencies": { + "@ant-design/colors": "^7.0.0", + "@ant-design/icons-svg": "^4.4.0", + "@babel/runtime": "^7.24.8", + "classnames": "^2.2.6", + "rc-util": "^5.31.1" + }, + "engines": { + "node": ">=8" + }, + "peerDependencies": { + "react": ">=16.0.0", + "react-dom": ">=16.0.0" + } + }, + "node_modules/@ant-design/icons-svg": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz", + "integrity": "sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==", + "license": "MIT" + }, + "node_modules/@ant-design/react-slick": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@ant-design/react-slick/-/react-slick-1.1.2.tgz", + "integrity": "sha512-EzlvzE6xQUBrZuuhSAFTdsr4P2bBBHGZwKFemEfq8gIGyIQCxalYfZW/T2ORbtQx5rU69o+WycP3exY/7T1hGA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.4", + "classnames": "^2.2.5", + "json2mq": "^0.2.0", + "resize-observer-polyfill": "^1.5.1", + "throttle-debounce": "^5.0.0" + }, + "peerDependencies": { + "react": ">=16.9.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz", + "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz", + "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz", + "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", + "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", + "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/runtime": { + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz", + "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emotion/hash": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", + "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", + "license": "MIT" + }, + "node_modules/@emotion/unitless": { + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", + "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==", + "license": "MIT" + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", + "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", + "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", + "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", + "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", + "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", + "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", + "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", + "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", + "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", + "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", + "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", + "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", + "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", + "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", + "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", + "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", + "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", + "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", + "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", + "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", + "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", + "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", + "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", + "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", + "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", + "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@rc-component/async-validator": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@rc-component/async-validator/-/async-validator-5.1.0.tgz", + "integrity": "sha512-n4HcR5siNUXRX23nDizbZBQPO0ZM/5oTtmKZ6/eqL0L2bo747cklFdZGRN2f+c9qWGICwDzrhW0H7tE9PptdcA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.24.4" + }, + "engines": { + "node": ">=14.x" + } + }, + "node_modules/@rc-component/color-picker": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@rc-component/color-picker/-/color-picker-2.0.1.tgz", + "integrity": "sha512-WcZYwAThV/b2GISQ8F+7650r5ZZJ043E57aVBFkQ+kSY4C6wdofXgB0hBx+GPGpIU0Z81eETNoDUJMr7oy/P8Q==", + "license": "MIT", + "dependencies": { + "@ant-design/fast-color": "^2.0.6", + "@babel/runtime": "^7.23.6", + "classnames": "^2.2.6", + "rc-util": "^5.38.1" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/@rc-component/context": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@rc-component/context/-/context-1.4.0.tgz", + "integrity": "sha512-kFcNxg9oLRMoL3qki0OMxK+7g5mypjgaaJp/pkOis/6rVxma9nJBF/8kCIuTYHUQNr0ii7MxqE33wirPZLJQ2w==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "rc-util": "^5.27.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/@rc-component/mini-decimal": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@rc-component/mini-decimal/-/mini-decimal-1.1.3.tgz", + "integrity": "sha512-bk/FJ09fLf+NLODMAFll6CfYrHPBioTedhW6lxDBuuWucJEqFUd4l/D/5JgIi3dina6sYahB8iuPAZTNz2pMxw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.0" + }, + "engines": { + "node": ">=8.x" + } + }, + "node_modules/@rc-component/mutate-observer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rc-component/mutate-observer/-/mutate-observer-1.1.0.tgz", + "integrity": "sha512-QjrOsDXQusNwGZPf4/qRQasg7UFEj06XiCJ8iuiq/Io7CrHrgVi6Uuetw60WAMG1799v+aM8kyc+1L/GBbHSlw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.0", + "classnames": "^2.3.2", + "rc-util": "^5.24.4" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/@rc-component/portal": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@rc-component/portal/-/portal-1.1.2.tgz", + "integrity": "sha512-6f813C0IsasTZms08kfA8kPAGxbbkYToa8ALaiDIGGECU4i9hj8Plgbx0sNJDrey3EtHO30hmdaxtT0138xZcg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.0", + "classnames": "^2.3.2", + "rc-util": "^5.24.4" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/@rc-component/qrcode": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@rc-component/qrcode/-/qrcode-1.1.1.tgz", + "integrity": "sha512-LfLGNymzKdUPjXUbRP+xOhIWY4jQ+YMj5MmWAcgcAq1Ij8XP7tRmAXqyuv96XvLUBE/5cA8hLFl9eO1JQMujrA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.24.7" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/@rc-component/tour": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/@rc-component/tour/-/tour-1.15.1.tgz", + "integrity": "sha512-Tr2t7J1DKZUpfJuDZWHxyxWpfmj8EZrqSgyMZ+BCdvKZ6r1UDsfU46M/iWAAFBy961Ssfom2kv5f3UcjIL2CmQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.0", + "@rc-component/portal": "^1.0.0-9", + "@rc-component/trigger": "^2.0.0", + "classnames": "^2.3.2", + "rc-util": "^5.24.4" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/@rc-component/trigger": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@rc-component/trigger/-/trigger-2.3.1.tgz", + "integrity": "sha512-ORENF39PeXTzM+gQEshuk460Z8N4+6DkjpxlpE7Q3gYy1iBpLrx0FOJz3h62ryrJZ/3zCAUIkT1Pb/8hHWpb3A==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.23.2", + "@rc-component/portal": "^1.1.0", + "classnames": "^2.3.2", + "rc-motion": "^2.0.0", + "rc-resize-observer": "^1.3.1", + "rc-util": "^5.44.0" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz", + "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.3.tgz", + "integrity": "sha512-x35CNW/ANXG3hE/EZpRU8MXX1JDN86hBb2wMGAtltkz7pc6cxgjpy1OMMfDosOQ+2hWqIkag/fGok1Yady9nGw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.3.tgz", + "integrity": "sha512-xw3xtkDApIOGayehp2+Rz4zimfkaX65r4t47iy+ymQB2G4iJCBBfj0ogVg5jpvjpn8UWn/+q9tprxleYeNp3Hw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.3.tgz", + "integrity": "sha512-vo6Y5Qfpx7/5EaamIwi0WqW2+zfiusVihKatLvtN1VFVy3D13uERk/6gZLU1UiHRL6fDXqj/ELIeVRGnvcTE1g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.3.tgz", + "integrity": "sha512-D+0QGcZhBzTN82weOnsSlY7V7+RMmPuF1CkbxyMAGE8+ZHeUjyb76ZiWmBlCu//AQQONvxcqRbwZTajZKqjuOw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.3.tgz", + "integrity": "sha512-6HnvHCT7fDyj6R0Ph7A6x8dQS/S38MClRWeDLqc0MdfWkxjiu1HSDYrdPhqSILzjTIC/pnXbbJbo+ft+gy/9hQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.3.tgz", + "integrity": "sha512-KHLgC3WKlUYW3ShFKnnosZDOJ0xjg9zp7au3sIm2bs/tGBeC2ipmvRh/N7JKi0t9Ue20C0dpEshi8WUubg+cnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.3.tgz", + "integrity": "sha512-DV6fJoxEYWJOvaZIsok7KrYl0tPvga5OZ2yvKHNNYyk/2roMLqQAbGhr78EQ5YhHpnhLKJD3S1WFusAkmUuV5g==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.3.tgz", + "integrity": "sha512-mQKoJAzvuOs6F+TZybQO4GOTSMUu7v0WdxEk24krQ/uUxXoPTtHjuaUuPmFhtBcM4K0ons8nrE3JyhTuCFtT/w==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.3.tgz", + "integrity": "sha512-Whjj2qoiJ6+OOJMGptTYazaJvjOJm+iKHpXQM1P3LzGjt7Ff++Tp7nH4N8J/BUA7R9IHfDyx4DJIflifwnbmIA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.3.tgz", + "integrity": "sha512-4YTNHKqGng5+yiZt3mg77nmyuCfmNfX4fPmyUapBcIk+BdwSwmCWGXOUxhXbBEkFHtoN5boLj/5NON+u5QC9tg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.3.tgz", + "integrity": "sha512-SU3kNlhkpI4UqlUc2VXPGK9o886ZsSeGfMAX2ba2b8DKmMXq4AL7KUrkSWVbb7koVqx41Yczx6dx5PNargIrEA==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.3.tgz", + "integrity": "sha512-6lDLl5h4TXpB1mTf2rQWnAk/LcXrx9vBfu/DT5TIPhvMhRWaZ5MxkIc8u4lJAmBo6klTe1ywXIUHFjylW505sg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.3.tgz", + "integrity": "sha512-BMo8bOw8evlup/8G+cj5xWtPyp93xPdyoSN16Zy90Q2QZ0ZYRhCt6ZJSwbrRzG9HApFabjwj2p25TUPDWrhzqQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.3.tgz", + "integrity": "sha512-E0L8X1dZN1/Rph+5VPF6Xj2G7JJvMACVXtamTJIDrVI44Y3K+G8gQaMEAavbqCGTa16InptiVrX6eM6pmJ+7qA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.3.tgz", + "integrity": "sha512-oZJ/WHaVfHUiRAtmTAeo3DcevNsVvH8mbvodjZy7D5QKvCefO371SiKRpxoDcCxB3PTRTLayWBkvmDQKTcX/sw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.3.tgz", + "integrity": "sha512-Dhbyh7j9FybM3YaTgaHmVALwA8AkUwTPccyCQ79TG9AJUsMQqgN1DDEZNr4+QUfwiWvLDumW5vdwzoeUF+TNxQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.3.tgz", + "integrity": "sha512-cJd1X5XhHHlltkaypz1UcWLA8AcoIi1aWhsvaWDskD1oz2eKCypnqvTQ8ykMNI0RSmm7NkTdSqSSD7zM0xa6Ig==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.3.tgz", + "integrity": "sha512-DAZDBHQfG2oQuhY7mc6I3/qB4LU2fQCjRvxbDwd/Jdvb9fypP4IJ4qmtu6lNjes6B531AI8cg1aKC2di97bUxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.3.tgz", + "integrity": "sha512-cRxsE8c13mZOh3vP+wLDxpQBRrOHDIGOWyDL93Sy0Ga8y515fBcC2pjUfFwUe5T7tqvTvWbCpg1URM/AXdWIXA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.3.tgz", + "integrity": "sha512-QaWcIgRxqEdQdhJqW4DJctsH6HCmo5vHxY0krHSX4jMtOqfzC+dqDGuHM87bu4H8JBeibWx7jFz+h6/4C8wA5Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.3.tgz", + "integrity": "sha512-AaXwSvUi3QIPtroAUw1t5yHGIyqKEXwH54WUocFolZhpGDruJcs8c+xPNDRn4XiQsS7MEwnYsHW2l0MBLDMkWg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.3.tgz", + "integrity": "sha512-65LAKM/bAWDqKNEelHlcHvm2V+Vfb8C6INFxQXRHCvaVN1rJfwr4NvdP4FyzUaLqWfaCGaadf6UbTm8xJeYfEg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.3.tgz", + "integrity": "sha512-EEM2gyhBF5MFnI6vMKdX1LAosE627RGBzIoGMdLloPZkXrUN0Ckqgr2Qi8+J3zip/8NVVro3/FjB+tjhZUgUHA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.3.tgz", + "integrity": "sha512-E5Eb5H/DpxaoXH++Qkv28RcUJboMopmdDUALBczvHMf7hNIxaDZqwY5lK12UK1BHacSmvupoEWGu+n993Z0y1A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.3.tgz", + "integrity": "sha512-hPt/bgL5cE+Qp+/TPHBqptcAgPzgj46mPcg/16zNUmbQk0j+mOEQV/+Lqu8QRtDV3Ek95Q6FeFITpuhl6OTsAA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/prop-types": { + "version": "15.7.15", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", + "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.3.28", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.28.tgz", + "integrity": "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.7", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", + "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^18.0.0" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz", + "integrity": "sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.29.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-rc.3", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.18.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/antd": { + "version": "5.29.3", + "resolved": "https://registry.npmjs.org/antd/-/antd-5.29.3.tgz", + "integrity": "sha512-3DdbGCa9tWAJGcCJ6rzR8EJFsv2CtyEbkVabZE14pfgUHfCicWCj0/QzQVLDYg8CPfQk9BH7fHCoTXHTy7MP/A==", + "license": "MIT", + "dependencies": { + "@ant-design/colors": "^7.2.1", + "@ant-design/cssinjs": "^1.23.0", + "@ant-design/cssinjs-utils": "^1.1.3", + "@ant-design/fast-color": "^2.0.6", + "@ant-design/icons": "^5.6.1", + "@ant-design/react-slick": "~1.1.2", + "@babel/runtime": "^7.26.0", + "@rc-component/color-picker": "~2.0.1", + "@rc-component/mutate-observer": "^1.1.0", + "@rc-component/qrcode": "~1.1.0", + "@rc-component/tour": "~1.15.1", + "@rc-component/trigger": "^2.3.0", + "classnames": "^2.5.1", + "copy-to-clipboard": "^3.3.3", + "dayjs": "^1.11.11", + "rc-cascader": "~3.34.0", + "rc-checkbox": "~3.5.0", + "rc-collapse": "~3.9.0", + "rc-dialog": "~9.6.0", + "rc-drawer": "~7.3.0", + "rc-dropdown": "~4.2.1", + "rc-field-form": "~2.7.1", + "rc-image": "~7.12.0", + "rc-input": "~1.8.0", + "rc-input-number": "~9.5.0", + "rc-mentions": "~2.20.0", + "rc-menu": "~9.16.1", + "rc-motion": "^2.9.5", + "rc-notification": "~5.6.4", + "rc-pagination": "~5.1.0", + "rc-picker": "~4.11.3", + "rc-progress": "~4.0.0", + "rc-rate": "~2.13.1", + "rc-resize-observer": "^1.4.3", + "rc-segmented": "~2.7.0", + "rc-select": "~14.16.8", + "rc-slider": "~11.1.9", + "rc-steps": "~6.0.1", + "rc-switch": "~4.1.0", + "rc-table": "~7.54.0", + "rc-tabs": "~15.7.0", + "rc-textarea": "~1.10.2", + "rc-tooltip": "~6.4.0", + "rc-tree": "~5.13.1", + "rc-tree-select": "~5.27.0", + "rc-upload": "~4.11.0", + "rc-util": "^5.44.4", + "scroll-into-view-if-needed": "^3.1.0", + "throttle-debounce": "^5.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/ant-design" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.29", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.29.tgz", + "integrity": "sha512-Asa2krT+XTPZINCS+2QcyS8WTkObE77RwkydwF7h6DmnKqbvlalz93m/dnphUyCa6SWSP51VgtEUf2FN+gelFQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/browserslist": { + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001792", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001792.tgz", + "integrity": "sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/classnames": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", + "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==", + "license": "MIT" + }, + "node_modules/compute-scroll-into-view": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.1.1.tgz", + "integrity": "sha512-VRhuHOLoKYOy4UbilLbUzbYg93XLjv2PncJC50EuTWPA3gaja1UjBsUP/D/9/juV3vQFr6XBEzn9KCAHdUvOHw==", + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/copy-to-clipboard": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz", + "integrity": "sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==", + "license": "MIT", + "dependencies": { + "toggle-selection": "^1.0.6" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/dayjs": { + "version": "1.11.20", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.20.tgz", + "integrity": "sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ==", + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.353", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.353.tgz", + "integrity": "sha512-kOrWphBi8TOZyiJZqsgqIle0lw+tzmnQK83pV9dZUd01Nm2POECSyFQMAuarzZdYqQW7FH9RaYOuaRo3h+bQ3w==", + "dev": true, + "license": "ISC" + }, + "node_modules/esbuild": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", + "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.7", + "@esbuild/android-arm": "0.27.7", + "@esbuild/android-arm64": "0.27.7", + "@esbuild/android-x64": "0.27.7", + "@esbuild/darwin-arm64": "0.27.7", + "@esbuild/darwin-x64": "0.27.7", + "@esbuild/freebsd-arm64": "0.27.7", + "@esbuild/freebsd-x64": "0.27.7", + "@esbuild/linux-arm": "0.27.7", + "@esbuild/linux-arm64": "0.27.7", + "@esbuild/linux-ia32": "0.27.7", + "@esbuild/linux-loong64": "0.27.7", + "@esbuild/linux-mips64el": "0.27.7", + "@esbuild/linux-ppc64": "0.27.7", + "@esbuild/linux-riscv64": "0.27.7", + "@esbuild/linux-s390x": "0.27.7", + "@esbuild/linux-x64": "0.27.7", + "@esbuild/netbsd-arm64": "0.27.7", + "@esbuild/netbsd-x64": "0.27.7", + "@esbuild/openbsd-arm64": "0.27.7", + "@esbuild/openbsd-x64": "0.27.7", + "@esbuild/openharmony-arm64": "0.27.7", + "@esbuild/sunos-x64": "0.27.7", + "@esbuild/win32-arm64": "0.27.7", + "@esbuild/win32-ia32": "0.27.7", + "@esbuild/win32-x64": "0.27.7" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json2mq": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz", + "integrity": "sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==", + "license": "MIT", + "dependencies": { + "string-convert": "^0.2.0" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/node-releases": { + "version": "2.0.44", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.44.tgz", + "integrity": "sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.14", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz", + "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/rc-cascader": { + "version": "3.34.0", + "resolved": "https://registry.npmjs.org/rc-cascader/-/rc-cascader-3.34.0.tgz", + "integrity": "sha512-KpXypcvju9ptjW9FaN2NFcA2QH9E9LHKq169Y0eWtH4e/wHQ5Wh5qZakAgvb8EKZ736WZ3B0zLLOBsrsja5Dag==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.25.7", + "classnames": "^2.3.1", + "rc-select": "~14.16.2", + "rc-tree": "~5.13.0", + "rc-util": "^5.43.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-checkbox": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/rc-checkbox/-/rc-checkbox-3.5.0.tgz", + "integrity": "sha512-aOAQc3E98HteIIsSqm6Xk2FPKIER6+5vyEFMZfo73TqM+VVAIqOkHoPjgKLqSNtVLWScoaM7vY2ZrGEheI79yg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "classnames": "^2.3.2", + "rc-util": "^5.25.2" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-collapse": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/rc-collapse/-/rc-collapse-3.9.0.tgz", + "integrity": "sha512-swDdz4QZ4dFTo4RAUMLL50qP0EY62N2kvmk2We5xYdRwcRn8WcYtuetCJpwpaCbUfUt5+huLpVxhvmnK+PHrkA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "classnames": "2.x", + "rc-motion": "^2.3.4", + "rc-util": "^5.27.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-dialog": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/rc-dialog/-/rc-dialog-9.6.0.tgz", + "integrity": "sha512-ApoVi9Z8PaCQg6FsUzS8yvBEQy0ZL2PkuvAgrmohPkN3okps5WZ5WQWPc1RNuiOKaAYv8B97ACdsFU5LizzCqg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "@rc-component/portal": "^1.0.0-8", + "classnames": "^2.2.6", + "rc-motion": "^2.3.0", + "rc-util": "^5.21.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-drawer": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/rc-drawer/-/rc-drawer-7.3.0.tgz", + "integrity": "sha512-DX6CIgiBWNpJIMGFO8BAISFkxiuKitoizooj4BDyee8/SnBn0zwO2FHrNDpqqepj0E/TFTDpmEBCyFuTgC7MOg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.23.9", + "@rc-component/portal": "^1.1.1", + "classnames": "^2.2.6", + "rc-motion": "^2.6.1", + "rc-util": "^5.38.1" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-dropdown": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/rc-dropdown/-/rc-dropdown-4.2.1.tgz", + "integrity": "sha512-YDAlXsPv3I1n42dv1JpdM7wJ+gSUBfeyPK59ZpBD9jQhK9jVuxpjj3NmWQHOBceA1zEPVX84T2wbdb2SD0UjmA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@rc-component/trigger": "^2.0.0", + "classnames": "^2.2.6", + "rc-util": "^5.44.1" + }, + "peerDependencies": { + "react": ">=16.11.0", + "react-dom": ">=16.11.0" + } + }, + "node_modules/rc-field-form": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rc-field-form/-/rc-field-form-2.7.1.tgz", + "integrity": "sha512-vKeSifSJ6HoLaAB+B8aq/Qgm8a3dyxROzCtKNCsBQgiverpc4kWDQihoUwzUj+zNWJOykwSY4dNX3QrGwtVb9A==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.0", + "@rc-component/async-validator": "^5.0.3", + "rc-util": "^5.32.2" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-image": { + "version": "7.12.0", + "resolved": "https://registry.npmjs.org/rc-image/-/rc-image-7.12.0.tgz", + "integrity": "sha512-cZ3HTyyckPnNnUb9/DRqduqzLfrQRyi+CdHjdqgsyDpI3Ln5UX1kXnAhPBSJj9pVRzwRFgqkN7p9b6HBDjmu/Q==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.11.2", + "@rc-component/portal": "^1.0.2", + "classnames": "^2.2.6", + "rc-dialog": "~9.6.0", + "rc-motion": "^2.6.2", + "rc-util": "^5.34.1" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-input": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/rc-input/-/rc-input-1.8.0.tgz", + "integrity": "sha512-KXvaTbX+7ha8a/k+eg6SYRVERK0NddX8QX7a7AnRvUa/rEH0CNMlpcBzBkhI0wp2C8C4HlMoYl8TImSN+fuHKA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.11.1", + "classnames": "^2.2.1", + "rc-util": "^5.18.1" + }, + "peerDependencies": { + "react": ">=16.0.0", + "react-dom": ">=16.0.0" + } + }, + "node_modules/rc-input-number": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/rc-input-number/-/rc-input-number-9.5.0.tgz", + "integrity": "sha512-bKaEvB5tHebUURAEXw35LDcnRZLq3x1k7GxfAqBMzmpHkDGzjAtnUL8y4y5N15rIFIg5IJgwr211jInl3cipag==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "@rc-component/mini-decimal": "^1.0.1", + "classnames": "^2.2.5", + "rc-input": "~1.8.0", + "rc-util": "^5.40.1" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-mentions": { + "version": "2.20.0", + "resolved": "https://registry.npmjs.org/rc-mentions/-/rc-mentions-2.20.0.tgz", + "integrity": "sha512-w8HCMZEh3f0nR8ZEd466ATqmXFCMGMN5UFCzEUL0bM/nGw/wOS2GgRzKBcm19K++jDyuWCOJOdgcKGXU3fXfbQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.22.5", + "@rc-component/trigger": "^2.0.0", + "classnames": "^2.2.6", + "rc-input": "~1.8.0", + "rc-menu": "~9.16.0", + "rc-textarea": "~1.10.0", + "rc-util": "^5.34.1" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-menu": { + "version": "9.16.1", + "resolved": "https://registry.npmjs.org/rc-menu/-/rc-menu-9.16.1.tgz", + "integrity": "sha512-ghHx6/6Dvp+fw8CJhDUHFHDJ84hJE3BXNCzSgLdmNiFErWSOaZNsihDAsKq9ByTALo/xkNIwtDFGIl6r+RPXBg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "@rc-component/trigger": "^2.0.0", + "classnames": "2.x", + "rc-motion": "^2.4.3", + "rc-overflow": "^1.3.1", + "rc-util": "^5.27.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-motion": { + "version": "2.9.5", + "resolved": "https://registry.npmjs.org/rc-motion/-/rc-motion-2.9.5.tgz", + "integrity": "sha512-w+XTUrfh7ArbYEd2582uDrEhmBHwK1ZENJiSJVb7uRxdE7qJSYjbO2eksRXmndqyKqKoYPc9ClpPh5242mV1vA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.11.1", + "classnames": "^2.2.1", + "rc-util": "^5.44.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-notification": { + "version": "5.6.4", + "resolved": "https://registry.npmjs.org/rc-notification/-/rc-notification-5.6.4.tgz", + "integrity": "sha512-KcS4O6B4qzM3KH7lkwOB7ooLPZ4b6J+VMmQgT51VZCeEcmghdeR4IrMcFq0LG+RPdnbe/ArT086tGM8Snimgiw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "classnames": "2.x", + "rc-motion": "^2.9.0", + "rc-util": "^5.20.1" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-overflow": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/rc-overflow/-/rc-overflow-1.5.0.tgz", + "integrity": "sha512-Lm/v9h0LymeUYJf0x39OveU52InkdRXqnn2aYXfWmo8WdOonIKB2kfau+GF0fWq6jPgtdO9yMqveGcK6aIhJmg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.11.1", + "classnames": "^2.2.1", + "rc-resize-observer": "^1.0.0", + "rc-util": "^5.37.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-pagination": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/rc-pagination/-/rc-pagination-5.1.0.tgz", + "integrity": "sha512-8416Yip/+eclTFdHXLKTxZvn70duYVGTvUUWbckCCZoIl3jagqke3GLsFrMs0bsQBikiYpZLD9206Ej4SOdOXQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "classnames": "^2.3.2", + "rc-util": "^5.38.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-picker": { + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/rc-picker/-/rc-picker-4.11.3.tgz", + "integrity": "sha512-MJ5teb7FlNE0NFHTncxXQ62Y5lytq6sh5nUw0iH8OkHL/TjARSEvSHpr940pWgjGANpjCwyMdvsEV55l5tYNSg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.24.7", + "@rc-component/trigger": "^2.0.0", + "classnames": "^2.2.1", + "rc-overflow": "^1.3.2", + "rc-resize-observer": "^1.4.0", + "rc-util": "^5.43.0" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "date-fns": ">= 2.x", + "dayjs": ">= 1.x", + "luxon": ">= 3.x", + "moment": ">= 2.x", + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + }, + "peerDependenciesMeta": { + "date-fns": { + "optional": true + }, + "dayjs": { + "optional": true + }, + "luxon": { + "optional": true + }, + "moment": { + "optional": true + } + } + }, + "node_modules/rc-progress": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/rc-progress/-/rc-progress-4.0.0.tgz", + "integrity": "sha512-oofVMMafOCokIUIBnZLNcOZFsABaUw8PPrf1/y0ZBvKZNpOiu5h4AO9vv11Sw0p4Hb3D0yGWuEattcQGtNJ/aw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "classnames": "^2.2.6", + "rc-util": "^5.16.1" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-rate": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/rc-rate/-/rc-rate-2.13.1.tgz", + "integrity": "sha512-QUhQ9ivQ8Gy7mtMZPAjLbxBt5y9GRp65VcUyGUMF3N3fhiftivPHdpuDIaWIMOTEprAjZPC08bls1dQB+I1F2Q==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "classnames": "^2.2.5", + "rc-util": "^5.0.1" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-resize-observer": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/rc-resize-observer/-/rc-resize-observer-1.4.3.tgz", + "integrity": "sha512-YZLjUbyIWox8E9i9C3Tm7ia+W7euPItNWSPX5sCcQTYbnwDb5uNpnLHQCG1f22oZWUhLw4Mv2tFmeWe68CDQRQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.20.7", + "classnames": "^2.2.1", + "rc-util": "^5.44.1", + "resize-observer-polyfill": "^1.5.1" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-segmented": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rc-segmented/-/rc-segmented-2.7.1.tgz", + "integrity": "sha512-izj1Nw/Dw2Vb7EVr+D/E9lUTkBe+kKC+SAFSU9zqr7WV2W5Ktaa9Gc7cB2jTqgk8GROJayltaec+DBlYKc6d+g==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.11.1", + "classnames": "^2.2.1", + "rc-motion": "^2.4.4", + "rc-util": "^5.17.0" + }, + "peerDependencies": { + "react": ">=16.0.0", + "react-dom": ">=16.0.0" + } + }, + "node_modules/rc-select": { + "version": "14.16.8", + "resolved": "https://registry.npmjs.org/rc-select/-/rc-select-14.16.8.tgz", + "integrity": "sha512-NOV5BZa1wZrsdkKaiK7LHRuo5ZjZYMDxPP6/1+09+FB4KoNi8jcG1ZqLE3AVCxEsYMBe65OBx71wFoHRTP3LRg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "@rc-component/trigger": "^2.1.1", + "classnames": "2.x", + "rc-motion": "^2.0.1", + "rc-overflow": "^1.3.1", + "rc-util": "^5.16.1", + "rc-virtual-list": "^3.5.2" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": "*", + "react-dom": "*" + } + }, + "node_modules/rc-slider": { + "version": "11.1.9", + "resolved": "https://registry.npmjs.org/rc-slider/-/rc-slider-11.1.9.tgz", + "integrity": "sha512-h8IknhzSh3FEM9u8ivkskh+Ef4Yo4JRIY2nj7MrH6GQmrwV6mcpJf5/4KgH5JaVI1H3E52yCdpOlVyGZIeph5A==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "classnames": "^2.2.5", + "rc-util": "^5.36.0" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-steps": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/rc-steps/-/rc-steps-6.0.1.tgz", + "integrity": "sha512-lKHL+Sny0SeHkQKKDJlAjV5oZ8DwCdS2hFhAkIjuQt1/pB81M0cA0ErVFdHq9+jmPmFw1vJB2F5NBzFXLJxV+g==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.16.7", + "classnames": "^2.2.3", + "rc-util": "^5.16.1" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-switch": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/rc-switch/-/rc-switch-4.1.0.tgz", + "integrity": "sha512-TI8ufP2Az9oEbvyCeVE4+90PDSljGyuwix3fV58p7HV2o4wBnVToEyomJRVyTaZeqNPAp+vqeo4Wnj5u0ZZQBg==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "classnames": "^2.2.1", + "rc-util": "^5.30.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-table": { + "version": "7.54.0", + "resolved": "https://registry.npmjs.org/rc-table/-/rc-table-7.54.0.tgz", + "integrity": "sha512-/wDTkki6wBTjwylwAGjpLKYklKo9YgjZwAU77+7ME5mBoS32Q4nAwoqhA2lSge6fobLW3Tap6uc5xfwaL2p0Sw==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "@rc-component/context": "^1.4.0", + "classnames": "^2.2.5", + "rc-resize-observer": "^1.1.0", + "rc-util": "^5.44.3", + "rc-virtual-list": "^3.14.2" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-tabs": { + "version": "15.7.0", + "resolved": "https://registry.npmjs.org/rc-tabs/-/rc-tabs-15.7.0.tgz", + "integrity": "sha512-ZepiE+6fmozYdWf/9gVp7k56PKHB1YYoDsKeQA1CBlJ/POIhjkcYiv0AGP0w2Jhzftd3AVvZP/K+V+Lpi2ankA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.11.2", + "classnames": "2.x", + "rc-dropdown": "~4.2.0", + "rc-menu": "~9.16.0", + "rc-motion": "^2.6.2", + "rc-resize-observer": "^1.0.0", + "rc-util": "^5.34.1" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-textarea": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/rc-textarea/-/rc-textarea-1.10.2.tgz", + "integrity": "sha512-HfaeXiaSlpiSp0I/pvWpecFEHpVysZ9tpDLNkxQbMvMz6gsr7aVZ7FpWP9kt4t7DB+jJXesYS0us1uPZnlRnwQ==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "classnames": "^2.2.1", + "rc-input": "~1.8.0", + "rc-resize-observer": "^1.0.0", + "rc-util": "^5.27.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-tooltip": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/rc-tooltip/-/rc-tooltip-6.4.0.tgz", + "integrity": "sha512-kqyivim5cp8I5RkHmpsp1Nn/Wk+1oeloMv9c7LXNgDxUpGm+RbXJGL+OPvDlcRnx9DBeOe4wyOIl4OKUERyH1g==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.11.2", + "@rc-component/trigger": "^2.0.0", + "classnames": "^2.3.1", + "rc-util": "^5.44.3" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-tree": { + "version": "5.13.1", + "resolved": "https://registry.npmjs.org/rc-tree/-/rc-tree-5.13.1.tgz", + "integrity": "sha512-FNhIefhftobCdUJshO7M8uZTA9F4OPGVXqGfZkkD/5soDeOhwO06T/aKTrg0WD8gRg/pyfq+ql3aMymLHCTC4A==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.10.1", + "classnames": "2.x", + "rc-motion": "^2.0.1", + "rc-util": "^5.16.1", + "rc-virtual-list": "^3.5.1" + }, + "engines": { + "node": ">=10.x" + }, + "peerDependencies": { + "react": "*", + "react-dom": "*" + } + }, + "node_modules/rc-tree-select": { + "version": "5.27.0", + "resolved": "https://registry.npmjs.org/rc-tree-select/-/rc-tree-select-5.27.0.tgz", + "integrity": "sha512-2qTBTzwIT7LRI1o7zLyrCzmo5tQanmyGbSaGTIf7sYimCklAToVVfpMC6OAldSKolcnjorBYPNSKQqJmN3TCww==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.25.7", + "classnames": "2.x", + "rc-select": "~14.16.2", + "rc-tree": "~5.13.0", + "rc-util": "^5.43.0" + }, + "peerDependencies": { + "react": "*", + "react-dom": "*" + } + }, + "node_modules/rc-upload": { + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/rc-upload/-/rc-upload-4.11.0.tgz", + "integrity": "sha512-ZUyT//2JAehfHzjWowqROcwYJKnZkIUGWaTE/VogVrepSl7AFNbQf4+zGfX4zl9Vrj/Jm8scLO0R6UlPDKK4wA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.3", + "classnames": "^2.2.5", + "rc-util": "^5.2.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-util": { + "version": "5.44.4", + "resolved": "https://registry.npmjs.org/rc-util/-/rc-util-5.44.4.tgz", + "integrity": "sha512-resueRJzmHG9Q6rI/DfK6Kdv9/Lfls05vzMs1Sk3M2P+3cJa+MakaZyWY8IPfehVuhPJFKrIY1IK4GqbiaiY5w==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.3", + "react-is": "^18.2.0" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/rc-virtual-list": { + "version": "3.19.2", + "resolved": "https://registry.npmjs.org/rc-virtual-list/-/rc-virtual-list-3.19.2.tgz", + "integrity": "sha512-Ys6NcjwGkuwkeaWBDqfI3xWuZ7rDiQXlH1o2zLfFzATfEgXcqpk8CkgMfbJD81McqjcJVez25a3kPxCR807evA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.20.0", + "classnames": "^2.2.6", + "rc-resize-observer": "^1.0.0", + "rc-util": "^5.36.0" + }, + "engines": { + "node": ">=8.x" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" + } + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "license": "MIT" + }, + "node_modules/react-refresh": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", + "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resize-observer-polyfill": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==", + "license": "MIT" + }, + "node_modules/rollup": { + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.3.tgz", + "integrity": "sha512-pAQK9HalE84QSm4Po3EmWIZPd3FnjkShVkiMlz1iligWYkWQ7wHYd1PF/T7QZ5TVSD6uSTon5gBVMSM4JfBV+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.60.3", + "@rollup/rollup-android-arm64": "4.60.3", + "@rollup/rollup-darwin-arm64": "4.60.3", + "@rollup/rollup-darwin-x64": "4.60.3", + "@rollup/rollup-freebsd-arm64": "4.60.3", + "@rollup/rollup-freebsd-x64": "4.60.3", + "@rollup/rollup-linux-arm-gnueabihf": "4.60.3", + "@rollup/rollup-linux-arm-musleabihf": "4.60.3", + "@rollup/rollup-linux-arm64-gnu": "4.60.3", + "@rollup/rollup-linux-arm64-musl": "4.60.3", + "@rollup/rollup-linux-loong64-gnu": "4.60.3", + "@rollup/rollup-linux-loong64-musl": "4.60.3", + "@rollup/rollup-linux-ppc64-gnu": "4.60.3", + "@rollup/rollup-linux-ppc64-musl": "4.60.3", + "@rollup/rollup-linux-riscv64-gnu": "4.60.3", + "@rollup/rollup-linux-riscv64-musl": "4.60.3", + "@rollup/rollup-linux-s390x-gnu": "4.60.3", + "@rollup/rollup-linux-x64-gnu": "4.60.3", + "@rollup/rollup-linux-x64-musl": "4.60.3", + "@rollup/rollup-openbsd-x64": "4.60.3", + "@rollup/rollup-openharmony-arm64": "4.60.3", + "@rollup/rollup-win32-arm64-msvc": "4.60.3", + "@rollup/rollup-win32-ia32-msvc": "4.60.3", + "@rollup/rollup-win32-x64-gnu": "4.60.3", + "@rollup/rollup-win32-x64-msvc": "4.60.3", + "fsevents": "~2.3.2" + } + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/scroll-into-view-if-needed": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/scroll-into-view-if-needed/-/scroll-into-view-if-needed-3.1.0.tgz", + "integrity": "sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==", + "license": "MIT", + "dependencies": { + "compute-scroll-into-view": "^3.0.2" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-convert": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz", + "integrity": "sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A==", + "license": "MIT" + }, + "node_modules/stylis": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.4.0.tgz", + "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==", + "license": "MIT" + }, + "node_modules/throttle-debounce": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-5.0.2.tgz", + "integrity": "sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==", + "license": "MIT", + "engines": { + "node": ">=12.22" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", + "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/toggle-selection": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz", + "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==", + "license": "MIT" + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/vite": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.3.tgz", + "integrity": "sha512-/4XH147Ui7OGTjg3HbdWe5arnZQSbfuRzdr9Ec7TQi5I7R+ir0Rlc9GIvD4v0XZurELqA035KVXJXpR61xhiTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + } + } +} diff --git a/frontend-v2/package.json b/frontend-v2/package.json new file mode 100644 index 0000000..5cc222e --- /dev/null +++ b/frontend-v2/package.json @@ -0,0 +1,23 @@ +{ + "name": "docsearch-v2-frontend", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "preview": "vite preview" + }, + "dependencies": { + "antd": "^5.27.6", + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "devDependencies": { + "@types/react": "^18.3.23", + "@types/react-dom": "^18.3.7", + "@vitejs/plugin-react": "^5.1.0", + "typescript": "^5.9.3", + "vite": "^7.2.1" + } +} diff --git a/frontend-v2/src/app/App.tsx b/frontend-v2/src/app/App.tsx new file mode 100644 index 0000000..d82d347 --- /dev/null +++ b/frontend-v2/src/app/App.tsx @@ -0,0 +1,64 @@ +import { Card, Col, Layout, Row, Space, Tag, Typography } from "antd"; + +const { Content, Header } = Layout; +const { Paragraph, Title } = Typography; + +const panels = [ + { + title: "Upload", + description: "Document ingestion workflow will land here.", + }, + { + title: "Search", + description: "Retrieval and ranking results surface will live here.", + }, + { + title: "Chat", + description: "Cited RAG responses will be shown here.", + }, +]; + +export default function App() { + return ( + +
+ + + DocSearch AI V2 + + + On-premise document search and RAG shell + + +
+ + + + React + TypeScript + Vite + Ant Design + + + {panels.map((panel) => ( + + + + {panel.description} + + + + ))} + + + +
+ ); +} diff --git a/frontend-v2/src/main.tsx b/frontend-v2/src/main.tsx new file mode 100644 index 0000000..7345980 --- /dev/null +++ b/frontend-v2/src/main.tsx @@ -0,0 +1,11 @@ +import React from "react"; +import ReactDOM from "react-dom/client"; + +import App from "./app/App"; +import "./styles.css"; + +ReactDOM.createRoot(document.getElementById("root")!).render( + + + , +); diff --git a/frontend-v2/src/styles.css b/frontend-v2/src/styles.css new file mode 100644 index 0000000..51677c9 --- /dev/null +++ b/frontend-v2/src/styles.css @@ -0,0 +1,13 @@ +:root { + font-family: Inter, "Segoe UI", sans-serif; + color: #111827; + background: #f5f7fb; +} + +* { + box-sizing: border-box; +} + +body { + margin: 0; +} diff --git a/frontend-v2/tsconfig.json b/frontend-v2/tsconfig.json new file mode 100644 index 0000000..5b4f50b --- /dev/null +++ b/frontend-v2/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "allowJs": false, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "ESNext", + "moduleResolution": "Node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx" + }, + "include": ["src"], + "references": [{ "path": "./tsconfig.node.json" }] +} diff --git a/frontend-v2/tsconfig.node.json b/frontend-v2/tsconfig.node.json new file mode 100644 index 0000000..65dbdb9 --- /dev/null +++ b/frontend-v2/tsconfig.node.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "composite": true, + "module": "ESNext", + "moduleResolution": "Node" + }, + "include": ["vite.config.ts"] +} diff --git a/frontend-v2/vite.config.ts b/frontend-v2/vite.config.ts new file mode 100644 index 0000000..43a4002 --- /dev/null +++ b/frontend-v2/vite.config.ts @@ -0,0 +1,9 @@ +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; + +export default defineConfig({ + plugins: [react()], + server: { + port: 5173, + }, +}); From 0528f8a6ccb15185fd3c7dfd431dd3fe51c83a3f Mon Sep 17 00:00:00 2001 From: dev-burnern <200775118+dev-burnern@users.noreply.github.com> Date: Tue, 12 May 2026 15:50:41 +0900 Subject: [PATCH 04/50] chore(compose): add v2 compose skeleton --- infra/compose/docker-compose.v2.yml | 54 +++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 infra/compose/docker-compose.v2.yml diff --git a/infra/compose/docker-compose.v2.yml b/infra/compose/docker-compose.v2.yml new file mode 100644 index 0000000..d486c2a --- /dev/null +++ b/infra/compose/docker-compose.v2.yml @@ -0,0 +1,54 @@ +services: + frontend-v2: + build: + context: ../../frontend-v2 + dockerfile: Dockerfile + ports: + - "5173:5173" + + api-v2: + build: + context: ../../backend + dockerfile: Dockerfile + ports: + - "8001:8000" + depends_on: + - postgres-v2 + - redis-v2 + - qdrant-v2 + - minio-v2 + + worker-v2: + build: + context: ../../backend + dockerfile: Dockerfile + depends_on: + - api-v2 + - redis-v2 + + postgres-v2: + image: postgres:16-alpine + ports: + - "5433:5432" + + redis-v2: + image: redis:7-alpine + ports: + - "6380:6379" + + qdrant-v2: + image: qdrant/qdrant:v1.12.6 + ports: + - "6433:6333" + + minio-v2: + image: minio/minio:latest + command: server /data --console-address ":9001" + ports: + - "9100:9000" + - "9101:9001" + + vllm-v2: + image: vllm/vllm-openai:latest + ports: + - "8100:8000" From 26ab1e356b5945bdac22eda7bb50e75b01c180a0 Mon Sep 17 00:00:00 2001 From: dev-burnern <200775118+dev-burnern@users.noreply.github.com> Date: Tue, 12 May 2026 18:25:46 +0900 Subject: [PATCH 05/50] chore(gateway): add nginx gateway scaffold --- infra/compose/docker-compose.v2.yml | 10 +++++++++ infra/nginx/default.v2.conf | 32 +++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 infra/nginx/default.v2.conf diff --git a/infra/compose/docker-compose.v2.yml b/infra/compose/docker-compose.v2.yml index d486c2a..57f82ed 100644 --- a/infra/compose/docker-compose.v2.yml +++ b/infra/compose/docker-compose.v2.yml @@ -6,6 +6,16 @@ services: ports: - "5173:5173" + nginx-v2: + image: nginx:alpine + depends_on: + - frontend-v2 + - api-v2 + ports: + - "8080:80" + volumes: + - ../nginx/default.v2.conf:/etc/nginx/nginx.conf:ro + api-v2: build: context: ../../backend diff --git a/infra/nginx/default.v2.conf b/infra/nginx/default.v2.conf new file mode 100644 index 0000000..ef3e630 --- /dev/null +++ b/infra/nginx/default.v2.conf @@ -0,0 +1,32 @@ +events {} + +http { + upstream frontend_v2 { + server frontend-v2:5173; + } + + upstream api_v2 { + server api-v2:8000; + } + + server { + listen 80; + + location /api/ { + proxy_pass http://api_v2/; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location / { + proxy_pass http://frontend_v2/; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } + } +} From 903b6cf2ed8ecd6cf9f46925deb085eb5efeeda5 Mon Sep 17 00:00:00 2001 From: dev-burnern <200775118+dev-burnern@users.noreply.github.com> Date: Tue, 12 May 2026 18:26:01 +0900 Subject: [PATCH 06/50] chore(ci): add v2 github actions workflow --- .github/workflows/v2-ci.yml | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/v2-ci.yml diff --git a/.github/workflows/v2-ci.yml b/.github/workflows/v2-ci.yml new file mode 100644 index 0000000..ff2fe95 --- /dev/null +++ b/.github/workflows/v2-ci.yml @@ -0,0 +1,55 @@ +name: V2 CI + +on: + push: + branches: + - develop + - "feat/**" + - "fix/**" + - "chore/**" + pull_request: + branches: + - develop + +jobs: + backend: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install backend test dependencies + run: | + python -m pip install --upgrade pip + pip install fastapi httpx pytest uvicorn + + - name: Run backend bootstrap tests + run: python -m pytest backend/tests/test_bootstrap.py -q + + frontend: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "22" + cache: npm + cache-dependency-path: frontend-v2/package-lock.json + + - name: Install frontend dependencies + working-directory: frontend-v2 + run: npm ci + + - name: Build frontend shell + working-directory: frontend-v2 + run: npm run build From 6a0e723a9548c9c99c0789765b29b45699abefc8 Mon Sep 17 00:00:00 2001 From: burnern <200775118+dev-burnern@users.noreply.github.com> Date: Tue, 12 May 2026 19:09:45 +0900 Subject: [PATCH 07/50] docs: add v2 workflow and implementation roadmap (#1) * docs(workflow): add v2 branching strategy * docs(plan): add v2 implementation roadmap --- docs/development-workflow.md | 126 ++++++ ...-05-12-docsearch-v2-implementation-plan.md | 419 ++++++++++++++++++ 2 files changed, 545 insertions(+) create mode 100644 docs/development-workflow.md create mode 100644 docs/plans/2026-05-12-docsearch-v2-implementation-plan.md diff --git a/docs/development-workflow.md b/docs/development-workflow.md new file mode 100644 index 0000000..da2c4a7 --- /dev/null +++ b/docs/development-workflow.md @@ -0,0 +1,126 @@ +# DocSearch AI V2 Development Workflow + +## Branch Model + +- `main` + - v1 stable branch + - release-only branch + - direct commits are not allowed +- `develop` + - v2 integration branch + - every V2 feature branch starts from `develop` + - reviewed changes merge back into `develop` + +## Branch Naming + +Every working branch must use a type prefix. + +- `feat/-` +- `fix/-` +- `chore/-` +- `docs/-` +- `refactor/-` +- `test/-` + +Examples: + +- `feat/api-key-auth` +- `feat/document-ingestion` +- `feat/rag-retrieval` +- `fix/search-filter-bug` +- `chore/v2-workflow` + +## PR Rules + +- Every PR targets `develop` +- `main` only receives reviewed integration from `develop` +- One PR should contain one concern only +- Do not mix scaffold, feature logic, and cleanup in one PR unless they are inseparable +- Keep PRs small enough to review in one sitting + +Recommended PR size: + +- target under 400 changed lines when practical +- target under 10 files when practical +- split earlier if infra, schema, and API changes start mixing + +## Commit Rules + +Use conventional commit style: + +- `feat(scope): summary` +- `fix(scope): summary` +- `chore(scope): summary` +- `docs(scope): summary` +- `refactor(scope): summary` +- `test(scope): summary` + +Examples: + +- `chore(workflow): add v2 branch strategy` +- `feat(scaffold): add backend v2 app skeleton` +- `feat(auth): add API key middleware` +- `fix(search): handle empty rerank candidates` + +Each commit should do one thing: + +1. failing test +2. minimal implementation +3. follow-up refactor +4. docs or config + +Avoid mixing all four in a single commit. + +## Merge Rules + +- feature branches merge into `develop` after review +- use linear history where possible +- avoid force-pushing after review starts unless the branch is still private to the author +- if review feedback requires significant change, add a new commit instead of rewriting all previous commits + +## V2 Review Sequence + +The V2 rebuild should be reviewed in this order: + +1. workflow and implementation plan +2. repository scaffold +3. backend config and app bootstrap +4. API key auth and request context +5. document ingestion and storage +6. async indexing worker +7. retrieval and reranking +8. LLM proxy and vLLM integration +9. chat and citation response +10. frontend shell and core user flows +11. observability, hardening, and release prep + +## Initial Branch Plan + +- `develop` +- `chore/v2-workflow` +- `feat/v2-scaffold` +- `feat/v2-auth` +- `feat/v2-ingestion` +- `feat/v2-indexing-worker` +- `feat/v2-retrieval` +- `feat/v2-llm-gateway` +- `feat/v2-chat-api` +- `feat/v2-frontend-shell` +- `chore/v2-observability` +- `fix/v2-hardening` + +## Review Checklist + +Before opening a PR: + +- branch name follows the type rule +- commit history is grouped by concern +- tests for the touched area were run +- docs changed with the code when behavior changed +- PR body explains scope, non-goals, and test evidence + +Before merging into `develop`: + +- no unrelated file churn +- no opportunistic refactors outside the PR scope +- follow-up work is explicitly deferred to another branch diff --git a/docs/plans/2026-05-12-docsearch-v2-implementation-plan.md b/docs/plans/2026-05-12-docsearch-v2-implementation-plan.md new file mode 100644 index 0000000..457ecf6 --- /dev/null +++ b/docs/plans/2026-05-12-docsearch-v2-implementation-plan.md @@ -0,0 +1,419 @@ +# DocSearch AI V2 Implementation Plan + +> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. + +**Goal:** Rebuild DocSearch AI as a V2 on-premise RAG platform with review-friendly branches, PRs, and commit structure. + +**Architecture:** V2 keeps `main` as the V1 stable line and uses `develop` as the V2 integration line. All implementation work lands through small `feat/*`, `fix/*`, and `chore/*` branches. The codebase is rebuilt in small slices so storage, indexing, retrieval, LLM serving, and frontend changes can be reviewed independently. + +**Tech Stack:** FastAPI, React, TypeScript, Vite, Ant Design, PostgreSQL, Redis, Qdrant, MinIO, worker queue, vLLM, Gemma 4, Docker Compose, pytest, frontend test runner + +--- + +## PR Roadmap + +### PR 0: `chore/v2-workflow` + +Scope: + +- branch strategy +- PR split strategy +- V2 implementation plan + +Deliverables: + +- `docs/development-workflow.md` +- `docs/plans/2026-05-12-docsearch-v2-implementation-plan.md` + +Commit plan: + +- `docs(workflow): add v2 branching strategy` +- `docs(plan): add v2 implementation roadmap` + +### PR 1: `feat/v2-scaffold` + +Scope: + +- create the V2 repository skeleton +- define shared config boundaries +- add test scaffolding + +Target files: + +- Create: `backend/` +- Create: `backend/app/__init__.py` +- Create: `backend/app/main.py` +- Create: `backend/app/core/config.py` +- Create: `backend/app/core/logging.py` +- Create: `backend/tests/` +- Create: `frontend-v2/` +- Create: `frontend-v2/package.json` +- Create: `frontend-v2/src/main.tsx` +- Create: `infra/compose/docker-compose.v2.yml` + +Commit plan: + +- `feat(scaffold): add backend v2 app skeleton` +- `feat(scaffold): add frontend v2 shell` +- `test(scaffold): add backend and frontend test bootstrap` +- `chore(compose): add v2 compose skeleton` + +### PR 2: `feat/v2-auth` + +Scope: + +- API key auth +- workspace request context +- auth middleware and tests + +Target files: + +- Create: `backend/app/auth/models.py` +- Create: `backend/app/auth/service.py` +- Create: `backend/app/auth/dependencies.py` +- Create: `backend/app/middleware/request_context.py` +- Create: `backend/tests/auth/test_api_key_auth.py` +- Modify: `backend/app/main.py` + +Commit plan: + +- `test(auth): add api key auth tests` +- `feat(auth): add api key validation service` +- `feat(auth): add request context middleware` +- `docs(auth): document auth request flow` + +### PR 3: `feat/v2-ingestion` + +Scope: + +- document upload API +- MinIO storage adapter +- parser registry for PDF, TXT, MD + +Target files: + +- Create: `backend/app/documents/router.py` +- Create: `backend/app/documents/service.py` +- Create: `backend/app/parsers/base.py` +- Create: `backend/app/parsers/pdf.py` +- Create: `backend/app/parsers/text.py` +- Create: `backend/app/parsers/markdown.py` +- Create: `backend/app/storage/minio.py` +- Create: `backend/tests/documents/test_upload_api.py` +- Create: `backend/tests/parsers/test_registry.py` + +Commit plan: + +- `test(documents): add upload api tests` +- `feat(storage): add minio storage adapter` +- `feat(parsers): add parser registry and core parsers` +- `feat(documents): add upload service and router` + +### PR 4: `feat/v2-indexing-worker` + +Scope: + +- queue abstraction +- in-process queue for dev +- Redis-backed worker path +- chunking and embedding orchestration + +Target files: + +- Create: `backend/app/jobs/base.py` +- Create: `backend/app/jobs/inprocess.py` +- Create: `backend/app/jobs/redis_queue.py` +- Create: `backend/app/indexing/pipeline.py` +- Create: `backend/app/indexing/chunker.py` +- Create: `backend/app/indexing/embedder.py` +- Create: `backend/tests/indexing/test_pipeline.py` + +Commit plan: + +- `test(indexing): add pipeline tests` +- `feat(indexing): add chunking and embedding pipeline` +- `feat(jobs): add queue abstraction and adapters` +- `chore(worker): add worker entrypoint` + +### PR 5: `feat/v2-retrieval` + +Scope: + +- Qdrant adapter +- metadata filtering +- dense retrieval +- reranker integration + +Target files: + +- Create: `backend/app/retrieval/qdrant_store.py` +- Create: `backend/app/retrieval/filters.py` +- Create: `backend/app/retrieval/retriever.py` +- Create: `backend/app/retrieval/reranker.py` +- Create: `backend/tests/retrieval/test_filters.py` +- Create: `backend/tests/retrieval/test_retriever.py` + +Commit plan: + +- `test(retrieval): add filter and retriever tests` +- `feat(retrieval): add qdrant store adapter` +- `feat(retrieval): add metadata filter builder` +- `feat(rerank): add reranker integration` + +### PR 6: `feat/v2-llm-gateway` + +Scope: + +- internal LLM proxy contract +- vLLM client +- Gemma 4 profile +- timeout and response validation + +Target files: + +- Create: `backend/app/llm/base.py` +- Create: `backend/app/llm/vllm_client.py` +- Create: `backend/app/llm/profiles.py` +- Create: `backend/tests/llm/test_vllm_client.py` +- Create: `backend/tests/llm/test_profiles.py` + +Commit plan: + +- `test(llm): add vllm client tests` +- `feat(llm): add llm gateway interfaces` +- `feat(llm): add vllm client and gemma profile` +- `fix(llm): add timeout and response validation` + +### PR 7: `feat/v2-chat-api` + +Scope: + +- retrieval to answer orchestration +- citation builder +- chat and search API + +Target files: + +- Create: `backend/app/rag/context_builder.py` +- Create: `backend/app/rag/service.py` +- Create: `backend/app/api/search.py` +- Create: `backend/app/api/chat.py` +- Create: `backend/tests/rag/test_context_builder.py` +- Create: `backend/tests/api/test_chat_api.py` + +Commit plan: + +- `test(chat): add chat api tests` +- `feat(rag): add context builder` +- `feat(chat): add cited answer service` +- `feat(api): add search and chat routers` + +### PR 8: `feat/v2-frontend-shell` + +Scope: + +- frontend app shell +- upload, search, and chat entry screens +- API integration boundary + +Target files: + +- Create: `frontend-v2/src/app/App.tsx` +- Create: `frontend-v2/src/features/upload/` +- Create: `frontend-v2/src/features/search/` +- Create: `frontend-v2/src/features/chat/` +- Create: `frontend-v2/src/lib/api.ts` +- Create: `frontend-v2/src/lib/query-client.ts` +- Create: `frontend-v2/tests/` + +Commit plan: + +- `test(frontend): add app shell tests` +- `feat(frontend): add app shell and routing` +- `feat(frontend): add upload and search flows` +- `feat(frontend): add chat flow` + +### PR 9: `chore/v2-observability` + +Scope: + +- health and readiness +- structured logs +- audit trail +- metrics hooks + +Commit plan: + +- `test(observability): add health endpoint tests` +- `chore(logging): add structured logging` +- `feat(audit): add audit log pipeline` +- `chore(metrics): add service metrics hooks` + +### PR 10: `fix/v2-hardening` + +Scope: + +- auth edge cases +- storage cleanup +- retry policies +- release checklist + +Commit plan: + +- `test(hardening): add regression coverage` +- `fix(auth): handle invalid key and revoked key paths` +- `fix(indexing): improve retry and cleanup behavior` +- `docs(release): add v2 release checklist` + +## Task 1: Workflow Baseline + +**Files:** +- Create: `docs/development-workflow.md` +- Create: `docs/plans/2026-05-12-docsearch-v2-implementation-plan.md` + +**Step 1: Write the workflow and PR split guidance** + +- Define `main`, `develop`, and `type/*` branch rules +- Define PR sizing and commit rules +- Define the initial V2 PR sequence + +**Step 2: Review branch names and commit templates** + +Run: + +```powershell +git branch -a +``` + +Expected: + +- `main` exists +- `develop` exists +- the current branch is `chore/v2-workflow` + +**Step 3: Commit the workflow docs** + +```powershell +git add docs/development-workflow.md docs/plans/2026-05-12-docsearch-v2-implementation-plan.md +git commit -m "docs(workflow): add v2 branch strategy" +``` + +**Step 4: Push and open the first PR** + +```powershell +git push -u origin develop +git push -u origin chore/v2-workflow +``` + +Expected: + +- `develop` is available as the integration branch +- `chore/v2-workflow` is available as the first review branch + +## Task 2: Repository Scaffold PR + +**Files:** +- Create: `backend/` +- Create: `frontend-v2/` +- Create: `infra/compose/docker-compose.v2.yml` +- Test: `backend/tests/` + +**Step 1: Write failing backend bootstrap tests** + +- validate config load +- validate app startup +- validate health route contract + +**Step 2: Run backend bootstrap tests** + +Run: + +```powershell +pytest backend/tests -q +``` + +Expected: + +- FAIL because scaffold files do not exist yet + +**Step 3: Add minimal backend and frontend scaffold** + +- create the directories +- add minimal app bootstrap +- add minimal frontend entrypoint + +**Step 4: Run tests again** + +Run: + +```powershell +pytest backend/tests -q +``` + +Expected: + +- PASS for the bootstrap subset + +**Step 5: Commit scaffold changes** + +```powershell +git add backend frontend-v2 infra +git commit -m "feat(scaffold): add v2 repository skeleton" +``` + +## Task 3: Auth PR + +**Files:** +- Create: `backend/app/auth/` +- Modify: `backend/app/main.py` +- Test: `backend/tests/auth/test_api_key_auth.py` + +**Step 1: Write failing auth tests** + +- invalid key returns `401` +- missing key returns `401` +- valid key injects workspace context + +**Step 2: Run auth tests** + +Run: + +```powershell +pytest backend/tests/auth/test_api_key_auth.py -q +``` + +Expected: + +- FAIL before implementation + +**Step 3: Add minimal API key auth implementation** + +- key validation service +- dependency or middleware +- request context storage + +**Step 4: Re-run auth tests** + +Run: + +```powershell +pytest backend/tests/auth/test_api_key_auth.py -q +``` + +Expected: + +- PASS + +**Step 5: Commit auth changes** + +```powershell +git add backend/app/auth backend/tests/auth backend/app/main.py +git commit -m "feat(auth): add api key authentication" +``` + +## Execution Notes + +- V2 work happens from `develop`, never directly on `main` +- every PR must leave the branch in a runnable or testable state +- do not mix branch strategy changes with feature code after PR 0 +- when a PR grows beyond its single concern, split it before review From 4482d3084bca790a9a3ada7ae7cd1ac507fd384a Mon Sep 17 00:00:00 2001 From: burnern <200775118+dev-burnern@users.noreply.github.com> Date: Tue, 12 May 2026 19:45:03 +0900 Subject: [PATCH 08/50] =?UTF-8?q?feat:=20=EC=8A=A4=EC=BA=90=ED=8F=B4?= =?UTF-8?q?=EB=93=9C=20=EA=B8=B0=EC=A4=80=EC=84=A0=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=84=9C=EB=B9=84=EC=8A=A4=20=EA=B5=AC=EC=A1=B0=20=EC=9E=AC?= =?UTF-8?q?=EC=A0=95=EB=B9=84=20(#3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(scaffold): add backend bootstrap * feat(frontend): replace web shell with scaffold * chore(infra): replace runtime layout and ci * docs(scaffold): refresh repository overview * chore(scaffold): remove v2-named scaffold files * docs(workflow): remove v2 naming from plans * fix(scaffold): remove rebase conflict markers --- .env.example | 97 +- .github/workflows/{v2-ci.yml => ci.yml} | 13 +- README.md | 227 +- alembic.ini | 62 - alembic/env.py | 78 - alembic/script.py.mako | 26 - app/__init__.py | 0 app/api.py | 126 - app/chunking.py | 59 - app/chunking/__init__.py | 342 -- app/config.py | 38 - app/core/__init__.py | 1 - app/core/config.py | 184 - app/core/security.py | 105 - app/db/__init__.py | 29 - app/db/base.py | 76 - app/db/models.py | 545 --- app/dependencies.py | 130 - app/extraction/__init__.py | 534 --- app/llm/__init__.py | 330 -- app/main.py | 198 - app/models.py | 41 - app/retrieval.py | 279 -- app/routers/__init__.py | 14 - app/routers/admin.py | 477 -- app/routers/auth.py | 194 - app/routers/chat.py | 289 -- app/routers/documents.py | 535 --- app/routers/search.py | 194 - app/search/__init__.py | 241 - app/search/embedding.py | 151 - app/search/reranker.py | 109 - app/search/vector_store.py | 364 -- app/services/__init__.py | 5 - app/services/auth.py | 423 -- app/services/storage.py | 190 - app/text_extract.py | 107 - app/worker/__init__.py | 59 - app/worker/tasks.py | 351 -- backend/Dockerfile | 14 +- backend/__init__.py | 2 +- backend/app/__init__.py | 2 +- backend/app/core/__init__.py | 2 +- backend/app/core/config.py | 2 +- backend/app/main.py | 4 +- backend/app/worker.py | 17 + backend/requirements.txt | 1 + backend/tests/test_bootstrap.py | 4 +- docker-compose.yml | 254 - docker/Dockerfile.api | 67 - docker/Dockerfile.worker | 58 - docker/init-db.sql | 61 - docker/nginx.conf | 187 - docs/development-workflow.md | 126 +- docs/plans/2026-04-21-docsearch-design.md | 110 + docs/plans/2026-04-21-docsearch-v2-design.md | 485 -- ...026-05-12-docsearch-implementation-plan.md | 204 + ...-05-12-docsearch-v2-implementation-plan.md | 419 -- frontend-v2/Dockerfile | 10 - frontend-v2/index.html | 12 - frontend-v2/package-lock.json | 2866 ----------- frontend-v2/package.json | 23 - frontend-v2/src/main.tsx | 11 - frontend-v2/tsconfig.json | 21 - frontend-v2/tsconfig.node.json | 8 - frontend-v2/vite.config.ts | 9 - frontend/Dockerfile | 26 +- frontend/index.html | 18 +- frontend/nginx.conf | 46 - frontend/package-lock.json | 4221 +++-------------- frontend/package.json | 32 +- frontend/src/App.tsx | 26 - frontend/src/api/index.ts | 181 - {frontend-v2 => frontend}/src/app/App.tsx | 10 +- frontend/src/index.css | 97 - frontend/src/layouts/MainLayout.tsx | 119 - frontend/src/main.tsx | 37 +- frontend/src/pages/AdminPage.tsx | 307 -- frontend/src/pages/ChatPage.tsx | 232 - frontend/src/pages/DocumentDetailPage.tsx | 234 - frontend/src/pages/DocumentsPage.tsx | 331 -- frontend/src/pages/LoginPage.tsx | 96 - frontend/src/pages/SearchPage.tsx | 181 - frontend/src/stores/auth.ts | 68 - frontend/src/stores/chat.ts | 77 - {frontend-v2 => frontend}/src/styles.css | 0 frontend/src/vite-env.d.ts | 9 - frontend/tsconfig.json | 20 +- frontend/tsconfig.node.json | 6 +- frontend/vite.config.ts | 32 +- infra/compose/docker-compose.v2.yml | 64 - infra/compose/docker-compose.yml | 76 + infra/nginx/{default.v2.conf => default.conf} | 12 +- requirements-worker.txt | 26 - requirements.txt | 69 - scripts/create_admin.py | 57 - scripts/start.sh | 152 - 97 files changed, 1136 insertions(+), 17928 deletions(-) rename .github/workflows/{v2-ci.yml => ci.yml} (78%) delete mode 100644 alembic.ini delete mode 100644 alembic/env.py delete mode 100644 alembic/script.py.mako delete mode 100644 app/__init__.py delete mode 100644 app/api.py delete mode 100644 app/chunking.py delete mode 100644 app/chunking/__init__.py delete mode 100644 app/config.py delete mode 100644 app/core/__init__.py delete mode 100644 app/core/config.py delete mode 100644 app/core/security.py delete mode 100644 app/db/__init__.py delete mode 100644 app/db/base.py delete mode 100644 app/db/models.py delete mode 100644 app/dependencies.py delete mode 100644 app/extraction/__init__.py delete mode 100644 app/llm/__init__.py delete mode 100644 app/main.py delete mode 100644 app/models.py delete mode 100644 app/retrieval.py delete mode 100644 app/routers/__init__.py delete mode 100644 app/routers/admin.py delete mode 100644 app/routers/auth.py delete mode 100644 app/routers/chat.py delete mode 100644 app/routers/documents.py delete mode 100644 app/routers/search.py delete mode 100644 app/search/__init__.py delete mode 100644 app/search/embedding.py delete mode 100644 app/search/reranker.py delete mode 100644 app/search/vector_store.py delete mode 100644 app/services/__init__.py delete mode 100644 app/services/auth.py delete mode 100644 app/services/storage.py delete mode 100644 app/text_extract.py delete mode 100644 app/worker/__init__.py delete mode 100644 app/worker/tasks.py create mode 100644 backend/app/worker.py delete mode 100644 docker-compose.yml delete mode 100644 docker/Dockerfile.api delete mode 100644 docker/Dockerfile.worker delete mode 100644 docker/init-db.sql delete mode 100644 docker/nginx.conf create mode 100644 docs/plans/2026-04-21-docsearch-design.md delete mode 100644 docs/plans/2026-04-21-docsearch-v2-design.md create mode 100644 docs/plans/2026-05-12-docsearch-implementation-plan.md delete mode 100644 docs/plans/2026-05-12-docsearch-v2-implementation-plan.md delete mode 100644 frontend-v2/Dockerfile delete mode 100644 frontend-v2/index.html delete mode 100644 frontend-v2/package-lock.json delete mode 100644 frontend-v2/package.json delete mode 100644 frontend-v2/src/main.tsx delete mode 100644 frontend-v2/tsconfig.json delete mode 100644 frontend-v2/tsconfig.node.json delete mode 100644 frontend-v2/vite.config.ts delete mode 100644 frontend/nginx.conf delete mode 100644 frontend/src/App.tsx delete mode 100644 frontend/src/api/index.ts rename {frontend-v2 => frontend}/src/app/App.tsx (85%) delete mode 100644 frontend/src/index.css delete mode 100644 frontend/src/layouts/MainLayout.tsx delete mode 100644 frontend/src/pages/AdminPage.tsx delete mode 100644 frontend/src/pages/ChatPage.tsx delete mode 100644 frontend/src/pages/DocumentDetailPage.tsx delete mode 100644 frontend/src/pages/DocumentsPage.tsx delete mode 100644 frontend/src/pages/LoginPage.tsx delete mode 100644 frontend/src/pages/SearchPage.tsx delete mode 100644 frontend/src/stores/auth.ts delete mode 100644 frontend/src/stores/chat.ts rename {frontend-v2 => frontend}/src/styles.css (100%) delete mode 100644 frontend/src/vite-env.d.ts delete mode 100644 infra/compose/docker-compose.v2.yml create mode 100644 infra/compose/docker-compose.yml rename infra/nginx/{default.v2.conf => default.conf} (73%) delete mode 100644 requirements-worker.txt delete mode 100644 requirements.txt delete mode 100755 scripts/create_admin.py delete mode 100755 scripts/start.sh diff --git a/.env.example b/.env.example index da8816e..d88f1a8 100644 --- a/.env.example +++ b/.env.example @@ -1,98 +1,25 @@ -# DocSearch AI Server 환경 변수 설정 -# 프로덕션 환경에서는 적절히 수정하세요 - -# ============================================================ -# 기본 설정 -# ============================================================ +APP_NAME=DocSearch AI APP_ENV=development -DEBUG=true -LOG_LEVEL=INFO -SECRET_KEY=your-super-secret-key-change-in-production-min-32-chars +DEBUG=false -# ============================================================ -# PostgreSQL 데이터베이스 -# ============================================================ POSTGRES_HOST=postgres POSTGRES_PORT=5432 POSTGRES_USER=docsearch -POSTGRES_PASSWORD=docsearch_password_change_me +POSTGRES_PASSWORD=docsearch POSTGRES_DB=docsearch -DATABASE_URL=postgresql+asyncpg://docsearch:docsearch_password_change_me@postgres:5432/docsearch +DATABASE_URL=postgresql://docsearch:docsearch@postgres:5432/docsearch -# ============================================================ -# Redis -# ============================================================ -REDIS_HOST=redis -REDIS_PORT=6379 -REDIS_PASSWORD=redis_password_change_me -REDIS_URL=redis://:redis_password_change_me@redis:6379/0 +REDIS_URL=redis://redis:6379/0 -# ============================================================ -# Qdrant 벡터 데이터베이스 -# ============================================================ -QDRANT_HOST=qdrant -QDRANT_PORT=6333 -QDRANT_GRPC_PORT=6334 -QDRANT_API_KEY= +QDRANT_URL=http://qdrant:6333 -# ============================================================ -# MinIO 객체 스토리지 -# ============================================================ MINIO_ENDPOINT=minio:9000 -MINIO_ACCESS_KEY=minio_access_key -MINIO_SECRET_KEY=minio_secret_key_change_me +MINIO_ACCESS_KEY=minio +MINIO_SECRET_KEY=minio123 MINIO_BUCKET=documents MINIO_SECURE=false -# ============================================================ -# Ollama LLM -# ============================================================ -OLLAMA_HOST=http://ollama:11434 -OLLAMA_MODEL=qwen2.5:7b - -# ============================================================ -# 임베딩 모델 설정 -# ============================================================ -EMBED_MODEL=BAAI/bge-m3 -EMBED_DEVICE=cuda -EMBED_DIM=1024 -EMBED_BATCH_SIZE=16 - -# ============================================================ -# 리랭커 모델 설정 -# ============================================================ -RERANK_MODEL=BAAI/bge-reranker-v2-m3 -RERANK_DEVICE=cuda -RERANK_BATCH_SIZE=32 - -# ============================================================ -# 청킹 설정 -# ============================================================ -CHUNK_SIZE=500 -CHUNK_OVERLAP=50 -MAX_CHUNKS_PER_DOC=2000 - -# ============================================================ -# 파일 업로드 설정 -# ============================================================ -MAX_FILE_SIZE_MB=100 -ALLOWED_EXTENSIONS=.pdf,.docx,.xlsx,.pptx,.txt,.md,.hwp,.png,.jpg,.jpeg - -# ============================================================ -# JWT 인증 설정 -# ============================================================ -JWT_SECRET=jwt-secret-key-change-in-production -JWT_ALGORITHM=HS256 -ACCESS_TOKEN_EXPIRE_MINUTES=60 -REFRESH_TOKEN_EXPIRE_DAYS=7 - -# ============================================================ -# CORS 설정 -# ============================================================ -CORS_ORIGINS=http://localhost:3000,http://localhost:5173 - -# ============================================================ -# Celery Worker 설정 -# ============================================================ -CELERY_BROKER_URL=redis://:redis_password_change_me@redis:6379/0 -CELERY_RESULT_BACKEND=redis://:redis_password_change_me@redis:6379/1 +LLM_BASE_URL=http://llm:8000/v1 +LLM_MODEL=google/gemma-4-E4B-it +EMBEDDING_MODEL=BAAI/bge-m3 +RERANKER_MODEL=BAAI/bge-reranker-v2-m3 diff --git a/.github/workflows/v2-ci.yml b/.github/workflows/ci.yml similarity index 78% rename from .github/workflows/v2-ci.yml rename to .github/workflows/ci.yml index ff2fe95..cce0ebd 100644 --- a/.github/workflows/v2-ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: V2 CI +name: CI on: push: @@ -7,6 +7,9 @@ on: - "feat/**" - "fix/**" - "chore/**" + - "docs/**" + - "refactor/**" + - "test/**" pull_request: branches: - develop @@ -27,7 +30,7 @@ jobs: - name: Install backend test dependencies run: | python -m pip install --upgrade pip - pip install fastapi httpx pytest uvicorn + pip install fastapi httpx pytest pydantic uvicorn - name: Run backend bootstrap tests run: python -m pytest backend/tests/test_bootstrap.py -q @@ -44,12 +47,12 @@ jobs: with: node-version: "22" cache: npm - cache-dependency-path: frontend-v2/package-lock.json + cache-dependency-path: frontend/package-lock.json - name: Install frontend dependencies - working-directory: frontend-v2 + working-directory: frontend run: npm ci - name: Build frontend shell - working-directory: frontend-v2 + working-directory: frontend run: npm run build diff --git a/README.md b/README.md index c048dd5..955b10b 100644 --- a/README.md +++ b/README.md @@ -1,213 +1,42 @@ -# DocSearch AI - 온프레미스 문서 검색 RAG 서버 +# DocSearch AI -온프레미스(사내망) 환경을 위한 문서 검색 RAG(Retrieval-Augmented Generation) 서버입니다. -외부 API 호출 없이 완전한 로컬 환경에서 동작하며, 강력한 보안과 한국어 최적화를 제공합니다. +DocSearch AI is an on-premise document search and RAG platform for internal knowledge bases. -## 📋 주요 기능 +The `main` branch keeps the original prototype. The `develop` branch is the new product baseline built around a clean service architecture: -- **다양한 문서 형식 지원**: PDF, DOCX, XLSX, PPTX, TXT, MD, HWP, 이미지 -- **하이브리드 검색**: Dense + Sparse 벡터 결합으로 정확한 검색 -- **RAG 채팅**: 문서 기반 질의응답 (출처 표시) -- **한국어 최적화**: Kiwi 형태소 분석기, BGE-M3 다국어 임베딩 -- **보안**: JWT 인증, RBAC 권한 관리, 감사 로그, 데이터 암호화 -- **OCR**: 스캔 문서 및 이미지에서 텍스트 추출 +- `frontend`: React + TypeScript + Vite + Ant Design +- `gateway`: Nginx reverse proxy +- `backend`: FastAPI API server +- `worker`: async indexing worker scaffold +- `postgres`: metadata database +- `redis`: cache and job queue +- `qdrant`: vector database +- `minio`: object storage +- `llm`: local inference endpoint -## 🏗️ 아키텍처 +## Repository Layout +```text +backend/ FastAPI service scaffold +frontend/ React web application scaffold +infra/compose/ Docker Compose runtime layout +infra/nginx/ Gateway configuration +docs/ Design and planning documents ``` -┌─────────────────────────────────────────────────────────────────┐ -│ Frontend (React) │ -├─────────────────────────────────────────────────────────────────┤ -│ Nginx │ -├─────────────────────────────────────────────────────────────────┤ -│ FastAPI Backend │ -│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────────────┐ │ -│ │ Auth │ │ Search │ │ Chat │ │ Document Upload │ │ -│ └─────────┘ └─────────┘ └─────────┘ └─────────────────┘ │ -├─────────────────────────────────────────────────────────────────┤ -│ Celery Workers (GPU) │ -│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────────┐ │ -│ │ Embedding │ │ Reranking │ │ Text Extraction + OCR │ │ -│ └─────────────┘ └─────────────┘ └─────────────────────────┘ │ -├─────────────────────────────────────────────────────────────────┤ -│ PostgreSQL │ Redis │ Qdrant │ MinIO │ Ollama │ -│ (Metadata) │ (Cache) │ (Vectors) │ (Files) │ (LLM: Qwen2.5) │ -└─────────────────────────────────────────────────────────────────┘ -``` - -## 🔧 기술 스택 - -| 컴포넌트 | 기술 | 용도 | -|---------|------|------| -| Backend | FastAPI | REST API 서버 | -| Database | PostgreSQL 16 | 메타데이터, 권한, 감사 로그 | -| Vector DB | Qdrant | 벡터 저장 및 하이브리드 검색 | -| Cache | Redis 7 | 캐시, 작업 큐 브로커 | -| Storage | MinIO | 문서 파일 저장 | -| Embedding | BGE-M3 | 다국어 Dense + Sparse 임베딩 | -| Reranker | BGE-Reranker-v2-m3 | 검색 결과 재순위화 | -| LLM | Ollama + Qwen2.5-7B | 응답 생성 | -| Worker | Celery | 비동기 문서 처리 | -| Frontend | React + TypeScript + Ant Design | 사용자 인터페이스 | - -## 💻 시스템 요구사항 - -### 최소 사양 -- **CPU**: 8코어 이상 -- **RAM**: 32GB -- **GPU**: NVIDIA RTX 3080 (10GB VRAM) 이상 -- **Storage**: SSD 500GB -- **OS**: Ubuntu 22.04 LTS - -### 권장 사양 -- **CPU**: 16코어 이상 -- **RAM**: 64GB -- **GPU**: NVIDIA RTX 4090 (24GB VRAM) -- **Storage**: NVMe SSD 1TB -- **OS**: Ubuntu 22.04/24.04 LTS -## 🚀 빠른 시작 +## Quick Start -### 1. 저장소 클론 ```bash -git clone https://github.com/dev-burnern/docsearch-ai.git -cd docsearch-ai +docker compose -f infra/compose/docker-compose.yml up --build ``` -### 2. 환경 설정 -```bash -cp .env.example .env -# .env 파일에서 비밀번호 등을 수정하세요 -``` - -### 3. Docker Compose로 실행 -```bash -# 시작 스크립트 실행 -chmod +x scripts/start.sh -./scripts/start.sh - -# 또는 직접 Docker Compose 실행 -docker-compose up -d -``` - -### 4. LLM 모델 다운로드 -```bash -docker exec -it docsearch-ollama ollama pull qwen2.5:7b-instruct-q4_K_M -``` - -### 5. 접속 -- **프론트엔드**: http://localhost:3000 -- **API 문서**: http://localhost:8000/docs -- **MinIO 콘솔**: http://localhost:9001 - -## 📁 프로젝트 구조 - -``` -docsearch-ai/ -├── app/ -│ ├── core/ # 설정, 보안 -│ ├── db/ # 데이터베이스 모델 -│ ├── routers/ # API 엔드포인트 -│ ├── services/ # 비즈니스 로직 -│ ├── extraction/ # 텍스트 추출 -│ ├── chunking/ # 텍스트 청킹 -│ ├── search/ # 검색 파이프라인 -│ ├── llm/ # LLM 서비스 -│ ├── worker/ # Celery 작업 -│ └── main.py # FastAPI 앱 -├── frontend/ -│ ├── src/ -│ │ ├── api/ # API 클라이언트 -│ │ ├── stores/ # 상태 관리 -│ │ ├── pages/ # 페이지 컴포넌트 -│ │ └── layouts/ # 레이아웃 -│ └── package.json -├── docker/ -│ ├── Dockerfile.api -│ ├── Dockerfile.worker -│ ├── nginx.conf -│ └── init-db.sql -├── scripts/ -│ └── start.sh -├── docker-compose.yml -├── requirements.txt -└── README.md -``` - -## 🔒 보안 기능 - -- **JWT 인증**: Access Token + Refresh Token -- **RBAC 권한 관리**: Admin, Manager, User, Viewer 역할 -- **문서 보안등급**: Public, Internal, Confidential, Restricted -- **감사 로그**: 모든 사용자 활동 기록 -- **데이터 암호화**: MinIO 서버측 암호화 - -## 📊 성능 지표 - -| 메트릭 | 목표 | 비고 | -|--------|------|------| -| 검색 응답 시간 | < 500ms | 10만 청크 기준 | -| RAG 응답 시간 | < 5초 | LLM 생성 포함 | -| 문서 처리 속도 | 10페이지/분 | GPU 사용 시 | -| 동시 사용자 | 1-2명 | 권장 설정 기준 | - -## 🛠️ 개발 모드 - -```bash -# 의존성 서비스 시작 -docker-compose up -d postgres redis qdrant minio ollama - -# Python 환경 설정 -python3 -m venv .venv -source .venv/bin/activate -pip install -r requirements.txt - -# API 서버 실행 (개발 모드) -uvicorn app.main:app --reload - -# Celery 워커 실행 -celery -A app.worker worker -l INFO -Q documents,gpu -c 1 - -# 프론트엔드 실행 -cd frontend -npm install -npm run dev -``` - -## 📝 API 예시 - -### 문서 업로드 -```bash -curl -X POST "http://localhost:8000/documents/upload" \ - -H "Authorization: Bearer $TOKEN" \ - -F "file=@document.pdf" \ - -F "classification=internal" -``` - -### 검색 -```bash -curl -X POST "http://localhost:8000/search" \ - -H "Authorization: Bearer $TOKEN" \ - -H "Content-Type: application/json" \ - -d '{"query": "프로젝트 일정", "top_n": 5}' -``` - -### RAG 채팅 -```bash -curl -X POST "http://localhost:8000/chat" \ - -H "Authorization: Bearer $TOKEN" \ - -H "Content-Type: application/json" \ - -d '{"query": "계약서의 주요 조건은?", "use_rerank": true}' -``` - -## 📄 라이선스 - -이 프로젝트는 MIT 라이선스를 따릅니다. - -## 🤝 기여 +Local endpoints: -이슈와 PR을 환영합니다! +- App gateway: `http://localhost:8080` +- Backend docs: `http://localhost:8000/docs` +- Frontend dev server: `http://localhost:5173` +- MinIO console: `http://localhost:9001` ---- +## Current Scope -© 2024 DocSearch AI Team +The current scaffold establishes service boundaries, health endpoints, local runtime config, and CI. Authentication, document ingestion, indexing, retrieval, and cited chat flows will land in follow-up branches. diff --git a/alembic.ini b/alembic.ini deleted file mode 100644 index 7c7752b..0000000 --- a/alembic.ini +++ /dev/null @@ -1,62 +0,0 @@ -# Alembic configuration for DocSearch AI - -[alembic] -# path to migration scripts -script_location = alembic - -# template used to generate migration files -# file_template = %%(rev)s_%%(slug)s - -# sys.path path, will be prepended to sys.path if present. -prepend_sys_path = . - -# version path separator -version_path_separator = os - -# the output encoding used when revision files are written from script.py.mako -# output_encoding = utf-8 - -sqlalchemy.url = driver://user:pass@localhost/dbname - - -[post_write_hooks] -# Uncomment to format migrations with black -# hooks = black -# black.type = console_scripts -# black.entrypoint = black -# black.options = -q - - -[loggers] -keys = root,sqlalchemy,alembic - -[handlers] -keys = console - -[formatters] -keys = generic - -[logger_root] -level = WARN -handlers = console -qualname = - -[logger_sqlalchemy] -level = WARN -handlers = -qualname = sqlalchemy.engine - -[logger_alembic] -level = INFO -handlers = -qualname = alembic - -[handler_console] -class = StreamHandler -args = (sys.stderr,) -level = NOTSET -formatter = generic - -[formatter_generic] -format = %(levelname)-5.5s [%(name)s] %(message)s -datefmt = %H:%M:%S diff --git a/alembic/env.py b/alembic/env.py deleted file mode 100644 index 7299066..0000000 --- a/alembic/env.py +++ /dev/null @@ -1,78 +0,0 @@ -""" -Alembic Environment Configuration -""" -import asyncio -import os -import sys -from logging.config import fileConfig - -from sqlalchemy import pool -from sqlalchemy.engine import Connection -from sqlalchemy.ext.asyncio import async_engine_from_config - -from alembic import context - -# Add app to path -sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) - -from app.db.models import Base -from app.core.config import settings - -# this is the Alembic Config object -config = context.config - -# Override sqlalchemy.url with environment variable -config.set_main_option("sqlalchemy.url", settings.database_url.replace("+asyncpg", "")) - -# Interpret the config file for Python logging -if config.config_file_name is not None: - fileConfig(config.config_file_name) - -# Target metadata for autogenerate -target_metadata = Base.metadata - - -def run_migrations_offline() -> None: - """Run migrations in 'offline' mode.""" - url = config.get_main_option("sqlalchemy.url") - context.configure( - url=url, - target_metadata=target_metadata, - literal_binds=True, - dialect_opts={"paramstyle": "named"}, - ) - - with context.begin_transaction(): - context.run_migrations() - - -def do_run_migrations(connection: Connection) -> None: - context.configure(connection=connection, target_metadata=target_metadata) - - with context.begin_transaction(): - context.run_migrations() - - -async def run_async_migrations() -> None: - """Run migrations in 'online' mode with async engine.""" - connectable = async_engine_from_config( - config.get_section(config.config_ini_section, {}), - prefix="sqlalchemy.", - poolclass=pool.NullPool, - ) - - async with connectable.connect() as connection: - await connection.run_sync(do_run_migrations) - - await connectable.dispose() - - -def run_migrations_online() -> None: - """Run migrations in 'online' mode.""" - asyncio.run(run_async_migrations()) - - -if context.is_offline_mode(): - run_migrations_offline() -else: - run_migrations_online() diff --git a/alembic/script.py.mako b/alembic/script.py.mako deleted file mode 100644 index fbc4b07..0000000 --- a/alembic/script.py.mako +++ /dev/null @@ -1,26 +0,0 @@ -"""${message} - -Revision ID: ${up_revision} -Revises: ${down_revision | comma,n} -Create Date: ${create_date} - -""" -from typing import Sequence, Union - -from alembic import op -import sqlalchemy as sa -${imports if imports else ""} - -# revision identifiers, used by Alembic. -revision: str = ${repr(up_revision)} -down_revision: Union[str, None] = ${repr(down_revision)} -branch_labels: Union[str, Sequence[str], None] = ${repr(branch_labels)} -depends_on: Union[str, Sequence[str], None] = ${repr(depends_on)} - - -def upgrade() -> None: - ${upgrades if upgrades else "pass"} - - -def downgrade() -> None: - ${downgrades if downgrades else "pass"} diff --git a/app/__init__.py b/app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/app/api.py b/app/api.py deleted file mode 100644 index 60fd67b..0000000 --- a/app/api.py +++ /dev/null @@ -1,126 +0,0 @@ -from __future__ import annotations - -from pathlib import Path -from typing import Any -import time - -from fastapi import Depends, FastAPI, Header, HTTPException - -from .config import settings -from .models import ChatRequest, ChatResponse, ChunkHit, IngestRequest, SearchRequest, SearchResponse -from .retrieval import Pipeline - -app = FastAPI(title="On-prem DocSearch (Dense + Rerank + Ollama)") -pipe = Pipeline() - - -def require_api_key(x_api_key: str | None = Header(default=None)) -> None: - if settings.api_key and x_api_key != settings.api_key: - raise HTTPException(status_code=401, detail="Invalid API key") - - -@app.get("/health") -def health() -> dict[str, str]: - return {"status": "ok"} - - -@app.post("/ingest", dependencies=[Depends(require_api_key)]) -def ingest(req: IngestRequest) -> dict: - p = Path(req.path).expanduser().resolve() - if not p.exists(): - raise HTTPException(status_code=400, detail=f"path not found: {p}") - return pipe.ingest_path(p, recursive=req.recursive) - - -@app.post("/search", response_model=SearchResponse, dependencies=[Depends(require_api_key)]) -def search(req: SearchRequest) -> SearchResponse: - hits, lat = pipe.search(req.query, top_k=req.top_k) - out = [] - for h in hits: - out.append( - ChunkHit( - point_id=h["point_id"], - score=h.get("rerank_score", h.get("dense_score", 0.0)), - doc_id=h.get("doc_id", ""), - source=h.get("source", ""), - page=h.get("page"), - sheet=h.get("sheet"), - chunk_index=int(h.get("chunk_index", -1)), - text=h.get("text", ""), - ) - ) - return SearchResponse(hits=out, latency_ms=lat) - - -@app.post("/chat", response_model=ChatResponse, dependencies=[Depends(require_api_key)]) -def chat(req: ChatRequest) -> ChatResponse: - answer, ctxs, lat = pipe.chat(req.query, top_k=req.top_k, top_n=req.top_n, model=req.model) - cites = [] - for c in ctxs: - cites.append( - ChunkHit( - point_id=c["point_id"], - score=c.get("rerank_score", c.get("dense_score", 0.0)), - doc_id=c.get("doc_id", ""), - source=c.get("source", ""), - page=c.get("page"), - sheet=c.get("sheet"), - chunk_index=int(c.get("chunk_index", -1)), - text=c.get("text", ""), - ) - ) - return ChatResponse(answer=answer, citations=cites, latency_ms=lat) - - -# --------------------------- -# OpenAI-compatible endpoints -# --------------------------- - -@app.get("/v1/models", dependencies=[Depends(require_api_key)]) -def v1_models() -> dict[str, Any]: - return { - "object": "list", - "data": [ - { - "id": "docsearch-rag", - "object": "model", - "created": int(time.time()), - "owned_by": "local", - } - ], - } - - -@app.post("/v1/chat/completions", dependencies=[Depends(require_api_key)]) -def v1_chat_completions(payload: dict[str, Any]) -> dict[str, Any]: - messages = payload.get("messages") or [] - user_msg = "" - for m in reversed(messages): - if m.get("role") == "user": - user_msg = str(m.get("content") or "") - break - if not user_msg.strip(): - raise HTTPException(status_code=400, detail="No user message found") - - answer, ctxs, lat = pipe.chat( - user_msg, - top_k=payload.get("top_k"), - top_n=payload.get("top_n"), - model=payload.get("model_override"), - ) - - return { - "id": "chatcmpl-docsearch", - "object": "chat.completion", - "created": int(time.time()), - "model": payload.get("model", "docsearch-rag"), - "choices": [ - { - "index": 0, - "message": {"role": "assistant", "content": answer}, - "finish_reason": "stop", - } - ], - "usage": {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0}, - "metadata": {"latency_ms": lat, "citations": ctxs}, - } diff --git a/app/chunking.py b/app/chunking.py deleted file mode 100644 index 166a5ef..0000000 --- a/app/chunking.py +++ /dev/null @@ -1,59 +0,0 @@ -from __future__ import annotations -from dataclasses import dataclass - - -@dataclass(frozen=True) -class Chunk: - text: str - chunk_index: int - - -def chunk_text(text: str, max_chars: int, overlap_chars: int) -> list[Chunk]: - if max_chars <= 200: - raise ValueError("max_chars must be > 200") - if overlap_chars < 0 or overlap_chars >= max_chars: - raise ValueError("overlap_chars must be in [0, max_chars)") - - paras = [p.strip() for p in text.split("\n\n") if p.strip()] - - chunks: list[str] = [] - buf: list[str] = [] - buf_len = 0 - - def flush() -> None: - nonlocal buf, buf_len - if not buf: - return - joined = "\n\n".join(buf).strip() - if joined: - chunks.append(joined) - buf = [] - buf_len = 0 - - for p in paras: - if buf_len + len(p) + 2 <= max_chars: - buf.append(p) - buf_len += len(p) + 2 - continue - - flush() - if len(p) > max_chars: - start = 0 - while start < len(p): - end = min(start + max_chars, len(p)) - chunks.append(p[start:end].strip()) - start = max(0, end - overlap_chars) - else: - buf.append(p) - buf_len = len(p) - - flush() - - out: list[Chunk] = [] - prev_tail = "" - for i, c in enumerate(chunks): - merged = (prev_tail + "\n" + c).strip() if prev_tail and overlap_chars > 0 else c - out.append(Chunk(text=merged, chunk_index=i)) - prev_tail = c[-overlap_chars:] if overlap_chars > 0 else "" - - return out diff --git a/app/chunking/__init__.py b/app/chunking/__init__.py deleted file mode 100644 index bc72bb3..0000000 --- a/app/chunking/__init__.py +++ /dev/null @@ -1,342 +0,0 @@ -""" -Korean-Optimized Text Chunking -한국어 문서에 최적화된 청크 분할 -""" -from __future__ import annotations - -import re -from dataclasses import dataclass, field -from typing import Optional - -from app.core.config import settings - - -@dataclass -class Chunk: - """A text chunk with metadata""" - text: str - chunk_index: int - char_start: int - char_end: int - heading: Optional[str] = None - has_table: bool = False - has_image: bool = False - page: Optional[int] = None - sheet: Optional[str] = None - slide: Optional[int] = None - metadata: dict = field(default_factory=dict) - - -class KoreanTextChunker: - """ - Korean-optimized text chunker - - Features: - - Sentence boundary detection using Korean NLP - - Respects paragraph boundaries - - Handles tables as single chunks when possible - - Configurable overlap for context preservation - """ - - def __init__( - self, - max_chars: int = settings.chunk_max_chars, - overlap_chars: int = settings.chunk_overlap_chars, - respect_sentences: bool = settings.chunk_respect_sentences, - ): - self.max_chars = max_chars - self.overlap_chars = overlap_chars - self.respect_sentences = respect_sentences - self._kiwi = None - - @property - def kiwi(self): - """Lazy load Kiwi Korean tokenizer""" - if self._kiwi is None and self.respect_sentences: - try: - from kiwipiepy import Kiwi - self._kiwi = Kiwi() - except ImportError: - pass - return self._kiwi - - def chunk( - self, - text: str, - page: int | None = None, - sheet: str | None = None, - slide: int | None = None, - heading: str | None = None, - is_table: bool = False, - ) -> list[Chunk]: - """ - Split text into chunks - - Args: - text: The text to chunk - page: Optional page number - sheet: Optional sheet name (for Excel) - slide: Optional slide number (for PPT) - heading: Optional section heading - is_table: Whether the text is a table - - Returns: - List of Chunk objects - """ - if not text or not text.strip(): - return [] - - text = text.strip() - - # Tables: try to keep as single chunk if small enough - if is_table and len(text) <= self.max_chars * 1.5: - return [Chunk( - text=text, - chunk_index=0, - char_start=0, - char_end=len(text), - heading=heading, - has_table=True, - page=page, - sheet=sheet, - slide=slide, - )] - - # Split into sentences - if self.respect_sentences and self.kiwi: - sentences = self._split_sentences_kiwi(text) - else: - sentences = self._split_sentences_regex(text) - - # Build chunks from sentences - chunks = self._build_chunks( - sentences, - page=page, - sheet=sheet, - slide=slide, - heading=heading, - is_table=is_table, - ) - - return chunks - - def _split_sentences_kiwi(self, text: str) -> list[tuple[str, int, int]]: - """Split text into sentences using Kiwi""" - sentences = [] - for sent in self.kiwi.split_into_sents(text): - sentences.append((sent.text, sent.start, sent.end)) - return sentences - - def _split_sentences_regex(self, text: str) -> list[tuple[str, int, int]]: - """Split text into sentences using regex (fallback)""" - # Korean sentence endings: 다, 요, 죠, !, ?, . - # Also handle numbered lists, bullets, etc. - pattern = r'(?<=[.!?다요죠])\s+(?=[가-힣A-Z0-9\-\*\•\d])' - - sentences = [] - last_end = 0 - - for match in re.finditer(pattern, text): - sent_text = text[last_end:match.start() + 1].strip() - if sent_text: - sentences.append((sent_text, last_end, match.start() + 1)) - last_end = match.end() - - # Add remaining text - if last_end < len(text): - remaining = text[last_end:].strip() - if remaining: - sentences.append((remaining, last_end, len(text))) - - # If no sentences found, treat paragraphs as sentences - if not sentences: - for match in re.finditer(r'[^\n]+', text): - sent_text = match.group().strip() - if sent_text: - sentences.append((sent_text, match.start(), match.end())) - - return sentences if sentences else [(text, 0, len(text))] - - def _build_chunks( - self, - sentences: list[tuple[str, int, int]], - page: int | None = None, - sheet: str | None = None, - slide: int | None = None, - heading: str | None = None, - is_table: bool = False, - ) -> list[Chunk]: - """Build chunks from sentences with overlap""" - if not sentences: - return [] - - chunks: list[Chunk] = [] - current_texts: list[str] = [] - current_len = 0 - chunk_start = sentences[0][1] - - for sent_text, sent_start, sent_end in sentences: - sent_len = len(sent_text) - - # Check if adding this sentence would exceed max - if current_len + sent_len + 1 > self.max_chars and current_texts: - # Save current chunk - chunk_text = " ".join(current_texts) - chunks.append(Chunk( - text=chunk_text, - chunk_index=len(chunks), - char_start=chunk_start, - char_end=sent_start, - heading=heading, - has_table=is_table, - page=page, - sheet=sheet, - slide=slide, - )) - - # Start new chunk with overlap - overlap_texts = self._get_overlap_texts(current_texts, chunk_text) - current_texts = overlap_texts + [sent_text] - current_len = sum(len(t) for t in current_texts) + len(current_texts) - 1 - chunk_start = sent_start - len(" ".join(overlap_texts)) if overlap_texts else sent_start - else: - current_texts.append(sent_text) - current_len += sent_len + (1 if current_texts else 0) - - # Handle very long sentences - if sent_len > self.max_chars: - # Flush current - if len(current_texts) > 1: - chunk_text = " ".join(current_texts[:-1]) - chunks.append(Chunk( - text=chunk_text, - chunk_index=len(chunks), - char_start=chunk_start, - char_end=sent_start, - heading=heading, - has_table=is_table, - page=page, - sheet=sheet, - slide=slide, - )) - - # Split long sentence - long_chunks = self._split_long_text(sent_text, sent_start) - for lc_text, lc_start, lc_end in long_chunks: - chunks.append(Chunk( - text=lc_text, - chunk_index=len(chunks), - char_start=lc_start, - char_end=lc_end, - heading=heading, - has_table=is_table, - page=page, - sheet=sheet, - slide=slide, - )) - - current_texts = [] - current_len = 0 - chunk_start = sent_end - - # Don't forget the last chunk - if current_texts: - chunk_text = " ".join(current_texts) - chunks.append(Chunk( - text=chunk_text, - chunk_index=len(chunks), - char_start=chunk_start, - char_end=sentences[-1][2], - heading=heading, - has_table=is_table, - page=page, - sheet=sheet, - slide=slide, - )) - - return chunks - - def _get_overlap_texts(self, texts: list[str], full_text: str) -> list[str]: - """Get texts for overlap from previous chunk""" - if not texts or self.overlap_chars <= 0: - return [] - - overlap_texts = [] - overlap_len = 0 - - for text in reversed(texts): - if overlap_len + len(text) <= self.overlap_chars: - overlap_texts.insert(0, text) - overlap_len += len(text) + 1 - else: - # Take partial text if needed - remaining = self.overlap_chars - overlap_len - if remaining > 50: # Only if meaningful amount - overlap_texts.insert(0, text[-remaining:]) - break - - return overlap_texts - - def _split_long_text( - self, - text: str, - base_start: int, - ) -> list[tuple[str, int, int]]: - """Split a long text that exceeds max_chars""" - chunks = [] - step = self.max_chars - self.overlap_chars - - for i in range(0, len(text), step): - end = min(i + self.max_chars, len(text)) - chunk_text = text[i:end] - chunks.append(( - chunk_text, - base_start + i, - base_start + end, - )) - - if end >= len(text): - break - - return chunks - - -# Default chunker instance -_chunker: KoreanTextChunker | None = None - - -def get_chunker() -> KoreanTextChunker: - """Get the default chunker instance""" - global _chunker - if _chunker is None: - _chunker = KoreanTextChunker() - return _chunker - - -def chunk_text( - text: str, - max_chars: int | None = None, - overlap_chars: int | None = None, - **kwargs, -) -> list[Chunk]: - """ - Convenience function to chunk text - - Args: - text: Text to chunk - max_chars: Maximum characters per chunk (default: from settings) - overlap_chars: Overlap characters between chunks (default: from settings) - **kwargs: Additional arguments passed to chunk() - - Returns: - List of Chunk objects - """ - if max_chars or overlap_chars: - chunker = KoreanTextChunker( - max_chars=max_chars or settings.chunk_max_chars, - overlap_chars=overlap_chars or settings.chunk_overlap_chars, - ) - else: - chunker = get_chunker() - - return chunker.chunk(text, **kwargs) diff --git a/app/config.py b/app/config.py deleted file mode 100644 index bd1ae19..0000000 --- a/app/config.py +++ /dev/null @@ -1,38 +0,0 @@ -from __future__ import annotations -from pydantic_settings import BaseSettings, SettingsConfigDict - - -class Settings(BaseSettings): - model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8") - - # Qdrant - qdrant_url: str = "http://127.0.0.1:6333" - qdrant_collection: str = "doc_chunks_v1" - vector_size: int = 1024 # BGE-M3 dense_vecs dimension - - # Embedding / Reranker - embed_model: str = "BAAI/bge-m3" - rerank_model: str = "BAAI/bge-reranker-v2-m3" # 한국어 특화 쓰려면 여기만 교체 - device: str = "cuda" # "cuda" or "cpu" - use_fp16: bool = True - - # Retrieval - dense_top_k: int = 50 - final_top_n: int = 5 - rerank_batch_size: int = 32 - - # Chunking - chunk_max_chars: int = 1400 - chunk_overlap_chars: int = 200 - - # Ollama - ollama_base_url: str = "http://127.0.0.1:11434" - ollama_model: str = "qwen2.5:7b" - ollama_temperature: float = 0.2 - ollama_num_ctx: int = 8192 - - # Optional API auth - api_key: str | None = None # set하면 X-API-Key 필요 - - -settings = Settings() diff --git a/app/core/__init__.py b/app/core/__init__.py deleted file mode 100644 index 5a60488..0000000 --- a/app/core/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# Core modules diff --git a/app/core/config.py b/app/core/config.py deleted file mode 100644 index 8070639..0000000 --- a/app/core/config.py +++ /dev/null @@ -1,184 +0,0 @@ -""" -Enhanced configuration for DocSearch AI -온프레미스 전용 문서 검색형 RAG 서버 설정 -""" -from __future__ import annotations - -from functools import lru_cache -from pathlib import Path -from typing import Literal - -from pydantic import Field, field_validator -from pydantic_settings import BaseSettings, SettingsConfigDict - - -class Settings(BaseSettings): - """Application settings with environment variable support""" - - model_config = SettingsConfigDict( - env_file=".env", - env_file_encoding="utf-8", - extra="ignore", - ) - - # =================== - # Application - # =================== - app_name: str = "DocSearch AI" - app_version: str = "1.0.0" - debug: bool = False - environment: Literal["development", "staging", "production"] = "development" - - @property - def is_production(self) -> bool: - """Check if environment is production""" - return self.environment == "production" - - # =================== - # Security - # =================== - secret_key: str = Field(default="change-me-in-production-use-256bit-key") - jwt_algorithm: str = "HS256" - jwt_access_token_expire_minutes: int = 60 - jwt_refresh_token_expire_days: int = 7 - api_key: str | None = None - allowed_hosts: list[str] = ["*"] - cors_origins: list[str] = ["http://localhost:3000", "http://127.0.0.1:3000"] - - # Encryption for sensitive data - encryption_key: str = Field(default="32-byte-encryption-key-here!!") - - # =================== - # Database - # =================== - database_url: str = "postgresql+asyncpg://docsearch:docsearch@localhost:5432/docsearch" - database_pool_size: int = 5 - database_max_overflow: int = 10 - - # =================== - # Redis - # =================== - redis_url: str = "redis://localhost:6379/0" - redis_cache_ttl: int = 3600 # 1 hour - - # =================== - # Qdrant Vector DB - # =================== - qdrant_url: str = "http://127.0.0.1:6333" - qdrant_collection: str = "documents" - qdrant_sparse_collection: str = "documents" # Same collection, different vector - vector_size: int = 1024 # BGE-M3 dense dimension - - # =================== - # MinIO Object Storage - # =================== - minio_endpoint: str = "localhost:9000" - minio_access_key: str = "minioadmin" - minio_secret_key: str = "minioadmin" - minio_bucket: str = "docsearch" - minio_secure: bool = False - - # =================== - # Embedding Model - # =================== - embed_model: str = "BAAI/bge-m3" - embed_device: str = "cuda" # cuda, cpu, or mps - embed_use_fp16: bool = True - embed_batch_size: int = 32 - embed_max_length: int = 8192 - - # =================== - # Reranker Model - # =================== - rerank_model: str = "BAAI/bge-reranker-v2-m3" - rerank_batch_size: int = 32 - rerank_use_fp16: bool = True - - # =================== - # LLM (Ollama) - # =================== - ollama_base_url: str = "http://127.0.0.1:11434" - ollama_model: str = "qwen2.5:7b" - ollama_temperature: float = 0.1 - ollama_num_ctx: int = 8192 - ollama_timeout: int = 120 - - # =================== - # Retrieval - # =================== - retrieval_dense_top_k: int = 50 - retrieval_sparse_top_k: int = 50 - retrieval_final_top_n: int = 5 - retrieval_use_rerank: bool = True - retrieval_use_hybrid: bool = True - retrieval_rrf_k: int = 60 # RRF constant - - # =================== - # Chunking - # =================== - chunk_max_chars: int = 1000 - chunk_overlap_chars: int = 200 - chunk_respect_sentences: bool = True - - # =================== - # OCR - # =================== - ocr_enabled: bool = True - ocr_lang: str = "korean" # korean, english, mixed - ocr_use_gpu: bool = True - - # =================== - # ASR (Speech Recognition) - # =================== - asr_enabled: bool = False - asr_model: str = "base" # tiny, base, small, medium - asr_device: str = "cuda" - - # =================== - # File Processing - # =================== - max_file_size_mb: int = 100 - allowed_extensions: list[str] = [ - ".pdf", ".docx", ".xlsx", ".xlsm", ".pptx", - ".txt", ".md", ".hwp", - ".png", ".jpg", ".jpeg", ".tiff", ".bmp", - ".mp4", ".mp3", ".wav", ".m4a" - ] - upload_dir: Path = Path("/tmp/docsearch_uploads") - - # =================== - # Celery - # =================== - celery_broker_url: str = "redis://localhost:6379/1" - celery_result_backend: str = "redis://localhost:6379/2" - - # =================== - # Monitoring - # =================== - enable_metrics: bool = True - log_level: str = "INFO" - log_format: str = "json" # json or text - - @field_validator("upload_dir", mode="before") - @classmethod - def create_upload_dir(cls, v): - path = Path(v) - path.mkdir(parents=True, exist_ok=True) - return path - - @field_validator("encryption_key") - @classmethod - def validate_encryption_key(cls, v): - if len(v) != 32: - # Pad or truncate to 32 bytes - v = (v * 3)[:32] - return v - - -@lru_cache -def get_settings() -> Settings: - """Get cached settings instance""" - return Settings() - - -settings = get_settings() diff --git a/app/core/security.py b/app/core/security.py deleted file mode 100644 index b731ab9..0000000 --- a/app/core/security.py +++ /dev/null @@ -1,105 +0,0 @@ -""" -Security utilities: JWT, password hashing, encryption -""" -from __future__ import annotations - -import base64 -import hashlib -import secrets -from datetime import datetime, timedelta, timezone -from typing import Any - -from cryptography.fernet import Fernet -from jose import JWTError, jwt -from passlib.context import CryptContext - -from .config import settings - -# Password hashing -pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") - -# Encryption for sensitive data -def _get_fernet() -> Fernet: - """Get Fernet instance for encryption/decryption""" - key = base64.urlsafe_b64encode(settings.encryption_key.encode()[:32].ljust(32, b'\0')) - return Fernet(key) - - -def hash_password(password: str) -> str: - """Hash a password for storing""" - return pwd_context.hash(password) - - -def verify_password(plain_password: str, hashed_password: str) -> bool: - """Verify a password against its hash""" - return pwd_context.verify(plain_password, hashed_password) - - -def create_access_token( - data: dict[str, Any], - expires_delta: timedelta | None = None, -) -> str: - """Create JWT access token""" - to_encode = data.copy() - expire = datetime.now(timezone.utc) + ( - expires_delta or timedelta(minutes=settings.jwt_access_token_expire_minutes) - ) - to_encode.update({"exp": expire, "type": "access"}) - return jwt.encode(to_encode, settings.secret_key, algorithm=settings.jwt_algorithm) - - -def create_refresh_token( - data: dict[str, Any], - expires_delta: timedelta | None = None, -) -> str: - """Create JWT refresh token""" - to_encode = data.copy() - expire = datetime.now(timezone.utc) + ( - expires_delta or timedelta(days=settings.jwt_refresh_token_expire_days) - ) - to_encode.update({"exp": expire, "type": "refresh"}) - return jwt.encode(to_encode, settings.secret_key, algorithm=settings.jwt_algorithm) - - -def decode_token(token: str) -> dict[str, Any] | None: - """Decode and validate JWT token""" - try: - payload = jwt.decode( - token, - settings.secret_key, - algorithms=[settings.jwt_algorithm], - ) - return payload - except JWTError: - return None - - -def encrypt_sensitive(data: str) -> str: - """Encrypt sensitive data""" - f = _get_fernet() - return f.encrypt(data.encode()).decode() - - -def decrypt_sensitive(encrypted_data: str) -> str: - """Decrypt sensitive data""" - f = _get_fernet() - return f.decrypt(encrypted_data.encode()).decode() - - -def generate_api_key() -> str: - """Generate a secure API key""" - return secrets.token_urlsafe(32) - - -def hash_file(file_path: str) -> str: - """Calculate SHA256 hash of a file""" - sha256 = hashlib.sha256() - with open(file_path, "rb") as f: - for chunk in iter(lambda: f.read(8192), b""): - sha256.update(chunk) - return sha256.hexdigest() - - -def hash_text(text: str) -> str: - """Calculate SHA256 hash of text""" - return hashlib.sha256(text.encode()).hexdigest() diff --git a/app/db/__init__.py b/app/db/__init__.py deleted file mode 100644 index dd24508..0000000 --- a/app/db/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# Database modules -from .base import Base, get_db, engine, async_session -from .models import ( - User, - Department, - Project, - Document, - DocumentChunk, - AccessPolicy, - AuditLog, - SearchLog, - ProcessingJob, -) - -__all__ = [ - "Base", - "get_db", - "engine", - "async_session", - "User", - "Department", - "Project", - "Document", - "DocumentChunk", - "AccessPolicy", - "AuditLog", - "SearchLog", - "ProcessingJob", -] diff --git a/app/db/base.py b/app/db/base.py deleted file mode 100644 index 87d8288..0000000 --- a/app/db/base.py +++ /dev/null @@ -1,76 +0,0 @@ -""" -Database connection and session management -""" -from __future__ import annotations - -from collections.abc import AsyncGenerator -from contextlib import asynccontextmanager - -from sqlalchemy.ext.asyncio import ( - AsyncSession, - async_sessionmaker, - create_async_engine, -) -from sqlalchemy.orm import DeclarativeBase - -from app.core.config import settings - - -class Base(DeclarativeBase): - """Base class for all database models""" - pass - - -# Create async engine -engine = create_async_engine( - settings.database_url, - echo=settings.debug, - pool_size=settings.database_pool_size, - max_overflow=settings.database_max_overflow, - pool_pre_ping=True, -) - -# Session factory -async_session = async_sessionmaker( - engine, - class_=AsyncSession, - expire_on_commit=False, -) - - -async def get_db() -> AsyncGenerator[AsyncSession, None]: - """Dependency for getting database session""" - async with async_session() as session: - try: - yield session - await session.commit() - except Exception: - await session.rollback() - raise - finally: - await session.close() - - -@asynccontextmanager -async def get_db_context() -> AsyncGenerator[AsyncSession, None]: - """Context manager for database session""" - async with async_session() as session: - try: - yield session - await session.commit() - except Exception: - await session.rollback() - raise - finally: - await session.close() - - -async def init_db() -> None: - """Initialize database tables""" - async with engine.begin() as conn: - await conn.run_sync(Base.metadata.create_all) - - -async def close_db() -> None: - """Close database connections""" - await engine.dispose() diff --git a/app/db/models.py b/app/db/models.py deleted file mode 100644 index fe1f08d..0000000 --- a/app/db/models.py +++ /dev/null @@ -1,545 +0,0 @@ -""" -SQLAlchemy Database Models -온프레미스 문서 검색 RAG 시스템 데이터 모델 -""" -from __future__ import annotations - -import enum -import uuid -from datetime import datetime -from typing import TYPE_CHECKING, Optional - -from sqlalchemy import ( - Boolean, - DateTime, - Enum, - Float, - ForeignKey, - Index, - Integer, - String, - Text, - UniqueConstraint, - func, -) -from sqlalchemy.dialects.postgresql import ARRAY, JSONB, UUID -from sqlalchemy.orm import Mapped, mapped_column, relationship - -from .base import Base - - -# ==================== -# Enums -# ==================== - -class UserRole(str, enum.Enum): - ADMIN = "ADMIN" - MANAGER = "MANAGER" - USER = "USER" - VIEWER = "VIEWER" - - -class Classification(str, enum.Enum): - PUBLIC = "PUBLIC" - INTERNAL = "INTERNAL" - CONFIDENTIAL = "CONFIDENTIAL" - RESTRICTED = "RESTRICTED" - - -class DocumentStatus(str, enum.Enum): - PENDING = "pending" - PROCESSING = "processing" - READY = "ready" - ERROR = "error" - DELETED = "deleted" - - -class JobType(str, enum.Enum): - EXTRACT = "extract" - OCR = "ocr" - ASR = "asr" - EMBED = "embed" - REINDEX = "reindex" - - -class JobStatus(str, enum.Enum): - PENDING = "pending" - RUNNING = "running" - COMPLETED = "completed" - FAILED = "failed" - CANCELLED = "cancelled" - - -class Permission(str, enum.Enum): - READ = "read" - WRITE = "write" - DELETE = "delete" - ADMIN = "admin" - - -class AuditAction(str, enum.Enum): - LOGIN = "login" - LOGOUT = "logout" - UPLOAD = "upload" - DOWNLOAD = "download" - VIEW = "view" - SEARCH = "search" - CHAT = "chat" - DELETE = "delete" - UPDATE = "update" - PERMISSION_CHANGE = "permission_change" - - -# ==================== -# Models -# ==================== - -class Department(Base): - """부서 테이블""" - __tablename__ = "departments" - - id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), primary_key=True, default=uuid.uuid4 - ) - name: Mapped[str] = mapped_column(String(100), nullable=False) - code: Mapped[str] = mapped_column(String(20), unique=True, nullable=False) - parent_id: Mapped[Optional[uuid.UUID]] = mapped_column( - UUID(as_uuid=True), ForeignKey("departments.id"), nullable=True - ) - description: Mapped[Optional[str]] = mapped_column(Text, nullable=True) - is_active: Mapped[bool] = mapped_column(Boolean, default=True) - created_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now() - ) - updated_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now(), onupdate=func.now() - ) - - # Relationships - parent: Mapped[Optional["Department"]] = relationship( - "Department", remote_side=[id], back_populates="children" - ) - children: Mapped[list["Department"]] = relationship( - "Department", back_populates="parent" - ) - users: Mapped[list["User"]] = relationship("User", back_populates="department") - projects: Mapped[list["Project"]] = relationship("Project", back_populates="department") - documents: Mapped[list["Document"]] = relationship("Document", back_populates="department") - - -class User(Base): - """사용자 테이블""" - __tablename__ = "users" - - id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), primary_key=True, default=uuid.uuid4 - ) - username: Mapped[str] = mapped_column(String(50), unique=True, nullable=False) - email: Mapped[str] = mapped_column(String(255), unique=True, nullable=False) - password_hash: Mapped[str] = mapped_column(String(255), nullable=False) - full_name: Mapped[str] = mapped_column(String(100), nullable=False) - role: Mapped[UserRole] = mapped_column( - Enum(UserRole, name="userrole", native_enum=True, values_callable=lambda x: [e.value for e in x]), - default=UserRole.USER, nullable=False - ) - department_id: Mapped[Optional[uuid.UUID]] = mapped_column( - UUID(as_uuid=True), ForeignKey("departments.id"), nullable=True - ) - max_classification: Mapped[Classification] = mapped_column( - Enum(Classification, name="classification", native_enum=True, values_callable=lambda x: [e.value for e in x]), - default=Classification.INTERNAL, nullable=False - ) - is_active: Mapped[bool] = mapped_column(Boolean, default=True) - is_verified: Mapped[bool] = mapped_column(Boolean, default=False) - last_login: Mapped[Optional[datetime]] = mapped_column( - DateTime(timezone=True), nullable=True - ) - created_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now() - ) - updated_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now(), onupdate=func.now() - ) - - # Relationships - department: Mapped[Optional["Department"]] = relationship( - "Department", back_populates="users" - ) - documents: Mapped[list["Document"]] = relationship( - "Document", back_populates="uploaded_by_user" - ) - access_policies: Mapped[list["AccessPolicy"]] = relationship( - "AccessPolicy", foreign_keys="AccessPolicy.user_id", back_populates="user" - ) - audit_logs: Mapped[list["AuditLog"]] = relationship( - "AuditLog", back_populates="user" - ) - search_logs: Mapped[list["SearchLog"]] = relationship( - "SearchLog", back_populates="user" - ) - - __table_args__ = ( - Index("ix_users_email", "email"), - Index("ix_users_username", "username"), - Index("ix_users_department", "department_id"), - ) - - -class Project(Base): - """프로젝트 테이블""" - __tablename__ = "projects" - - id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), primary_key=True, default=uuid.uuid4 - ) - name: Mapped[str] = mapped_column(String(200), nullable=False) - code: Mapped[str] = mapped_column(String(50), unique=True, nullable=False) - description: Mapped[Optional[str]] = mapped_column(Text, nullable=True) - department_id: Mapped[Optional[uuid.UUID]] = mapped_column( - UUID(as_uuid=True), ForeignKey("departments.id"), nullable=True - ) - is_active: Mapped[bool] = mapped_column(Boolean, default=True) - created_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now() - ) - updated_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now(), onupdate=func.now() - ) - - # Relationships - department: Mapped[Optional["Department"]] = relationship( - "Department", back_populates="projects" - ) - documents: Mapped[list["Document"]] = relationship( - "Document", back_populates="project" - ) - access_policies: Mapped[list["AccessPolicy"]] = relationship( - "AccessPolicy", back_populates="project" - ) - - -class Document(Base): - """문서 테이블""" - __tablename__ = "documents" - - id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), primary_key=True, default=uuid.uuid4 - ) - filename: Mapped[str] = mapped_column(String(500), nullable=False) - original_path: Mapped[Optional[str]] = mapped_column(String(1000), nullable=True) - file_hash: Mapped[str] = mapped_column(String(64), nullable=False) # SHA256 - file_size: Mapped[int] = mapped_column(Integer, nullable=False) - mime_type: Mapped[str] = mapped_column(String(100), nullable=False) - storage_key: Mapped[str] = mapped_column(String(500), nullable=False) # MinIO key - - # Classification - classification: Mapped[Classification] = mapped_column( - Enum(Classification), default=Classification.INTERNAL, nullable=False - ) - - # Organization - department_id: Mapped[Optional[uuid.UUID]] = mapped_column( - UUID(as_uuid=True), ForeignKey("departments.id"), nullable=True - ) - project_id: Mapped[Optional[uuid.UUID]] = mapped_column( - UUID(as_uuid=True), ForeignKey("projects.id"), nullable=True - ) - - # Metadata - title: Mapped[Optional[str]] = mapped_column(String(500), nullable=True) - author: Mapped[Optional[str]] = mapped_column(String(200), nullable=True) - document_date: Mapped[Optional[datetime]] = mapped_column( - DateTime(timezone=True), nullable=True - ) - page_count: Mapped[Optional[int]] = mapped_column(Integer, nullable=True) - tags: Mapped[Optional[list]] = mapped_column(ARRAY(String), nullable=True) - doc_metadata: Mapped[Optional[dict]] = mapped_column(JSONB, nullable=True) - - # Processing status - status: Mapped[DocumentStatus] = mapped_column( - Enum(DocumentStatus), default=DocumentStatus.PENDING, nullable=False - ) - error_message: Mapped[Optional[str]] = mapped_column(Text, nullable=True) - chunk_count: Mapped[int] = mapped_column(Integer, default=0) - - # Version control - version: Mapped[int] = mapped_column(Integer, default=1) - parent_id: Mapped[Optional[uuid.UUID]] = mapped_column( - UUID(as_uuid=True), ForeignKey("documents.id"), nullable=True - ) - - # Audit - uploaded_by: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), ForeignKey("users.id"), nullable=False - ) - created_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now() - ) - updated_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now(), onupdate=func.now() - ) - deleted_at: Mapped[Optional[datetime]] = mapped_column( - DateTime(timezone=True), nullable=True - ) - - # Relationships - department: Mapped[Optional["Department"]] = relationship( - "Department", back_populates="documents" - ) - project: Mapped[Optional["Project"]] = relationship( - "Project", back_populates="documents" - ) - uploaded_by_user: Mapped["User"] = relationship( - "User", back_populates="documents" - ) - parent: Mapped[Optional["Document"]] = relationship( - "Document", remote_side=[id], back_populates="versions" - ) - versions: Mapped[list["Document"]] = relationship( - "Document", back_populates="parent" - ) - chunks: Mapped[list["DocumentChunk"]] = relationship( - "DocumentChunk", back_populates="document", cascade="all, delete-orphan" - ) - access_policies: Mapped[list["AccessPolicy"]] = relationship( - "AccessPolicy", back_populates="document", cascade="all, delete-orphan" - ) - processing_jobs: Mapped[list["ProcessingJob"]] = relationship( - "ProcessingJob", back_populates="document", cascade="all, delete-orphan" - ) - - __table_args__ = ( - Index("ix_documents_file_hash", "file_hash"), - Index("ix_documents_status", "status"), - Index("ix_documents_department", "department_id"), - Index("ix_documents_project", "project_id"), - Index("ix_documents_classification", "classification"), - Index("ix_documents_created", "created_at"), - UniqueConstraint("file_hash", "version", name="uq_document_hash_version"), - ) - - -class DocumentChunk(Base): - """문서 청크 테이블""" - __tablename__ = "document_chunks" - - id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), primary_key=True, default=uuid.uuid4 - ) - document_id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), ForeignKey("documents.id", ondelete="CASCADE"), nullable=False - ) - chunk_index: Mapped[int] = mapped_column(Integer, nullable=False) - - # Content - text: Mapped[str] = mapped_column(Text, nullable=False) - text_hash: Mapped[str] = mapped_column(String(64), nullable=False) - char_start: Mapped[int] = mapped_column(Integer, nullable=False) - char_end: Mapped[int] = mapped_column(Integer, nullable=False) - - # Location - page_number: Mapped[Optional[int]] = mapped_column(Integer, nullable=True) - sheet_name: Mapped[Optional[str]] = mapped_column(String(200), nullable=True) - slide_number: Mapped[Optional[int]] = mapped_column(Integer, nullable=True) - - # Vector DB reference - qdrant_point_id: Mapped[str] = mapped_column(String(100), nullable=False) - - # Metadata - heading: Mapped[Optional[str]] = mapped_column(String(500), nullable=True) - has_table: Mapped[bool] = mapped_column(Boolean, default=False) - has_image: Mapped[bool] = mapped_column(Boolean, default=False) - chunk_metadata: Mapped[Optional[dict]] = mapped_column(JSONB, nullable=True) - - created_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now() - ) - - # Relationships - document: Mapped["Document"] = relationship("Document", back_populates="chunks") - - __table_args__ = ( - Index("ix_chunks_document", "document_id"), - Index("ix_chunks_text_hash", "text_hash"), - Index("ix_chunks_qdrant_id", "qdrant_point_id"), - UniqueConstraint("document_id", "chunk_index", name="uq_chunk_doc_index"), - ) - - -class AccessPolicy(Base): - """접근 정책 테이블""" - __tablename__ = "access_policies" - - id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), primary_key=True, default=uuid.uuid4 - ) - - # Target user - user_id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), ForeignKey("users.id"), nullable=False - ) - - # Resource (either document or project) - document_id: Mapped[Optional[uuid.UUID]] = mapped_column( - UUID(as_uuid=True), ForeignKey("documents.id", ondelete="CASCADE"), nullable=True - ) - project_id: Mapped[Optional[uuid.UUID]] = mapped_column( - UUID(as_uuid=True), ForeignKey("projects.id"), nullable=True - ) - - # Permission - permission: Mapped[Permission] = mapped_column( - Enum(Permission), default=Permission.READ, nullable=False - ) - - # Audit - granted_by: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), ForeignKey("users.id"), nullable=False - ) - expires_at: Mapped[Optional[datetime]] = mapped_column( - DateTime(timezone=True), nullable=True - ) - created_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now() - ) - - # Relationships - user: Mapped["User"] = relationship( - "User", foreign_keys=[user_id], back_populates="access_policies" - ) - document: Mapped[Optional["Document"]] = relationship( - "Document", back_populates="access_policies" - ) - project: Mapped[Optional["Project"]] = relationship( - "Project", back_populates="access_policies" - ) - - __table_args__ = ( - Index("ix_access_user", "user_id"), - Index("ix_access_document", "document_id"), - Index("ix_access_project", "project_id"), - ) - - -class AuditLog(Base): - """감사 로그 테이블""" - __tablename__ = "audit_logs" - - id: Mapped[int] = mapped_column(Integer, primary_key=True, autoincrement=True) - - user_id: Mapped[Optional[uuid.UUID]] = mapped_column( - UUID(as_uuid=True), ForeignKey("users.id"), nullable=True - ) - action: Mapped[AuditAction] = mapped_column(Enum(AuditAction), nullable=False) - resource_type: Mapped[str] = mapped_column(String(50), nullable=False) - resource_id: Mapped[Optional[str]] = mapped_column(String(100), nullable=True) - - # Request details - ip_address: Mapped[Optional[str]] = mapped_column(String(50), nullable=True) - user_agent: Mapped[Optional[str]] = mapped_column(String(500), nullable=True) - - # Additional data - details: Mapped[Optional[dict]] = mapped_column(JSONB, nullable=True) - - created_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now() - ) - - # Relationships - user: Mapped[Optional["User"]] = relationship("User", back_populates="audit_logs") - - __table_args__ = ( - Index("ix_audit_user", "user_id"), - Index("ix_audit_action", "action"), - Index("ix_audit_created", "created_at"), - Index("ix_audit_resource", "resource_type", "resource_id"), - ) - - -class SearchLog(Base): - """검색 로그 테이블""" - __tablename__ = "search_logs" - - id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), primary_key=True, default=uuid.uuid4 - ) - - user_id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), ForeignKey("users.id"), nullable=False - ) - - # Query - query: Mapped[str] = mapped_column(Text, nullable=False) - query_hash: Mapped[str] = mapped_column(String(64), nullable=False) - rewritten_queries: Mapped[Optional[list]] = mapped_column(ARRAY(String), nullable=True) - - # Results - results_count: Mapped[int] = mapped_column(Integer, default=0) - top_doc_ids: Mapped[Optional[list]] = mapped_column(ARRAY(String), nullable=True) - - # Performance - latency_ms: Mapped[Optional[dict]] = mapped_column(JSONB, nullable=True) - - # Feedback - feedback: Mapped[Optional[dict]] = mapped_column(JSONB, nullable=True) - - created_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now() - ) - - # Relationships - user: Mapped["User"] = relationship("User", back_populates="search_logs") - - __table_args__ = ( - Index("ix_search_user", "user_id"), - Index("ix_search_query_hash", "query_hash"), - Index("ix_search_created", "created_at"), - ) - - -class ProcessingJob(Base): - """처리 작업 테이블""" - __tablename__ = "processing_jobs" - - id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), primary_key=True, default=uuid.uuid4 - ) - - document_id: Mapped[uuid.UUID] = mapped_column( - UUID(as_uuid=True), ForeignKey("documents.id", ondelete="CASCADE"), nullable=False - ) - - job_type: Mapped[JobType] = mapped_column(Enum(JobType), nullable=False) - status: Mapped[JobStatus] = mapped_column( - Enum(JobStatus), default=JobStatus.PENDING, nullable=False - ) - progress: Mapped[int] = mapped_column(Integer, default=0) # 0-100 - - # Celery task - celery_task_id: Mapped[Optional[str]] = mapped_column(String(100), nullable=True) - - # Error handling - error_message: Mapped[Optional[str]] = mapped_column(Text, nullable=True) - retry_count: Mapped[int] = mapped_column(Integer, default=0) - - # Timing - started_at: Mapped[Optional[datetime]] = mapped_column( - DateTime(timezone=True), nullable=True - ) - completed_at: Mapped[Optional[datetime]] = mapped_column( - DateTime(timezone=True), nullable=True - ) - created_at: Mapped[datetime] = mapped_column( - DateTime(timezone=True), server_default=func.now() - ) - - # Relationships - document: Mapped["Document"] = relationship( - "Document", back_populates="processing_jobs" - ) - - __table_args__ = ( - Index("ix_jobs_document", "document_id"), - Index("ix_jobs_status", "status"), - Index("ix_jobs_celery", "celery_task_id"), - ) diff --git a/app/dependencies.py b/app/dependencies.py deleted file mode 100644 index c86fb29..0000000 --- a/app/dependencies.py +++ /dev/null @@ -1,130 +0,0 @@ -""" -FastAPI Dependencies -의존성 주입 모듈 -""" -from __future__ import annotations - -import uuid -from typing import Annotated - -from fastapi import Depends, Header, HTTPException, status -from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer -from sqlalchemy.ext.asyncio import AsyncSession - -from app.core.config import settings -from app.db.base import get_db -from app.db.models import Permission, User -from app.services.auth import AuthService - -# Security schemes -bearer_scheme = HTTPBearer(auto_error=False) - - -async def get_auth_service( - db: Annotated[AsyncSession, Depends(get_db)], -) -> AuthService: - """Get authentication service""" - return AuthService(db) - - -async def get_current_user( - db: Annotated[AsyncSession, Depends(get_db)], - credentials: Annotated[HTTPAuthorizationCredentials | None, Depends(bearer_scheme)] = None, - x_api_key: Annotated[str | None, Header()] = None, - auth_service: AuthService = Depends(get_auth_service), -) -> User: - """ - Get current authenticated user (authentication disabled - returns first user) - """ - from sqlalchemy import select - from app.db.models import User, UserRole, Classification - import uuid - - # Return any user from database (for no-auth mode) - result = await db.execute(select(User).where(User.is_active == True).limit(1)) - user = result.scalar_one_or_none() - - if not user: - # Create a temporary system user if no users exist - user = User( - id=uuid.uuid4(), - username="system", - email="system@localhost", - password_hash="", - full_name="System User", - role=UserRole.ADMIN, - max_classification=Classification.RESTRICTED, - is_active=True, - ) - db.add(user) - await db.commit() - await db.refresh(user) - - return user - - -async def get_current_active_user( - current_user: Annotated[User, Depends(get_current_user)], -) -> User: - """Get current active user""" - return current_user - - -async def get_current_admin( - current_user: Annotated[User, Depends(get_current_user)], -) -> User: - """Get current admin user""" - from app.db.models import UserRole - - if current_user.role != UserRole.ADMIN: - raise HTTPException( - status_code=status.HTTP_403_FORBIDDEN, - detail="관리자 권한이 필요합니다", - ) - return current_user - - -async def get_optional_user( - db: Annotated[AsyncSession, Depends(get_db)], - credentials: Annotated[HTTPAuthorizationCredentials | None, Depends(bearer_scheme)] = None, - auth_service: AuthService = Depends(get_auth_service), -) -> User | None: - """Get current user if authenticated (authentication disabled - returns first user)""" - from sqlalchemy import select - from app.db.models import User - - result = await db.execute(select(User).where(User.is_active == True).limit(1)) - return result.scalar_one_or_none() - - -class DocumentAccessChecker: - """Dependency for checking document access""" - - def __init__(self, required_permission: Permission = Permission.READ): - self.required_permission = required_permission - - async def __call__( - self, - document_id: uuid.UUID, - current_user: Annotated[User, Depends(get_current_user)], - auth_service: AuthService = Depends(get_auth_service), - ) -> uuid.UUID: - has_access = await auth_service.check_document_access( - current_user, - document_id, - self.required_permission, - ) - - if not has_access: - raise HTTPException( - status_code=status.HTTP_403_FORBIDDEN, - detail="이 문서에 대한 접근 권한이 없습니다", - ) - - return document_id - - -# Pre-configured access checkers -require_read_access = DocumentAccessChecker(Permission.READ) -require_write_access = DocumentAccessChecker(Permission.WRITE) -require_delete_access = DocumentAccessChecker(Permission.DELETE) diff --git a/app/extraction/__init__.py b/app/extraction/__init__.py deleted file mode 100644 index faee5f8..0000000 --- a/app/extraction/__init__.py +++ /dev/null @@ -1,534 +0,0 @@ -""" -Enhanced Text Extraction Module -다양한 문서 형식에서 텍스트 추출 -- PDF (일반/스캔), Word, Excel, PPT, 이미지, HWP, 텍스트 -- OCR 지원 (PaddleOCR) -- 테이블 추출 (pdfplumber) -""" -from __future__ import annotations - -import io -import re -import tempfile -from dataclasses import dataclass, field -from pathlib import Path -from typing import BinaryIO, Optional - -from app.core.config import settings - - -@dataclass -class TextUnit: - """Extracted text unit with metadata""" - text: str - page: int | None = None - sheet: str | None = None - slide: int | None = None - heading: str | None = None - is_table: bool = False - is_ocr: bool = False - metadata: dict = field(default_factory=dict) - - -@dataclass -class ExtractionResult: - """Result of document extraction""" - units: list[TextUnit] - title: str | None = None - author: str | None = None - page_count: int | None = None - metadata: dict = field(default_factory=dict) - warnings: list[str] = field(default_factory=list) - - -# Regex patterns for text normalization -_CTRL_RE = re.compile(r"[\u0000-\u0008\u000B\u000C\u000E-\u001F]") -_ZW_RE = re.compile(r"[\u200B-\u200D\uFEFF]") -_MULTI_SPACE_RE = re.compile(r"[ \t]+") -_MULTI_NEWLINE_RE = re.compile(r"\n{3,}") - - -def normalize_text(s: str) -> str: - """Normalize text by removing control characters and excessive whitespace""" - s = s.replace("\r\n", "\n").replace("\r", "\n") - s = _CTRL_RE.sub(" ", s) - s = _ZW_RE.sub("", s) - s = _MULTI_SPACE_RE.sub(" ", s) - s = _MULTI_NEWLINE_RE.sub("\n\n", s) - return s.strip() - - -class TextExtractor: - """Main text extractor class""" - - def __init__(self): - self._ocr_model = None - - @property - def ocr_model(self): - """Lazy load OCR model""" - if self._ocr_model is None and settings.ocr_enabled: - try: - from paddleocr import PaddleOCR - self._ocr_model = PaddleOCR( - use_angle_cls=True, - lang='korean' if settings.ocr_lang == 'korean' else 'en', - use_gpu=settings.ocr_use_gpu, - show_log=False, - ) - except ImportError: - # Fallback to pytesseract - pass - return self._ocr_model - - def extract( - self, - file_path: Path | str, - file_data: BinaryIO | bytes | None = None, - ) -> ExtractionResult: - """ - Extract text from a file - - Args: - file_path: Path to the file or filename for type detection - file_data: Optional file data (if not reading from disk) - - Returns: - ExtractionResult with extracted text units - """ - path = Path(file_path) - ext = path.suffix.lower() - - # If file_data is provided, save to temp file for processing - if file_data is not None: - if isinstance(file_data, bytes): - data = file_data - else: - data = file_data.read() - - with tempfile.NamedTemporaryFile(suffix=ext, delete=False) as tmp: - tmp.write(data) - tmp_path = Path(tmp.name) - - try: - return self._extract_by_type(tmp_path, ext) - finally: - tmp_path.unlink(missing_ok=True) - else: - return self._extract_by_type(path, ext) - - def _extract_by_type(self, path: Path, ext: str) -> ExtractionResult: - """Route extraction based on file type""" - extractors = { - ".pdf": self._extract_pdf, - ".docx": self._extract_docx, - ".xlsx": self._extract_xlsx, - ".xlsm": self._extract_xlsx, - ".pptx": self._extract_pptx, - ".txt": self._extract_text, - ".md": self._extract_text, - ".hwp": self._extract_hwp, - ".png": self._extract_image, - ".jpg": self._extract_image, - ".jpeg": self._extract_image, - ".tiff": self._extract_image, - ".bmp": self._extract_image, - } - - extractor = extractors.get(ext) - if not extractor: - raise ValueError(f"Unsupported file type: {ext}") - - return extractor(path) - - def _extract_pdf(self, path: Path) -> ExtractionResult: - """Extract text from PDF, with OCR fallback for scanned pages""" - import fitz # PyMuPDF - - units: list[TextUnit] = [] - warnings: list[str] = [] - - doc = fitz.open(str(path)) - metadata = { - "title": doc.metadata.get("title"), - "author": doc.metadata.get("author"), - "subject": doc.metadata.get("subject"), - "creator": doc.metadata.get("creator"), - } - - for page_num in range(len(doc)): - page = doc[page_num] - - # Try normal text extraction first - text = page.get_text("text") - - if text.strip(): - units.append(TextUnit( - text=normalize_text(text), - page=page_num + 1, - is_ocr=False, - )) - elif settings.ocr_enabled: - # Page might be scanned, try OCR - ocr_text = self._ocr_page(page) - if ocr_text: - units.append(TextUnit( - text=normalize_text(ocr_text), - page=page_num + 1, - is_ocr=True, - )) - else: - warnings.append(f"Page {page_num + 1}: No text extracted (possibly blank or unreadable)") - - # Also extract tables - table_units = self._extract_pdf_tables(path) - units.extend(table_units) - - # Store page count before closing document - page_count = len(doc) - doc.close() - - if not units: - raise RuntimeError(f"PDF text extraction produced empty result: {path}") - - return ExtractionResult( - units=units, - title=metadata.get("title"), - author=metadata.get("author"), - page_count=page_count, - metadata=metadata, - warnings=warnings, - ) - - def _extract_pdf_tables(self, path: Path) -> list[TextUnit]: - """Extract tables from PDF using pdfplumber""" - try: - import pdfplumber - except ImportError: - return [] - - units: list[TextUnit] = [] - - with pdfplumber.open(str(path)) as pdf: - for page_num, page in enumerate(pdf.pages, start=1): - tables = page.extract_tables() - - for table_idx, table in enumerate(tables): - if not table: - continue - - # Convert table to markdown format - md_lines = [] - headers = table[0] if table else [] - - if headers: - header_row = "| " + " | ".join(str(h or "").strip() for h in headers) + " |" - md_lines.append(header_row) - md_lines.append("|" + "|".join(["---"] * len(headers)) + "|") - - for row in table[1:] if len(table) > 1 else []: - row_text = "| " + " | ".join(str(c or "").strip() for c in row) + " |" - md_lines.append(row_text) - - table_text = "\n".join(md_lines) - if table_text.strip(): - units.append(TextUnit( - text=normalize_text(table_text), - page=page_num, - heading=f"Table {table_idx + 1}", - is_table=True, - )) - - return units - - def _ocr_page(self, page) -> str: - """OCR a PDF page""" - if not self.ocr_model: - return "" - - # Render page to image - pix = page.get_pixmap(dpi=300) - img_data = pix.tobytes("png") - - # Save to temp file for OCR - with tempfile.NamedTemporaryFile(suffix=".png", delete=False) as tmp: - tmp.write(img_data) - tmp_path = tmp.name - - try: - result = self.ocr_model.ocr(tmp_path, cls=True) - if result and result[0]: - texts = [line[1][0] for line in result[0] if line[1]] - return "\n".join(texts) - finally: - Path(tmp_path).unlink(missing_ok=True) - - return "" - - def _extract_docx(self, path: Path) -> ExtractionResult: - """Extract text from Word document""" - from docx import Document - from docx.opc.exceptions import PackageNotFoundError - - try: - doc = Document(str(path)) - except PackageNotFoundError: - raise RuntimeError(f"Invalid or corrupted DOCX file: {path}") - - units: list[TextUnit] = [] - current_heading: str | None = None - current_text: list[str] = [] - - def flush_section(): - nonlocal current_text, current_heading - if current_text: - text = "\n\n".join(current_text) - if text.strip(): - units.append(TextUnit( - text=normalize_text(text), - heading=current_heading, - )) - current_text = [] - - # Extract paragraphs with heading tracking - for para in doc.paragraphs: - if para.style.name.startswith("Heading"): - flush_section() - current_heading = para.text.strip() - else: - text = para.text.strip() - if text: - current_text.append(text) - - flush_section() - - # Extract tables - for table_idx, table in enumerate(doc.tables): - rows = [] - for row in table.rows: - cells = [cell.text.strip() for cell in row.cells] - if any(cells): - rows.append(" | ".join(cells)) - - if rows: - # Create markdown table - if len(rows) > 1: - md_lines = [ - "| " + rows[0] + " |", - "|" + "|".join(["---"] * rows[0].count("|")) + "|", - ] - md_lines.extend(["| " + r + " |" for r in rows[1:]]) - table_text = "\n".join(md_lines) - else: - table_text = rows[0] - - units.append(TextUnit( - text=normalize_text(table_text), - heading=f"Table {table_idx + 1}", - is_table=True, - )) - - # Get metadata - core_props = doc.core_properties - metadata = { - "title": core_props.title, - "author": core_props.author, - "subject": core_props.subject, - "created": str(core_props.created) if core_props.created else None, - } - - if not units: - raise RuntimeError(f"DOCX text extraction produced empty result: {path}") - - return ExtractionResult( - units=units, - title=metadata.get("title"), - author=metadata.get("author"), - metadata=metadata, - ) - - def _extract_xlsx(self, path: Path) -> ExtractionResult: - """Extract text from Excel workbook""" - import openpyxl - - wb = openpyxl.load_workbook(str(path), data_only=True, read_only=True) - units: list[TextUnit] = [] - - for sheet_name in wb.sheetnames: - ws = wb[sheet_name] - rows: list[str] = [] - - for row in ws.iter_rows(values_only=True): - vals = [] - for v in row: - if v is not None: - s = str(v).strip() - if s: - vals.append(s) - if vals: - rows.append(" | ".join(vals)) - - if rows: - # Create markdown table format - text = "\n".join(rows) - units.append(TextUnit( - text=normalize_text(text), - sheet=sheet_name, - is_table=True, - )) - - wb.close() - - if not units: - raise RuntimeError(f"XLSX text extraction produced empty result: {path}") - - return ExtractionResult(units=units) - - def _extract_pptx(self, path: Path) -> ExtractionResult: - """Extract text from PowerPoint presentation""" - from pptx import Presentation - - prs = Presentation(str(path)) - units: list[TextUnit] = [] - - for slide_num, slide in enumerate(prs.slides, start=1): - texts: list[str] = [] - - for shape in slide.shapes: - if hasattr(shape, "text") and shape.text.strip(): - texts.append(shape.text.strip()) - - # Extract table content - if shape.has_table: - table = shape.table - for row in table.rows: - row_texts = [cell.text.strip() for cell in row.cells] - if any(row_texts): - texts.append(" | ".join(row_texts)) - - # Extract notes - if slide.has_notes_slide: - notes = slide.notes_slide.notes_text_frame.text.strip() - if notes: - texts.append(f"\n[노트]\n{notes}") - - if texts: - units.append(TextUnit( - text=normalize_text("\n\n".join(texts)), - slide=slide_num, - )) - - # Get metadata - core_props = prs.core_properties - metadata = { - "title": core_props.title, - "author": core_props.author, - "subject": core_props.subject, - } - - if not units: - raise RuntimeError(f"PPTX text extraction produced empty result: {path}") - - return ExtractionResult( - units=units, - title=metadata.get("title"), - author=metadata.get("author"), - page_count=len(prs.slides), - metadata=metadata, - ) - - def _extract_text(self, path: Path) -> ExtractionResult: - """Extract text from plain text file""" - text = path.read_text(encoding="utf-8", errors="ignore") - text = normalize_text(text) - - if not text: - raise RuntimeError(f"Text file is empty: {path}") - - return ExtractionResult( - units=[TextUnit(text=text)], - ) - - def _extract_hwp(self, path: Path) -> ExtractionResult: - """Extract text from HWP (Hangul Word Processor) file""" - try: - import olefile - import zlib - except ImportError: - raise RuntimeError("olefile package required for HWP extraction") - - texts: list[str] = [] - - try: - ole = olefile.OleFileIO(str(path)) - - # Try to extract from BodyText sections - for stream in ole.listdir(): - if stream[0] == "BodyText": - data = ole.openstream(stream).read() - - # Try to decompress - try: - decompressed = zlib.decompress(data, -15) - # HWP uses UTF-16 LE encoding - text = decompressed.decode("utf-16-le", errors="ignore") - # Remove control characters - text = normalize_text(text) - if text: - texts.append(text) - except zlib.error: - # Not compressed, try direct decode - text = data.decode("utf-16-le", errors="ignore") - text = normalize_text(text) - if text: - texts.append(text) - - ole.close() - except Exception as e: - raise RuntimeError(f"Failed to extract HWP: {e}") - - if not texts: - raise RuntimeError(f"HWP text extraction produced empty result: {path}") - - return ExtractionResult( - units=[TextUnit(text="\n\n".join(texts))], - warnings=["HWP extraction is limited; some formatting may be lost"], - ) - - def _extract_image(self, path: Path) -> ExtractionResult: - """Extract text from image using OCR""" - if not self.ocr_model: - raise RuntimeError("OCR is not enabled or available") - - result = self.ocr_model.ocr(str(path), cls=True) - - if result and result[0]: - texts = [line[1][0] for line in result[0] if line[1]] - text = "\n".join(texts) - - if text.strip(): - return ExtractionResult( - units=[TextUnit(text=normalize_text(text), is_ocr=True)], - ) - - raise RuntimeError(f"Image OCR produced empty result: {path}") - - -# Singleton instance -_extractor: TextExtractor | None = None - - -def get_text_extractor() -> TextExtractor: - """Get text extractor singleton""" - global _extractor - if _extractor is None: - _extractor = TextExtractor() - return _extractor - - -def extract_text_from_file( - file_path: Path | str, - file_data: BinaryIO | bytes | None = None, -) -> ExtractionResult: - """Convenience function to extract text from a file""" - return get_text_extractor().extract(file_path, file_data) diff --git a/app/llm/__init__.py b/app/llm/__init__.py deleted file mode 100644 index f456628..0000000 --- a/app/llm/__init__.py +++ /dev/null @@ -1,330 +0,0 @@ -""" -LLM Service -Ollama 기반 LLM 서빙 및 RAG 응답 생성 -""" -from __future__ import annotations - -import time -from dataclasses import dataclass -from typing import AsyncIterator, Optional - -import httpx - -from app.core.config import settings -from app.search import SearchResult - - -@dataclass -class LLMResponse: - """LLM response with metadata""" - answer: str - model: str - prompt_tokens: int = 0 - completion_tokens: int = 0 - latency_ms: float = 0.0 - - -# System prompt for RAG (Optimized for Qwen2.5:7B) -SYSTEM_PROMPT_KO = """당신은 전문적인 사내 문서 검색 AI 어시스턴트입니다. 반드시 한국어로만 응답하세요. - -## 핵심 원칙 -1. **근거 기반 답변**: 오직 제공된 문서 발췌문에서만 정보를 가져옵니다 -2. **출처 명시**: 모든 주장에는 반드시 [1], [2] 형식의 인용 번호를 붙입니다 -3. **정직함**: 문서에 없는 정보는 "제공된 문서에서 해당 정보를 찾을 수 없습니다"라고 명시합니다 -4. **정확성**: 추측하거나 외부 지식을 절대 사용하지 않습니다 -5. **한국어 전용**: 다른 언어로 답변하지 않으며, 한국어 맥락을 정확히 이해합니다 - -## 답변 형식 -- 답변은 명확하고 간결하게 한국어로만 작성합니다 -- 핵심 정보를 먼저 제시하고 세부사항은 나중에 설명합니다 -- 표나 목록이 적절하면 사용합니다 -- 답변 끝에 참고한 출처 목록을 정리합니다 -- 전문 용어는 한국어로 번역하거나 설명을 덧붙입니다 - -## 금지 사항 -- 문서에 없는 정보를 생성하지 않습니다 -- 확실하지 않은 정보를 단정적으로 말하지 않습니다 -- 개인정보나 민감한 정보를 불필요하게 언급하지 않습니다 -- 중국어, 영어 등 다른 언어를 섞어서 사용하지 않습니다""" - - -def build_context_block(contexts: list[SearchResult]) -> str: - """Build context block from search results""" - blocks = [] - - for i, ctx in enumerate(contexts, start=1): - source_info = f"문서: {ctx.source}" - if ctx.page: - source_info += f", 페이지: {ctx.page}" - if ctx.sheet: - source_info += f", 시트: {ctx.sheet}" - if ctx.slide: - source_info += f", 슬라이드: {ctx.slide}" - if ctx.heading: - source_info += f", 섹션: {ctx.heading}" - - blocks.append(f"[{i}] {source_info}\n내용: {ctx.text}") - - return "\n\n---\n\n".join(blocks) - - -def build_rag_prompt(query: str, contexts: list[SearchResult]) -> str: - """Build the RAG prompt""" - context_str = build_context_block(contexts) - - return f"""## 질문 -{query} - -## 참고 문서 (아래 내용만 사용하여 답변하세요) - -{context_str} - -## 답변 (반드시 위 문서 내용만 인용하여 작성하고, 인용 번호 [1], [2] 등을 명시하세요):""" - - -class LLMService: - """LLM service using Ollama""" - - def __init__(self): - self.base_url = settings.ollama_base_url - self.default_model = settings.ollama_model - self.timeout = settings.ollama_timeout - - def generate( - self, - prompt: str, - system_prompt: str | None = None, - model: str | None = None, - temperature: float | None = None, - max_tokens: int | None = None, - ) -> LLMResponse: - """ - Generate a response from the LLM - - Args: - prompt: User prompt - system_prompt: Optional system prompt - model: Model to use (default: from settings) - temperature: Sampling temperature - max_tokens: Maximum tokens to generate - - Returns: - LLMResponse with answer and metadata - """ - model = model or self.default_model - temperature = temperature if temperature is not None else settings.ollama_temperature - - t0 = time.perf_counter() - - with httpx.Client(timeout=self.timeout) as client: - response = client.post( - f"{self.base_url}/api/chat", - json={ - "model": model, - "messages": [ - {"role": "system", "content": system_prompt or SYSTEM_PROMPT_KO}, - {"role": "user", "content": prompt}, - ], - "options": { - "temperature": temperature, - "num_ctx": settings.ollama_num_ctx, - **({"num_predict": max_tokens} if max_tokens else {}), - }, - "stream": False, - }, - ) - response.raise_for_status() - data = response.json() - - latency_ms = (time.perf_counter() - t0) * 1000 - - return LLMResponse( - answer=data.get("message", {}).get("content", "").strip(), - model=model, - prompt_tokens=data.get("prompt_eval_count", 0), - completion_tokens=data.get("eval_count", 0), - latency_ms=latency_ms, - ) - - async def generate_async( - self, - prompt: str, - system_prompt: str | None = None, - model: str | None = None, - temperature: float | None = None, - max_tokens: int | None = None, - ) -> LLMResponse: - """Async version of generate""" - model = model or self.default_model - temperature = temperature if temperature is not None else settings.ollama_temperature - - t0 = time.perf_counter() - - async with httpx.AsyncClient(timeout=self.timeout) as client: - response = await client.post( - f"{self.base_url}/api/chat", - json={ - "model": model, - "messages": [ - {"role": "system", "content": system_prompt or SYSTEM_PROMPT_KO}, - {"role": "user", "content": prompt}, - ], - "options": { - "temperature": temperature, - "num_ctx": settings.ollama_num_ctx, - **({"num_predict": max_tokens} if max_tokens else {}), - }, - "stream": False, - }, - ) - response.raise_for_status() - data = response.json() - - latency_ms = (time.perf_counter() - t0) * 1000 - - return LLMResponse( - answer=data.get("message", {}).get("content", "").strip(), - model=model, - prompt_tokens=data.get("prompt_eval_count", 0), - completion_tokens=data.get("eval_count", 0), - latency_ms=latency_ms, - ) - - async def generate_stream( - self, - prompt: str, - system_prompt: str | None = None, - model: str | None = None, - temperature: float | None = None, - ) -> AsyncIterator[str]: - """ - Generate a streaming response - - Yields: - Text chunks as they are generated - """ - model = model or self.default_model - temperature = temperature if temperature is not None else settings.ollama_temperature - - async with httpx.AsyncClient(timeout=self.timeout) as client: - async with client.stream( - "POST", - f"{self.base_url}/api/chat", - json={ - "model": model, - "messages": [ - {"role": "system", "content": system_prompt or SYSTEM_PROMPT_KO}, - {"role": "user", "content": prompt}, - ], - "options": { - "temperature": temperature, - "num_ctx": settings.ollama_num_ctx, - }, - "stream": True, - }, - ) as response: - response.raise_for_status() - - import json - async for line in response.aiter_lines(): - if line: - try: - data = json.loads(line) - content = data.get("message", {}).get("content", "") - if content: - yield content - if data.get("done"): - break - except json.JSONDecodeError: - continue - - def rag_generate( - self, - query: str, - contexts: list[SearchResult], - model: str | None = None, - ) -> LLMResponse: - """ - Generate a RAG response - - Args: - query: User question - contexts: Retrieved context documents - model: Model to use - - Returns: - LLMResponse with grounded answer - """ - prompt = build_rag_prompt(query, contexts) - return self.generate(prompt, model=model) - - async def rag_generate_async( - self, - query: str, - contexts: list[SearchResult], - model: str | None = None, - ) -> LLMResponse: - """Async version of rag_generate""" - prompt = build_rag_prompt(query, contexts) - return await self.generate_async(prompt, model=model) - - def rewrite_query(self, query: str) -> list[str]: - """ - Rewrite query for better retrieval - - Args: - query: Original query - - Returns: - List of rewritten queries (including original) - """ - prompt = f"""당신은 문서 검색 쿼리 최적화 전문가입니다. -사용자의 질문을 검색 엔진에서 더 잘 찾을 수 있도록 3개의 다른 버전으로 재작성하세요. - -규칙: -1. 각 버전은 서로 다른 키워드/표현을 사용합니다 -2. 약어는 풀어서 작성합니다 (예: KPI → 핵심성과지표) -3. 동의어를 활용합니다 -4. 질문 형태와 키워드 나열 형태를 섞어 사용합니다 - -원본 질문: {query} - -재작성된 쿼리 (각 줄에 하나씩, 번호 없이):""" - - response = self.generate( - prompt, - system_prompt="You are a query optimization expert. Output only the rewritten queries, one per line.", - temperature=0.3, - max_tokens=500, - ) - - rewritten = [q.strip() for q in response.answer.split("\n") if q.strip()] - return [query] + rewritten[:3] - - def list_models(self) -> list[dict]: - """List available models""" - with httpx.Client(timeout=30) as client: - response = client.get(f"{self.base_url}/api/tags") - response.raise_for_status() - return response.json().get("models", []) - - def check_health(self) -> bool: - """Check if Ollama is healthy""" - try: - with httpx.Client(timeout=5) as client: - response = client.get(f"{self.base_url}/api/tags") - return response.status_code == 200 - except Exception: - return False - - -# Singleton instance -_llm_service: LLMService | None = None - - -def get_llm_service() -> LLMService: - """Get LLM service singleton""" - global _llm_service - if _llm_service is None: - _llm_service = LLMService() - return _llm_service diff --git a/app/main.py b/app/main.py deleted file mode 100644 index dfaab71..0000000 --- a/app/main.py +++ /dev/null @@ -1,198 +0,0 @@ -""" -FastAPI Main Application -온프레미스 문서 검색 RAG 서버 -""" -from __future__ import annotations - -import logging -import sys -from contextlib import asynccontextmanager -from typing import AsyncIterator - -from fastapi import FastAPI, Request -from fastapi.middleware.cors import CORSMiddleware -from fastapi.responses import JSONResponse - -from app.core.config import settings -from app.db.base import init_db, close_db -from app.routers import ( - auth_router, - documents_router, - search_router, - chat_router, - admin_router, -) - -# Logging configuration -logging.basicConfig( - level=getattr(logging, settings.log_level.upper()), - format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", - handlers=[logging.StreamHandler(sys.stdout)], -) - -logger = logging.getLogger(__name__) - - -@asynccontextmanager -async def lifespan(app: FastAPI) -> AsyncIterator[None]: - """Application lifespan events""" - logger.info("🚀 Starting DocSearch AI Server...") - - # Initialize database - try: - await init_db() - logger.info("✅ Database initialized") - except Exception as e: - logger.error(f"❌ Database initialization failed: {e}") - raise - - # Initialize vector store connection - try: - from app.search import get_vector_store - vs = get_vector_store() - info = vs.get_collection_info() - logger.info(f"✅ Vector store connected: {info.get('points_count', 0)} vectors") - except Exception as e: - logger.warning(f"⚠️ Vector store connection failed (will retry): {e}") - - # Check LLM service - try: - from app.llm import get_llm_service - llm = get_llm_service() - if llm.check_health(): - logger.info("✅ LLM service healthy") - else: - logger.warning("⚠️ LLM service unhealthy") - except Exception as e: - logger.warning(f"⚠️ LLM service check failed: {e}") - - logger.info("✅ DocSearch AI Server ready!") - - yield - - # Cleanup - logger.info("🛑 Shutting down DocSearch AI Server...") - await close_db() - logger.info("✅ Shutdown complete") - - -# Create FastAPI app -app = FastAPI( - title="DocSearch AI", - description=""" -온프레미스 문서 검색 RAG/Agent AI 서버 - -## 주요 기능 - -* **문서 업로드**: PDF, DOCX, XLSX, PPTX, HWP, 이미지 지원 -* **하이브리드 검색**: Dense + Sparse 벡터 결합 -* **RAG 채팅**: 문서 기반 질의응답 -* **접근 제어**: 부서/프로젝트/보안등급 기반 RBAC - -## 기술 스택 - -* FastAPI + PostgreSQL + Qdrant -* BGE-M3 Embedding + BGE-Reranker -* Ollama + Qwen2.5 - """, - version="1.0.0", - lifespan=lifespan, - docs_url="/docs" if not settings.is_production else None, - redoc_url="/redoc" if not settings.is_production else None, -) - -# CORS Middleware -app.add_middleware( - CORSMiddleware, - allow_origins=settings.cors_origins, - allow_credentials=True, - allow_methods=["*"], - allow_headers=["*"], -) - - -# Exception handlers -@app.exception_handler(Exception) -async def global_exception_handler(request: Request, exc: Exception): - logger.error(f"Unhandled exception: {exc}", exc_info=True) - return JSONResponse( - status_code=500, - content={"detail": "내부 서버 오류가 발생했습니다"}, - ) - - -# Health check endpoints -@app.get("/health") -async def health_check(): - """기본 헬스체크""" - return {"status": "healthy", "service": "docsearch-ai"} - - -@app.get("/health/ready") -async def readiness_check(): - """서비스 준비 상태 확인""" - checks = {} - - # Database check - try: - from app.db.base import get_engine - from sqlalchemy import text - async with get_engine().connect() as conn: - await conn.execute(text("SELECT 1")) - checks["database"] = "healthy" - except Exception as e: - checks["database"] = f"unhealthy: {e}" - - # Vector store check - try: - from app.search import get_vector_store - vs = get_vector_store() - vs.get_collection_info() - checks["vector_store"] = "healthy" - except Exception as e: - checks["vector_store"] = f"unhealthy: {e}" - - # LLM check - try: - from app.llm import get_llm_service - llm = get_llm_service() - checks["llm"] = "healthy" if llm.check_health() else "unhealthy" - except Exception as e: - checks["llm"] = f"unhealthy: {e}" - - all_healthy = all("healthy" == v for v in checks.values()) - - return { - "status": "ready" if all_healthy else "degraded", - "checks": checks, - } - - -# Include routers -app.include_router(auth_router) -app.include_router(documents_router) -app.include_router(search_router) -app.include_router(chat_router) -app.include_router(admin_router) - - -# Root endpoint -@app.get("/") -async def root(): - return { - "service": "DocSearch AI", - "version": "1.0.0", - "docs": "/docs", - } - - -if __name__ == "__main__": - import uvicorn - - uvicorn.run( - "app.main:app", - host="0.0.0.0", - port=8000, - reload=not settings.is_production, - workers=1, # Single worker for GPU models - ) diff --git a/app/models.py b/app/models.py deleted file mode 100644 index 03f4f1c..0000000 --- a/app/models.py +++ /dev/null @@ -1,41 +0,0 @@ -from __future__ import annotations -from pydantic import BaseModel, Field - - -class IngestRequest(BaseModel): - path: str = Field(..., description="문서 디렉토리 또는 파일 경로") - recursive: bool = True - - -class SearchRequest(BaseModel): - query: str - top_k: int | None = None - - -class ChatRequest(BaseModel): - query: str - top_k: int | None = None - top_n: int | None = None - model: str | None = None - - -class ChunkHit(BaseModel): - point_id: str - score: float - doc_id: str - source: str - page: int | None = None - sheet: str | None = None - chunk_index: int - text: str - - -class SearchResponse(BaseModel): - hits: list[ChunkHit] - latency_ms: dict[str, float] - - -class ChatResponse(BaseModel): - answer: str - citations: list[ChunkHit] - latency_ms: dict[str, float] diff --git a/app/retrieval.py b/app/retrieval.py deleted file mode 100644 index 373f7fc..0000000 --- a/app/retrieval.py +++ /dev/null @@ -1,279 +0,0 @@ -from __future__ import annotations - -import hashlib -import time -import uuid -from pathlib import Path -from typing import Any - -import numpy as np -import requests -from FlagEmbedding import BGEM3FlagModel, FlagReranker -from qdrant_client import QdrantClient -from qdrant_client.http import models as qm - -from .chunking import chunk_text -from .config import settings -from .text_extract import extract_text_units, normalize_text - - -def sha256_file(path: Path) -> str: - h = hashlib.sha256() - with path.open("rb") as f: - for b in iter(lambda: f.read(1024 * 1024), b""): - h.update(b) - return h.hexdigest() - - -class Embedder: - def __init__(self) -> None: - self.model = BGEM3FlagModel( - settings.embed_model, - use_fp16=settings.use_fp16, - device=settings.device, - ) - - def encode_query_dense(self, q: str) -> np.ndarray: - q = normalize_text(q) - out = self.model.encode([q], max_length=8192) - dense = out["dense_vecs"][0] - return np.asarray(dense, dtype=np.float32) - - def encode_corpus_dense(self, texts: list[str]) -> np.ndarray: - texts = [normalize_text(t) for t in texts] - out = self.model.encode(texts, max_length=8192) - dense = out["dense_vecs"] - return np.asarray(dense, dtype=np.float32) - - -class Reranker: - def __init__(self) -> None: - self.model = FlagReranker(settings.rerank_model, use_fp16=settings.use_fp16) - - def rerank(self, query: str, passages: list[str]) -> list[float]: - query = normalize_text(query) - scores: list[float] = [] - bs = settings.rerank_batch_size - for i in range(0, len(passages), bs): - batch = passages[i : i + bs] - pairs = [[query, p] for p in batch] - s = self.model.compute_score(pairs, normalize=True) - scores.extend([float(x) for x in s]) - return scores - - -class Store: - def __init__(self) -> None: - self.client = QdrantClient(url=settings.qdrant_url) - - def ensure_collection(self) -> None: - existing = {c.name for c in self.client.get_collections().collections} - if settings.qdrant_collection in existing: - return - - self.client.create_collection( - collection_name=settings.qdrant_collection, - vectors_config=qm.VectorParams( - size=settings.vector_size, - distance=qm.Distance.COSINE, - ), - hnsw_config=qm.HnswConfigDiff(m=16, ef_construct=128), - ) - - # 최소 운영 필드 인덱스(검색 결과 필터/정렬 안정화에 유리) - self.client.create_payload_index( - collection_name=settings.qdrant_collection, - field_name="doc_id", - field_schema=qm.PayloadSchemaType.KEYWORD, - ) - self.client.create_payload_index( - collection_name=settings.qdrant_collection, - field_name="source", - field_schema=qm.PayloadSchemaType.KEYWORD, - ) - - def upsert(self, points: list[qm.PointStruct]) -> None: - self.client.upsert(collection_name=settings.qdrant_collection, points=points) - - def search(self, vector: np.ndarray, limit: int) -> list[Any]: - return self.client.search( - collection_name=settings.qdrant_collection, - query_vector=vector.tolist(), - limit=limit, - with_payload=True, - ) - - -class Pipeline: - def __init__(self) -> None: - self.embedder = Embedder() - self.reranker = Reranker() - self.store = Store() - self.store.ensure_collection() - - def ingest_path(self, path: Path, recursive: bool = True) -> dict[str, Any]: - t0 = time.perf_counter() - files: list[Path] = [] - - if path.is_file(): - files = [path] - else: - pattern = "**/*" if recursive else "*" - for p in path.glob(pattern): - if p.is_file() and p.suffix.lower() in (".pdf", ".docx", ".xlsx", ".xlsm", ".txt", ".md"): - files.append(p) - - ingested = 0 - skipped = 0 - - for f in files: - try: - self._ingest_file(f) - ingested += 1 - except Exception: - skipped += 1 - - return { - "files_total": len(files), - "files_ingested": ingested, - "files_skipped": skipped, - "latency_ms": (time.perf_counter() - t0) * 1000.0, - } - - def _ingest_file(self, path: Path) -> None: - doc_id = sha256_file(path) - units = extract_text_units(path) - - batch_texts: list[str] = [] - batch_meta: list[dict[str, Any]] = [] - batch_points: list[qm.PointStruct] = [] - - def flush() -> None: - if not batch_texts: - return - vecs = self.embedder.encode_corpus_dense(batch_texts) - for v, m in zip(vecs, batch_meta, strict=True): - batch_points.append( - qm.PointStruct(id=m["id"], vector=v.tolist(), payload=m["payload"]) - ) - self.store.upsert(batch_points) - batch_texts.clear() - batch_meta.clear() - batch_points.clear() - - for u in units: - chunks = chunk_text( - u.text, - max_chars=settings.chunk_max_chars, - overlap_chars=settings.chunk_overlap_chars, - ) - for ch in chunks: - pid = str(uuid.uuid4()) - payload = { - "doc_id": doc_id, - "source": str(path), - "page": u.page, - "sheet": u.sheet, - "chunk_index": ch.chunk_index, - "text": ch.text, - } - batch_texts.append(ch.text) - batch_meta.append({"id": pid, "payload": payload}) - - if len(batch_texts) >= 64: - flush() - - flush() - - def search(self, query: str, top_k: int | None = None) -> tuple[list[dict[str, Any]], dict[str, float]]: - lat: dict[str, float] = {} - t0 = time.perf_counter() - - t1 = time.perf_counter() - qv = self.embedder.encode_query_dense(query) - lat["embed_ms"] = (time.perf_counter() - t1) * 1000.0 - - t2 = time.perf_counter() - dense_k = top_k or settings.dense_top_k - hits = self.store.search(qv, limit=dense_k) - lat["qdrant_ms"] = (time.perf_counter() - t2) * 1000.0 - - cand = [] - passages = [] - for h in hits: - p = h.payload or {} - passages.append(p.get("text", "")) - cand.append( - { - "point_id": str(h.id), - "dense_score": float(h.score), - **p, - } - ) - - t3 = time.perf_counter() - rr_scores = self.reranker.rerank(query, passages) if passages else [] - lat["rerank_ms"] = (time.perf_counter() - t3) * 1000.0 - - for c, s in zip(cand, rr_scores, strict=False): - c["rerank_score"] = float(s) - - cand.sort(key=lambda x: x.get("rerank_score", -1.0), reverse=True) - lat["total_ms"] = (time.perf_counter() - t0) * 1000.0 - return cand, lat - - def chat(self, query: str, top_k: int | None = None, top_n: int | None = None, model: str | None = None) -> tuple[str, list[dict[str, Any]], dict[str, float]]: - cands, lat = self.search(query, top_k=top_k) - n = top_n or settings.final_top_n - top = cands[:n] - - prompt = build_prompt(query, top) - t = time.perf_counter() - answer = ollama_chat(prompt, model=model or settings.ollama_model) - lat["llm_ms"] = (time.perf_counter() - t) * 1000.0 - lat["e2e_ms"] = lat.get("total_ms", 0.0) + lat["llm_ms"] - return answer, top, lat - - -def build_prompt(query: str, contexts: list[dict[str, Any]]) -> str: - blocks = [] - for i, c in enumerate(contexts, start=1): - src = c.get("source", "") - page = c.get("page") - sheet = c.get("sheet") - chunk_index = c.get("chunk_index") - blocks.append( - f"[{i}] source={src} page={page} sheet={sheet} chunk={chunk_index}\n{c.get('text','')}".strip() - ) - ctx = "\n\n---\n\n".join(blocks) - - return ( - "역할: 사내 문서 검색 QA 어시스턴트.\n" - "규칙:\n" - "1) 아래 '근거(문서 발췌)' 안에서만 답변한다.\n" - "2) 근거가 부족하면 '문서에서 근거를 찾을 수 없습니다'라고 말한다.\n" - "3) 답변 끝에 반드시 인용 번호([1],[2]...)를 붙인다.\n\n" - f"질문: {normalize_text(query)}\n\n" - f"근거(문서 발췌):\n{ctx}\n\n" - "답변:" - ) - - -def ollama_chat(prompt: str, model: str) -> str: - url = f"{settings.ollama_base_url}/api/chat" - payload = { - "model": model, - "messages": [ - {"role": "system", "content": "You are a grounded RAG assistant. Use only provided context and cite sources."}, - {"role": "user", "content": prompt}, - ], - "options": { - "temperature": settings.ollama_temperature, - "num_ctx": settings.ollama_num_ctx, - }, - "stream": False, - } - r = requests.post(url, json=payload, timeout=300) - r.raise_for_status() - data = r.json() - return (data.get("message") or {}).get("content", "").strip() diff --git a/app/routers/__init__.py b/app/routers/__init__.py deleted file mode 100644 index d2cdb8c..0000000 --- a/app/routers/__init__.py +++ /dev/null @@ -1,14 +0,0 @@ -# API Routers -from .auth import router as auth_router -from .documents import router as documents_router -from .search import router as search_router -from .chat import router as chat_router -from .admin import router as admin_router - -__all__ = [ - "auth_router", - "documents_router", - "search_router", - "chat_router", - "admin_router", -] diff --git a/app/routers/admin.py b/app/routers/admin.py deleted file mode 100644 index 7a27ae6..0000000 --- a/app/routers/admin.py +++ /dev/null @@ -1,477 +0,0 @@ -""" -Admin API Router -관리자 기능 API 엔드포인트 -""" -from __future__ import annotations - -import uuid -from datetime import datetime, timezone -from typing import Annotated - -from fastapi import APIRouter, Depends, HTTPException, Query -from pydantic import BaseModel, Field -from sqlalchemy import func, select -from sqlalchemy.ext.asyncio import AsyncSession -from sqlalchemy.orm import selectinload - -from app.db.base import get_db -from app.db.models import ( - AuditLog, - Classification, - Department, - Document, - DocumentStatus, - Permission, - Project, - SearchLog, - User, - UserRole, -) -from app.dependencies import get_current_admin, get_auth_service -from app.search import get_vector_store -from app.llm import get_llm_service -from app.services.auth import AuthService - -router = APIRouter(prefix="/admin", tags=["Admin"]) - - -# Models -class SystemStatsResponse(BaseModel): - documents: dict - users: dict - vector_store: dict - llm: dict - - -class UserListResponse(BaseModel): - items: list[dict] - total: int - - -class AuditLogResponse(BaseModel): - items: list[dict] - total: int - - -class DepartmentCreate(BaseModel): - name: str = Field(..., min_length=1, max_length=100) - code: str = Field(..., min_length=1, max_length=20) - parent_id: str | None = None - description: str | None = None - - -class ProjectCreate(BaseModel): - name: str = Field(..., min_length=1, max_length=200) - code: str = Field(..., min_length=1, max_length=50) - department_id: str | None = None - description: str | None = None - - -class UserUpdate(BaseModel): - role: UserRole | None = None - department_id: str | None = None - max_classification: Classification | None = None - is_active: bool | None = None - - -class AccessPolicyCreate(BaseModel): - user_id: str - document_id: str | None = None - project_id: str | None = None - permission: Permission = Permission.READ - expires_at: datetime | None = None - - -# Endpoints -@router.get("/stats", response_model=SystemStatsResponse) -async def get_system_stats( - current_admin: Annotated[User, Depends(get_current_admin)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """시스템 통계를 조회합니다""" - - # Document stats - total_docs = await db.scalar( - select(func.count()).select_from(Document).where(Document.deleted_at.is_(None)) - ) - - ready_docs = await db.scalar( - select(func.count()).select_from(Document).where( - Document.status == DocumentStatus.READY, - Document.deleted_at.is_(None), - ) - ) - - processing_docs = await db.scalar( - select(func.count()).select_from(Document).where( - Document.status == DocumentStatus.PROCESSING, - Document.deleted_at.is_(None), - ) - ) - - error_docs = await db.scalar( - select(func.count()).select_from(Document).where( - Document.status == DocumentStatus.ERROR, - ) - ) - - total_chunks = await db.scalar( - select(func.sum(Document.chunk_count)).where(Document.deleted_at.is_(None)) - ) - - # User stats - total_users = await db.scalar(select(func.count()).select_from(User)) - active_users = await db.scalar( - select(func.count()).select_from(User).where(User.is_active == True) - ) - - # Vector store stats - try: - vector_store = get_vector_store() - vs_info = vector_store.get_collection_info() - except Exception: - vs_info = {"status": "unavailable"} - - # LLM stats - try: - llm = get_llm_service() - models = llm.list_models() - llm_healthy = llm.check_health() - except Exception: - models = [] - llm_healthy = False - - return SystemStatsResponse( - documents={ - "total": total_docs or 0, - "ready": ready_docs or 0, - "processing": processing_docs or 0, - "error": error_docs or 0, - "total_chunks": total_chunks or 0, - }, - users={ - "total": total_users or 0, - "active": active_users or 0, - }, - vector_store=vs_info, - llm={ - "healthy": llm_healthy, - "models_available": len(models), - "models": [m.get("name") for m in models[:5]], - }, - ) - - -@router.get("/users", response_model=UserListResponse) -async def list_users( - current_admin: Annotated[User, Depends(get_current_admin)], - db: Annotated[AsyncSession, Depends(get_db)], - page: int = Query(1, ge=1), - page_size: int = Query(20, ge=1, le=100), -): - """사용자 목록을 조회합니다""" - - # Count - total = await db.scalar(select(func.count()).select_from(User)) - - # Query - result = await db.execute( - select(User) - .options(selectinload(User.department)) - .order_by(User.created_at.desc()) - .offset((page - 1) * page_size) - .limit(page_size) - ) - users = result.scalars().all() - - return UserListResponse( - items=[ - { - "id": str(u.id), - "username": u.username, - "email": u.email, - "full_name": u.full_name, - "role": u.role.value, - "department": u.department.name if u.department else None, - "max_classification": u.max_classification.value, - "is_active": u.is_active, - "last_login": u.last_login.isoformat() if u.last_login else None, - "created_at": u.created_at.isoformat(), - } - for u in users - ], - total=total or 0, - ) - - -@router.patch("/users/{user_id}") -async def update_user( - user_id: uuid.UUID, - data: UserUpdate, - current_admin: Annotated[User, Depends(get_current_admin)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """사용자 정보를 수정합니다""" - - result = await db.execute(select(User).where(User.id == user_id)) - user = result.scalar_one_or_none() - - if not user: - raise HTTPException(status_code=404, detail="사용자를 찾을 수 없습니다") - - if data.role is not None: - user.role = data.role - if data.department_id is not None: - user.department_id = uuid.UUID(data.department_id) if data.department_id else None - if data.max_classification is not None: - user.max_classification = data.max_classification - if data.is_active is not None: - user.is_active = data.is_active - - await db.commit() - - return {"message": "사용자 정보가 수정되었습니다"} - - -@router.get("/audit-logs", response_model=AuditLogResponse) -async def get_audit_logs( - current_admin: Annotated[User, Depends(get_current_admin)], - db: Annotated[AsyncSession, Depends(get_db)], - page: int = Query(1, ge=1), - page_size: int = Query(50, ge=1, le=200), - user_id: str | None = None, - action: str | None = None, - date_from: datetime | None = None, - date_to: datetime | None = None, -): - """감사 로그를 조회합니다""" - - query = select(AuditLog).options(selectinload(AuditLog.user)) - - if user_id: - query = query.where(AuditLog.user_id == uuid.UUID(user_id)) - if action: - query = query.where(AuditLog.action == action) - if date_from: - query = query.where(AuditLog.created_at >= date_from) - if date_to: - query = query.where(AuditLog.created_at <= date_to) - - # Count - count_query = select(func.count()).select_from(query.subquery()) - total = await db.scalar(count_query) - - # Query - query = query.order_by(AuditLog.created_at.desc()) - query = query.offset((page - 1) * page_size).limit(page_size) - - result = await db.execute(query) - logs = result.scalars().all() - - return AuditLogResponse( - items=[ - { - "id": log.id, - "user": log.user.username if log.user else None, - "action": log.action.value, - "resource_type": log.resource_type, - "resource_id": log.resource_id, - "ip_address": log.ip_address, - "details": log.details, - "created_at": log.created_at.isoformat(), - } - for log in logs - ], - total=total or 0, - ) - - -@router.post("/departments") -async def create_department( - data: DepartmentCreate, - current_admin: Annotated[User, Depends(get_current_admin)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """부서를 생성합니다""" - - dept = Department( - name=data.name, - code=data.code, - parent_id=uuid.UUID(data.parent_id) if data.parent_id else None, - description=data.description, - ) - db.add(dept) - await db.commit() - - return {"id": str(dept.id), "message": "부서가 생성되었습니다"} - - -@router.get("/departments") -async def list_departments( - current_admin: Annotated[User, Depends(get_current_admin)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """부서 목록을 조회합니다""" - - result = await db.execute( - select(Department).where(Department.is_active == True) - ) - depts = result.scalars().all() - - return [ - { - "id": str(d.id), - "name": d.name, - "code": d.code, - "parent_id": str(d.parent_id) if d.parent_id else None, - "description": d.description, - } - for d in depts - ] - - -@router.post("/projects") -async def create_project( - data: ProjectCreate, - current_admin: Annotated[User, Depends(get_current_admin)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """프로젝트를 생성합니다""" - - project = Project( - name=data.name, - code=data.code, - department_id=uuid.UUID(data.department_id) if data.department_id else None, - description=data.description, - ) - db.add(project) - await db.commit() - - return {"id": str(project.id), "message": "프로젝트가 생성되었습니다"} - - -@router.get("/projects") -async def list_projects( - current_admin: Annotated[User, Depends(get_current_admin)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """프로젝트 목록을 조회합니다""" - - result = await db.execute( - select(Project).where(Project.is_active == True) - ) - projects = result.scalars().all() - - return [ - { - "id": str(p.id), - "name": p.name, - "code": p.code, - "department_id": str(p.department_id) if p.department_id else None, - "description": p.description, - } - for p in projects - ] - - -@router.post("/access-policies") -async def create_access_policy( - data: AccessPolicyCreate, - current_admin: Annotated[User, Depends(get_current_admin)], - auth_service: Annotated[AuthService, Depends(get_auth_service)], -): - """접근 권한을 부여합니다""" - - policy = await auth_service.grant_access( - granter=current_admin, - user_id=uuid.UUID(data.user_id), - document_id=uuid.UUID(data.document_id) if data.document_id else None, - project_id=uuid.UUID(data.project_id) if data.project_id else None, - permission=data.permission, - expires_at=data.expires_at, - ) - - return {"id": str(policy.id), "message": "접근 권한이 부여되었습니다"} - - -@router.delete("/access-policies/{policy_id}") -async def revoke_access_policy( - policy_id: uuid.UUID, - current_admin: Annotated[User, Depends(get_current_admin)], - auth_service: Annotated[AuthService, Depends(get_auth_service)], -): - """접근 권한을 해제합니다""" - - success = await auth_service.revoke_access(current_admin, policy_id) - - if not success: - raise HTTPException(status_code=404, detail="접근 정책을 찾을 수 없습니다") - - return {"message": "접근 권한이 해제되었습니다"} - - -@router.get("/search-analytics") -async def get_search_analytics( - current_admin: Annotated[User, Depends(get_current_admin)], - db: Annotated[AsyncSession, Depends(get_db)], - days: int = Query(7, ge=1, le=90), -): - """검색 분석 데이터를 조회합니다""" - from datetime import timedelta - - since = datetime.now(timezone.utc) - timedelta(days=days) - - # Total searches - total = await db.scalar( - select(func.count()).select_from(SearchLog).where( - SearchLog.created_at >= since - ) - ) - - # Average latency - avg_latency = await db.execute( - select( - func.avg(SearchLog.latency_ms['total_ms'].cast(float)) - ).where(SearchLog.created_at >= since) - ) - - # Top queries (by hash for privacy) - top_queries = await db.execute( - select( - SearchLog.query, - func.count().label("count"), - ) - .where(SearchLog.created_at >= since) - .group_by(SearchLog.query) - .order_by(func.count().desc()) - .limit(10) - ) - - # Feedback stats - helpful_count = await db.scalar( - select(func.count()).select_from(SearchLog).where( - SearchLog.created_at >= since, - SearchLog.feedback['helpful'].cast(bool) == True, - ) - ) - - not_helpful_count = await db.scalar( - select(func.count()).select_from(SearchLog).where( - SearchLog.created_at >= since, - SearchLog.feedback['helpful'].cast(bool) == False, - ) - ) - - return { - "period_days": days, - "total_searches": total or 0, - "average_latency_ms": round(avg_latency.scalar() or 0, 2), - "top_queries": [ - {"query": q[:100], "count": c} - for q, c in top_queries.all() - ], - "feedback": { - "helpful": helpful_count or 0, - "not_helpful": not_helpful_count or 0, - }, - } diff --git a/app/routers/auth.py b/app/routers/auth.py deleted file mode 100644 index a834b44..0000000 --- a/app/routers/auth.py +++ /dev/null @@ -1,194 +0,0 @@ -""" -Authentication API Router -인증 관련 API 엔드포인트 -""" -from __future__ import annotations - -from typing import Annotated - -from fastapi import APIRouter, Depends, HTTPException, Request, status -from pydantic import BaseModel, EmailStr, Field -from sqlalchemy.ext.asyncio import AsyncSession - -from app.db.base import get_db -from app.db.models import User, UserRole, Classification -from app.services.auth import AuthService -from app.dependencies import get_auth_service, get_current_user - -router = APIRouter(prefix="/auth", tags=["Authentication"]) - - -# Request/Response Models -class LoginRequest(BaseModel): - username: str = Field(..., min_length=3, max_length=50) - password: str = Field(..., min_length=6) - - -class RegisterRequest(BaseModel): - username: str = Field(..., min_length=3, max_length=50) - email: EmailStr - password: str = Field(..., min_length=6) - full_name: str = Field(..., min_length=2, max_length=100) - - -class TokenResponse(BaseModel): - access_token: str - refresh_token: str - token_type: str = "bearer" - - -class RefreshRequest(BaseModel): - refresh_token: str - - -class UserResponse(BaseModel): - id: str - username: str - email: str - full_name: str - role: str - department_id: str | None - department_name: str | None - max_classification: str - is_active: bool - - class Config: - from_attributes = True - - -class ChangePasswordRequest(BaseModel): - current_password: str - new_password: str = Field(..., min_length=6) - - -# Endpoints -@router.post("/login", response_model=TokenResponse) -async def login( - request: Request, - data: LoginRequest, - auth_service: Annotated[AuthService, Depends(get_auth_service)], -): - """로그인하여 액세스 토큰을 받습니다""" - user, error = await auth_service.authenticate_user( - data.username, - data.password, - ip_address=request.client.host if request.client else None, - user_agent=request.headers.get("user-agent"), - ) - - if error: - raise HTTPException( - status_code=status.HTTP_401_UNAUTHORIZED, - detail=error, - ) - - tokens = await auth_service.create_tokens(user) - return TokenResponse(**tokens) - - -@router.post("/register", response_model=UserResponse) -async def register( - data: RegisterRequest, - auth_service: Annotated[AuthService, Depends(get_auth_service)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """새 사용자를 등록합니다 (관리자 승인 필요)""" - # Check if username or email exists - from sqlalchemy import select - from app.db.models import User - - existing = await db.execute( - select(User).where( - (User.username == data.username) | (User.email == data.email) - ) - ) - if existing.scalar_one_or_none(): - raise HTTPException( - status_code=status.HTTP_400_BAD_REQUEST, - detail="이미 존재하는 사용자명 또는 이메일입니다", - ) - - user = await auth_service.create_user( - username=data.username, - email=data.email, - password=data.password, - full_name=data.full_name, - ) - - return UserResponse( - id=str(user.id), - username=user.username, - email=user.email, - full_name=user.full_name, - role=user.role.value, - department_id=str(user.department_id) if user.department_id else None, - department_name=None, - max_classification=user.max_classification.value, - is_active=user.is_active, - ) - - -@router.post("/refresh", response_model=TokenResponse) -async def refresh_token( - data: RefreshRequest, - auth_service: Annotated[AuthService, Depends(get_auth_service)], -): - """리프레시 토큰으로 새 액세스 토큰을 발급합니다""" - tokens = await auth_service.refresh_tokens(data.refresh_token) - - if not tokens: - raise HTTPException( - status_code=status.HTTP_401_UNAUTHORIZED, - detail="유효하지 않은 리프레시 토큰입니다", - ) - - return TokenResponse(**tokens) - - -@router.get("/me", response_model=UserResponse) -async def get_current_user_info( - current_user: Annotated[User, Depends(get_current_user)], -): - """현재 로그인한 사용자 정보를 조회합니다""" - return UserResponse( - id=str(current_user.id), - username=current_user.username, - email=current_user.email, - full_name=current_user.full_name, - role=current_user.role.value, - department_id=str(current_user.department_id) if current_user.department_id else None, - department_name=current_user.department.name if current_user.department else None, - max_classification=current_user.max_classification.value, - is_active=current_user.is_active, - ) - - -@router.post("/change-password") -async def change_password( - data: ChangePasswordRequest, - current_user: Annotated[User, Depends(get_current_user)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """비밀번호를 변경합니다""" - from app.core.security import verify_password, hash_password - - if not verify_password(data.current_password, current_user.password_hash): - raise HTTPException( - status_code=status.HTTP_400_BAD_REQUEST, - detail="현재 비밀번호가 일치하지 않습니다", - ) - - current_user.password_hash = hash_password(data.new_password) - await db.commit() - - return {"message": "비밀번호가 변경되었습니다"} - - -@router.post("/logout") -async def logout( - current_user: Annotated[User, Depends(get_current_user)], -): - """로그아웃합니다 (클라이언트에서 토큰 삭제 필요)""" - # In a stateless JWT setup, logout is handled client-side - # For enhanced security, you could add token to a blacklist in Redis - return {"message": "로그아웃되었습니다"} diff --git a/app/routers/chat.py b/app/routers/chat.py deleted file mode 100644 index 99bf27f..0000000 --- a/app/routers/chat.py +++ /dev/null @@ -1,289 +0,0 @@ -""" -Chat API Router -RAG 기반 채팅 API 엔드포인트 -""" -from __future__ import annotations - -import uuid -from datetime import datetime, timezone -from typing import Annotated, AsyncIterator - -from fastapi import APIRouter, Depends, HTTPException -from fastapi.responses import StreamingResponse -from pydantic import BaseModel, Field -from sqlalchemy import select -from sqlalchemy.ext.asyncio import AsyncSession - -from app.core.security import hash_text -from app.db.base import get_db -from app.db.models import AuditAction, AuditLog, SearchLog, User -from app.dependencies import get_current_user, get_auth_service -from app.services.auth import AuthService -from app.search import SearchPipeline, SearchResult -from app.llm import get_llm_service, build_rag_prompt - -router = APIRouter(prefix="/chat", tags=["Chat"]) - - -# Request/Response Models -class ChatRequest(BaseModel): - query: str = Field(..., min_length=1, max_length=2000) - top_k: int = Field(50, ge=1, le=200) - top_n: int = Field(5, ge=1, le=20) - use_rerank: bool = True - use_hybrid: bool = True - use_query_rewrite: bool = False - model: str | None = None - stream: bool = False - - # Filters - department_id: str | None = None - project_id: str | None = None - - -class Citation(BaseModel): - chunk_id: str - doc_id: str - source: str - page: int | None = None - sheet: str | None = None - slide: int | None = None - text: str - score: float - - -class ChatResponse(BaseModel): - answer: str - citations: list[Citation] - query: str - rewritten_queries: list[str] | None = None - metrics: dict - - -# Endpoints -@router.post("", response_model=ChatResponse) -async def chat( - request: ChatRequest, - current_user: Annotated[User, Depends(get_current_user)], - auth_service: Annotated[AuthService, Depends(get_auth_service)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """ - 문서 기반 질의응답 (RAG) - - 1. 질의 재작성 (선택) - 2. 하이브리드 검색 + 리랭킹 - 3. LLM 응답 생성 - 4. 출처 표시 - """ - if request.stream: - # Return streaming response - return StreamingResponse( - stream_chat_response(request, current_user, auth_service, db), - media_type="text/event-stream", - ) - - # Get accessible document IDs - accessible_doc_ids = await auth_service.get_accessible_document_ids(current_user) - accessible_str_ids = [str(d) for d in accessible_doc_ids] if accessible_doc_ids else None - - # Build filters - filter_params = {} - if request.department_id: - filter_params["department_id"] = request.department_id - if request.project_id: - filter_params["project_id"] = request.project_id - - pipeline = SearchPipeline() - llm = get_llm_service() - - # Query rewriting - queries = [request.query] - if request.use_query_rewrite: - queries = llm.rewrite_query(request.query) - - # Search - if len(queries) > 1: - results, search_metrics = pipeline.multi_query_search( - queries=queries, - top_k=request.top_k, - top_n=request.top_n, - use_hybrid=request.use_hybrid, - filter_params=filter_params if filter_params else None, - accessible_doc_ids=accessible_str_ids, - ) - else: - results, search_metrics = pipeline.search( - query=request.query, - top_k=request.top_k, - top_n=request.top_n, - use_rerank=request.use_rerank, - use_hybrid=request.use_hybrid, - filter_params=filter_params if filter_params else None, - accessible_doc_ids=accessible_str_ids, - ) - - # Generate response - llm_response = llm.rag_generate( - query=request.query, - contexts=results, - model=request.model, - ) - - # Build citations - citations = [ - Citation( - chunk_id=r.chunk_id, - doc_id=r.doc_id, - source=r.source, - page=r.page, - sheet=r.sheet, - slide=r.slide, - text=r.text[:500] + "..." if len(r.text) > 500 else r.text, - score=round(r.score, 4), - ) - for r in results - ] - - # Log search - await log_search( - db=db, - user_id=current_user.id, - query=request.query, - rewritten_queries=queries if len(queries) > 1 else None, - results_count=len(results), - top_doc_ids=[r.doc_id for r in results[:5]], - latency={ - "search_ms": search_metrics.total_ms, - "llm_ms": llm_response.latency_ms, - "total_ms": search_metrics.total_ms + llm_response.latency_ms, - }, - ) - - return ChatResponse( - answer=llm_response.answer, - citations=citations, - query=request.query, - rewritten_queries=queries if len(queries) > 1 else None, - metrics={ - "embed_ms": round(search_metrics.embed_ms, 2), - "search_ms": round(search_metrics.search_ms, 2), - "rerank_ms": round(search_metrics.rerank_ms, 2), - "llm_ms": round(llm_response.latency_ms, 2), - "total_ms": round(search_metrics.total_ms + llm_response.latency_ms, 2), - "prompt_tokens": llm_response.prompt_tokens, - "completion_tokens": llm_response.completion_tokens, - }, - ) - - -async def stream_chat_response( - request: ChatRequest, - current_user: User, - auth_service: AuthService, - db: AsyncSession, -) -> AsyncIterator[str]: - """ - Stream chat response using Server-Sent Events - """ - import json - - # Get accessible documents - accessible_doc_ids = await auth_service.get_accessible_document_ids(current_user) - accessible_str_ids = [str(d) for d in accessible_doc_ids] if accessible_doc_ids else None - - # Build filters - filter_params = {} - if request.department_id: - filter_params["department_id"] = request.department_id - if request.project_id: - filter_params["project_id"] = request.project_id - - pipeline = SearchPipeline() - llm = get_llm_service() - - # Search first - results, search_metrics = pipeline.search( - query=request.query, - top_k=request.top_k, - top_n=request.top_n, - use_rerank=request.use_rerank, - use_hybrid=request.use_hybrid, - filter_params=filter_params if filter_params else None, - accessible_doc_ids=accessible_str_ids, - ) - - # Send citations first - citations = [ - { - "chunk_id": r.chunk_id, - "doc_id": r.doc_id, - "source": r.source, - "page": r.page, - "text": r.text[:300] + "..." if len(r.text) > 300 else r.text, - } - for r in results - ] - yield f"data: {json.dumps({'type': 'citations', 'data': citations})}\n\n" - - # Stream LLM response - prompt = build_rag_prompt(request.query, results) - - async for chunk in llm.generate_stream(prompt, model=request.model): - yield f"data: {json.dumps({'type': 'content', 'data': chunk})}\n\n" - - # Send done signal - yield f"data: {json.dumps({'type': 'done', 'metrics': {'search_ms': search_metrics.total_ms}})}\n\n" - - -async def log_search( - db: AsyncSession, - user_id: uuid.UUID, - query: str, - rewritten_queries: list[str] | None, - results_count: int, - top_doc_ids: list[str], - latency: dict, -) -> None: - """Log search for analytics""" - log = SearchLog( - user_id=user_id, - query=query, - query_hash=hash_text(query), - rewritten_queries=rewritten_queries, - results_count=results_count, - top_doc_ids=top_doc_ids, - latency_ms=latency, - ) - db.add(log) - # Don't await commit - will be committed with the request - - -@router.post("/feedback") -async def submit_feedback( - search_log_id: str, - helpful: bool, - comment: str | None = None, - current_user: Annotated[User, Depends(get_current_user)] = None, - db: Annotated[AsyncSession, Depends(get_db)] = None, -): - """ - 검색/응답에 대한 피드백을 제출합니다 - """ - result = await db.execute( - select(SearchLog).where(SearchLog.id == uuid.UUID(search_log_id)) - ) - log = result.scalar_one_or_none() - - if not log: - raise HTTPException(status_code=404, detail="검색 로그를 찾을 수 없습니다") - - log.feedback = { - "helpful": helpful, - "comment": comment, - "submitted_at": datetime.now(timezone.utc).isoformat(), - } - - await db.commit() - - return {"message": "피드백이 제출되었습니다"} diff --git a/app/routers/documents.py b/app/routers/documents.py deleted file mode 100644 index 2201a1a..0000000 --- a/app/routers/documents.py +++ /dev/null @@ -1,535 +0,0 @@ -""" -Documents API Router -문서 업로드, 조회, 관리 API -""" -from __future__ import annotations - -import mimetypes -import uuid -from datetime import datetime, timezone -from pathlib import Path -from typing import Annotated, Optional - -from fastapi import APIRouter, Depends, File, Form, HTTPException, Query, UploadFile, status -from pydantic import BaseModel, Field -from sqlalchemy import func, select -from sqlalchemy.ext.asyncio import AsyncSession -from sqlalchemy.orm import selectinload - -from app.core.config import settings -from app.core.security import hash_file, hash_text -from app.db.base import get_db -from app.db.models import ( - Classification, - Document, - DocumentChunk, - DocumentStatus, - Permission, - ProcessingJob, - User, -) -from app.dependencies import get_current_user, get_auth_service, require_read_access -from app.services.auth import AuthService -from app.services.storage import get_storage_service -from app.worker.tasks import process_document, delete_document_vectors - -router = APIRouter(prefix="/documents", tags=["Documents"]) - - -# Response Models -class DocumentResponse(BaseModel): - id: str - filename: str - title: str | None - author: str | None - file_size: int - mime_type: str - classification: str - status: str - chunk_count: int - page_count: int | None - version: int - tags: list[str] | None - department_id: str | None - project_id: str | None - uploaded_by: str - created_at: datetime - updated_at: datetime - error_message: str | None = None - - class Config: - from_attributes = True - - -class DocumentListResponse(BaseModel): - items: list[DocumentResponse] - total: int - page: int - page_size: int - pages: int - - -class DocumentDetailResponse(DocumentResponse): - chunks: list[dict] | None = None - processing_jobs: list[dict] | None = None - - -class ProcessingJobResponse(BaseModel): - id: str - job_type: str - status: str - progress: int - error_message: str | None - started_at: datetime | None - completed_at: datetime | None - created_at: datetime - - -# Endpoints -@router.post("/upload", response_model=DocumentResponse) -async def upload_document( - current_user: Annotated[User, Depends(get_current_user)], - db: Annotated[AsyncSession, Depends(get_db)], - file: UploadFile = File(...), - title: str | None = Form(None), - classification: Classification = Form(Classification.INTERNAL), - department_id: str | None = Form(None), - project_id: str | None = Form(None), - tags: str | None = Form(None), # Comma-separated -): - """ - 문서를 업로드하고 처리를 시작합니다 - - 지원 형식: PDF, DOCX, XLSX, PPTX, TXT, MD, PNG, JPG, HWP - """ - # Validate file - if not file.filename: - raise HTTPException( - status_code=status.HTTP_400_BAD_REQUEST, - detail="파일명이 없습니다", - ) - - ext = Path(file.filename).suffix.lower() - if ext not in settings.allowed_extensions: - raise HTTPException( - status_code=status.HTTP_400_BAD_REQUEST, - detail=f"지원하지 않는 파일 형식입니다: {ext}", - ) - - # Read file - content = await file.read() - file_size = len(content) - - if file_size > settings.max_file_size_mb * 1024 * 1024: - raise HTTPException( - status_code=status.HTTP_400_BAD_REQUEST, - detail=f"파일 크기가 제한({settings.max_file_size_mb}MB)을 초과합니다", - ) - - # Calculate hash - file_hash = hash_text(content.decode("latin-1")) # Binary-safe hash - - # Check for duplicate - existing = await db.execute( - select(Document).where( - Document.file_hash == file_hash, - Document.deleted_at.is_(None), - ) - ) - if existing.scalar_one_or_none(): - raise HTTPException( - status_code=status.HTTP_409_CONFLICT, - detail="동일한 파일이 이미 존재합니다", - ) - - # Detect MIME type - mime_type = file.content_type or mimetypes.guess_type(file.filename)[0] or "application/octet-stream" - - # Create document record - doc_id = uuid.uuid4() - - doc = Document( - id=doc_id, - filename=file.filename, - file_hash=file_hash, - file_size=file_size, - mime_type=mime_type, - storage_key="", # Will be updated after upload - title=title, - classification=classification, - department_id=uuid.UUID(department_id) if department_id else current_user.department_id, - project_id=uuid.UUID(project_id) if project_id else None, - tags=tags.split(",") if tags else None, - status=DocumentStatus.PENDING, - uploaded_by=current_user.id, - ) - - db.add(doc) - await db.flush() - await db.refresh(doc) - - # Upload to storage - storage = get_storage_service() - storage_key = storage.upload_document( - file_data=content, - document_id=doc.id, - filename=file.filename, - version=1, - content_type=mime_type, - ) - - doc.storage_key = storage_key - await db.commit() - await db.refresh(doc) - - # Start processing task - process_document.delay(str(doc.id), storage_key) - - return DocumentResponse( - id=str(doc.id), - filename=doc.filename, - title=doc.title, - author=doc.author, - file_size=doc.file_size, - mime_type=doc.mime_type, - classification=doc.classification.value, - status=doc.status.value, - chunk_count=doc.chunk_count, - page_count=doc.page_count, - version=doc.version, - tags=doc.tags, - department_id=str(doc.department_id) if doc.department_id else None, - project_id=str(doc.project_id) if doc.project_id else None, - uploaded_by=str(doc.uploaded_by), - created_at=doc.created_at, - updated_at=doc.updated_at, - ) - - -@router.get("", response_model=DocumentListResponse) -async def list_documents( - current_user: Annotated[User, Depends(get_current_user)], - auth_service: Annotated[AuthService, Depends(get_auth_service)], - db: Annotated[AsyncSession, Depends(get_db)], - page: int = Query(1, ge=1), - page_size: int = Query(20, ge=1, le=100), - status_filter: DocumentStatus | None = None, - classification_filter: Classification | None = None, - department_id: str | None = None, - project_id: str | None = None, - search: str | None = None, -): - """ - 문서 목록을 조회합니다 (권한에 따라 필터링) - """ - # Get accessible document IDs - accessible_ids = await auth_service.get_accessible_document_ids(current_user) - - # Build query - query = select(Document).where(Document.deleted_at.is_(None)) - - # Apply access filter - if accessible_ids is not None: - query = query.where(Document.id.in_(accessible_ids)) - - # Apply filters - if status_filter: - query = query.where(Document.status == status_filter) - - if classification_filter: - query = query.where(Document.classification == classification_filter) - - if department_id: - query = query.where(Document.department_id == uuid.UUID(department_id)) - - if project_id: - query = query.where(Document.project_id == uuid.UUID(project_id)) - - if search: - query = query.where( - Document.filename.ilike(f"%{search}%") | - Document.title.ilike(f"%{search}%") - ) - - # Count total - count_query = select(func.count()).select_from(query.subquery()) - total = (await db.execute(count_query)).scalar() or 0 - - # Paginate - query = query.order_by(Document.created_at.desc()) - query = query.offset((page - 1) * page_size).limit(page_size) - - result = await db.execute(query) - documents = result.scalars().all() - - return DocumentListResponse( - items=[ - DocumentResponse( - id=str(doc.id), - filename=doc.filename, - title=doc.title, - author=doc.author, - file_size=doc.file_size, - mime_type=doc.mime_type, - classification=doc.classification.value, - status=doc.status.value, - chunk_count=doc.chunk_count, - page_count=doc.page_count, - version=doc.version, - tags=doc.tags, - department_id=str(doc.department_id) if doc.department_id else None, - project_id=str(doc.project_id) if doc.project_id else None, - uploaded_by=str(doc.uploaded_by), - created_at=doc.created_at, - updated_at=doc.updated_at, - error_message=doc.error_message, - ) - for doc in documents - ], - total=total, - page=page, - page_size=page_size, - pages=(total + page_size - 1) // page_size, - ) - - -@router.get("/{document_id}", response_model=DocumentDetailResponse) -async def get_document( - document_id: uuid.UUID, - current_user: Annotated[User, Depends(get_current_user)], - auth_service: Annotated[AuthService, Depends(get_auth_service)], - db: Annotated[AsyncSession, Depends(get_db)], - include_chunks: bool = False, -): - """ - 문서 상세 정보를 조회합니다 - """ - # Check access - has_access = await auth_service.check_document_access( - current_user, document_id, Permission.READ - ) - if not has_access: - raise HTTPException( - status_code=status.HTTP_403_FORBIDDEN, - detail="이 문서에 대한 접근 권한이 없습니다", - ) - - # Get document - query = select(Document).where( - Document.id == document_id, - Document.deleted_at.is_(None), - ) - - if include_chunks: - query = query.options(selectinload(Document.chunks)) - - query = query.options(selectinload(Document.processing_jobs)) - - result = await db.execute(query) - doc = result.scalar_one_or_none() - - if not doc: - raise HTTPException( - status_code=status.HTTP_404_NOT_FOUND, - detail="문서를 찾을 수 없습니다", - ) - - chunks = None - if include_chunks and doc.chunks: - chunks = [ - { - "id": str(c.id), - "chunk_index": c.chunk_index, - "text": c.text[:500] + "..." if len(c.text) > 500 else c.text, - "page_number": c.page_number, - "sheet_name": c.sheet_name, - "heading": c.heading, - } - for c in sorted(doc.chunks, key=lambda x: x.chunk_index) - ] - - jobs = None - if doc.processing_jobs: - jobs = [ - { - "id": str(j.id), - "job_type": j.job_type.value, - "status": j.status.value, - "progress": j.progress, - "error_message": j.error_message, - "started_at": j.started_at.isoformat() if j.started_at else None, - "completed_at": j.completed_at.isoformat() if j.completed_at else None, - } - for j in sorted(doc.processing_jobs, key=lambda x: x.created_at, reverse=True) - ] - - return DocumentDetailResponse( - id=str(doc.id), - filename=doc.filename, - title=doc.title, - author=doc.author, - file_size=doc.file_size, - mime_type=doc.mime_type, - classification=doc.classification.value, - status=doc.status.value, - chunk_count=doc.chunk_count, - page_count=doc.page_count, - version=doc.version, - tags=doc.tags, - department_id=str(doc.department_id) if doc.department_id else None, - project_id=str(doc.project_id) if doc.project_id else None, - uploaded_by=str(doc.uploaded_by), - created_at=doc.created_at, - updated_at=doc.updated_at, - error_message=doc.error_message, - chunks=chunks, - processing_jobs=jobs, - ) - - -@router.delete("/{document_id}") -async def delete_document( - document_id: uuid.UUID, - current_user: Annotated[User, Depends(get_current_user)], - auth_service: Annotated[AuthService, Depends(get_auth_service)], - db: Annotated[AsyncSession, Depends(get_db)], - hard_delete: bool = False, -): - """ - 문서를 삭제합니다 (기본: 소프트 삭제) - """ - # Check access - has_access = await auth_service.check_document_access( - current_user, document_id, Permission.DELETE - ) - if not has_access: - raise HTTPException( - status_code=status.HTTP_403_FORBIDDEN, - detail="이 문서를 삭제할 권한이 없습니다", - ) - - # Get document - result = await db.execute( - select(Document).where(Document.id == document_id) - ) - doc = result.scalar_one_or_none() - - if not doc: - raise HTTPException( - status_code=status.HTTP_404_NOT_FOUND, - detail="문서를 찾을 수 없습니다", - ) - - if hard_delete: - # Delete from storage - storage = get_storage_service() - storage.delete_document(doc.id) - - # Delete vectors - delete_document_vectors.delay(str(doc.id)) - - # Hard delete from DB - await db.delete(doc) - else: - # Soft delete - doc.deleted_at = datetime.now(timezone.utc) - doc.status = DocumentStatus.DELETED - - # Still remove vectors for security - delete_document_vectors.delay(str(doc.id)) - - await db.commit() - - return {"message": "문서가 삭제되었습니다"} - - -@router.get("/{document_id}/download") -async def download_document( - document_id: uuid.UUID, - current_user: Annotated[User, Depends(get_current_user)], - auth_service: Annotated[AuthService, Depends(get_auth_service)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """ - 문서 다운로드 URL을 생성합니다 - """ - from fastapi.responses import RedirectResponse - from datetime import timedelta - - # Check access - has_access = await auth_service.check_document_access( - current_user, document_id, Permission.READ - ) - if not has_access: - raise HTTPException( - status_code=status.HTTP_403_FORBIDDEN, - detail="이 문서에 대한 접근 권한이 없습니다", - ) - - # Get document - result = await db.execute( - select(Document).where( - Document.id == document_id, - Document.deleted_at.is_(None), - ) - ) - doc = result.scalar_one_or_none() - - if not doc: - raise HTTPException( - status_code=status.HTTP_404_NOT_FOUND, - detail="문서를 찾을 수 없습니다", - ) - - # Generate presigned URL - storage = get_storage_service() - url = storage.get_presigned_url(doc.storage_key, expires=timedelta(minutes=30)) - - return {"download_url": url, "filename": doc.filename} - - -@router.get("/{document_id}/status", response_model=ProcessingJobResponse) -async def get_processing_status( - document_id: uuid.UUID, - current_user: Annotated[User, Depends(get_current_user)], - auth_service: Annotated[AuthService, Depends(get_auth_service)], - db: Annotated[AsyncSession, Depends(get_db)], -): - """ - 문서 처리 상태를 조회합니다 - """ - # Check access - has_access = await auth_service.check_document_access( - current_user, document_id, Permission.READ - ) - if not has_access: - raise HTTPException( - status_code=status.HTTP_403_FORBIDDEN, - detail="접근 권한이 없습니다", - ) - - # Get latest job - result = await db.execute( - select(ProcessingJob) - .where(ProcessingJob.document_id == document_id) - .order_by(ProcessingJob.created_at.desc()) - .limit(1) - ) - job = result.scalar_one_or_none() - - if not job: - raise HTTPException( - status_code=status.HTTP_404_NOT_FOUND, - detail="처리 작업을 찾을 수 없습니다", - ) - - return ProcessingJobResponse( - id=str(job.id), - job_type=job.job_type.value, - status=job.status.value, - progress=job.progress, - error_message=job.error_message, - started_at=job.started_at, - completed_at=job.completed_at, - created_at=job.created_at, - ) diff --git a/app/routers/search.py b/app/routers/search.py deleted file mode 100644 index 339463c..0000000 --- a/app/routers/search.py +++ /dev/null @@ -1,194 +0,0 @@ -""" -Search API Router -검색 API 엔드포인트 -""" -from __future__ import annotations - -import uuid -from typing import Annotated, Optional - -from fastapi import APIRouter, Depends, Query -from pydantic import BaseModel, Field -from sqlalchemy.ext.asyncio import AsyncSession - -from app.db.base import get_db -from app.db.models import User -from app.dependencies import get_current_user, get_auth_service -from app.services.auth import AuthService -from app.search import SearchPipeline, SearchResult - -router = APIRouter(prefix="/search", tags=["Search"]) - - -# Request/Response Models -class SearchRequest(BaseModel): - query: str = Field(..., min_length=1, max_length=1000) - top_k: int = Field(50, ge=1, le=200, description="Number of candidates for retrieval") - top_n: int = Field(5, ge=1, le=50, description="Number of final results") - use_rerank: bool = True - use_hybrid: bool = True - - # Filters - department_id: str | None = None - project_id: str | None = None - classification: list[str] | None = None - doc_type: str | None = None - date_from: int | None = None # Unix timestamp - date_to: int | None = None - - -class SearchHit(BaseModel): - chunk_id: str - doc_id: str - score: float - text: str - source: str - page: int | None = None - sheet: str | None = None - slide: int | None = None - chunk_index: int - heading: str | None = None - highlight: str | None = None - - -class SearchResponse(BaseModel): - query: str - hits: list[SearchHit] - total: int - metrics: dict - - -# Endpoints -@router.post("", response_model=SearchResponse) -async def search_documents( - request: SearchRequest, - current_user: Annotated[User, Depends(get_current_user)], - auth_service: Annotated[AuthService, Depends(get_auth_service)], -): - """ - 문서를 검색합니다 - - 하이브리드 검색 (Dense + Sparse) + 리랭킹을 사용합니다. - """ - # Get accessible document IDs for the user - accessible_doc_ids = await auth_service.get_accessible_document_ids(current_user) - - # Convert to string list if not None - accessible_str_ids = [str(d) for d in accessible_doc_ids] if accessible_doc_ids else None - - # Build filter params - filter_params = {} - if request.department_id: - filter_params["department_id"] = request.department_id - if request.project_id: - filter_params["project_id"] = request.project_id - if request.classification: - filter_params["classification"] = request.classification - if request.doc_type: - filter_params["doc_type"] = request.doc_type - if request.date_from: - filter_params["date_from"] = request.date_from - if request.date_to: - filter_params["date_to"] = request.date_to - - # Execute search - pipeline = SearchPipeline() - results, metrics = pipeline.search( - query=request.query, - top_k=request.top_k, - top_n=request.top_n, - use_rerank=request.use_rerank, - use_hybrid=request.use_hybrid, - filter_params=filter_params if filter_params else None, - accessible_doc_ids=accessible_str_ids, - ) - - # Build response - hits = [] - for r in results: - # Create simple highlight (bold matching terms) - highlight = create_highlight(r.text, request.query) - - hits.append(SearchHit( - chunk_id=r.chunk_id, - doc_id=r.doc_id, - score=round(r.score, 4), - text=r.text, - source=r.source, - page=r.page, - sheet=r.sheet, - slide=r.slide, - chunk_index=r.chunk_index, - heading=r.heading, - highlight=highlight, - )) - - return SearchResponse( - query=request.query, - hits=hits, - total=len(hits), - metrics={ - "embed_ms": round(metrics.embed_ms, 2), - "search_ms": round(metrics.search_ms, 2), - "rerank_ms": round(metrics.rerank_ms, 2), - "total_ms": round(metrics.total_ms, 2), - }, - ) - - -@router.get("/quick", response_model=SearchResponse) -async def quick_search( - q: str = Query(..., min_length=1, max_length=500), - limit: int = Query(5, ge=1, le=20), - current_user: Annotated[User, Depends(get_current_user)] = None, - auth_service: Annotated[AuthService, Depends(get_auth_service)] = None, -): - """ - 빠른 검색 (GET 요청용) - """ - request = SearchRequest( - query=q, - top_k=limit * 5, - top_n=limit, - use_rerank=True, - use_hybrid=True, - ) - - return await search_documents(request, current_user, auth_service) - - -def create_highlight(text: str, query: str, max_length: int = 300) -> str: - """ - Create a highlighted snippet from text - Simple implementation - in production, use proper highlighting library - """ - import re - - # Find relevant part of text - query_terms = query.lower().split() - text_lower = text.lower() - - # Find first occurrence of any query term - first_match = len(text) - for term in query_terms: - pos = text_lower.find(term) - if pos != -1 and pos < first_match: - first_match = pos - - # Extract snippet around match - start = max(0, first_match - 50) - end = min(len(text), start + max_length) - - snippet = text[start:end] - if start > 0: - snippet = "..." + snippet - if end < len(text): - snippet = snippet + "..." - - # Bold matching terms (for HTML rendering) - for term in query_terms: - if len(term) >= 2: - pattern = re.compile(re.escape(term), re.IGNORECASE) - snippet = pattern.sub(f"**{term}**", snippet) - - return snippet diff --git a/app/search/__init__.py b/app/search/__init__.py deleted file mode 100644 index d75cf4c..0000000 --- a/app/search/__init__.py +++ /dev/null @@ -1,241 +0,0 @@ -""" -Hybrid Search Pipeline -하이브리드 검색 + 리랭킹 + RAG 파이프라인 -""" -from __future__ import annotations - -import time -from dataclasses import dataclass, field -from typing import Any, Optional - -from app.core.config import settings -from .embedding import get_embedding_service -from .reranker import get_reranker_service -from .vector_store import get_vector_store - - -@dataclass -class SearchResult: - """Search result with all metadata""" - chunk_id: str - doc_id: str - text: str - score: float - source: str - page: Optional[int] = None - sheet: Optional[str] = None - slide: Optional[int] = None - chunk_index: int = 0 - heading: Optional[str] = None - metadata: dict = field(default_factory=dict) - - -@dataclass -class SearchMetrics: - """Search performance metrics""" - embed_ms: float = 0.0 - search_ms: float = 0.0 - rerank_ms: float = 0.0 - total_ms: float = 0.0 - - -class SearchPipeline: - """ - Hybrid search pipeline with: - - Dense + Sparse (BM25) retrieval - - RRF fusion - - Cross-encoder reranking - - Access control filtering - """ - - def __init__(self): - self.embedding = get_embedding_service() - self.reranker = get_reranker_service() - self.vector_store = get_vector_store() - - def search( - self, - query: str, - top_k: int | None = None, - top_n: int | None = None, - use_rerank: bool | None = None, - use_hybrid: bool | None = None, - filter_params: dict | None = None, - accessible_doc_ids: list[str] | None = None, - ) -> tuple[list[SearchResult], SearchMetrics]: - """ - Execute search pipeline - - Args: - query: Search query - top_k: Number of candidates for initial retrieval - top_n: Number of final results after reranking - use_rerank: Whether to use reranking - use_hybrid: Whether to use hybrid search - filter_params: Additional filter parameters - accessible_doc_ids: List of document IDs user can access (None = no filter) - - Returns: - Tuple of (results, metrics) - """ - metrics = SearchMetrics() - t_start = time.perf_counter() - - top_k = top_k or settings.retrieval_dense_top_k - top_n = top_n or settings.retrieval_final_top_n - use_rerank = use_rerank if use_rerank is not None else settings.retrieval_use_rerank - use_hybrid = use_hybrid if use_hybrid is not None else settings.retrieval_use_hybrid - - # 1. Encode query - t0 = time.perf_counter() - query_vectors = self.embedding.encode_query( - query, - return_dense=True, - return_sparse=use_hybrid, - ) - metrics.embed_ms = (time.perf_counter() - t0) * 1000 - - # 2. Build filters - filter_conditions = None - if filter_params or accessible_doc_ids: - filter_params = filter_params or {} - if accessible_doc_ids: - filter_params["doc_ids"] = [str(d) for d in accessible_doc_ids] - filter_conditions = self.vector_store.build_filter(**filter_params) - - # 3. Search - t0 = time.perf_counter() - if use_hybrid and "sparse" in query_vectors: - raw_results = self.vector_store.search_hybrid( - dense_vector=query_vectors["dense"], - sparse_vector=query_vectors["sparse"], - limit=top_k, - filter_conditions=filter_conditions, - ) - else: - raw_results = self.vector_store.search_dense( - vector=query_vectors["dense"], - limit=top_k, - filter_conditions=filter_conditions, - ) - metrics.search_ms = (time.perf_counter() - t0) * 1000 - - # 4. Rerank if enabled - if use_rerank and raw_results: - t0 = time.perf_counter() - passages = [r["payload"].get("text", "") for r in raw_results] - rerank_scores = self.reranker.rerank(query, passages) - - for r, score in zip(raw_results, rerank_scores): - r["rerank_score"] = score - - raw_results.sort(key=lambda x: x.get("rerank_score", 0), reverse=True) - metrics.rerank_ms = (time.perf_counter() - t0) * 1000 - - # 5. Take top_n and build results - results = [] - for r in raw_results[:top_n]: - payload = r["payload"] - results.append(SearchResult( - chunk_id=r["id"], - doc_id=payload.get("doc_id", ""), - text=payload.get("text", ""), - score=r.get("rerank_score", r.get("score", 0)), - source=payload.get("source", ""), - page=payload.get("page"), - sheet=payload.get("sheet"), - slide=payload.get("slide"), - chunk_index=payload.get("chunk_index", 0), - heading=payload.get("heading"), - metadata={ - k: v for k, v in payload.items() - if k not in ("text", "doc_id", "source", "page", "sheet", "slide", "chunk_index", "heading") - }, - )) - - metrics.total_ms = (time.perf_counter() - t_start) * 1000 - - return results, metrics - - def multi_query_search( - self, - queries: list[str], - top_k: int | None = None, - top_n: int | None = None, - **kwargs, - ) -> tuple[list[SearchResult], SearchMetrics]: - """ - Search with multiple queries (for query expansion) - Merges results using RRF - """ - all_results: dict[str, dict] = {} # chunk_id -> result with rrf score - total_metrics = SearchMetrics() - - for query in queries: - results, metrics = self.search( - query, - top_k=top_k, - top_n=top_k, # Get more for merging - use_rerank=False, # Rerank after merge - **kwargs, - ) - - # Accumulate metrics - total_metrics.embed_ms += metrics.embed_ms - total_metrics.search_ms += metrics.search_ms - - # RRF merge - for rank, r in enumerate(results): - chunk_id = r.chunk_id - rrf_score = 1.0 / (settings.retrieval_rrf_k + rank + 1) - - if chunk_id in all_results: - all_results[chunk_id]["rrf_score"] += rrf_score - else: - all_results[chunk_id] = { - "result": r, - "rrf_score": rrf_score, - } - - # Sort by RRF score - merged = sorted( - all_results.values(), - key=lambda x: x["rrf_score"], - reverse=True, - ) - - # Take top candidates for reranking - top_n = top_n or settings.retrieval_final_top_n - candidates = [m["result"] for m in merged[:top_k or 50]] - - # Rerank with first query - if candidates and settings.retrieval_use_rerank: - t0 = time.perf_counter() - passages = [c.text for c in candidates] - rerank_scores = self.reranker.rerank(queries[0], passages) - - for c, score in zip(candidates, rerank_scores): - c.score = score - - candidates.sort(key=lambda x: x.score, reverse=True) - total_metrics.rerank_ms = (time.perf_counter() - t0) * 1000 - - return candidates[:top_n], total_metrics - - -# Search module exports -from .embedding import EmbeddingService, get_embedding_service -from .reranker import RerankerService, get_reranker_service -from .vector_store import VectorStore, get_vector_store - -__all__ = [ - "SearchPipeline", - "SearchResult", - "SearchMetrics", - "EmbeddingService", - "get_embedding_service", - "RerankerService", - "get_reranker_service", - "VectorStore", - "get_vector_store", -] diff --git a/app/search/embedding.py b/app/search/embedding.py deleted file mode 100644 index 4d96503..0000000 --- a/app/search/embedding.py +++ /dev/null @@ -1,151 +0,0 @@ -""" -Embedding Service -BGE-M3 기반 Dense + Sparse 임베딩 -""" -from __future__ import annotations - -import numpy as np -from typing import Any - -from app.core.config import settings - - -class EmbeddingService: - """ - Embedding service using BGE-M3 - Supports both dense and sparse (lexical) embeddings - """ - - def __init__(self): - self._model = None - - @property - def model(self): - """Lazy load the embedding model""" - if self._model is None: - from FlagEmbedding import BGEM3FlagModel - - self._model = BGEM3FlagModel( - settings.embed_model, - use_fp16=settings.embed_use_fp16, - device=settings.embed_device, - ) - return self._model - - def encode_query( - self, - query: str, - return_dense: bool = True, - return_sparse: bool = True, - ) -> dict[str, Any]: - """ - Encode a query for search - - Args: - query: The query text - return_dense: Whether to return dense embedding - return_sparse: Whether to return sparse embedding - - Returns: - Dict with 'dense' and/or 'sparse' embeddings - """ - result = self.model.encode( - [query], - max_length=settings.embed_max_length, - return_dense=return_dense, - return_sparse=return_sparse, - return_colbert_vecs=False, - ) - - output = {} - - if return_dense: - output["dense"] = np.asarray(result["dense_vecs"][0], dtype=np.float32) - - if return_sparse: - lexical = result["lexical_weights"][0] - output["sparse"] = self._convert_sparse(lexical) - - return output - - def encode_documents( - self, - texts: list[str], - return_dense: bool = True, - return_sparse: bool = True, - batch_size: int | None = None, - ) -> dict[str, Any]: - """ - Encode documents for indexing - - Args: - texts: List of document texts - return_dense: Whether to return dense embeddings - return_sparse: Whether to return sparse embeddings - batch_size: Batch size for encoding - - Returns: - Dict with 'dense' and/or 'sparse' embeddings arrays - """ - bs = batch_size or settings.embed_batch_size - all_dense = [] - all_sparse = [] - - for i in range(0, len(texts), bs): - batch = texts[i:i + bs] - - result = self.model.encode( - batch, - max_length=settings.embed_max_length, - return_dense=return_dense, - return_sparse=return_sparse, - return_colbert_vecs=False, - ) - - if return_dense: - all_dense.extend(result["dense_vecs"]) - - if return_sparse: - for lw in result["lexical_weights"]: - all_sparse.append(self._convert_sparse(lw)) - - output = {} - - if return_dense: - output["dense"] = np.asarray(all_dense, dtype=np.float32) - - if return_sparse: - output["sparse"] = all_sparse - - return output - - def _convert_sparse(self, lexical_weights: dict) -> dict: - """ - Convert BGE-M3 lexical weights to sparse vector format - - Args: - lexical_weights: Dict of token_id -> weight - - Returns: - Dict with 'indices' and 'values' lists - """ - indices = [] - values = [] - - for token_id, weight in lexical_weights.items(): - indices.append(int(token_id)) - values.append(float(weight)) - - return {"indices": indices, "values": values} - - -# Singleton instance -_embedding_service: EmbeddingService | None = None - - -def get_embedding_service() -> EmbeddingService: - """Get embedding service singleton""" - global _embedding_service - if _embedding_service is None: - _embedding_service = EmbeddingService() - return _embedding_service diff --git a/app/search/reranker.py b/app/search/reranker.py deleted file mode 100644 index adcfa21..0000000 --- a/app/search/reranker.py +++ /dev/null @@ -1,109 +0,0 @@ -""" -Reranking Service -BGE-Reranker 기반 Cross-Encoder 리랭킹 -""" -from __future__ import annotations - -from app.core.config import settings - - -class RerankerService: - """ - Reranking service using BGE-Reranker - Cross-encoder for more accurate relevance scoring - """ - - def __init__(self): - self._model = None - - @property - def model(self): - """Lazy load the reranker model""" - if self._model is None: - from FlagEmbedding import FlagReranker - - self._model = FlagReranker( - settings.rerank_model, - use_fp16=settings.rerank_use_fp16, - device=settings.embed_device, - ) - return self._model - - def rerank( - self, - query: str, - passages: list[str], - batch_size: int | None = None, - ) -> list[float]: - """ - Rerank passages by relevance to query - - Args: - query: The search query - passages: List of passage texts - batch_size: Batch size for processing - - Returns: - List of relevance scores (normalized 0-1) - """ - if not passages: - return [] - - bs = batch_size or settings.rerank_batch_size - all_scores: list[float] = [] - - for i in range(0, len(passages), bs): - batch = passages[i:i + bs] - pairs = [[query, p] for p in batch] - - scores = self.model.compute_score(pairs, normalize=True) - - # Handle single result (returns float instead of list) - if isinstance(scores, (int, float)): - all_scores.append(float(scores)) - else: - all_scores.extend([float(s) for s in scores]) - - return all_scores - - def rerank_with_indices( - self, - query: str, - passages: list[str], - top_n: int | None = None, - ) -> list[tuple[int, float]]: - """ - Rerank and return sorted indices with scores - - Args: - query: The search query - passages: List of passage texts - top_n: Number of top results to return - - Returns: - List of (original_index, score) tuples, sorted by score descending - """ - scores = self.rerank(query, passages) - - # Pair with indices - indexed_scores = list(enumerate(scores)) - - # Sort by score descending - indexed_scores.sort(key=lambda x: x[1], reverse=True) - - if top_n: - indexed_scores = indexed_scores[:top_n] - - return indexed_scores - - -# Singleton instance -_reranker_service: RerankerService | None = None - - -def get_reranker_service() -> RerankerService: - """Get reranker service singleton""" - global _reranker_service - if _reranker_service is None: - _reranker_service = RerankerService() - return _reranker_service diff --git a/app/search/vector_store.py b/app/search/vector_store.py deleted file mode 100644 index 008d3b3..0000000 --- a/app/search/vector_store.py +++ /dev/null @@ -1,364 +0,0 @@ -""" -Vector Store Service -Qdrant 벡터 데이터베이스 관리 -""" -from __future__ import annotations - -import uuid -from typing import Any - -import numpy as np -from qdrant_client import QdrantClient -from qdrant_client.http import models as qm - -from app.core.config import settings - - -class VectorStore: - """ - Vector store using Qdrant - Supports both dense and sparse vectors for hybrid search - """ - - def __init__(self): - self.client = QdrantClient(url=settings.qdrant_url) - self.collection = settings.qdrant_collection - - def ensure_collection(self) -> None: - """Create collection if it doesn't exist""" - existing = {c.name for c in self.client.get_collections().collections} - - if self.collection in existing: - return - - # Create collection with both dense and sparse vectors - self.client.create_collection( - collection_name=self.collection, - vectors_config={ - "dense": qm.VectorParams( - size=settings.vector_size, - distance=qm.Distance.COSINE, - ), - }, - sparse_vectors_config={ - "sparse": qm.SparseVectorParams( - index=qm.SparseIndexParams(on_disk=False), - ), - }, - hnsw_config=qm.HnswConfigDiff(m=16, ef_construct=128), - on_disk_payload=True, - ) - - # Create payload indexes for filtering - self._create_indexes() - - def _create_indexes(self) -> None: - """Create payload indexes for efficient filtering""" - indexes = [ - ("doc_id", qm.PayloadSchemaType.KEYWORD), - ("department_id", qm.PayloadSchemaType.KEYWORD), - ("project_id", qm.PayloadSchemaType.KEYWORD), - ("classification", qm.PayloadSchemaType.KEYWORD), - ("doc_type", qm.PayloadSchemaType.KEYWORD), - ("source", qm.PayloadSchemaType.KEYWORD), - ("uploaded_at", qm.PayloadSchemaType.INTEGER), - ] - - for field_name, field_type in indexes: - try: - self.client.create_payload_index( - collection_name=self.collection, - field_name=field_name, - field_schema=field_type, - ) - except Exception: - pass # Index might already exist - - def upsert_points( - self, - points: list[dict[str, Any]], - ) -> None: - """ - Upsert points to the collection - - Args: - points: List of dicts with 'id', 'dense', 'sparse', 'payload' - """ - qdrant_points = [] - - for p in points: - vectors = {} - - if "dense" in p: - dense = p["dense"] - if isinstance(dense, np.ndarray): - dense = dense.tolist() - vectors["dense"] = dense - - if "sparse" in p: - sparse = p["sparse"] - vectors["sparse"] = qm.SparseVector( - indices=sparse["indices"], - values=sparse["values"], - ) - - qdrant_points.append(qm.PointStruct( - id=p["id"], - vector=vectors, - payload=p.get("payload", {}), - )) - - self.client.upsert( - collection_name=self.collection, - points=qdrant_points, - ) - - def search_dense( - self, - vector: np.ndarray | list[float], - limit: int = 50, - filter_conditions: qm.Filter | None = None, - ) -> list[dict]: - """ - Dense vector search - - Args: - vector: Query vector - limit: Maximum results - filter_conditions: Optional Qdrant filter - - Returns: - List of results with id, score, and payload - """ - if isinstance(vector, np.ndarray): - vector = vector.tolist() - - results = self.client.search( - collection_name=self.collection, - query_vector=("dense", vector), - limit=limit, - query_filter=filter_conditions, - with_payload=True, - ) - - return [ - { - "id": str(r.id), - "score": r.score, - "payload": r.payload or {}, - } - for r in results - ] - - def search_sparse( - self, - sparse_vector: dict, - limit: int = 50, - filter_conditions: qm.Filter | None = None, - ) -> list[dict]: - """ - Sparse vector search (BM25-like) - - Args: - sparse_vector: Dict with 'indices' and 'values' - limit: Maximum results - filter_conditions: Optional Qdrant filter - - Returns: - List of results with id, score, and payload - """ - results = self.client.search( - collection_name=self.collection, - query_vector=qm.NamedSparseVector( - name="sparse", - vector=qm.SparseVector( - indices=sparse_vector["indices"], - values=sparse_vector["values"], - ), - ), - limit=limit, - query_filter=filter_conditions, - with_payload=True, - ) - - return [ - { - "id": str(r.id), - "score": r.score, - "payload": r.payload or {}, - } - for r in results - ] - - def search_hybrid( - self, - dense_vector: np.ndarray | list[float], - sparse_vector: dict, - limit: int = 50, - filter_conditions: qm.Filter | None = None, - fusion: str = "rrf", - ) -> list[dict]: - """ - Hybrid search using both dense and sparse vectors - - Args: - dense_vector: Dense query vector - sparse_vector: Sparse query vector - limit: Maximum results - filter_conditions: Optional Qdrant filter - fusion: Fusion method ('rrf' or 'dbsf') - - Returns: - List of results with id, score, and payload - """ - if isinstance(dense_vector, np.ndarray): - dense_vector = dense_vector.tolist() - - # Use Qdrant's query API with prefetch for hybrid search - fusion_method = qm.Fusion.RRF if fusion == "rrf" else qm.Fusion.DBSF - - results = self.client.query_points( - collection_name=self.collection, - prefetch=[ - qm.Prefetch( - query=dense_vector, - using="dense", - limit=limit, - filter=filter_conditions, - ), - qm.Prefetch( - query=qm.SparseVector( - indices=sparse_vector["indices"], - values=sparse_vector["values"], - ), - using="sparse", - limit=limit, - filter=filter_conditions, - ), - ], - query=qm.FusionQuery(fusion=fusion_method), - limit=limit, - with_payload=True, - ) - - return [ - { - "id": str(p.id), - "score": p.score, - "payload": p.payload or {}, - } - for p in results.points - ] - - def delete_by_doc_id(self, doc_id: str) -> None: - """Delete all points for a document""" - self.client.delete( - collection_name=self.collection, - points_selector=qm.FilterSelector( - filter=qm.Filter( - must=[ - qm.FieldCondition( - key="doc_id", - match=qm.MatchValue(value=doc_id), - ), - ], - ), - ), - ) - - def get_collection_info(self) -> dict: - """Get collection statistics""" - info = self.client.get_collection(self.collection) - # Handle version differences - vectors_count was deprecated - vectors_count = getattr(info, 'vectors_count', None) or info.points_count - indexed_count = getattr(info, 'indexed_vectors_count', None) or info.points_count - return { - "points_count": info.points_count, - "vectors_count": vectors_count, - "indexed_vectors_count": indexed_count, - "status": info.status.value, - } - - def build_filter( - self, - department_id: str | None = None, - project_id: str | None = None, - classification: list[str] | None = None, - doc_type: str | None = None, - doc_ids: list[str] | None = None, - date_from: int | None = None, - date_to: int | None = None, - ) -> qm.Filter | None: - """ - Build a Qdrant filter from parameters - - Args: - department_id: Filter by department - project_id: Filter by project - classification: Filter by classification levels - doc_type: Filter by document type - doc_ids: Filter by specific document IDs - date_from: Filter by upload date (unix timestamp) - date_to: Filter by upload date (unix timestamp) - - Returns: - Qdrant Filter or None if no conditions - """ - conditions = [] - - if department_id: - conditions.append(qm.FieldCondition( - key="department_id", - match=qm.MatchValue(value=department_id), - )) - - if project_id: - conditions.append(qm.FieldCondition( - key="project_id", - match=qm.MatchValue(value=project_id), - )) - - if classification: - conditions.append(qm.FieldCondition( - key="classification", - match=qm.MatchAny(any=classification), - )) - - if doc_type: - conditions.append(qm.FieldCondition( - key="doc_type", - match=qm.MatchValue(value=doc_type), - )) - - if doc_ids: - conditions.append(qm.FieldCondition( - key="doc_id", - match=qm.MatchAny(any=doc_ids), - )) - - if date_from: - conditions.append(qm.FieldCondition( - key="uploaded_at", - range=qm.Range(gte=date_from), - )) - - if date_to: - conditions.append(qm.FieldCondition( - key="uploaded_at", - range=qm.Range(lte=date_to), - )) - - return qm.Filter(must=conditions) if conditions else None - - -# Singleton instance -_vector_store: VectorStore | None = None - - -def get_vector_store() -> VectorStore: - """Get vector store singleton""" - global _vector_store - if _vector_store is None: - _vector_store = VectorStore() - _vector_store.ensure_collection() - return _vector_store diff --git a/app/services/__init__.py b/app/services/__init__.py deleted file mode 100644 index 3b7dc75..0000000 --- a/app/services/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# Services modules -from .auth import AuthService -from .storage import StorageService - -__all__ = ["AuthService", "StorageService"] diff --git a/app/services/auth.py b/app/services/auth.py deleted file mode 100644 index d4903ef..0000000 --- a/app/services/auth.py +++ /dev/null @@ -1,423 +0,0 @@ -""" -Authentication and Authorization Service -인증 및 권한 관리 서비스 -""" -from __future__ import annotations - -import uuid -from datetime import datetime, timezone -from typing import Optional - -from sqlalchemy import select -from sqlalchemy.ext.asyncio import AsyncSession -from sqlalchemy.orm import selectinload - -from app.core.security import ( - create_access_token, - create_refresh_token, - decode_token, - hash_password, - verify_password, -) -from app.db.models import ( - AccessPolicy, - AuditAction, - AuditLog, - Classification, - Document, - Permission, - User, - UserRole, -) - - -class AuthService: - """Authentication and authorization service""" - - def __init__(self, db: AsyncSession): - self.db = db - - async def authenticate_user( - self, - username: str, - password: str, - ip_address: str | None = None, - user_agent: str | None = None, - ) -> tuple[User | None, str | None]: - """ - Authenticate user with username and password - Returns (user, error_message) - """ - # Find user - result = await self.db.execute( - select(User).where(User.username == username) - ) - user = result.scalar_one_or_none() - - if not user: - return None, "사용자를 찾을 수 없습니다" - - if not user.is_active: - return None, "비활성화된 계정입니다" - - if not verify_password(password, user.password_hash): - # Log failed attempt - await self._log_audit( - user_id=user.id, - action=AuditAction.LOGIN, - resource_type="auth", - details={"success": False, "reason": "invalid_password"}, - ip_address=ip_address, - user_agent=user_agent, - ) - return None, "비밀번호가 일치하지 않습니다" - - # Update last login - user.last_login = datetime.now(timezone.utc) - - # Log successful login - await self._log_audit( - user_id=user.id, - action=AuditAction.LOGIN, - resource_type="auth", - details={"success": True}, - ip_address=ip_address, - user_agent=user_agent, - ) - - return user, None - - async def create_tokens(self, user: User) -> dict: - """Create access and refresh tokens for user""" - token_data = { - "sub": str(user.id), - "username": user.username, - "role": user.role.value, - "department_id": str(user.department_id) if user.department_id else None, - } - - access_token = create_access_token(token_data) - refresh_token = create_refresh_token(token_data) - - return { - "access_token": access_token, - "refresh_token": refresh_token, - "token_type": "bearer", - } - - async def refresh_tokens(self, refresh_token: str) -> dict | None: - """Refresh access token using refresh token""" - payload = decode_token(refresh_token) - if not payload or payload.get("type") != "refresh": - return None - - user_id = payload.get("sub") - result = await self.db.execute( - select(User).where(User.id == uuid.UUID(user_id)) - ) - user = result.scalar_one_or_none() - - if not user or not user.is_active: - return None - - return await self.create_tokens(user) - - async def get_current_user(self, token: str) -> User | None: - """Get current user from access token""" - payload = decode_token(token) - if not payload or payload.get("type") != "access": - return None - - user_id = payload.get("sub") - result = await self.db.execute( - select(User) - .options(selectinload(User.department)) - .where(User.id == uuid.UUID(user_id)) - ) - return result.scalar_one_or_none() - - async def create_user( - self, - username: str, - email: str, - password: str, - full_name: str, - role: UserRole = UserRole.USER, - department_id: uuid.UUID | None = None, - max_classification: Classification = Classification.INTERNAL, - ) -> User: - """Create a new user""" - user = User( - username=username, - email=email, - password_hash=hash_password(password), - full_name=full_name, - role=role, - department_id=department_id, - max_classification=max_classification, - is_active=True, - is_verified=False, - ) - self.db.add(user) - await self.db.flush() - return user - - async def check_document_access( - self, - user: User, - document_id: uuid.UUID, - required_permission: Permission = Permission.READ, - ) -> bool: - """ - Check if user has access to a document - Access is granted if: - 1. User is admin - 2. User uploaded the document - 3. User has explicit access policy - 4. Document is in user's department - 5. Document classification <= user's max classification - """ - # Admin has full access - if user.role == UserRole.ADMIN: - return True - - # Get document with project info - result = await self.db.execute( - select(Document) - .options(selectinload(Document.project)) - .where(Document.id == document_id) - ) - document = result.scalar_one_or_none() - - if not document: - return False - - # Check classification level - classification_order = { - Classification.PUBLIC: 0, - Classification.INTERNAL: 1, - Classification.CONFIDENTIAL: 2, - Classification.RESTRICTED: 3, - } - if classification_order[document.classification] > classification_order[user.max_classification]: - return False - - # User uploaded the document - if document.uploaded_by == user.id: - return True - - # Same department - if document.department_id and document.department_id == user.department_id: - return True - - # Check explicit access policy - result = await self.db.execute( - select(AccessPolicy) - .where( - AccessPolicy.user_id == user.id, - AccessPolicy.document_id == document_id, - ) - ) - policy = result.scalar_one_or_none() - - if policy: - # Check expiration - if policy.expires_at and policy.expires_at < datetime.now(timezone.utc): - return False - - # Check permission level - permission_order = { - Permission.READ: 0, - Permission.WRITE: 1, - Permission.DELETE: 2, - Permission.ADMIN: 3, - } - return permission_order[policy.permission] >= permission_order[required_permission] - - # Check project-level access - if document.project_id: - result = await self.db.execute( - select(AccessPolicy) - .where( - AccessPolicy.user_id == user.id, - AccessPolicy.project_id == document.project_id, - ) - ) - project_policy = result.scalar_one_or_none() - if project_policy: - if project_policy.expires_at and project_policy.expires_at < datetime.now(timezone.utc): - return False - permission_order = { - Permission.READ: 0, - Permission.WRITE: 1, - Permission.DELETE: 2, - Permission.ADMIN: 3, - } - return permission_order[project_policy.permission] >= permission_order[required_permission] - - return False - - async def get_accessible_document_ids( - self, - user: User, - ) -> list[uuid.UUID] | None: - """ - Get list of document IDs user can access - Returns None if user has unrestricted access (admin) - """ - if user.role == UserRole.ADMIN: - return None # No filter needed - - # Get documents from: - # 1. User's department - # 2. User's uploaded documents - # 3. Explicit access policies - # 4. Project access policies - - accessible_ids = set() - - # User's department documents - if user.department_id: - result = await self.db.execute( - select(Document.id) - .where( - Document.department_id == user.department_id, - Document.deleted_at.is_(None), - ) - ) - for row in result: - accessible_ids.add(row[0]) - - # User's uploaded documents - result = await self.db.execute( - select(Document.id) - .where( - Document.uploaded_by == user.id, - Document.deleted_at.is_(None), - ) - ) - for row in result: - accessible_ids.add(row[0]) - - # Explicit document access - result = await self.db.execute( - select(AccessPolicy.document_id) - .where( - AccessPolicy.user_id == user.id, - AccessPolicy.document_id.isnot(None), - ) - ) - for row in result: - if row[0]: - accessible_ids.add(row[0]) - - # Project access -> documents in that project - result = await self.db.execute( - select(AccessPolicy.project_id) - .where( - AccessPolicy.user_id == user.id, - AccessPolicy.project_id.isnot(None), - ) - ) - project_ids = [row[0] for row in result if row[0]] - - if project_ids: - result = await self.db.execute( - select(Document.id) - .where( - Document.project_id.in_(project_ids), - Document.deleted_at.is_(None), - ) - ) - for row in result: - accessible_ids.add(row[0]) - - return list(accessible_ids) - - async def grant_access( - self, - granter: User, - user_id: uuid.UUID, - document_id: uuid.UUID | None = None, - project_id: uuid.UUID | None = None, - permission: Permission = Permission.READ, - expires_at: datetime | None = None, - ) -> AccessPolicy: - """Grant access to a user""" - policy = AccessPolicy( - user_id=user_id, - document_id=document_id, - project_id=project_id, - permission=permission, - granted_by=granter.id, - expires_at=expires_at, - ) - self.db.add(policy) - - # Log - await self._log_audit( - user_id=granter.id, - action=AuditAction.PERMISSION_CHANGE, - resource_type="access_policy", - resource_id=str(document_id or project_id), - details={ - "target_user": str(user_id), - "permission": permission.value, - "action": "grant", - }, - ) - - await self.db.flush() - return policy - - async def revoke_access( - self, - revoker: User, - policy_id: uuid.UUID, - ) -> bool: - """Revoke access policy""" - result = await self.db.execute( - select(AccessPolicy).where(AccessPolicy.id == policy_id) - ) - policy = result.scalar_one_or_none() - - if not policy: - return False - - await self.db.delete(policy) - - # Log - await self._log_audit( - user_id=revoker.id, - action=AuditAction.PERMISSION_CHANGE, - resource_type="access_policy", - resource_id=str(policy_id), - details={ - "target_user": str(policy.user_id), - "action": "revoke", - }, - ) - - return True - - async def _log_audit( - self, - user_id: uuid.UUID | None, - action: AuditAction, - resource_type: str, - resource_id: str | None = None, - details: dict | None = None, - ip_address: str | None = None, - user_agent: str | None = None, - ) -> None: - """Log an audit event""" - log = AuditLog( - user_id=user_id, - action=action, - resource_type=resource_type, - resource_id=resource_id, - details=details, - ip_address=ip_address, - user_agent=user_agent, - ) - self.db.add(log) diff --git a/app/services/storage.py b/app/services/storage.py deleted file mode 100644 index a3f0dec..0000000 --- a/app/services/storage.py +++ /dev/null @@ -1,190 +0,0 @@ -""" -Object Storage Service (MinIO) -파일 저장소 서비스 -""" -from __future__ import annotations - -import io -import uuid -from datetime import timedelta -from pathlib import Path -from typing import BinaryIO - -from minio import Minio -from minio.error import S3Error - -from app.core.config import settings - - -class StorageService: - """MinIO object storage service""" - - def __init__(self): - self.client = Minio( - settings.minio_endpoint, - access_key=settings.minio_access_key, - secret_key=settings.minio_secret_key, - secure=settings.minio_secure, - ) - self.bucket = settings.minio_bucket - self._ensure_bucket() - - def _ensure_bucket(self) -> None: - """Ensure the bucket exists""" - try: - if not self.client.bucket_exists(self.bucket): - self.client.make_bucket(self.bucket) - except S3Error as e: - if "BucketAlreadyOwnedByYou" not in str(e): - raise - - def upload_file( - self, - file_data: BinaryIO | bytes, - object_name: str, - content_type: str = "application/octet-stream", - metadata: dict | None = None, - ) -> str: - """ - Upload a file to storage - Returns the object name (storage key) - """ - if isinstance(file_data, bytes): - file_data = io.BytesIO(file_data) - file_data.seek(0, 2) # Seek to end - size = file_data.tell() - file_data.seek(0) # Seek back to start - else: - # Get size by seeking - file_data.seek(0, 2) - size = file_data.tell() - file_data.seek(0) - - self.client.put_object( - self.bucket, - object_name, - file_data, - size, - content_type=content_type, - metadata=metadata or {}, - ) - - return object_name - - def upload_document( - self, - file_data: BinaryIO | bytes, - document_id: uuid.UUID, - filename: str, - version: int = 1, - content_type: str = "application/octet-stream", - ) -> str: - """ - Upload a document with proper path structure - Returns the storage key - """ - # Structure: originals/{document_id}/v{version}/{filename} - object_name = f"originals/{document_id}/v{version}/{filename}" - return self.upload_file(file_data, object_name, content_type) - - def upload_thumbnail( - self, - image_data: bytes, - document_id: uuid.UUID, - page_number: int, - ) -> str: - """Upload a page thumbnail""" - object_name = f"thumbnails/{document_id}/page_{page_number:04d}.png" - return self.upload_file(image_data, object_name, "image/png") - - def download_file(self, object_name: str) -> bytes: - """Download a file from storage""" - try: - response = self.client.get_object(self.bucket, object_name) - return response.read() - finally: - response.close() - response.release_conn() - - def get_file_stream(self, object_name: str) -> BinaryIO: - """Get a file stream (for large files)""" - return self.client.get_object(self.bucket, object_name) - - def get_presigned_url( - self, - object_name: str, - expires: timedelta = timedelta(hours=1), - ) -> str: - """Get a presigned URL for temporary access""" - return self.client.presigned_get_object( - self.bucket, - object_name, - expires=expires, - ) - - def delete_file(self, object_name: str) -> None: - """Delete a file from storage""" - self.client.remove_object(self.bucket, object_name) - - def delete_document(self, document_id: uuid.UUID) -> None: - """Delete all files for a document""" - # Delete originals - self._delete_prefix(f"originals/{document_id}/") - # Delete thumbnails - self._delete_prefix(f"thumbnails/{document_id}/") - # Delete extracted - self._delete_prefix(f"extracted/{document_id}/") - - def _delete_prefix(self, prefix: str) -> None: - """Delete all objects with a given prefix""" - objects = self.client.list_objects(self.bucket, prefix=prefix, recursive=True) - for obj in objects: - self.client.remove_object(self.bucket, obj.object_name) - - def file_exists(self, object_name: str) -> bool: - """Check if a file exists""" - try: - self.client.stat_object(self.bucket, object_name) - return True - except S3Error: - return False - - def get_file_info(self, object_name: str) -> dict | None: - """Get file metadata""" - try: - stat = self.client.stat_object(self.bucket, object_name) - return { - "size": stat.size, - "content_type": stat.content_type, - "last_modified": stat.last_modified, - "etag": stat.etag, - "metadata": stat.metadata, - } - except S3Error: - return None - - def list_documents(self, document_id: uuid.UUID) -> list[dict]: - """List all files for a document""" - files = [] - prefix = f"originals/{document_id}/" - - for obj in self.client.list_objects(self.bucket, prefix=prefix, recursive=True): - files.append({ - "name": obj.object_name, - "size": obj.size, - "last_modified": obj.last_modified, - }) - - return files - - -# Singleton instance -_storage_service: StorageService | None = None - - -def get_storage_service() -> StorageService: - """Get storage service singleton""" - global _storage_service - if _storage_service is None: - _storage_service = StorageService() - return _storage_service diff --git a/app/text_extract.py b/app/text_extract.py deleted file mode 100644 index 8b3b1df..0000000 --- a/app/text_extract.py +++ /dev/null @@ -1,107 +0,0 @@ -from __future__ import annotations - -import re -from dataclasses import dataclass -from pathlib import Path -from typing import Iterable - -import openpyxl -from docx import Document -from pypdf import PdfReader - - -@dataclass(frozen=True) -class TextUnit: - text: str - page: int | None = None - sheet: str | None = None - - -_CTRL_RE = re.compile(r"[\u0000-\u0008\u000B\u000C\u000E-\u001F]") -_ZW_RE = re.compile(r"[\u200B-\u200D\uFEFF]") - - -def normalize_text(s: str) -> str: - s = s.replace("\r\n", "\n").replace("\r", "\n") - s = _CTRL_RE.sub(" ", s) - s = _ZW_RE.sub("", s) - s = re.sub(r"[ \t]+", " ", s) - s = re.sub(r"\n{3,}", "\n\n", s) - return s.strip() - - -def extract_text_units(path: Path) -> list[TextUnit]: - ext = path.suffix.lower() - - if ext == ".pdf": - return _extract_pdf(path) - if ext == ".docx": - return _extract_docx(path) - if ext in (".xlsx", ".xlsm"): - return _extract_xlsx(path) - if ext in (".txt", ".md"): - txt = normalize_text(path.read_text(encoding="utf-8", errors="ignore")) - return [TextUnit(text=txt)] - raise ValueError(f"Unsupported file type: {path.name}") - - -def _extract_pdf(path: Path) -> list[TextUnit]: - reader = PdfReader(str(path)) - units: list[TextUnit] = [] - for i, page in enumerate(reader.pages, start=1): - raw = page.extract_text() or "" - txt = normalize_text(raw) - if txt: - units.append(TextUnit(text=txt, page=i)) - if not units: - raise RuntimeError(f"PDF text extraction produced empty result (maybe scanned PDF): {path}") - return units - - -def _extract_docx(path: Path) -> list[TextUnit]: - doc = Document(str(path)) - parts: list[str] = [] - - for p in doc.paragraphs: - t = p.text.strip() - if t: - parts.append(t) - - for table in doc.tables: - for row in table.rows: - cells = [c.text.strip() for c in row.cells] - line = " | ".join([c for c in cells if c]) - if line: - parts.append(line) - - txt = normalize_text("\n\n".join(parts)) - if not txt: - raise RuntimeError(f"DOCX text extraction produced empty result: {path}") - return [TextUnit(text=txt)] - - -def _iter_rows(ws) -> Iterable[str]: - for row in ws.iter_rows(values_only=True): - vals = [] - for v in row: - if v is None: - continue - s = str(v).strip() - if s: - vals.append(s) - if vals: - yield " | ".join(vals) - - -def _extract_xlsx(path: Path) -> list[TextUnit]: - wb = openpyxl.load_workbook(str(path), data_only=True, read_only=True) - units: list[TextUnit] = [] - for name in wb.sheetnames: - ws = wb[name] - rows = list(_iter_rows(ws)) - txt = normalize_text("\n".join(rows)) - if txt: - units.append(TextUnit(text=txt, sheet=name)) - if not units: - raise RuntimeError(f"XLSX text extraction produced empty result: {path}") - return units diff --git a/app/worker/__init__.py b/app/worker/__init__.py deleted file mode 100644 index 4862121..0000000 --- a/app/worker/__init__.py +++ /dev/null @@ -1,59 +0,0 @@ -""" -Celery Worker Configuration -비동기 작업 처리를 위한 Celery 설정 -""" -from celery import Celery - -from app.core.config import settings - -# Create Celery app -celery_app = Celery( - "docsearch", - broker=settings.celery_broker_url, - backend=settings.celery_result_backend, - include=["app.worker.tasks"], -) - -# Celery configuration -celery_app.conf.update( - # Task settings - task_serializer="json", - accept_content=["json"], - result_serializer="json", - timezone="Asia/Seoul", - enable_utc=True, - - # Task routing - task_routes={ - "app.worker.tasks.process_document": {"queue": "documents"}, - "app.worker.tasks.extract_text": {"queue": "documents"}, - "app.worker.tasks.create_embeddings": {"queue": "gpu"}, - "app.worker.tasks.reindex_document": {"queue": "gpu"}, - }, - - # Concurrency - worker_concurrency=2, # Low concurrency for GPU tasks - worker_prefetch_multiplier=1, # Process one task at a time - - # Task execution - task_acks_late=True, # Acknowledge after completion - task_reject_on_worker_lost=True, - task_time_limit=3600, # 1 hour max per task - task_soft_time_limit=3000, # 50 minutes soft limit - - # Result backend - result_expires=86400, # Results expire after 24 hours - - # Error handling - task_annotations={ - "*": {"rate_limit": "10/m"}, # Rate limit all tasks - }, -) - -# Optional: Configure periodic tasks (celery beat) -celery_app.conf.beat_schedule = { - # "cleanup-old-jobs": { - # "task": "app.worker.tasks.cleanup_old_jobs", - # "schedule": 3600.0, # Every hour - # }, -} diff --git a/app/worker/tasks.py b/app/worker/tasks.py deleted file mode 100644 index eaacc77..0000000 --- a/app/worker/tasks.py +++ /dev/null @@ -1,351 +0,0 @@ -""" -Celery Tasks -문서 처리, 임베딩 생성 등 비동기 작업 -""" -from __future__ import annotations - -import uuid -from datetime import datetime, timezone -from pathlib import Path -from typing import Any - -from celery import shared_task -from sqlalchemy import select -from sqlalchemy.orm import Session - -from app.core.config import settings -from app.core.security import hash_text -from app.db.models import ( - Document, - DocumentChunk, - DocumentStatus, - JobStatus, - JobType, - ProcessingJob, -) -from app.extraction import extract_text_from_file, ExtractionResult -from app.chunking import chunk_text, Chunk -from app.search import get_embedding_service, get_vector_store -from app.services.storage import get_storage_service -from app.worker import celery_app - - -def get_sync_session(): - """Get synchronous database session for Celery tasks""" - from sqlalchemy import create_engine - from sqlalchemy.orm import sessionmaker - - # Convert async URL to sync - sync_url = settings.database_url.replace("+asyncpg", "") - engine = create_engine(sync_url) - Session = sessionmaker(bind=engine) - return Session() - - -@celery_app.task(bind=True, max_retries=3) -def process_document(self, document_id: str, storage_key: str) -> dict[str, Any]: - """ - Main document processing pipeline - - 1. Download from storage - 2. Extract text - 3. Create chunks - 4. Generate embeddings - 5. Store in vector DB - - Args: - document_id: UUID of the document - storage_key: MinIO storage key - - Returns: - Processing result summary - """ - session = get_sync_session() - - try: - # Get document - doc = session.execute( - select(Document).where(Document.id == uuid.UUID(document_id)) - ).scalar_one_or_none() - - if not doc: - raise ValueError(f"Document not found: {document_id}") - - # Update status - doc.status = DocumentStatus.PROCESSING - session.commit() - - # Create processing job - job = ProcessingJob( - document_id=doc.id, - job_type=JobType.EXTRACT, - status=JobStatus.RUNNING, - celery_task_id=self.request.id, - started_at=datetime.now(timezone.utc), - ) - session.add(job) - session.commit() - - # 1. Download file - storage = get_storage_service() - file_data = storage.download_file(storage_key) - - # 2. Extract text - update_job_progress(session, job.id, 20, "텍스트 추출 중...") - - extraction = extract_text_from_file(doc.filename, file_data) - - # Update document metadata from extraction - if extraction.title: - doc.title = extraction.title - if extraction.author: - doc.author = extraction.author - if extraction.page_count: - doc.page_count = extraction.page_count - if extraction.metadata: - doc.metadata = extraction.metadata - - # 3. Create chunks - update_job_progress(session, job.id, 40, "청크 생성 중...") - - all_chunks: list[Chunk] = [] - for unit in extraction.units: - chunks = chunk_text( - unit.text, - page=unit.page, - sheet=unit.sheet, - slide=unit.slide, - heading=unit.heading, - is_table=unit.is_table, - ) - all_chunks.extend(chunks) - - if not all_chunks: - raise RuntimeError("No chunks created from document") - - # 4. Generate embeddings - update_job_progress(session, job.id, 60, "임베딩 생성 중...") - - embedding_service = get_embedding_service() - texts = [c.text for c in all_chunks] - embeddings = embedding_service.encode_documents( - texts, - return_dense=True, - return_sparse=True, - ) - - # 5. Prepare points for vector DB - update_job_progress(session, job.id, 80, "벡터 저장 중...") - - vector_store = get_vector_store() - points = [] - chunk_records = [] - - for i, chunk in enumerate(all_chunks): - point_id = str(uuid.uuid4()) - - # Prepare vector point - point = { - "id": point_id, - "dense": embeddings["dense"][i], - "sparse": embeddings["sparse"][i], - "payload": { - "doc_id": str(doc.id), - "chunk_id": point_id, - "source": doc.filename, - "filename": doc.filename, - "page": chunk.page, - "sheet": chunk.sheet, - "slide": chunk.slide, - "chunk_index": chunk.chunk_index, - "text": chunk.text, - "heading": chunk.heading, - "has_table": chunk.has_table, - "department_id": str(doc.department_id) if doc.department_id else None, - "project_id": str(doc.project_id) if doc.project_id else None, - "classification": doc.classification.value, - "doc_type": Path(doc.filename).suffix.lower().lstrip("."), - "uploaded_at": int(doc.created_at.timestamp()), - }, - } - points.append(point) - - # Prepare chunk record - chunk_record = DocumentChunk( - id=uuid.UUID(point_id), - document_id=doc.id, - chunk_index=i, - text=chunk.text, - text_hash=hash_text(chunk.text), - char_start=chunk.char_start, - char_end=chunk.char_end, - page_number=chunk.page, - sheet_name=chunk.sheet, - slide_number=chunk.slide, - qdrant_point_id=point_id, - heading=chunk.heading, - has_table=chunk.has_table, - ) - chunk_records.append(chunk_record) - - # 6. Store in vector DB - vector_store.upsert_points(points) - - # 7. Store chunk records in PostgreSQL - session.add_all(chunk_records) - - # 8. Update document status - doc.status = DocumentStatus.READY - doc.chunk_count = len(all_chunks) - - # 9. Complete job - job.status = JobStatus.COMPLETED - job.progress = 100 - job.completed_at = datetime.now(timezone.utc) - - session.commit() - - return { - "document_id": document_id, - "chunks_created": len(all_chunks), - "status": "completed", - } - - except Exception as e: - session.rollback() - - # Update document status - doc = session.execute( - select(Document).where(Document.id == uuid.UUID(document_id)) - ).scalar_one_or_none() - - if doc: - doc.status = DocumentStatus.ERROR - doc.error_message = str(e) - - # Update job status (get first one if multiple exist) - job = session.execute( - select(ProcessingJob) - .where(ProcessingJob.celery_task_id == self.request.id) - .order_by(ProcessingJob.created_at.desc()) - ).scalars().first() - - if job: - job.status = JobStatus.FAILED - job.error_message = str(e) - job.completed_at = datetime.now(timezone.utc) - - session.commit() - - # Retry with exponential backoff - raise self.retry(exc=e, countdown=60 * (2 ** self.request.retries)) - - finally: - session.close() - - -@celery_app.task(bind=True, max_retries=3) -def reindex_document(self, document_id: str) -> dict[str, Any]: - """ - Re-index an existing document - Useful when embedding model changes - """ - session = get_sync_session() - - try: - doc = session.execute( - select(Document).where(Document.id == uuid.UUID(document_id)) - ).scalar_one_or_none() - - if not doc: - raise ValueError(f"Document not found: {document_id}") - - # Get existing chunks - chunks = session.execute( - select(DocumentChunk) - .where(DocumentChunk.document_id == doc.id) - .order_by(DocumentChunk.chunk_index) - ).scalars().all() - - if not chunks: - raise ValueError(f"No chunks found for document: {document_id}") - - # Delete existing vectors - vector_store = get_vector_store() - vector_store.delete_by_doc_id(str(doc.id)) - - # Re-embed - embedding_service = get_embedding_service() - texts = [c.text for c in chunks] - embeddings = embedding_service.encode_documents( - texts, - return_dense=True, - return_sparse=True, - ) - - # Create new points - points = [] - for i, chunk in enumerate(chunks): - point = { - "id": chunk.qdrant_point_id, - "dense": embeddings["dense"][i], - "sparse": embeddings["sparse"][i], - "payload": { - "doc_id": str(doc.id), - "chunk_id": chunk.qdrant_point_id, - "source": doc.filename, - "filename": doc.filename, - "page": chunk.page_number, - "sheet": chunk.sheet_name, - "slide": chunk.slide_number, - "chunk_index": chunk.chunk_index, - "text": chunk.text, - "heading": chunk.heading, - "has_table": chunk.has_table, - "department_id": str(doc.department_id) if doc.department_id else None, - "project_id": str(doc.project_id) if doc.project_id else None, - "classification": doc.classification.value, - "doc_type": Path(doc.filename).suffix.lower().lstrip("."), - "uploaded_at": int(doc.created_at.timestamp()), - }, - } - points.append(point) - - vector_store.upsert_points(points) - - return { - "document_id": document_id, - "chunks_reindexed": len(chunks), - "status": "completed", - } - - except Exception as e: - raise self.retry(exc=e, countdown=60 * (2 ** self.request.retries)) - - finally: - session.close() - - -@celery_app.task -def delete_document_vectors(document_id: str) -> dict[str, Any]: - """Delete all vectors for a document""" - vector_store = get_vector_store() - vector_store.delete_by_doc_id(document_id) - - return { - "document_id": document_id, - "status": "deleted", - } - - -def update_job_progress(session: Session, job_id: uuid.UUID, progress: int, message: str = "") -> None: - """Update job progress""" - job = session.execute( - select(ProcessingJob).where(ProcessingJob.id == job_id) - ).scalar_one_or_none() - - if job: - job.progress = progress - if message: - job.error_message = message # Reusing for status message - session.commit() diff --git a/backend/Dockerfile b/backend/Dockerfile index e3f2064..04c1f41 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,10 +1,12 @@ -FROM python:3.12-slim +FROM python:3.14-slim -WORKDIR /app +WORKDIR /service -COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt +COPY backend/requirements.txt ./backend/requirements.txt +RUN pip install --no-cache-dir -r backend/requirements.txt -COPY app ./app +COPY backend ./backend -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"] +EXPOSE 8000 + +CMD ["uvicorn", "backend.app.main:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/backend/__init__.py b/backend/__init__.py index 8b13789..55bca6b 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -1 +1 @@ - +"""DocSearch AI backend package.""" diff --git a/backend/app/__init__.py b/backend/app/__init__.py index 8b13789..a7481fe 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -1 +1 @@ - +"""Application package for DocSearch AI.""" diff --git a/backend/app/core/__init__.py b/backend/app/core/__init__.py index 8b13789..614d002 100644 --- a/backend/app/core/__init__.py +++ b/backend/app/core/__init__.py @@ -1 +1 @@ - +"""Core backend utilities.""" diff --git a/backend/app/core/config.py b/backend/app/core/config.py index 4947f4b..1c718c0 100644 --- a/backend/app/core/config.py +++ b/backend/app/core/config.py @@ -5,7 +5,7 @@ class Settings(BaseModel): - app_name: str = os.getenv("APP_NAME", "DocSearch AI V2") + app_name: str = os.getenv("APP_NAME", "DocSearch AI") app_env: str = os.getenv("APP_ENV", "development") debug: bool = os.getenv("DEBUG", "false").lower() == "true" diff --git a/backend/app/main.py b/backend/app/main.py index 9e5c276..da61356 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -17,14 +17,14 @@ def create_app() -> FastAPI: async def health() -> dict[str, str]: return { "status": "healthy", - "service": "docsearch-ai-v2", + "service": "docsearch-ai", } @app.get("/ready") async def ready() -> dict[str, str]: return { "status": "ready", - "service": "docsearch-ai-v2", + "service": "docsearch-ai", } return app diff --git a/backend/app/worker.py b/backend/app/worker.py new file mode 100644 index 0000000..96b4631 --- /dev/null +++ b/backend/app/worker.py @@ -0,0 +1,17 @@ +import logging +import time + + +def main() -> None: + logging.basicConfig( + level=logging.INFO, + format="%(asctime)s %(levelname)s %(name)s %(message)s", + ) + logging.getLogger("docsearch.worker").info("worker scaffold started") + + while True: + time.sleep(3600) + + +if __name__ == "__main__": + main() diff --git a/backend/requirements.txt b/backend/requirements.txt index 6eb594b..2764148 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,2 +1,3 @@ fastapi==0.136.1 +pydantic==2.13.4 uvicorn==0.46.0 diff --git a/backend/tests/test_bootstrap.py b/backend/tests/test_bootstrap.py index ec7fcaa..c86b7e8 100644 --- a/backend/tests/test_bootstrap.py +++ b/backend/tests/test_bootstrap.py @@ -7,7 +7,7 @@ def test_settings_load_default_values(): settings = get_settings() - assert settings.app_name == "DocSearch AI V2" + assert settings.app_name == "DocSearch AI" assert settings.app_env == "development" @@ -19,5 +19,5 @@ def test_health_route_returns_expected_contract(): assert response.status_code == 200 assert response.json() == { "status": "healthy", - "service": "docsearch-ai-v2", + "service": "docsearch-ai", } diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 371a4b2..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,254 +0,0 @@ -# ============================================================ -# DocSearch AI - Docker Compose 설정 -# 온프레미스 문서 검색 RAG 서버 전체 스택 -# ============================================================ - -version: '3.8' - -services: - # ============================================================ - # API 서버 - # ============================================================ - api: - build: - context: . - dockerfile: docker/Dockerfile.api - container_name: docsearch-api - restart: unless-stopped - ports: - - "8000:8000" - environment: - - APP_ENV=production - - DEBUG=false - env_file: - - .env - volumes: - - ./app:/app/app:ro - - model_cache:/root/.cache - depends_on: - postgres: - condition: service_healthy - redis: - condition: service_healthy - qdrant: - condition: service_started - minio: - condition: service_healthy - extra_hosts: - - "host.docker.internal:host-gateway" - deploy: - resources: - reservations: - devices: - - driver: nvidia - count: 1 - capabilities: [gpu] - networks: - - docsearch-net - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000/health"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 60s - - # ============================================================ - # Celery Worker (문서 처리) - # ============================================================ - worker: - build: - context: . - dockerfile: docker/Dockerfile.worker - container_name: docsearch-worker - restart: unless-stopped - env_file: - - .env - volumes: - - ./app:/app/app:ro - - model_cache:/root/.cache - depends_on: - - api - - redis - - qdrant - - minio - extra_hosts: - - "host.docker.internal:host-gateway" - deploy: - resources: - reservations: - devices: - - driver: nvidia - count: 1 - capabilities: [gpu] - networks: - - docsearch-net - command: celery -A app.worker worker -l INFO -Q documents,gpu -c 1 - - # ============================================================ - # PostgreSQL 데이터베이스 - # ============================================================ - postgres: - image: postgres:16-alpine - container_name: docsearch-postgres - restart: unless-stopped - ports: - - "5432:5432" - environment: - POSTGRES_USER: ${POSTGRES_USER:-docsearch} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-docsearch_password} - POSTGRES_DB: ${POSTGRES_DB:-docsearch} - volumes: - - postgres_data:/var/lib/postgresql/data - - ./docker/init-db.sql:/docker-entrypoint-initdb.d/init.sql:ro - networks: - - docsearch-net - healthcheck: - test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-docsearch}"] - interval: 10s - timeout: 5s - retries: 5 - - # ============================================================ - # Redis (캐시 + 작업 큐) - # ============================================================ - redis: - image: redis:7-alpine - container_name: docsearch-redis - restart: unless-stopped - ports: - - "6379:6379" - command: redis-server --requirepass ${REDIS_PASSWORD:-redis_password} --maxmemory 1gb --maxmemory-policy allkeys-lru - volumes: - - redis_data:/data - networks: - - docsearch-net - healthcheck: - test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD:-redis_password}", "ping"] - interval: 10s - timeout: 5s - retries: 5 - - # ============================================================ - # Qdrant 벡터 데이터베이스 - # ============================================================ - qdrant: - image: qdrant/qdrant:v1.12.6 - container_name: docsearch-qdrant - restart: unless-stopped - ports: - - "6333:6333" - - "6334:6334" - environment: - QDRANT__SERVICE__GRPC_PORT: 6334 - QDRANT__STORAGE__STORAGE_PATH: /qdrant/storage - QDRANT__STORAGE__WAL_CAPACITY_MB: 128 - QDRANT__STORAGE__OPTIMIZERS__MEMMAP_THRESHOLD_KB: 20000 - volumes: - - qdrant_data:/qdrant/storage - networks: - - docsearch-net - - # ============================================================ - # MinIO 객체 스토리지 - # ============================================================ - minio: - image: minio/minio:latest - container_name: docsearch-minio - restart: unless-stopped - ports: - - "9000:9000" - - "9001:9001" - environment: - MINIO_ROOT_USER: ${MINIO_ACCESS_KEY:-minio_access_key} - MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY:-minio_secret_key} - command: server /data --console-address ":9001" - volumes: - - minio_data:/data - networks: - - docsearch-net - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] - interval: 30s - timeout: 20s - retries: 3 - - # ============================================================ - # Ollama LLM 서버 - # 호스트에서 이미 실행 중인 경우 이 섹션을 비활성화하세요 - # ============================================================ - # ollama: - # image: ollama/ollama:latest - # container_name: docsearch-ollama - # restart: unless-stopped - # ports: - # - "11434:11434" - # volumes: - # - ollama_data:/root/.ollama - # deploy: - # resources: - # reservations: - # devices: - # - driver: nvidia - # count: 1 - # capabilities: [gpu] - # networks: - # - docsearch-net - - # ============================================================ - # React 프론트엔드 (개발용) - # ============================================================ - frontend: - build: - context: ./frontend - dockerfile: Dockerfile - container_name: docsearch-frontend - restart: unless-stopped - ports: - - "3001:80" - depends_on: - - api - networks: - - docsearch-net - - # ============================================================ - # Nginx 리버스 프록시 - # ============================================================ - nginx: - image: nginx:alpine - container_name: docsearch-nginx - restart: unless-stopped - ports: - - "80:80" - - "443:443" - volumes: - - ./docker/nginx.conf:/etc/nginx/nginx.conf:ro - - ./docker/ssl:/etc/nginx/ssl:ro - depends_on: - - api - - frontend - networks: - - docsearch-net - -# ============================================================ -# 볼륨 정의 -# ============================================================ -volumes: - postgres_data: - driver: local - redis_data: - driver: local - qdrant_data: - driver: local - minio_data: - driver: local - ollama_data: - driver: local - model_cache: - driver: local - -# ============================================================ -# 네트워크 정의 -# ============================================================ -networks: - docsearch-net: - driver: bridge diff --git a/docker/Dockerfile.api b/docker/Dockerfile.api deleted file mode 100644 index c5fee19..0000000 --- a/docker/Dockerfile.api +++ /dev/null @@ -1,67 +0,0 @@ -# ============================================================ -# DocSearch AI - API Server Dockerfile -# ============================================================ - -FROM nvidia/cuda:12.4.0-runtime-ubuntu22.04 - -LABEL maintainer="DocSearch AI Team" -LABEL description="Document Search RAG API Server" - -# Prevent interactive prompts -ENV DEBIAN_FRONTEND=noninteractive - -# Set working directory -WORKDIR /app - -# Install system dependencies -RUN apt-get update && apt-get install -y --no-install-recommends \ - software-properties-common \ - && add-apt-repository -y ppa:deadsnakes/ppa \ - && apt-get update && apt-get install -y --no-install-recommends \ - python3.11 \ - python3.11-venv \ - python3.11-dev \ - python3-pip \ - build-essential \ - curl \ - git \ - # For PDF processing - poppler-utils \ - tesseract-ocr \ - tesseract-ocr-kor \ - # For image processing - libgl1-mesa-glx \ - libglib2.0-0 \ - # Cleanup - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Install Python dependencies -COPY requirements.txt . -RUN pip3 install --no-cache-dir --upgrade pip && \ - pip3 install --no-cache-dir -r requirements.txt - -# Copy application code -COPY app ./app - -# Create non-root user -RUN useradd -m -u 1000 appuser && \ - chown -R appuser:appuser /app - -# Environment -ENV PYTHONPATH=/app -ENV PYTHONUNBUFFERED=1 -ENV TRANSFORMERS_CACHE=/root/.cache/huggingface - -# Health check -HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ - CMD curl -f http://localhost:8000/health || exit 1 - -# Expose port -EXPOSE 8000 - -# Run as non-root (commented out for GPU access) -# USER appuser - -# Start server -CMD ["python3", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"] diff --git a/docker/Dockerfile.worker b/docker/Dockerfile.worker deleted file mode 100644 index 8a0e0ad..0000000 --- a/docker/Dockerfile.worker +++ /dev/null @@ -1,58 +0,0 @@ -# ============================================================ -# DocSearch AI - Celery Worker Dockerfile -# ============================================================ - -FROM nvidia/cuda:12.4.0-runtime-ubuntu22.04 - -LABEL maintainer="DocSearch AI Team" -LABEL description="Document Processing Worker with GPU Support" - -# Prevent interactive prompts -ENV DEBIAN_FRONTEND=noninteractive - -# Set working directory -WORKDIR /app - -# Install system dependencies -RUN apt-get update && apt-get install -y --no-install-recommends \ - software-properties-common \ - && add-apt-repository -y ppa:deadsnakes/ppa \ - && apt-get update && apt-get install -y --no-install-recommends \ - python3.11 \ - python3.11-venv \ - python3.11-dev \ - python3-pip \ - build-essential \ - curl \ - git \ - # For PDF processing - poppler-utils \ - tesseract-ocr \ - tesseract-ocr-kor \ - # For image processing - libgl1-mesa-glx \ - libglib2.0-0 \ - # FFmpeg for video/audio - ffmpeg \ - # Cleanup - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean - -# Install Python dependencies -COPY requirements.txt . -COPY requirements-worker.txt . -RUN pip3 install --no-cache-dir --upgrade pip && \ - pip3 install --no-cache-dir -r requirements.txt && \ - pip3 install --no-cache-dir -r requirements-worker.txt - -# Copy application code -COPY app ./app - -# Environment -ENV PYTHONPATH=/app -ENV PYTHONUNBUFFERED=1 -ENV TRANSFORMERS_CACHE=/root/.cache/huggingface -ENV TOKENIZERS_PARALLELISM=false - -# Default command -CMD ["celery", "-A", "app.worker", "worker", "-l", "INFO", "-Q", "documents,gpu", "-c", "1"] diff --git a/docker/init-db.sql b/docker/init-db.sql deleted file mode 100644 index 5a733a5..0000000 --- a/docker/init-db.sql +++ /dev/null @@ -1,61 +0,0 @@ --- ============================================================ --- DocSearch AI - PostgreSQL Initialization Script --- ============================================================ - --- Create extensions -CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -CREATE EXTENSION IF NOT EXISTS "pg_trgm"; - --- Create enums -DO $$ BEGIN - CREATE TYPE user_role AS ENUM ('admin', 'manager', 'user', 'viewer'); -EXCEPTION - WHEN duplicate_object THEN null; -END $$; - -DO $$ BEGIN - CREATE TYPE classification AS ENUM ('public', 'internal', 'confidential', 'restricted'); -EXCEPTION - WHEN duplicate_object THEN null; -END $$; - -DO $$ BEGIN - CREATE TYPE document_status AS ENUM ('pending', 'processing', 'ready', 'error', 'deleted'); -EXCEPTION - WHEN duplicate_object THEN null; -END $$; - -DO $$ BEGIN - CREATE TYPE job_type AS ENUM ('extract', 'chunk', 'embed', 'full_process', 'reindex'); -EXCEPTION - WHEN duplicate_object THEN null; -END $$; - -DO $$ BEGIN - CREATE TYPE job_status AS ENUM ('pending', 'running', 'completed', 'failed', 'cancelled'); -EXCEPTION - WHEN duplicate_object THEN null; -END $$; - -DO $$ BEGIN - CREATE TYPE permission AS ENUM ('read', 'write', 'delete', 'share', 'admin'); -EXCEPTION - WHEN duplicate_object THEN null; -END $$; - -DO $$ BEGIN - CREATE TYPE audit_action AS ENUM ( - 'login', 'logout', 'login_failed', - 'document_view', 'document_download', 'document_upload', - 'document_delete', 'document_share', - 'search', 'chat', - 'user_create', 'user_update', 'user_delete', - 'permission_grant', 'permission_revoke', - 'admin_action' - ); -EXCEPTION - WHEN duplicate_object THEN null; -END $$; - --- Grant permissions -GRANT ALL PRIVILEGES ON DATABASE docsearch TO docsearch; diff --git a/docker/nginx.conf b/docker/nginx.conf deleted file mode 100644 index 7e65b52..0000000 --- a/docker/nginx.conf +++ /dev/null @@ -1,187 +0,0 @@ -# ============================================================ -# DocSearch AI - Nginx Configuration -# ============================================================ - -user nginx; -worker_processes auto; -error_log /var/log/nginx/error.log warn; -pid /var/run/nginx.pid; - -events { - worker_connections 1024; - use epoll; - multi_accept on; -} - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - # Logging format - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for" ' - 'rt=$request_time uct="$upstream_connect_time" ' - 'uht="$upstream_header_time" urt="$upstream_response_time"'; - - access_log /var/log/nginx/access.log main; - - # Performance - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - - # Compression - gzip on; - gzip_vary on; - gzip_proxied any; - gzip_comp_level 6; - gzip_types text/plain text/css text/xml application/json application/javascript - application/rss+xml application/atom+xml image/svg+xml; - - # Security headers - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-XSS-Protection "1; mode=block" always; - add_header Referrer-Policy "strict-origin-when-cross-origin" always; - - # Rate limiting - limit_req_zone $binary_remote_addr zone=api:10m rate=30r/s; - limit_req_zone $binary_remote_addr zone=upload:10m rate=5r/s; - - # Upstream definitions - upstream api_backend { - server api:8000; - keepalive 32; - } - - upstream frontend { - server frontend:80; - } - - # HTTP to HTTPS redirect (production) - # server { - # listen 80; - # server_name _; - # return 301 https://$host$request_uri; - # } - - # Main server block - server { - listen 80; - # listen 443 ssl http2; - server_name localhost; - - # SSL configuration (production) - # ssl_certificate /etc/nginx/ssl/cert.pem; - # ssl_certificate_key /etc/nginx/ssl/key.pem; - # ssl_protocols TLSv1.2 TLSv1.3; - # ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256; - # ssl_prefer_server_ciphers off; - - # Client max body size for file uploads - client_max_body_size 100M; - - # Proxy settings - proxy_http_version 1.1; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header Connection ""; - proxy_buffering off; - proxy_request_buffering off; - - # API routes - location /api/ { - limit_req zone=api burst=50 nodelay; - - rewrite ^/api/(.*)$ /$1 break; - proxy_pass http://api_backend; - - # Timeouts for long operations - proxy_connect_timeout 60s; - proxy_send_timeout 300s; - proxy_read_timeout 300s; - } - - # Document upload with lower rate limit - location /api/documents/upload { - limit_req zone=upload burst=10 nodelay; - - rewrite ^/api/(.*)$ /$1 break; - proxy_pass http://api_backend; - - # Longer timeout for uploads - proxy_connect_timeout 60s; - proxy_send_timeout 600s; - proxy_read_timeout 600s; - } - - # SSE/Streaming for chat - location /api/chat { - rewrite ^/api/(.*)$ /$1 break; - proxy_pass http://api_backend; - - # SSE specific settings - proxy_buffering off; - proxy_cache off; - proxy_set_header Connection ''; - chunked_transfer_encoding off; - - proxy_connect_timeout 60s; - proxy_send_timeout 600s; - proxy_read_timeout 600s; - } - - # Health check - location /health { - proxy_pass http://api_backend/health; - access_log off; - } - - # API docs (development only) - location ~ ^/(docs|redoc|openapi.json) { - proxy_pass http://api_backend; - } - - # Frontend static files - location / { - proxy_pass http://frontend; - - # Cache static assets - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ { - proxy_pass http://frontend; - expires 1d; - add_header Cache-Control "public, immutable"; - } - } - - # Error pages - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } - } - - # MinIO console (optional, for admin access) - server { - listen 9001; - server_name localhost; - - location / { - proxy_pass http://minio:9001; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - # WebSocket support for MinIO console - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - } - } -} diff --git a/docs/development-workflow.md b/docs/development-workflow.md index da2c4a7..1ad9507 100644 --- a/docs/development-workflow.md +++ b/docs/development-workflow.md @@ -1,52 +1,53 @@ -# DocSearch AI V2 Development Workflow +# DocSearch AI Development Workflow ## Branch Model - `main` - - v1 stable branch + - preserves the original V1 prototype - release-only branch - - direct commits are not allowed + - no direct feature work - `develop` - - v2 integration branch - - every V2 feature branch starts from `develop` + - integration branch for the rebuild + - every new feature branch starts from `develop` - reviewed changes merge back into `develop` ## Branch Naming -Every working branch must use a type prefix. +Use a type prefix for every working branch. -- `feat/-` -- `fix/-` -- `chore/-` -- `docs/-` -- `refactor/-` -- `test/-` +- `feat/` +- `fix/` +- `chore/` +- `docs/` +- `refactor/` +- `test/` Examples: -- `feat/api-key-auth` -- `feat/document-ingestion` -- `feat/rag-retrieval` -- `fix/search-filter-bug` -- `chore/v2-workflow` +- `chore/workflow` +- `feat/scaffold` +- `feat/auth` +- `feat/ingestion` +- `feat/retrieval` +- `fix/search-filter` ## PR Rules - Every PR targets `develop` - `main` only receives reviewed integration from `develop` - One PR should contain one concern only -- Do not mix scaffold, feature logic, and cleanup in one PR unless they are inseparable - Keep PRs small enough to review in one sitting +- Prefer stacked PRs when the next slice depends on the previous one -Recommended PR size: +Recommended size: -- target under 400 changed lines when practical -- target under 10 files when practical -- split earlier if infra, schema, and API changes start mixing +- under 400 changed lines when practical +- under 10 files when practical +- split early when infra, API, storage, and UI start mixing ## Commit Rules -Use conventional commit style: +Use conventional commits: - `feat(scope): summary` - `fix(scope): summary` @@ -57,57 +58,54 @@ Use conventional commit style: Examples: -- `chore(workflow): add v2 branch strategy` -- `feat(scaffold): add backend v2 app skeleton` -- `feat(auth): add API key middleware` -- `fix(search): handle empty rerank candidates` +- `feat(scaffold): add backend bootstrap` +- `feat(auth): add api key validation` +- `chore(infra): replace runtime layout and ci` +- `docs(scaffold): refresh repository overview` Each commit should do one thing: -1. failing test -2. minimal implementation -3. follow-up refactor -4. docs or config - -Avoid mixing all four in a single commit. +1. add a failing test +2. add the minimal implementation +3. refactor without changing behavior +4. update docs or config ## Merge Rules - feature branches merge into `develop` after review -- use linear history where possible -- avoid force-pushing after review starts unless the branch is still private to the author -- if review feedback requires significant change, add a new commit instead of rewriting all previous commits - -## V2 Review Sequence - -The V2 rebuild should be reviewed in this order: - -1. workflow and implementation plan -2. repository scaffold -3. backend config and app bootstrap -4. API key auth and request context -5. document ingestion and storage -6. async indexing worker -7. retrieval and reranking -8. LLM proxy and vLLM integration -9. chat and citation response -10. frontend shell and core user flows -11. observability, hardening, and release prep +- use linear history where practical +- avoid force-pushing after review starts unless the branch is still private +- prefer follow-up commits over rewriting reviewed history + +## Review Sequence + +Review the rebuild in this order: + +1. workflow and plans +2. scaffold and runtime boundaries +3. API key auth and request context +4. document upload and storage +5. indexing worker and queue abstraction +6. retrieval and reranking +7. local LLM gateway +8. chat and citation response +9. frontend flows +10. observability and hardening ## Initial Branch Plan - `develop` -- `chore/v2-workflow` -- `feat/v2-scaffold` -- `feat/v2-auth` -- `feat/v2-ingestion` -- `feat/v2-indexing-worker` -- `feat/v2-retrieval` -- `feat/v2-llm-gateway` -- `feat/v2-chat-api` -- `feat/v2-frontend-shell` -- `chore/v2-observability` -- `fix/v2-hardening` +- `chore/workflow` +- `feat/scaffold` +- `feat/auth` +- `feat/ingestion` +- `feat/indexing-worker` +- `feat/retrieval` +- `feat/llm-gateway` +- `feat/chat-api` +- `feat/frontend-shell` +- `chore/observability` +- `fix/hardening` ## Review Checklist @@ -117,7 +115,7 @@ Before opening a PR: - commit history is grouped by concern - tests for the touched area were run - docs changed with the code when behavior changed -- PR body explains scope, non-goals, and test evidence +- PR body explains scope, non-goals, and verification Before merging into `develop`: diff --git a/docs/plans/2026-04-21-docsearch-design.md b/docs/plans/2026-04-21-docsearch-design.md new file mode 100644 index 0000000..342168e --- /dev/null +++ b/docs/plans/2026-04-21-docsearch-design.md @@ -0,0 +1,110 @@ +# DocSearch AI 설계 문서 + +- 작성일: 2026-04-21 +- 상태: 설계 초안 +- 대상 브랜치: `develop` +- 포지션: 백엔드 / AI 중심, 인프라 운영 역량 보조 + +## 1. 목표 + +DocSearch AI는 사내 문서를 안전하게 검색하고, 근거가 포함된 답변을 생성하는 온프레미스 RAG 시스템을 목표로 한다. + +이번 재구축의 핵심은 다음 네 가지다. + +- 문서 업로드부터 검색, 리랭킹, 답변 생성까지 이어지는 백엔드 설계 +- 로컬 LLM 경계를 분리한 운영형 구조 +- 비동기 문서 처리와 저장소 경계가 보이는 서비스 아키텍처 +- 리뷰하기 쉬운 브랜치, PR, 커밋 흐름 + +## 2. 서비스 아키텍처 + +기준 서비스 구성은 아래와 같다. + +- `frontend`: React + TypeScript + Vite +- `gateway`: Nginx API gateway +- `backend`: FastAPI API server +- `worker`: 비동기 인덱싱 워커 +- `postgres`: 메타데이터 저장소 +- `redis`: 캐시와 작업 큐 +- `qdrant`: 벡터 데이터베이스 +- `minio`: 원문 파일 저장소 +- `llm`: 로컬 추론 서버 + +모든 구현은 `main`의 V1 프로토타입과 분리해서 `develop`에서 진행한다. + +## 3. MVP 범위 + +포함: + +- API Key 기반 인증 +- 워크스페이스 범위 문서 접근 +- PDF, TXT, Markdown 업로드 +- 문서 저장, 청킹, 임베딩, 벡터 인덱싱 +- Dense 검색 + 메타데이터 필터 + 리랭킹 +- 로컬 LLM 기반 답변 생성 +- 출처 포함 응답 + +후속: + +- JWT 로그인과 RBAC +- DOCX, XLSX, PPTX, OCR +- 하이브리드 검색 +- 모델 추천 UI +- 관리자 화면 + +## 4. 모델 선택 + +MVP 기본 모델 조합은 다음과 같다. + +```text +LLM_MODEL=google/gemma-4-E4B-it +EMBEDDING_MODEL=BAAI/bge-m3 +RERANKER_MODEL=BAAI/bge-reranker-v2-m3 +``` + +LLM 호출은 애플리케이션이 직접 추론 엔진에 붙지 않고, 게이트웨이 계층을 통해 수행한다. + +## 5. 처리 흐름 + +```text +문서 업로드 +-> 파일 저장 +-> 처리 작업 생성 +-> 파싱 +-> 청킹 +-> 임베딩 +-> Qdrant 인덱싱 +-> 사용자 질문 수신 +-> 검색 +-> 리랭킹 +-> 컨텍스트 구성 +-> 로컬 LLM 호출 +-> 출처 포함 응답 반환 +``` + +## 6. 브랜치 전략 + +```text +main +-> develop + -> chore/workflow + -> feat/scaffold + -> feat/auth + -> feat/ingestion + -> feat/indexing-worker + -> feat/retrieval + -> feat/llm-gateway + -> feat/chat-api + -> feat/frontend-shell +``` + +## 7. 마일스톤 + +1. 스캐폴드와 런타임 경계 +2. 인증과 요청 컨텍스트 +3. 업로드와 저장소 +4. 인덱싱 파이프라인 +5. 검색과 리랭킹 +6. 로컬 LLM 게이트웨이 +7. 채팅 응답과 출처 +8. 관측성과 하드닝 diff --git a/docs/plans/2026-04-21-docsearch-v2-design.md b/docs/plans/2026-04-21-docsearch-v2-design.md deleted file mode 100644 index 9bf3903..0000000 --- a/docs/plans/2026-04-21-docsearch-v2-design.md +++ /dev/null @@ -1,485 +0,0 @@ -# DocSearch AI v2 설계 문서 - -- 작성일: 2026-04-21 -- 상태: 설계 승인 초안 -- 대상 브랜치: `v2-redesign` -- 포트폴리오 포지션: 백엔드/AI 엔지니어 중심, 인프라/운영 설계 보조 - -## 1. 배경 - -현재 `main` 브랜치는 v1 프로토타입으로 유지한다. v2는 기존 기획인 "로컬/온프레미스 문서 검색 RAG 시스템"을 유지하되, 포트폴리오에 맞게 설계, 커밋, 브랜치, 문서, 테스트 기록을 처음부터 다시 쌓는다. - -v2의 목표는 단순 데모가 아니라 다음 역량을 보여주는 것이다. - -- 문서 업로드부터 검색, 리랭킹, 답변 생성까지 이어지는 RAG 백엔드 설계 -- LLM 서빙 계층을 애플리케이션과 분리하는 추상화 -- 사용자 문서가 외부 API로 나가지 않는 로컬/온프레미스 추론 구조 -- 비동기 문서 처리와 운영 가능한 작업 큐 설계 -- 테스트, 검색 평가, 보안, 관측성을 고려한 백엔드 품질 - -## 2. MVP 범위 - -### 포함 - -- API Key 기반 인증 -- 워크스페이스 단위 문서 접근 제어 -- PDF, TXT, Markdown 문서 업로드 -- 문서 원본 저장 -- 문서 파싱, 텍스트 정규화, 청킹 -- `BAAI/bge-m3` 기반 Dense 임베딩 -- Qdrant 기반 Dense 벡터 검색 -- 메타데이터와 접근 권한 필터링 -- `BAAI/bge-reranker-v2-m3` 기반 리랭킹 -- `google/gemma-4-E4B-it` 기반 답변 생성 -- 출처 포함 RAG 응답 -- 개발용 인프로세스 작업 처리 -- 운영형 Redis 작업 큐 확장 지점 - -### 제외 - -- Ollama 연동 -- JWT 로그인과 RBAC -- 관리자 대시보드 -- DOCX, XLSX, PPTX, 이미지 OCR -- Dense + Sparse 하이브리드 검색 -- 모델 자동 추천 UI -- 멀티모달 문서 질의 - -제외 항목은 후속 마일스톤으로 문서화한다. - -## 3. 핵심 아키텍처 - -```mermaid -flowchart TB - 사용자["사용자 / 향후 UX"] --> API["FastAPI 백엔드"] - - API --> 인증["API Key 인증"] - API --> 문서API["문서 업로드 API"] - API --> 검색API["검색 / 채팅 API"] - - 문서API --> 작업서비스["문서 처리 작업 서비스"] - 작업서비스 --> 작업큐["작업 큐 인터페이스"] - 작업큐 --> 인프로세스["개발용 인프로세스 처리"] - 작업큐 --> 레디스큐["운영형 Redis 작업 큐"] - - 인프로세스 --> 처리파이프라인["문서 처리 파이프라인"] - 레디스큐 --> 워커["문서 처리 워커"] - 워커 --> 처리파이프라인 - - 처리파이프라인 --> 파서레지스트리["문서 파서 레지스트리"] - 파서레지스트리 --> PDF["PDF 파서"] - 파서레지스트리 --> TXT["TXT 파서"] - 파서레지스트리 --> MD["Markdown 파서"] - 파서레지스트리 -. 후속 .-> 추가파서["DOCX / XLSX / PPTX / OCR"] - - 처리파이프라인 --> 청킹["문서 청킹"] - 청킹 --> 임베딩["BAAI/bge-m3 임베딩"] - 임베딩 --> 벡터DB["Qdrant 벡터 DB"] - - 검색API --> 검색기["검색기"] - 검색기 --> 접근필터["메타데이터 / 접근 권한 필터"] - 접근필터 --> 벡터DB - 검색기 --> 리랭커["BAAI/bge-reranker-v2-m3 리랭커"] - 리랭커 --> 컨텍스트["근거 컨텍스트 구성"] - 컨텍스트 --> LLM게이트웨이["LLM 게이트웨이"] - - LLM게이트웨이 --> 내부프록시["내부 LLM 프록시"] - 내부프록시 --> vLLM["vLLM 서버"] - vLLM --> 젬마["Gemma 4 E4B IT"] - - API --> PostgreSQL["PostgreSQL 메타데이터 DB"] - 문서API --> 저장소["오브젝트 스토리지"] - 처리파이프라인 --> 저장소 -``` - -## 4. MVP 처리 플로우 - -```text -문서 업로드 --> API Key 인증 --> 워크스페이스 확인 --> 원본 파일 저장 --> 문서 메타데이터와 처리 작업 생성 --> 작업 큐 등록 --> PDF/TXT/MD 파싱 --> 텍스트 정규화 --> 청크 생성 --> BAAI/bge-m3 임베딩 --> Qdrant 색인 --> 사용자 질문 수신 --> 질문 임베딩 --> 메타데이터/접근 권한 필터 생성 --> Qdrant Dense 검색 --> BAAI/bge-reranker-v2-m3 리랭킹 --> 근거 컨텍스트 구성 --> LLM 게이트웨이 호출 --> 내부 프록시를 통해 vLLM 호출 --> Gemma 4 E4B IT 답변 생성 --> 출처 포함 응답 반환 -``` - -## 5. 모델 선택 - -MVP는 한 가지 표준 모델 워크플로우로 고정한다. - -```text -LLM_MODEL=google/gemma-4-E4B-it -EMBEDDING_MODEL=BAAI/bge-m3 -RERANKER_MODEL=BAAI/bge-reranker-v2-m3 -``` - -선택 이유: - -- Gemma 4는 Apache 2.0 라이선스이며, 긴 컨텍스트와 다국어 지원을 제공한다. -- vLLM은 Gemma 4 OpenAI-compatible API 서빙 가이드를 제공한다. -- `bge-m3`는 다국어 Dense 검색에 적합하고, 후속 하이브리드 검색 확장 여지도 있다. -- `bge-reranker-v2-m3`는 다국어 리랭킹 모델로 `bge-m3` 기반 검색과 조합이 자연스럽다. - -후속 확장에서는 모델을 고정하지 않고, 사용자 환경에 따라 초록/주황/빨강 추천 등급을 보여주는 `Model Profile Advisor`를 추가한다. - -## 6. 주요 컴포넌트 - -### FastAPI 백엔드 - -외부 클라이언트가 접근하는 유일한 진입점이다. 인증, 문서 API, 검색 API, 채팅 API, 상태 조회 API를 제공한다. vLLM, Qdrant, PostgreSQL, 오브젝트 스토리지는 외부에 직접 공개하지 않는다. - -### API Key 인증 - -MVP에서는 사용자 계정 대신 API Key를 사용한다. API Key는 워크스페이스에 연결된다. 모든 문서와 검색 요청은 워크스페이스 범위 안에서만 처리된다. - -후속으로 JWT 로그인, 사용자, 조직, 역할, 감사 로그를 추가한다. - -### 문서 처리 파이프라인 - -문서 파서는 `ParserRegistry` 뒤에 둔다. MVP 구현은 PDF, TXT, Markdown만 포함한다. 파서 출력은 파일 형식과 무관하게 정규화된 내부 모델로 변환한다. - -예상 내부 모델: - -- `ParsedDocument` -- `DocumentSection` -- `DocumentChunk` -- `ChunkMetadata` - -### 작업 큐 - -`JobQueue` 인터페이스를 먼저 정의한다. - -- 개발 환경: `InProcessJobQueue` -- 운영형 환경: `RedisJobQueue` - -이 설계는 MVP 속도를 유지하면서도 워커 분리, 재시도, 실패 처리, 모니터링으로 확장 가능하게 한다. - -### 검색기 - -검색기는 질문 임베딩, 접근 권한 필터, Qdrant 검색, 리랭킹, 컨텍스트 생성을 담당한다. LLM 호출은 직접 하지 않고 RAG Orchestrator 또는 LLM Gateway로 넘긴다. - -### LLM 게이트웨이 - -애플리케이션은 vLLM에 직접 강결합하지 않는다. `LLM Gateway`는 OpenAI-compatible Chat Completions 인터페이스를 사용한다. - -주요 책임: - -- 요청 timeout -- 재시도 정책 -- 최대 입력 토큰 제한 -- 최대 출력 토큰 제한 -- system prompt 구성 -- 응답 형식 검증 -- 모델 오류를 애플리케이션 오류로 변환 - -### 내부 LLM 프록시 - -vLLM은 직접 외부 노출하지 않는다. 내부 프록시는 vLLM 앞에서 다음을 담당한다. - -- 허용 endpoint 제한 -- 요청 크기 제한 -- rate limit -- 인증 헤더 관리 -- 민감 로그 마스킹 -- vLLM 상태 확인 - -## 7. 데이터 모델 초안 - -### Workspace - -- `id` -- `name` -- `created_at` - -### ApiKey - -- `id` -- `workspace_id` -- `key_hash` -- `name` -- `last_used_at` -- `created_at` -- `revoked_at` - -### Document - -- `id` -- `workspace_id` -- `filename` -- `content_type` -- `size_bytes` -- `storage_key` -- `status` -- `tags` -- `created_at` -- `updated_at` -- `deleted_at` - -### ProcessingJob - -- `id` -- `document_id` -- `job_type` -- `status` -- `attempt_count` -- `error_code` -- `error_message` -- `created_at` -- `started_at` -- `finished_at` - -### Chunk - -- `id` -- `document_id` -- `workspace_id` -- `chunk_index` -- `text` -- `token_count` -- `page_number` -- `section_title` -- `metadata` -- `vector_id` - -## 8. 주요 API 초안 - -```text -POST /v1/documents -GET /v1/documents -GET /v1/documents/{document_id} -GET /v1/documents/{document_id}/status -DELETE /v1/documents/{document_id} - -POST /v1/search -POST /v1/chat - -GET /health -GET /ready -``` - -응답은 항상 trace 가능한 식별자를 포함한다. - -```json -{ - "request_id": "req_...", - "answer": "...", - "citations": [ - { - "document_id": "doc_...", - "filename": "example.pdf", - "chunk_id": "chk_...", - "page_number": 3, - "score": 0.87 - } - ] -} -``` - -## 9. 오류 처리 원칙 - -- 문서 업로드 오류와 문서 처리 오류를 분리한다. -- 비동기 처리 실패는 `ProcessingJob`에 남긴다. -- 사용자가 재시도 가능한 오류와 불가능한 오류를 구분한다. -- LLM timeout, vLLM unavailable, reranker unavailable은 명확한 오류 코드로 변환한다. -- 검색 결과가 부족하면 hallucination을 유도하지 않고 "근거 부족" 응답을 반환한다. - -예상 오류 코드: - -- `AUTH_INVALID_API_KEY` -- `DOCUMENT_UNSUPPORTED_TYPE` -- `DOCUMENT_PARSE_FAILED` -- `EMBEDDING_FAILED` -- `VECTOR_INDEX_FAILED` -- `RETRIEVAL_EMPTY` -- `RERANKER_UNAVAILABLE` -- `LLM_TIMEOUT` -- `LLM_UNAVAILABLE` - -## 10. 테스트 전략 - -### 단위 테스트 - -- API Key 인증 -- ParserRegistry -- PDF/TXT/MD 파서 -- 청킹 -- 메타데이터 필터 생성 -- LLM Gateway 응답 변환 - -### 통합 테스트 - -- 문서 업로드 후 처리 상태 변경 -- 청크 생성과 Qdrant 색인 -- 검색 API가 접근 권한 필터를 적용하는지 검증 -- 리랭킹 후 citation이 유지되는지 검증 - -### RAG 평가 - -작은 평가 데이터셋을 만든다. - -- 질문 -- 기대 문서 -- 기대 chunk -- 허용 답변 기준 - -평가 지표: - -- 검색 Recall@k -- 리랭킹 후 MRR -- citation 포함률 -- 근거 없는 답변 차단률 - -## 11. 보안 원칙 - -- vLLM, Qdrant, PostgreSQL, Redis, 오브젝트 스토리지는 외부 공개 대상이 아니다. -- vLLM은 내부 프록시 뒤에 둔다. -- API Key는 원문 저장하지 않고 hash만 저장한다. -- 로그에는 API Key, 원문 문서, 전체 prompt를 남기지 않는다. -- 요청 body size, 검색 top-k, LLM max tokens를 제한한다. -- 문서 삭제 시 메타데이터, 원본 파일, 벡터 삭제 정책을 함께 정의한다. - -## 12. 환경 프로필 - -### `dev` - -- InProcess 작업 처리 -- Mock LLM 또는 실제 vLLM 선택 가능 -- 로컬 PostgreSQL, Qdrant -- 빠른 테스트 우선 - -### `local-gpu` - -- Redis 작업 큐 -- Worker 프로세스 -- vLLM + Gemma 4 E4B IT -- Qdrant, PostgreSQL, 오브젝트 스토리지 - -### `prod-like` - -- 내부 프록시 -- endpoint allowlist -- rate limit -- 로그 마스킹 -- health check와 readiness check -- 운영 문서 포함 - -## 13. 브랜치와 커밋 전략 - -현재 `main`은 v1 프로토타입으로 유지한다. v2 작업은 `v2-redesign`에서 시작한다. - -권장 흐름: - -```text -main --> v2-redesign - -> docs/design - -> feat/project-scaffold - -> feat/auth-api-key - -> feat/document-ingestion - -> feat/vector-search - -> feat/rag-chat - -> feat/vllm-serving - -> feat/worker-queue - -> feat/evaluation -``` - -커밋 메시지는 기능 단위로 남긴다. - -예시: - -```text -docs: add v2 architecture design -feat: scaffold FastAPI v2 project structure -feat: add API key authentication -feat: add parser registry for document ingestion -test: cover chunking and parser registry -docs: add local-gpu deployment guide -``` - -## 14. 마일스톤 - -### M1. 설계와 프로젝트 골격 - -- 설계 문서 -- v2 디렉터리 구조 -- 설정 관리 -- 테스트 환경 - -### M2. 인증과 문서 업로드 - -- API Key 인증 -- 문서 업로드 API -- 원본 저장 -- 처리 작업 생성 - -### M3. 문서 처리와 색인 - -- PDF/TXT/MD 파서 -- 청킹 -- bge-m3 임베딩 -- Qdrant 색인 - -### M4. 검색과 리랭킹 - -- Dense 검색 -- 메타데이터/접근 권한 필터 -- bge-reranker-v2-m3 리랭킹 -- citation 반환 - -### M5. RAG 답변 생성 - -- LLM Gateway -- 내부 vLLM 프록시 -- Gemma 4 E4B IT 호출 -- 근거 기반 답변 생성 - -### M6. 운영형 확장 - -- Redis 작업 큐 -- Worker 프로세스 -- health/readiness -- 로그 마스킹 -- 배포 문서 - -### M7. 평가와 포트폴리오 정리 - -- RAG 평가 데이터셋 -- 검색 품질 리포트 -- README 재작성 -- 아키텍처 다이어그램 -- 개발 회고 - -## 15. 후속 확장 - -- 사용자 환경 기반 모델 추천 기능 -- 초록/주황/빨강 추천 등급 UI -- Gemma 4 26B-A4B, 31B, Qwen fallback 프로필 -- JWT/RBAC -- 관리자 UX -- DOCX/XLSX/PPTX/OCR 파서 -- Dense + Sparse 하이브리드 검색 -- 멀티모달 문서 질의 -- Prometheus/Grafana 관측성 - -## 16. 참고 자료 - -- Gemma 4 model card: https://ai.google.dev/gemma/docs/core/model_card_4 -- Gemma 4 launch blog: https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/ -- vLLM Gemma 4 usage guide: https://docs.vllm.ai/projects/recipes/en/latest/Google/Gemma4.html -- BAAI/bge-m3: https://huggingface.co/BAAI/bge-m3 -- BAAI/bge-reranker-v2-m3: https://huggingface.co/BAAI/bge-reranker-v2-m3 diff --git a/docs/plans/2026-05-12-docsearch-implementation-plan.md b/docs/plans/2026-05-12-docsearch-implementation-plan.md new file mode 100644 index 0000000..e27f7c4 --- /dev/null +++ b/docs/plans/2026-05-12-docsearch-implementation-plan.md @@ -0,0 +1,204 @@ +# DocSearch AI Implementation Plan + +> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. + +**Goal:** Rebuild DocSearch AI as an on-premise RAG platform with review-friendly branches, PRs, and commits. + +**Architecture:** `main` preserves the original prototype. `develop` is the rebuild integration branch. The service baseline is organized around `backend`, `frontend`, `infra`, local storage services, and a local LLM boundary. All implementation lands through small review slices. + +**Tech Stack:** FastAPI, React, TypeScript, Vite, Ant Design, PostgreSQL, Redis, Qdrant, MinIO, worker queue, vLLM, Gemma 4, Docker Compose, pytest + +--- + +## PR Roadmap + +### PR 0: `chore/workflow` + +Scope: + +- branch strategy +- PR split strategy +- implementation roadmap + +Deliverables: + +- `docs/development-workflow.md` +- `docs/plans/2026-05-12-docsearch-implementation-plan.md` + +### PR 1: `feat/scaffold` + +Scope: + +- replace the legacy service baseline on `develop` +- add the new backend bootstrap under `backend/` +- replace the web shell under `frontend/` +- add compose, gateway, and CI + +Deliverables: + +- `backend/` +- `frontend/` +- `infra/compose/docker-compose.yml` +- `infra/nginx/default.conf` +- `.github/workflows/ci.yml` + +### PR 2: `feat/auth` + +Scope: + +- API key auth +- workspace request context +- protected route boundary + +Target files: + +- `backend/app/auth/models.py` +- `backend/app/auth/service.py` +- `backend/app/auth/dependencies.py` +- `backend/app/middleware/request_context.py` +- `backend/tests/auth/test_api_key_auth.py` +- `backend/app/main.py` + +### PR 3: `feat/ingestion` + +Scope: + +- document upload API +- MinIO storage adapter +- parser registry for PDF, TXT, MD + +Target files: + +- `backend/app/documents/router.py` +- `backend/app/documents/service.py` +- `backend/app/parsers/base.py` +- `backend/app/parsers/pdf.py` +- `backend/app/parsers/text.py` +- `backend/app/parsers/markdown.py` +- `backend/app/storage/minio.py` +- `backend/tests/documents/test_upload_api.py` + +### PR 4: `feat/indexing-worker` + +Scope: + +- queue abstraction +- in-process queue for dev +- Redis-backed worker path +- chunking and embedding orchestration + +Target files: + +- `backend/app/jobs/base.py` +- `backend/app/jobs/inprocess.py` +- `backend/app/jobs/redis_queue.py` +- `backend/app/indexing/pipeline.py` +- `backend/app/indexing/chunker.py` +- `backend/app/indexing/embedder.py` +- `backend/tests/indexing/test_pipeline.py` + +### PR 5: `feat/retrieval` + +Scope: + +- Qdrant adapter +- metadata filtering +- dense retrieval +- reranker integration + +Target files: + +- `backend/app/retrieval/qdrant_store.py` +- `backend/app/retrieval/filters.py` +- `backend/app/retrieval/retriever.py` +- `backend/app/retrieval/reranker.py` +- `backend/tests/retrieval/test_filters.py` +- `backend/tests/retrieval/test_retriever.py` + +### PR 6: `feat/llm-gateway` + +Scope: + +- internal LLM proxy contract +- vLLM client +- Gemma 4 profile +- timeout and response validation + +Target files: + +- `backend/app/llm/base.py` +- `backend/app/llm/vllm_client.py` +- `backend/app/llm/profiles.py` +- `backend/tests/llm/test_vllm_client.py` +- `backend/tests/llm/test_profiles.py` + +### PR 7: `feat/chat-api` + +Scope: + +- retrieval to answer orchestration +- citation builder +- chat and search API + +Target files: + +- `backend/app/rag/context_builder.py` +- `backend/app/rag/service.py` +- `backend/app/api/search.py` +- `backend/app/api/chat.py` +- `backend/tests/rag/test_context_builder.py` +- `backend/tests/api/test_chat_api.py` + +### PR 8: `feat/frontend-shell` + +Scope: + +- frontend app shell +- upload, search, and chat entry screens +- API integration boundary + +Target files: + +- `frontend/src/app/App.tsx` +- `frontend/src/features/upload/` +- `frontend/src/features/search/` +- `frontend/src/features/chat/` +- `frontend/src/lib/api.ts` +- `frontend/src/lib/query-client.ts` + +### PR 9: `chore/observability` + +Scope: + +- health and readiness +- structured logs +- audit trail +- metrics hooks + +### PR 10: `fix/hardening` + +Scope: + +- auth edge cases +- storage cleanup +- retry policies +- release checklist + +## Current Baseline + +The scaffold PR is expected to leave the branch in this state: + +- `backend` serves `/health` and `/ready` +- `frontend` builds successfully +- `infra/compose/docker-compose.yml` resolves cleanly +- `gateway` proxies `frontend` and `api` +- `worker` exists as a dedicated process boundary +- old V1 service layout no longer drives `develop` + +## Execution Notes + +- do all rebuild work from `develop`, never from `main` +- keep every PR runnable or testable +- use TDD for behavior changes +- keep one concern per PR +- defer extra cleanup to explicit follow-up branches diff --git a/docs/plans/2026-05-12-docsearch-v2-implementation-plan.md b/docs/plans/2026-05-12-docsearch-v2-implementation-plan.md deleted file mode 100644 index 457ecf6..0000000 --- a/docs/plans/2026-05-12-docsearch-v2-implementation-plan.md +++ /dev/null @@ -1,419 +0,0 @@ -# DocSearch AI V2 Implementation Plan - -> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. - -**Goal:** Rebuild DocSearch AI as a V2 on-premise RAG platform with review-friendly branches, PRs, and commit structure. - -**Architecture:** V2 keeps `main` as the V1 stable line and uses `develop` as the V2 integration line. All implementation work lands through small `feat/*`, `fix/*`, and `chore/*` branches. The codebase is rebuilt in small slices so storage, indexing, retrieval, LLM serving, and frontend changes can be reviewed independently. - -**Tech Stack:** FastAPI, React, TypeScript, Vite, Ant Design, PostgreSQL, Redis, Qdrant, MinIO, worker queue, vLLM, Gemma 4, Docker Compose, pytest, frontend test runner - ---- - -## PR Roadmap - -### PR 0: `chore/v2-workflow` - -Scope: - -- branch strategy -- PR split strategy -- V2 implementation plan - -Deliverables: - -- `docs/development-workflow.md` -- `docs/plans/2026-05-12-docsearch-v2-implementation-plan.md` - -Commit plan: - -- `docs(workflow): add v2 branching strategy` -- `docs(plan): add v2 implementation roadmap` - -### PR 1: `feat/v2-scaffold` - -Scope: - -- create the V2 repository skeleton -- define shared config boundaries -- add test scaffolding - -Target files: - -- Create: `backend/` -- Create: `backend/app/__init__.py` -- Create: `backend/app/main.py` -- Create: `backend/app/core/config.py` -- Create: `backend/app/core/logging.py` -- Create: `backend/tests/` -- Create: `frontend-v2/` -- Create: `frontend-v2/package.json` -- Create: `frontend-v2/src/main.tsx` -- Create: `infra/compose/docker-compose.v2.yml` - -Commit plan: - -- `feat(scaffold): add backend v2 app skeleton` -- `feat(scaffold): add frontend v2 shell` -- `test(scaffold): add backend and frontend test bootstrap` -- `chore(compose): add v2 compose skeleton` - -### PR 2: `feat/v2-auth` - -Scope: - -- API key auth -- workspace request context -- auth middleware and tests - -Target files: - -- Create: `backend/app/auth/models.py` -- Create: `backend/app/auth/service.py` -- Create: `backend/app/auth/dependencies.py` -- Create: `backend/app/middleware/request_context.py` -- Create: `backend/tests/auth/test_api_key_auth.py` -- Modify: `backend/app/main.py` - -Commit plan: - -- `test(auth): add api key auth tests` -- `feat(auth): add api key validation service` -- `feat(auth): add request context middleware` -- `docs(auth): document auth request flow` - -### PR 3: `feat/v2-ingestion` - -Scope: - -- document upload API -- MinIO storage adapter -- parser registry for PDF, TXT, MD - -Target files: - -- Create: `backend/app/documents/router.py` -- Create: `backend/app/documents/service.py` -- Create: `backend/app/parsers/base.py` -- Create: `backend/app/parsers/pdf.py` -- Create: `backend/app/parsers/text.py` -- Create: `backend/app/parsers/markdown.py` -- Create: `backend/app/storage/minio.py` -- Create: `backend/tests/documents/test_upload_api.py` -- Create: `backend/tests/parsers/test_registry.py` - -Commit plan: - -- `test(documents): add upload api tests` -- `feat(storage): add minio storage adapter` -- `feat(parsers): add parser registry and core parsers` -- `feat(documents): add upload service and router` - -### PR 4: `feat/v2-indexing-worker` - -Scope: - -- queue abstraction -- in-process queue for dev -- Redis-backed worker path -- chunking and embedding orchestration - -Target files: - -- Create: `backend/app/jobs/base.py` -- Create: `backend/app/jobs/inprocess.py` -- Create: `backend/app/jobs/redis_queue.py` -- Create: `backend/app/indexing/pipeline.py` -- Create: `backend/app/indexing/chunker.py` -- Create: `backend/app/indexing/embedder.py` -- Create: `backend/tests/indexing/test_pipeline.py` - -Commit plan: - -- `test(indexing): add pipeline tests` -- `feat(indexing): add chunking and embedding pipeline` -- `feat(jobs): add queue abstraction and adapters` -- `chore(worker): add worker entrypoint` - -### PR 5: `feat/v2-retrieval` - -Scope: - -- Qdrant adapter -- metadata filtering -- dense retrieval -- reranker integration - -Target files: - -- Create: `backend/app/retrieval/qdrant_store.py` -- Create: `backend/app/retrieval/filters.py` -- Create: `backend/app/retrieval/retriever.py` -- Create: `backend/app/retrieval/reranker.py` -- Create: `backend/tests/retrieval/test_filters.py` -- Create: `backend/tests/retrieval/test_retriever.py` - -Commit plan: - -- `test(retrieval): add filter and retriever tests` -- `feat(retrieval): add qdrant store adapter` -- `feat(retrieval): add metadata filter builder` -- `feat(rerank): add reranker integration` - -### PR 6: `feat/v2-llm-gateway` - -Scope: - -- internal LLM proxy contract -- vLLM client -- Gemma 4 profile -- timeout and response validation - -Target files: - -- Create: `backend/app/llm/base.py` -- Create: `backend/app/llm/vllm_client.py` -- Create: `backend/app/llm/profiles.py` -- Create: `backend/tests/llm/test_vllm_client.py` -- Create: `backend/tests/llm/test_profiles.py` - -Commit plan: - -- `test(llm): add vllm client tests` -- `feat(llm): add llm gateway interfaces` -- `feat(llm): add vllm client and gemma profile` -- `fix(llm): add timeout and response validation` - -### PR 7: `feat/v2-chat-api` - -Scope: - -- retrieval to answer orchestration -- citation builder -- chat and search API - -Target files: - -- Create: `backend/app/rag/context_builder.py` -- Create: `backend/app/rag/service.py` -- Create: `backend/app/api/search.py` -- Create: `backend/app/api/chat.py` -- Create: `backend/tests/rag/test_context_builder.py` -- Create: `backend/tests/api/test_chat_api.py` - -Commit plan: - -- `test(chat): add chat api tests` -- `feat(rag): add context builder` -- `feat(chat): add cited answer service` -- `feat(api): add search and chat routers` - -### PR 8: `feat/v2-frontend-shell` - -Scope: - -- frontend app shell -- upload, search, and chat entry screens -- API integration boundary - -Target files: - -- Create: `frontend-v2/src/app/App.tsx` -- Create: `frontend-v2/src/features/upload/` -- Create: `frontend-v2/src/features/search/` -- Create: `frontend-v2/src/features/chat/` -- Create: `frontend-v2/src/lib/api.ts` -- Create: `frontend-v2/src/lib/query-client.ts` -- Create: `frontend-v2/tests/` - -Commit plan: - -- `test(frontend): add app shell tests` -- `feat(frontend): add app shell and routing` -- `feat(frontend): add upload and search flows` -- `feat(frontend): add chat flow` - -### PR 9: `chore/v2-observability` - -Scope: - -- health and readiness -- structured logs -- audit trail -- metrics hooks - -Commit plan: - -- `test(observability): add health endpoint tests` -- `chore(logging): add structured logging` -- `feat(audit): add audit log pipeline` -- `chore(metrics): add service metrics hooks` - -### PR 10: `fix/v2-hardening` - -Scope: - -- auth edge cases -- storage cleanup -- retry policies -- release checklist - -Commit plan: - -- `test(hardening): add regression coverage` -- `fix(auth): handle invalid key and revoked key paths` -- `fix(indexing): improve retry and cleanup behavior` -- `docs(release): add v2 release checklist` - -## Task 1: Workflow Baseline - -**Files:** -- Create: `docs/development-workflow.md` -- Create: `docs/plans/2026-05-12-docsearch-v2-implementation-plan.md` - -**Step 1: Write the workflow and PR split guidance** - -- Define `main`, `develop`, and `type/*` branch rules -- Define PR sizing and commit rules -- Define the initial V2 PR sequence - -**Step 2: Review branch names and commit templates** - -Run: - -```powershell -git branch -a -``` - -Expected: - -- `main` exists -- `develop` exists -- the current branch is `chore/v2-workflow` - -**Step 3: Commit the workflow docs** - -```powershell -git add docs/development-workflow.md docs/plans/2026-05-12-docsearch-v2-implementation-plan.md -git commit -m "docs(workflow): add v2 branch strategy" -``` - -**Step 4: Push and open the first PR** - -```powershell -git push -u origin develop -git push -u origin chore/v2-workflow -``` - -Expected: - -- `develop` is available as the integration branch -- `chore/v2-workflow` is available as the first review branch - -## Task 2: Repository Scaffold PR - -**Files:** -- Create: `backend/` -- Create: `frontend-v2/` -- Create: `infra/compose/docker-compose.v2.yml` -- Test: `backend/tests/` - -**Step 1: Write failing backend bootstrap tests** - -- validate config load -- validate app startup -- validate health route contract - -**Step 2: Run backend bootstrap tests** - -Run: - -```powershell -pytest backend/tests -q -``` - -Expected: - -- FAIL because scaffold files do not exist yet - -**Step 3: Add minimal backend and frontend scaffold** - -- create the directories -- add minimal app bootstrap -- add minimal frontend entrypoint - -**Step 4: Run tests again** - -Run: - -```powershell -pytest backend/tests -q -``` - -Expected: - -- PASS for the bootstrap subset - -**Step 5: Commit scaffold changes** - -```powershell -git add backend frontend-v2 infra -git commit -m "feat(scaffold): add v2 repository skeleton" -``` - -## Task 3: Auth PR - -**Files:** -- Create: `backend/app/auth/` -- Modify: `backend/app/main.py` -- Test: `backend/tests/auth/test_api_key_auth.py` - -**Step 1: Write failing auth tests** - -- invalid key returns `401` -- missing key returns `401` -- valid key injects workspace context - -**Step 2: Run auth tests** - -Run: - -```powershell -pytest backend/tests/auth/test_api_key_auth.py -q -``` - -Expected: - -- FAIL before implementation - -**Step 3: Add minimal API key auth implementation** - -- key validation service -- dependency or middleware -- request context storage - -**Step 4: Re-run auth tests** - -Run: - -```powershell -pytest backend/tests/auth/test_api_key_auth.py -q -``` - -Expected: - -- PASS - -**Step 5: Commit auth changes** - -```powershell -git add backend/app/auth backend/tests/auth backend/app/main.py -git commit -m "feat(auth): add api key authentication" -``` - -## Execution Notes - -- V2 work happens from `develop`, never directly on `main` -- every PR must leave the branch in a runnable or testable state -- do not mix branch strategy changes with feature code after PR 0 -- when a PR grows beyond its single concern, split it before review diff --git a/frontend-v2/Dockerfile b/frontend-v2/Dockerfile deleted file mode 100644 index 5a454a7..0000000 --- a/frontend-v2/Dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM node:22-alpine - -WORKDIR /app - -COPY package*.json ./ -RUN npm install - -COPY . . - -CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"] diff --git a/frontend-v2/index.html b/frontend-v2/index.html deleted file mode 100644 index a363732..0000000 --- a/frontend-v2/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - DocSearch AI V2 - - -
- - - diff --git a/frontend-v2/package-lock.json b/frontend-v2/package-lock.json deleted file mode 100644 index aeaa0b4..0000000 --- a/frontend-v2/package-lock.json +++ /dev/null @@ -1,2866 +0,0 @@ -{ - "name": "docsearch-v2-frontend", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "docsearch-v2-frontend", - "version": "0.1.0", - "dependencies": { - "antd": "^5.27.6", - "react": "^18.3.1", - "react-dom": "^18.3.1" - }, - "devDependencies": { - "@types/react": "^18.3.23", - "@types/react-dom": "^18.3.7", - "@vitejs/plugin-react": "^5.1.0", - "typescript": "^5.9.3", - "vite": "^7.2.1" - } - }, - "node_modules/@ant-design/colors": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/@ant-design/colors/-/colors-7.2.1.tgz", - "integrity": "sha512-lCHDcEzieu4GA3n8ELeZ5VQ8pKQAWcGGLRTQ50aQM2iqPpq2evTxER84jfdPvsPAtEcZ7m44NI45edFMo8oOYQ==", - "license": "MIT", - "dependencies": { - "@ant-design/fast-color": "^2.0.6" - } - }, - "node_modules/@ant-design/cssinjs": { - "version": "1.24.0", - "resolved": "https://registry.npmjs.org/@ant-design/cssinjs/-/cssinjs-1.24.0.tgz", - "integrity": "sha512-K4cYrJBsgvL+IoozUXYjbT6LHHNt+19a9zkvpBPxLjFHas1UpPM2A5MlhROb0BT8N8WoavM5VsP9MeSeNK/3mg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.11.1", - "@emotion/hash": "^0.8.0", - "@emotion/unitless": "^0.7.5", - "classnames": "^2.3.1", - "csstype": "^3.1.3", - "rc-util": "^5.35.0", - "stylis": "^4.3.4" - }, - "peerDependencies": { - "react": ">=16.0.0", - "react-dom": ">=16.0.0" - } - }, - "node_modules/@ant-design/cssinjs-utils": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@ant-design/cssinjs-utils/-/cssinjs-utils-1.1.3.tgz", - "integrity": "sha512-nOoQMLW1l+xR1Co8NFVYiP8pZp3VjIIzqV6D6ShYF2ljtdwWJn5WSsH+7kvCktXL/yhEtWURKOfH5Xz/gzlwsg==", - "license": "MIT", - "dependencies": { - "@ant-design/cssinjs": "^1.21.0", - "@babel/runtime": "^7.23.2", - "rc-util": "^5.38.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@ant-design/fast-color": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@ant-design/fast-color/-/fast-color-2.0.6.tgz", - "integrity": "sha512-y2217gk4NqL35giHl72o6Zzqji9O7vHh9YmhUVkPtAOpoTCH4uWxo/pr4VE8t0+ChEPs0qo4eJRC5Q1eXWo3vA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.24.7" - }, - "engines": { - "node": ">=8.x" - } - }, - "node_modules/@ant-design/icons": { - "version": "5.6.1", - "resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-5.6.1.tgz", - "integrity": "sha512-0/xS39c91WjPAZOWsvi1//zjx6kAp4kxWwctR6kuU6p133w8RU0D2dSCvZC19uQyharg/sAvYxGYWl01BbZZfg==", - "license": "MIT", - "dependencies": { - "@ant-design/colors": "^7.0.0", - "@ant-design/icons-svg": "^4.4.0", - "@babel/runtime": "^7.24.8", - "classnames": "^2.2.6", - "rc-util": "^5.31.1" - }, - "engines": { - "node": ">=8" - }, - "peerDependencies": { - "react": ">=16.0.0", - "react-dom": ">=16.0.0" - } - }, - "node_modules/@ant-design/icons-svg": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz", - "integrity": "sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==", - "license": "MIT" - }, - "node_modules/@ant-design/react-slick": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@ant-design/react-slick/-/react-slick-1.1.2.tgz", - "integrity": "sha512-EzlvzE6xQUBrZuuhSAFTdsr4P2bBBHGZwKFemEfq8gIGyIQCxalYfZW/T2ORbtQx5rU69o+WycP3exY/7T1hGA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.4", - "classnames": "^2.2.5", - "json2mq": "^0.2.0", - "resize-observer-polyfill": "^1.5.1", - "throttle-debounce": "^5.0.0" - }, - "peerDependencies": { - "react": ">=16.9.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", - "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.28.5", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.29.3", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz", - "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", - "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.0", - "@babel/generator": "^7.29.0", - "@babel/helper-compilation-targets": "^7.28.6", - "@babel/helper-module-transforms": "^7.28.6", - "@babel/helpers": "^7.28.6", - "@babel/parser": "^7.29.0", - "@babel/template": "^7.28.6", - "@babel/traverse": "^7.29.0", - "@babel/types": "^7.29.0", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.29.1", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", - "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.29.0", - "@babel/types": "^7.29.0", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", - "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.28.6", - "@babel/helper-validator-option": "^7.27.1", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-globals": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", - "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", - "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.28.6", - "@babel/types": "^7.28.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", - "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.28.6", - "@babel/helper-validator-identifier": "^7.28.5", - "@babel/traverse": "^7.28.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", - "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", - "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", - "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.29.2", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz", - "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.28.6", - "@babel/types": "^7.29.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.29.3", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz", - "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.29.0" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-self": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", - "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-source": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", - "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/runtime": { - "version": "7.29.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz", - "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", - "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.28.6", - "@babel/parser": "^7.28.6", - "@babel/types": "^7.28.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", - "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.0", - "@babel/generator": "^7.29.0", - "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.29.0", - "@babel/template": "^7.28.6", - "@babel/types": "^7.29.0", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.29.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", - "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@emotion/hash": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", - "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", - "license": "MIT" - }, - "node_modules/@emotion/unitless": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", - "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==", - "license": "MIT" - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", - "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", - "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", - "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", - "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", - "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", - "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", - "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", - "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", - "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", - "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", - "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", - "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", - "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", - "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", - "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", - "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", - "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", - "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", - "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", - "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", - "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", - "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", - "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", - "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", - "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", - "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@rc-component/async-validator": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@rc-component/async-validator/-/async-validator-5.1.0.tgz", - "integrity": "sha512-n4HcR5siNUXRX23nDizbZBQPO0ZM/5oTtmKZ6/eqL0L2bo747cklFdZGRN2f+c9qWGICwDzrhW0H7tE9PptdcA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.24.4" - }, - "engines": { - "node": ">=14.x" - } - }, - "node_modules/@rc-component/color-picker": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@rc-component/color-picker/-/color-picker-2.0.1.tgz", - "integrity": "sha512-WcZYwAThV/b2GISQ8F+7650r5ZZJ043E57aVBFkQ+kSY4C6wdofXgB0hBx+GPGpIU0Z81eETNoDUJMr7oy/P8Q==", - "license": "MIT", - "dependencies": { - "@ant-design/fast-color": "^2.0.6", - "@babel/runtime": "^7.23.6", - "classnames": "^2.2.6", - "rc-util": "^5.38.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/context": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@rc-component/context/-/context-1.4.0.tgz", - "integrity": "sha512-kFcNxg9oLRMoL3qki0OMxK+7g5mypjgaaJp/pkOis/6rVxma9nJBF/8kCIuTYHUQNr0ii7MxqE33wirPZLJQ2w==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "rc-util": "^5.27.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/mini-decimal": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@rc-component/mini-decimal/-/mini-decimal-1.1.3.tgz", - "integrity": "sha512-bk/FJ09fLf+NLODMAFll6CfYrHPBioTedhW6lxDBuuWucJEqFUd4l/D/5JgIi3dina6sYahB8iuPAZTNz2pMxw==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.0" - }, - "engines": { - "node": ">=8.x" - } - }, - "node_modules/@rc-component/mutate-observer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@rc-component/mutate-observer/-/mutate-observer-1.1.0.tgz", - "integrity": "sha512-QjrOsDXQusNwGZPf4/qRQasg7UFEj06XiCJ8iuiq/Io7CrHrgVi6Uuetw60WAMG1799v+aM8kyc+1L/GBbHSlw==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.0", - "classnames": "^2.3.2", - "rc-util": "^5.24.4" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/portal": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@rc-component/portal/-/portal-1.1.2.tgz", - "integrity": "sha512-6f813C0IsasTZms08kfA8kPAGxbbkYToa8ALaiDIGGECU4i9hj8Plgbx0sNJDrey3EtHO30hmdaxtT0138xZcg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.0", - "classnames": "^2.3.2", - "rc-util": "^5.24.4" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/qrcode": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@rc-component/qrcode/-/qrcode-1.1.1.tgz", - "integrity": "sha512-LfLGNymzKdUPjXUbRP+xOhIWY4jQ+YMj5MmWAcgcAq1Ij8XP7tRmAXqyuv96XvLUBE/5cA8hLFl9eO1JQMujrA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.24.7" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/tour": { - "version": "1.15.1", - "resolved": "https://registry.npmjs.org/@rc-component/tour/-/tour-1.15.1.tgz", - "integrity": "sha512-Tr2t7J1DKZUpfJuDZWHxyxWpfmj8EZrqSgyMZ+BCdvKZ6r1UDsfU46M/iWAAFBy961Ssfom2kv5f3UcjIL2CmQ==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.0", - "@rc-component/portal": "^1.0.0-9", - "@rc-component/trigger": "^2.0.0", - "classnames": "^2.3.2", - "rc-util": "^5.24.4" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rc-component/trigger": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@rc-component/trigger/-/trigger-2.3.1.tgz", - "integrity": "sha512-ORENF39PeXTzM+gQEshuk460Z8N4+6DkjpxlpE7Q3gYy1iBpLrx0FOJz3h62ryrJZ/3zCAUIkT1Pb/8hHWpb3A==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.23.2", - "@rc-component/portal": "^1.1.0", - "classnames": "^2.3.2", - "rc-motion": "^2.0.0", - "rc-resize-observer": "^1.3.1", - "rc-util": "^5.44.0" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/@rolldown/pluginutils": { - "version": "1.0.0-rc.3", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz", - "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.3.tgz", - "integrity": "sha512-x35CNW/ANXG3hE/EZpRU8MXX1JDN86hBb2wMGAtltkz7pc6cxgjpy1OMMfDosOQ+2hWqIkag/fGok1Yady9nGw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.3.tgz", - "integrity": "sha512-xw3xtkDApIOGayehp2+Rz4zimfkaX65r4t47iy+ymQB2G4iJCBBfj0ogVg5jpvjpn8UWn/+q9tprxleYeNp3Hw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.3.tgz", - "integrity": "sha512-vo6Y5Qfpx7/5EaamIwi0WqW2+zfiusVihKatLvtN1VFVy3D13uERk/6gZLU1UiHRL6fDXqj/ELIeVRGnvcTE1g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.3.tgz", - "integrity": "sha512-D+0QGcZhBzTN82weOnsSlY7V7+RMmPuF1CkbxyMAGE8+ZHeUjyb76ZiWmBlCu//AQQONvxcqRbwZTajZKqjuOw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.3.tgz", - "integrity": "sha512-6HnvHCT7fDyj6R0Ph7A6x8dQS/S38MClRWeDLqc0MdfWkxjiu1HSDYrdPhqSILzjTIC/pnXbbJbo+ft+gy/9hQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.3.tgz", - "integrity": "sha512-KHLgC3WKlUYW3ShFKnnosZDOJ0xjg9zp7au3sIm2bs/tGBeC2ipmvRh/N7JKi0t9Ue20C0dpEshi8WUubg+cnA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.3.tgz", - "integrity": "sha512-DV6fJoxEYWJOvaZIsok7KrYl0tPvga5OZ2yvKHNNYyk/2roMLqQAbGhr78EQ5YhHpnhLKJD3S1WFusAkmUuV5g==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.3.tgz", - "integrity": "sha512-mQKoJAzvuOs6F+TZybQO4GOTSMUu7v0WdxEk24krQ/uUxXoPTtHjuaUuPmFhtBcM4K0ons8nrE3JyhTuCFtT/w==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.3.tgz", - "integrity": "sha512-Whjj2qoiJ6+OOJMGptTYazaJvjOJm+iKHpXQM1P3LzGjt7Ff++Tp7nH4N8J/BUA7R9IHfDyx4DJIflifwnbmIA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.3.tgz", - "integrity": "sha512-4YTNHKqGng5+yiZt3mg77nmyuCfmNfX4fPmyUapBcIk+BdwSwmCWGXOUxhXbBEkFHtoN5boLj/5NON+u5QC9tg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.3.tgz", - "integrity": "sha512-SU3kNlhkpI4UqlUc2VXPGK9o886ZsSeGfMAX2ba2b8DKmMXq4AL7KUrkSWVbb7koVqx41Yczx6dx5PNargIrEA==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.3.tgz", - "integrity": "sha512-6lDLl5h4TXpB1mTf2rQWnAk/LcXrx9vBfu/DT5TIPhvMhRWaZ5MxkIc8u4lJAmBo6klTe1ywXIUHFjylW505sg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.3.tgz", - "integrity": "sha512-BMo8bOw8evlup/8G+cj5xWtPyp93xPdyoSN16Zy90Q2QZ0ZYRhCt6ZJSwbrRzG9HApFabjwj2p25TUPDWrhzqQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.3.tgz", - "integrity": "sha512-E0L8X1dZN1/Rph+5VPF6Xj2G7JJvMACVXtamTJIDrVI44Y3K+G8gQaMEAavbqCGTa16InptiVrX6eM6pmJ+7qA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.3.tgz", - "integrity": "sha512-oZJ/WHaVfHUiRAtmTAeo3DcevNsVvH8mbvodjZy7D5QKvCefO371SiKRpxoDcCxB3PTRTLayWBkvmDQKTcX/sw==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.3.tgz", - "integrity": "sha512-Dhbyh7j9FybM3YaTgaHmVALwA8AkUwTPccyCQ79TG9AJUsMQqgN1DDEZNr4+QUfwiWvLDumW5vdwzoeUF+TNxQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.3.tgz", - "integrity": "sha512-cJd1X5XhHHlltkaypz1UcWLA8AcoIi1aWhsvaWDskD1oz2eKCypnqvTQ8ykMNI0RSmm7NkTdSqSSD7zM0xa6Ig==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.3.tgz", - "integrity": "sha512-DAZDBHQfG2oQuhY7mc6I3/qB4LU2fQCjRvxbDwd/Jdvb9fypP4IJ4qmtu6lNjes6B531AI8cg1aKC2di97bUxA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.3.tgz", - "integrity": "sha512-cRxsE8c13mZOh3vP+wLDxpQBRrOHDIGOWyDL93Sy0Ga8y515fBcC2pjUfFwUe5T7tqvTvWbCpg1URM/AXdWIXA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.3.tgz", - "integrity": "sha512-QaWcIgRxqEdQdhJqW4DJctsH6HCmo5vHxY0krHSX4jMtOqfzC+dqDGuHM87bu4H8JBeibWx7jFz+h6/4C8wA5Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.3.tgz", - "integrity": "sha512-AaXwSvUi3QIPtroAUw1t5yHGIyqKEXwH54WUocFolZhpGDruJcs8c+xPNDRn4XiQsS7MEwnYsHW2l0MBLDMkWg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.3.tgz", - "integrity": "sha512-65LAKM/bAWDqKNEelHlcHvm2V+Vfb8C6INFxQXRHCvaVN1rJfwr4NvdP4FyzUaLqWfaCGaadf6UbTm8xJeYfEg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.3.tgz", - "integrity": "sha512-EEM2gyhBF5MFnI6vMKdX1LAosE627RGBzIoGMdLloPZkXrUN0Ckqgr2Qi8+J3zip/8NVVro3/FjB+tjhZUgUHA==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.3.tgz", - "integrity": "sha512-E5Eb5H/DpxaoXH++Qkv28RcUJboMopmdDUALBczvHMf7hNIxaDZqwY5lK12UK1BHacSmvupoEWGu+n993Z0y1A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.3.tgz", - "integrity": "sha512-hPt/bgL5cE+Qp+/TPHBqptcAgPzgj46mPcg/16zNUmbQk0j+mOEQV/+Lqu8QRtDV3Ek95Q6FeFITpuhl6OTsAA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", - "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.2" - } - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/prop-types": { - "version": "15.7.15", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", - "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/react": { - "version": "18.3.28", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.28.tgz", - "integrity": "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/prop-types": "*", - "csstype": "^3.2.2" - } - }, - "node_modules/@types/react-dom": { - "version": "18.3.7", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", - "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "@types/react": "^18.0.0" - } - }, - "node_modules/@vitejs/plugin-react": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz", - "integrity": "sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.29.0", - "@babel/plugin-transform-react-jsx-self": "^7.27.1", - "@babel/plugin-transform-react-jsx-source": "^7.27.1", - "@rolldown/pluginutils": "1.0.0-rc.3", - "@types/babel__core": "^7.20.5", - "react-refresh": "^0.18.0" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "peerDependencies": { - "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/antd": { - "version": "5.29.3", - "resolved": "https://registry.npmjs.org/antd/-/antd-5.29.3.tgz", - "integrity": "sha512-3DdbGCa9tWAJGcCJ6rzR8EJFsv2CtyEbkVabZE14pfgUHfCicWCj0/QzQVLDYg8CPfQk9BH7fHCoTXHTy7MP/A==", - "license": "MIT", - "dependencies": { - "@ant-design/colors": "^7.2.1", - "@ant-design/cssinjs": "^1.23.0", - "@ant-design/cssinjs-utils": "^1.1.3", - "@ant-design/fast-color": "^2.0.6", - "@ant-design/icons": "^5.6.1", - "@ant-design/react-slick": "~1.1.2", - "@babel/runtime": "^7.26.0", - "@rc-component/color-picker": "~2.0.1", - "@rc-component/mutate-observer": "^1.1.0", - "@rc-component/qrcode": "~1.1.0", - "@rc-component/tour": "~1.15.1", - "@rc-component/trigger": "^2.3.0", - "classnames": "^2.5.1", - "copy-to-clipboard": "^3.3.3", - "dayjs": "^1.11.11", - "rc-cascader": "~3.34.0", - "rc-checkbox": "~3.5.0", - "rc-collapse": "~3.9.0", - "rc-dialog": "~9.6.0", - "rc-drawer": "~7.3.0", - "rc-dropdown": "~4.2.1", - "rc-field-form": "~2.7.1", - "rc-image": "~7.12.0", - "rc-input": "~1.8.0", - "rc-input-number": "~9.5.0", - "rc-mentions": "~2.20.0", - "rc-menu": "~9.16.1", - "rc-motion": "^2.9.5", - "rc-notification": "~5.6.4", - "rc-pagination": "~5.1.0", - "rc-picker": "~4.11.3", - "rc-progress": "~4.0.0", - "rc-rate": "~2.13.1", - "rc-resize-observer": "^1.4.3", - "rc-segmented": "~2.7.0", - "rc-select": "~14.16.8", - "rc-slider": "~11.1.9", - "rc-steps": "~6.0.1", - "rc-switch": "~4.1.0", - "rc-table": "~7.54.0", - "rc-tabs": "~15.7.0", - "rc-textarea": "~1.10.2", - "rc-tooltip": "~6.4.0", - "rc-tree": "~5.13.1", - "rc-tree-select": "~5.27.0", - "rc-upload": "~4.11.0", - "rc-util": "^5.44.4", - "scroll-into-view-if-needed": "^3.1.0", - "throttle-debounce": "^5.0.2" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/ant-design" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/baseline-browser-mapping": { - "version": "2.10.29", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.29.tgz", - "integrity": "sha512-Asa2krT+XTPZINCS+2QcyS8WTkObE77RwkydwF7h6DmnKqbvlalz93m/dnphUyCa6SWSP51VgtEUf2FN+gelFQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.cjs" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/browserslist": { - "version": "4.28.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", - "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "baseline-browser-mapping": "^2.10.12", - "caniuse-lite": "^1.0.30001782", - "electron-to-chromium": "^1.5.328", - "node-releases": "^2.0.36", - "update-browserslist-db": "^1.2.3" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001792", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001792.tgz", - "integrity": "sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/classnames": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", - "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==", - "license": "MIT" - }, - "node_modules/compute-scroll-into-view": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.1.1.tgz", - "integrity": "sha512-VRhuHOLoKYOy4UbilLbUzbYg93XLjv2PncJC50EuTWPA3gaja1UjBsUP/D/9/juV3vQFr6XBEzn9KCAHdUvOHw==", - "license": "MIT" - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" - }, - "node_modules/copy-to-clipboard": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz", - "integrity": "sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==", - "license": "MIT", - "dependencies": { - "toggle-selection": "^1.0.6" - } - }, - "node_modules/csstype": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", - "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "license": "MIT" - }, - "node_modules/dayjs": { - "version": "1.11.20", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.20.tgz", - "integrity": "sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ==", - "license": "MIT" - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/electron-to-chromium": { - "version": "1.5.353", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.353.tgz", - "integrity": "sha512-kOrWphBi8TOZyiJZqsgqIle0lw+tzmnQK83pV9dZUd01Nm2POECSyFQMAuarzZdYqQW7FH9RaYOuaRo3h+bQ3w==", - "dev": true, - "license": "ISC" - }, - "node_modules/esbuild": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", - "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.27.7", - "@esbuild/android-arm": "0.27.7", - "@esbuild/android-arm64": "0.27.7", - "@esbuild/android-x64": "0.27.7", - "@esbuild/darwin-arm64": "0.27.7", - "@esbuild/darwin-x64": "0.27.7", - "@esbuild/freebsd-arm64": "0.27.7", - "@esbuild/freebsd-x64": "0.27.7", - "@esbuild/linux-arm": "0.27.7", - "@esbuild/linux-arm64": "0.27.7", - "@esbuild/linux-ia32": "0.27.7", - "@esbuild/linux-loong64": "0.27.7", - "@esbuild/linux-mips64el": "0.27.7", - "@esbuild/linux-ppc64": "0.27.7", - "@esbuild/linux-riscv64": "0.27.7", - "@esbuild/linux-s390x": "0.27.7", - "@esbuild/linux-x64": "0.27.7", - "@esbuild/netbsd-arm64": "0.27.7", - "@esbuild/netbsd-x64": "0.27.7", - "@esbuild/openbsd-arm64": "0.27.7", - "@esbuild/openbsd-x64": "0.27.7", - "@esbuild/openharmony-arm64": "0.27.7", - "@esbuild/sunos-x64": "0.27.7", - "@esbuild/win32-arm64": "0.27.7", - "@esbuild/win32-ia32": "0.27.7", - "@esbuild/win32-x64": "0.27.7" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "license": "MIT" - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json2mq": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz", - "integrity": "sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==", - "license": "MIT", - "dependencies": { - "string-convert": "^0.2.0" - } - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.12", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", - "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/node-releases": { - "version": "2.0.44", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.44.tgz", - "integrity": "sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", - "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/postcss": { - "version": "8.5.14", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz", - "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/rc-cascader": { - "version": "3.34.0", - "resolved": "https://registry.npmjs.org/rc-cascader/-/rc-cascader-3.34.0.tgz", - "integrity": "sha512-KpXypcvju9ptjW9FaN2NFcA2QH9E9LHKq169Y0eWtH4e/wHQ5Wh5qZakAgvb8EKZ736WZ3B0zLLOBsrsja5Dag==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.25.7", - "classnames": "^2.3.1", - "rc-select": "~14.16.2", - "rc-tree": "~5.13.0", - "rc-util": "^5.43.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-checkbox": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/rc-checkbox/-/rc-checkbox-3.5.0.tgz", - "integrity": "sha512-aOAQc3E98HteIIsSqm6Xk2FPKIER6+5vyEFMZfo73TqM+VVAIqOkHoPjgKLqSNtVLWScoaM7vY2ZrGEheI79yg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.3.2", - "rc-util": "^5.25.2" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-collapse": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/rc-collapse/-/rc-collapse-3.9.0.tgz", - "integrity": "sha512-swDdz4QZ4dFTo4RAUMLL50qP0EY62N2kvmk2We5xYdRwcRn8WcYtuetCJpwpaCbUfUt5+huLpVxhvmnK+PHrkA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "2.x", - "rc-motion": "^2.3.4", - "rc-util": "^5.27.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-dialog": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/rc-dialog/-/rc-dialog-9.6.0.tgz", - "integrity": "sha512-ApoVi9Z8PaCQg6FsUzS8yvBEQy0ZL2PkuvAgrmohPkN3okps5WZ5WQWPc1RNuiOKaAYv8B97ACdsFU5LizzCqg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/portal": "^1.0.0-8", - "classnames": "^2.2.6", - "rc-motion": "^2.3.0", - "rc-util": "^5.21.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-drawer": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/rc-drawer/-/rc-drawer-7.3.0.tgz", - "integrity": "sha512-DX6CIgiBWNpJIMGFO8BAISFkxiuKitoizooj4BDyee8/SnBn0zwO2FHrNDpqqepj0E/TFTDpmEBCyFuTgC7MOg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.23.9", - "@rc-component/portal": "^1.1.1", - "classnames": "^2.2.6", - "rc-motion": "^2.6.1", - "rc-util": "^5.38.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-dropdown": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/rc-dropdown/-/rc-dropdown-4.2.1.tgz", - "integrity": "sha512-YDAlXsPv3I1n42dv1JpdM7wJ+gSUBfeyPK59ZpBD9jQhK9jVuxpjj3NmWQHOBceA1zEPVX84T2wbdb2SD0UjmA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.3", - "@rc-component/trigger": "^2.0.0", - "classnames": "^2.2.6", - "rc-util": "^5.44.1" - }, - "peerDependencies": { - "react": ">=16.11.0", - "react-dom": ">=16.11.0" - } - }, - "node_modules/rc-field-form": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rc-field-form/-/rc-field-form-2.7.1.tgz", - "integrity": "sha512-vKeSifSJ6HoLaAB+B8aq/Qgm8a3dyxROzCtKNCsBQgiverpc4kWDQihoUwzUj+zNWJOykwSY4dNX3QrGwtVb9A==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.0", - "@rc-component/async-validator": "^5.0.3", - "rc-util": "^5.32.2" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-image": { - "version": "7.12.0", - "resolved": "https://registry.npmjs.org/rc-image/-/rc-image-7.12.0.tgz", - "integrity": "sha512-cZ3HTyyckPnNnUb9/DRqduqzLfrQRyi+CdHjdqgsyDpI3Ln5UX1kXnAhPBSJj9pVRzwRFgqkN7p9b6HBDjmu/Q==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.11.2", - "@rc-component/portal": "^1.0.2", - "classnames": "^2.2.6", - "rc-dialog": "~9.6.0", - "rc-motion": "^2.6.2", - "rc-util": "^5.34.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-input": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/rc-input/-/rc-input-1.8.0.tgz", - "integrity": "sha512-KXvaTbX+7ha8a/k+eg6SYRVERK0NddX8QX7a7AnRvUa/rEH0CNMlpcBzBkhI0wp2C8C4HlMoYl8TImSN+fuHKA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.11.1", - "classnames": "^2.2.1", - "rc-util": "^5.18.1" - }, - "peerDependencies": { - "react": ">=16.0.0", - "react-dom": ">=16.0.0" - } - }, - "node_modules/rc-input-number": { - "version": "9.5.0", - "resolved": "https://registry.npmjs.org/rc-input-number/-/rc-input-number-9.5.0.tgz", - "integrity": "sha512-bKaEvB5tHebUURAEXw35LDcnRZLq3x1k7GxfAqBMzmpHkDGzjAtnUL8y4y5N15rIFIg5IJgwr211jInl3cipag==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/mini-decimal": "^1.0.1", - "classnames": "^2.2.5", - "rc-input": "~1.8.0", - "rc-util": "^5.40.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-mentions": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/rc-mentions/-/rc-mentions-2.20.0.tgz", - "integrity": "sha512-w8HCMZEh3f0nR8ZEd466ATqmXFCMGMN5UFCzEUL0bM/nGw/wOS2GgRzKBcm19K++jDyuWCOJOdgcKGXU3fXfbQ==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.22.5", - "@rc-component/trigger": "^2.0.0", - "classnames": "^2.2.6", - "rc-input": "~1.8.0", - "rc-menu": "~9.16.0", - "rc-textarea": "~1.10.0", - "rc-util": "^5.34.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-menu": { - "version": "9.16.1", - "resolved": "https://registry.npmjs.org/rc-menu/-/rc-menu-9.16.1.tgz", - "integrity": "sha512-ghHx6/6Dvp+fw8CJhDUHFHDJ84hJE3BXNCzSgLdmNiFErWSOaZNsihDAsKq9ByTALo/xkNIwtDFGIl6r+RPXBg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/trigger": "^2.0.0", - "classnames": "2.x", - "rc-motion": "^2.4.3", - "rc-overflow": "^1.3.1", - "rc-util": "^5.27.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-motion": { - "version": "2.9.5", - "resolved": "https://registry.npmjs.org/rc-motion/-/rc-motion-2.9.5.tgz", - "integrity": "sha512-w+XTUrfh7ArbYEd2582uDrEhmBHwK1ZENJiSJVb7uRxdE7qJSYjbO2eksRXmndqyKqKoYPc9ClpPh5242mV1vA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.11.1", - "classnames": "^2.2.1", - "rc-util": "^5.44.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-notification": { - "version": "5.6.4", - "resolved": "https://registry.npmjs.org/rc-notification/-/rc-notification-5.6.4.tgz", - "integrity": "sha512-KcS4O6B4qzM3KH7lkwOB7ooLPZ4b6J+VMmQgT51VZCeEcmghdeR4IrMcFq0LG+RPdnbe/ArT086tGM8Snimgiw==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "2.x", - "rc-motion": "^2.9.0", - "rc-util": "^5.20.1" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-overflow": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/rc-overflow/-/rc-overflow-1.5.0.tgz", - "integrity": "sha512-Lm/v9h0LymeUYJf0x39OveU52InkdRXqnn2aYXfWmo8WdOonIKB2kfau+GF0fWq6jPgtdO9yMqveGcK6aIhJmg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.11.1", - "classnames": "^2.2.1", - "rc-resize-observer": "^1.0.0", - "rc-util": "^5.37.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-pagination": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/rc-pagination/-/rc-pagination-5.1.0.tgz", - "integrity": "sha512-8416Yip/+eclTFdHXLKTxZvn70duYVGTvUUWbckCCZoIl3jagqke3GLsFrMs0bsQBikiYpZLD9206Ej4SOdOXQ==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.3.2", - "rc-util": "^5.38.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-picker": { - "version": "4.11.3", - "resolved": "https://registry.npmjs.org/rc-picker/-/rc-picker-4.11.3.tgz", - "integrity": "sha512-MJ5teb7FlNE0NFHTncxXQ62Y5lytq6sh5nUw0iH8OkHL/TjARSEvSHpr940pWgjGANpjCwyMdvsEV55l5tYNSg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.24.7", - "@rc-component/trigger": "^2.0.0", - "classnames": "^2.2.1", - "rc-overflow": "^1.3.2", - "rc-resize-observer": "^1.4.0", - "rc-util": "^5.43.0" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "date-fns": ">= 2.x", - "dayjs": ">= 1.x", - "luxon": ">= 3.x", - "moment": ">= 2.x", - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - }, - "peerDependenciesMeta": { - "date-fns": { - "optional": true - }, - "dayjs": { - "optional": true - }, - "luxon": { - "optional": true - }, - "moment": { - "optional": true - } - } - }, - "node_modules/rc-progress": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/rc-progress/-/rc-progress-4.0.0.tgz", - "integrity": "sha512-oofVMMafOCokIUIBnZLNcOZFsABaUw8PPrf1/y0ZBvKZNpOiu5h4AO9vv11Sw0p4Hb3D0yGWuEattcQGtNJ/aw==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.2.6", - "rc-util": "^5.16.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-rate": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/rc-rate/-/rc-rate-2.13.1.tgz", - "integrity": "sha512-QUhQ9ivQ8Gy7mtMZPAjLbxBt5y9GRp65VcUyGUMF3N3fhiftivPHdpuDIaWIMOTEprAjZPC08bls1dQB+I1F2Q==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.2.5", - "rc-util": "^5.0.1" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-resize-observer": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/rc-resize-observer/-/rc-resize-observer-1.4.3.tgz", - "integrity": "sha512-YZLjUbyIWox8E9i9C3Tm7ia+W7euPItNWSPX5sCcQTYbnwDb5uNpnLHQCG1f22oZWUhLw4Mv2tFmeWe68CDQRQ==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.20.7", - "classnames": "^2.2.1", - "rc-util": "^5.44.1", - "resize-observer-polyfill": "^1.5.1" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-segmented": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rc-segmented/-/rc-segmented-2.7.1.tgz", - "integrity": "sha512-izj1Nw/Dw2Vb7EVr+D/E9lUTkBe+kKC+SAFSU9zqr7WV2W5Ktaa9Gc7cB2jTqgk8GROJayltaec+DBlYKc6d+g==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.11.1", - "classnames": "^2.2.1", - "rc-motion": "^2.4.4", - "rc-util": "^5.17.0" - }, - "peerDependencies": { - "react": ">=16.0.0", - "react-dom": ">=16.0.0" - } - }, - "node_modules/rc-select": { - "version": "14.16.8", - "resolved": "https://registry.npmjs.org/rc-select/-/rc-select-14.16.8.tgz", - "integrity": "sha512-NOV5BZa1wZrsdkKaiK7LHRuo5ZjZYMDxPP6/1+09+FB4KoNi8jcG1ZqLE3AVCxEsYMBe65OBx71wFoHRTP3LRg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/trigger": "^2.1.1", - "classnames": "2.x", - "rc-motion": "^2.0.1", - "rc-overflow": "^1.3.1", - "rc-util": "^5.16.1", - "rc-virtual-list": "^3.5.2" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": "*", - "react-dom": "*" - } - }, - "node_modules/rc-slider": { - "version": "11.1.9", - "resolved": "https://registry.npmjs.org/rc-slider/-/rc-slider-11.1.9.tgz", - "integrity": "sha512-h8IknhzSh3FEM9u8ivkskh+Ef4Yo4JRIY2nj7MrH6GQmrwV6mcpJf5/4KgH5JaVI1H3E52yCdpOlVyGZIeph5A==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.2.5", - "rc-util": "^5.36.0" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-steps": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/rc-steps/-/rc-steps-6.0.1.tgz", - "integrity": "sha512-lKHL+Sny0SeHkQKKDJlAjV5oZ8DwCdS2hFhAkIjuQt1/pB81M0cA0ErVFdHq9+jmPmFw1vJB2F5NBzFXLJxV+g==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.16.7", - "classnames": "^2.2.3", - "rc-util": "^5.16.1" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-switch": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/rc-switch/-/rc-switch-4.1.0.tgz", - "integrity": "sha512-TI8ufP2Az9oEbvyCeVE4+90PDSljGyuwix3fV58p7HV2o4wBnVToEyomJRVyTaZeqNPAp+vqeo4Wnj5u0ZZQBg==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.21.0", - "classnames": "^2.2.1", - "rc-util": "^5.30.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-table": { - "version": "7.54.0", - "resolved": "https://registry.npmjs.org/rc-table/-/rc-table-7.54.0.tgz", - "integrity": "sha512-/wDTkki6wBTjwylwAGjpLKYklKo9YgjZwAU77+7ME5mBoS32Q4nAwoqhA2lSge6fobLW3Tap6uc5xfwaL2p0Sw==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "@rc-component/context": "^1.4.0", - "classnames": "^2.2.5", - "rc-resize-observer": "^1.1.0", - "rc-util": "^5.44.3", - "rc-virtual-list": "^3.14.2" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-tabs": { - "version": "15.7.0", - "resolved": "https://registry.npmjs.org/rc-tabs/-/rc-tabs-15.7.0.tgz", - "integrity": "sha512-ZepiE+6fmozYdWf/9gVp7k56PKHB1YYoDsKeQA1CBlJ/POIhjkcYiv0AGP0w2Jhzftd3AVvZP/K+V+Lpi2ankA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.11.2", - "classnames": "2.x", - "rc-dropdown": "~4.2.0", - "rc-menu": "~9.16.0", - "rc-motion": "^2.6.2", - "rc-resize-observer": "^1.0.0", - "rc-util": "^5.34.1" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-textarea": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/rc-textarea/-/rc-textarea-1.10.2.tgz", - "integrity": "sha512-HfaeXiaSlpiSp0I/pvWpecFEHpVysZ9tpDLNkxQbMvMz6gsr7aVZ7FpWP9kt4t7DB+jJXesYS0us1uPZnlRnwQ==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "^2.2.1", - "rc-input": "~1.8.0", - "rc-resize-observer": "^1.0.0", - "rc-util": "^5.27.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-tooltip": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/rc-tooltip/-/rc-tooltip-6.4.0.tgz", - "integrity": "sha512-kqyivim5cp8I5RkHmpsp1Nn/Wk+1oeloMv9c7LXNgDxUpGm+RbXJGL+OPvDlcRnx9DBeOe4wyOIl4OKUERyH1g==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.11.2", - "@rc-component/trigger": "^2.0.0", - "classnames": "^2.3.1", - "rc-util": "^5.44.3" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-tree": { - "version": "5.13.1", - "resolved": "https://registry.npmjs.org/rc-tree/-/rc-tree-5.13.1.tgz", - "integrity": "sha512-FNhIefhftobCdUJshO7M8uZTA9F4OPGVXqGfZkkD/5soDeOhwO06T/aKTrg0WD8gRg/pyfq+ql3aMymLHCTC4A==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.10.1", - "classnames": "2.x", - "rc-motion": "^2.0.1", - "rc-util": "^5.16.1", - "rc-virtual-list": "^3.5.1" - }, - "engines": { - "node": ">=10.x" - }, - "peerDependencies": { - "react": "*", - "react-dom": "*" - } - }, - "node_modules/rc-tree-select": { - "version": "5.27.0", - "resolved": "https://registry.npmjs.org/rc-tree-select/-/rc-tree-select-5.27.0.tgz", - "integrity": "sha512-2qTBTzwIT7LRI1o7zLyrCzmo5tQanmyGbSaGTIf7sYimCklAToVVfpMC6OAldSKolcnjorBYPNSKQqJmN3TCww==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.25.7", - "classnames": "2.x", - "rc-select": "~14.16.2", - "rc-tree": "~5.13.0", - "rc-util": "^5.43.0" - }, - "peerDependencies": { - "react": "*", - "react-dom": "*" - } - }, - "node_modules/rc-upload": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/rc-upload/-/rc-upload-4.11.0.tgz", - "integrity": "sha512-ZUyT//2JAehfHzjWowqROcwYJKnZkIUGWaTE/VogVrepSl7AFNbQf4+zGfX4zl9Vrj/Jm8scLO0R6UlPDKK4wA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.3", - "classnames": "^2.2.5", - "rc-util": "^5.2.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-util": { - "version": "5.44.4", - "resolved": "https://registry.npmjs.org/rc-util/-/rc-util-5.44.4.tgz", - "integrity": "sha512-resueRJzmHG9Q6rI/DfK6Kdv9/Lfls05vzMs1Sk3M2P+3cJa+MakaZyWY8IPfehVuhPJFKrIY1IK4GqbiaiY5w==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.18.3", - "react-is": "^18.2.0" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/rc-virtual-list": { - "version": "3.19.2", - "resolved": "https://registry.npmjs.org/rc-virtual-list/-/rc-virtual-list-3.19.2.tgz", - "integrity": "sha512-Ys6NcjwGkuwkeaWBDqfI3xWuZ7rDiQXlH1o2zLfFzATfEgXcqpk8CkgMfbJD81McqjcJVez25a3kPxCR807evA==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.20.0", - "classnames": "^2.2.6", - "rc-resize-observer": "^1.0.0", - "rc-util": "^5.36.0" - }, - "engines": { - "node": ">=8.x" - }, - "peerDependencies": { - "react": ">=16.9.0", - "react-dom": ">=16.9.0" - } - }, - "node_modules/react": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", - "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", - "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" - }, - "peerDependencies": { - "react": "^18.3.1" - } - }, - "node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "license": "MIT" - }, - "node_modules/react-refresh": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", - "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resize-observer-polyfill": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", - "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==", - "license": "MIT" - }, - "node_modules/rollup": { - "version": "4.60.3", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.3.tgz", - "integrity": "sha512-pAQK9HalE84QSm4Po3EmWIZPd3FnjkShVkiMlz1iligWYkWQ7wHYd1PF/T7QZ5TVSD6uSTon5gBVMSM4JfBV+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.8" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.60.3", - "@rollup/rollup-android-arm64": "4.60.3", - "@rollup/rollup-darwin-arm64": "4.60.3", - "@rollup/rollup-darwin-x64": "4.60.3", - "@rollup/rollup-freebsd-arm64": "4.60.3", - "@rollup/rollup-freebsd-x64": "4.60.3", - "@rollup/rollup-linux-arm-gnueabihf": "4.60.3", - "@rollup/rollup-linux-arm-musleabihf": "4.60.3", - "@rollup/rollup-linux-arm64-gnu": "4.60.3", - "@rollup/rollup-linux-arm64-musl": "4.60.3", - "@rollup/rollup-linux-loong64-gnu": "4.60.3", - "@rollup/rollup-linux-loong64-musl": "4.60.3", - "@rollup/rollup-linux-ppc64-gnu": "4.60.3", - "@rollup/rollup-linux-ppc64-musl": "4.60.3", - "@rollup/rollup-linux-riscv64-gnu": "4.60.3", - "@rollup/rollup-linux-riscv64-musl": "4.60.3", - "@rollup/rollup-linux-s390x-gnu": "4.60.3", - "@rollup/rollup-linux-x64-gnu": "4.60.3", - "@rollup/rollup-linux-x64-musl": "4.60.3", - "@rollup/rollup-openbsd-x64": "4.60.3", - "@rollup/rollup-openharmony-arm64": "4.60.3", - "@rollup/rollup-win32-arm64-msvc": "4.60.3", - "@rollup/rollup-win32-ia32-msvc": "4.60.3", - "@rollup/rollup-win32-x64-gnu": "4.60.3", - "@rollup/rollup-win32-x64-msvc": "4.60.3", - "fsevents": "~2.3.2" - } - }, - "node_modules/scheduler": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", - "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0" - } - }, - "node_modules/scroll-into-view-if-needed": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/scroll-into-view-if-needed/-/scroll-into-view-if-needed-3.1.0.tgz", - "integrity": "sha512-49oNpRjWRvnU8NyGVmUaYG4jtTkNonFZI86MmGRDqBphEK2EXT9gdEUoQPZhuBM8yWHxCWbobltqYO5M4XrUvQ==", - "license": "MIT", - "dependencies": { - "compute-scroll-into-view": "^3.0.2" - } - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string-convert": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz", - "integrity": "sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A==", - "license": "MIT" - }, - "node_modules/stylis": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.4.0.tgz", - "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==", - "license": "MIT" - }, - "node_modules/throttle-debounce": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-5.0.2.tgz", - "integrity": "sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==", - "license": "MIT", - "engines": { - "node": ">=12.22" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.16", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", - "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.4" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/toggle-selection": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz", - "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==", - "license": "MIT" - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", - "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/vite": { - "version": "7.3.3", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.3.tgz", - "integrity": "sha512-/4XH147Ui7OGTjg3HbdWe5arnZQSbfuRzdr9Ec7TQi5I7R+ir0Rlc9GIvD4v0XZurELqA035KVXJXpR61xhiTA==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.27.0", - "fdir": "^6.5.0", - "picomatch": "^4.0.3", - "postcss": "^8.5.6", - "rollup": "^4.43.0", - "tinyglobby": "^0.2.15" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^20.19.0 || >=22.12.0", - "jiti": ">=1.21.0", - "less": "^4.0.0", - "lightningcss": "^1.21.0", - "sass": "^1.70.0", - "sass-embedded": "^1.70.0", - "stylus": ">=0.54.8", - "sugarss": "^5.0.0", - "terser": "^5.16.0", - "tsx": "^4.8.1", - "yaml": "^2.4.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" - } - } -} diff --git a/frontend-v2/package.json b/frontend-v2/package.json deleted file mode 100644 index 5cc222e..0000000 --- a/frontend-v2/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "docsearch-v2-frontend", - "version": "0.1.0", - "private": true, - "type": "module", - "scripts": { - "dev": "vite", - "build": "tsc && vite build", - "preview": "vite preview" - }, - "dependencies": { - "antd": "^5.27.6", - "react": "^18.3.1", - "react-dom": "^18.3.1" - }, - "devDependencies": { - "@types/react": "^18.3.23", - "@types/react-dom": "^18.3.7", - "@vitejs/plugin-react": "^5.1.0", - "typescript": "^5.9.3", - "vite": "^7.2.1" - } -} diff --git a/frontend-v2/src/main.tsx b/frontend-v2/src/main.tsx deleted file mode 100644 index 7345980..0000000 --- a/frontend-v2/src/main.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import React from "react"; -import ReactDOM from "react-dom/client"; - -import App from "./app/App"; -import "./styles.css"; - -ReactDOM.createRoot(document.getElementById("root")!).render( - - - , -); diff --git a/frontend-v2/tsconfig.json b/frontend-v2/tsconfig.json deleted file mode 100644 index 5b4f50b..0000000 --- a/frontend-v2/tsconfig.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], - "allowJs": false, - "skipLibCheck": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "module": "ESNext", - "moduleResolution": "Node", - "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, - "jsx": "react-jsx" - }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] -} diff --git a/frontend-v2/tsconfig.node.json b/frontend-v2/tsconfig.node.json deleted file mode 100644 index 65dbdb9..0000000 --- a/frontend-v2/tsconfig.node.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "module": "ESNext", - "moduleResolution": "Node" - }, - "include": ["vite.config.ts"] -} diff --git a/frontend-v2/vite.config.ts b/frontend-v2/vite.config.ts deleted file mode 100644 index 43a4002..0000000 --- a/frontend-v2/vite.config.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { defineConfig } from "vite"; -import react from "@vitejs/plugin-react"; - -export default defineConfig({ - plugins: [react()], - server: { - port: 5173, - }, -}); diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 5684ab0..33c2184 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,26 +1,10 @@ -FROM node:20-alpine AS builder +FROM node:22-alpine WORKDIR /app -# Install dependencies -COPY package*.json ./ -RUN npm ci +COPY frontend/package*.json ./ +RUN npm install -# Copy source -COPY . . +COPY frontend ./ -# Build -RUN npm run build - -# Production stage -FROM nginx:alpine - -# Copy built assets -COPY --from=builder /app/dist /usr/share/nginx/html - -# Copy nginx config -COPY nginx.conf /etc/nginx/conf.d/default.conf - -EXPOSE 80 - -CMD ["nginx", "-g", "daemon off;"] +CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5173"] diff --git a/frontend/index.html b/frontend/index.html index 3e8b2bf..8fa8f5d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,23 +1,9 @@ - + - - DocSearch AI - 문서 검색 시스템 - + DocSearch AI
diff --git a/frontend/nginx.conf b/frontend/nginx.conf deleted file mode 100644 index 2092ac0..0000000 --- a/frontend/nginx.conf +++ /dev/null @@ -1,46 +0,0 @@ -server { - listen 80; - server_name localhost; - root /usr/share/nginx/html; - index index.html; - - # Max upload size - client_max_body_size 100M; - - # Gzip - gzip on; - gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; - - # API proxy to backend - location /api/ { - client_max_body_size 100M; - proxy_pass http://docsearch-api:8000/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_cache_bypass $http_upgrade; - proxy_read_timeout 60s; - proxy_connect_timeout 60s; - } - - # SPA routing - location / { - try_files $uri $uri/ /index.html; - } - - # Cache static assets - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$ { - expires 1y; - add_header Cache-Control "public, immutable"; - } - - # No cache for HTML - location ~* \.html$ { - expires -1; - add_header Cache-Control "no-store, no-cache, must-revalidate"; - } -} diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 7315c12..132f157 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,36 +1,23 @@ { "name": "docsearch-frontend", - "version": "1.0.0", + "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "docsearch-frontend", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { - "@ant-design/icons": "^5.6.1", - "@tanstack/react-query": "^5.90.19", - "antd": "^5.22.0", - "axios": "^1.7.7", - "dayjs": "^1.11.13", + "antd": "^5.27.6", "react": "^18.3.1", - "react-dom": "^18.3.1", - "react-markdown": "^9.0.1", - "react-router-dom": "^6.28.0", - "zustand": "^5.0.0" + "react-dom": "^18.3.1" }, "devDependencies": { - "@types/node": "^25.0.10", - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", - "@typescript-eslint/eslint-plugin": "^8.15.0", - "@typescript-eslint/parser": "^8.15.0", - "@vitejs/plugin-react": "^4.3.3", - "eslint": "^8.57.1", - "eslint-plugin-react-hooks": "^5.0.0", - "eslint-plugin-react-refresh": "^0.4.14", - "typescript": "^5.6.3", - "vite": "^5.4.10" + "@types/react": "^18.3.23", + "@types/react-dom": "^18.3.7", + "@vitejs/plugin-react": "^5.1.0", + "typescript": "^5.9.3", + "vite": "^7.2.1" } }, "node_modules/@ant-design/colors": { @@ -131,9 +118,9 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.28.6.tgz", - "integrity": "sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", "dev": true, "license": "MIT", "dependencies": { @@ -146,9 +133,9 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.6.tgz", - "integrity": "sha512-2lfu57JtzctfIrcGMz992hyLlByuzgIk58+hhGCxjKZ3rWI82NnVLjXcaTqkI2NvlcvOskZaiZ5kjUALo3Lpxg==", + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.3.tgz", + "integrity": "sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==", "dev": true, "license": "MIT", "engines": { @@ -156,21 +143,21 @@ } }, "node_modules/@babel/core": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.6.tgz", - "integrity": "sha512-H3mcG6ZDLTlYfaSNi0iOKkigqMFvkTKlGUYlD8GW7nNOYRrevuA46iTypPyv+06V3fEmvvazfntkBU34L0azAw==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.28.6", - "@babel/generator": "^7.28.6", + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", "@babel/helper-compilation-targets": "^7.28.6", "@babel/helper-module-transforms": "^7.28.6", "@babel/helpers": "^7.28.6", - "@babel/parser": "^7.28.6", + "@babel/parser": "^7.29.0", "@babel/template": "^7.28.6", - "@babel/traverse": "^7.28.6", - "@babel/types": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", @@ -186,25 +173,15 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@babel/generator": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.6.tgz", - "integrity": "sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==", + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/parser": "^7.28.6", - "@babel/types": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" @@ -230,16 +207,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/@babel/helper-globals": { "version": "7.28.0", "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", @@ -323,27 +290,27 @@ } }, "node_modules/@babel/helpers": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", - "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz", + "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==", "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.28.6", - "@babel/types": "^7.28.6" + "@babel/types": "^7.29.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.6.tgz", - "integrity": "sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==", + "version": "7.29.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.3.tgz", + "integrity": "sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.28.6" + "@babel/types": "^7.29.0" }, "bin": { "parser": "bin/babel-parser.js" @@ -385,9 +352,9 @@ } }, "node_modules/@babel/runtime": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.6.tgz", - "integrity": "sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==", + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz", + "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==", "license": "MIT", "engines": { "node": ">=6.9.0" @@ -409,18 +376,18 @@ } }, "node_modules/@babel/traverse": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.6.tgz", - "integrity": "sha512-fgWX62k02qtjqdSNTAGxmKYY/7FSL9WAS1o2Hu5+I5m9T0yxZzr4cnrfXQ/MX0rIifthCSs6FKTlzYbJcPtMNg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.28.6", - "@babel/generator": "^7.28.6", + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.28.6", + "@babel/parser": "^7.29.0", "@babel/template": "^7.28.6", - "@babel/types": "^7.28.6", + "@babel/types": "^7.29.0", "debug": "^4.3.1" }, "engines": { @@ -428,9 +395,9 @@ } }, "node_modules/@babel/types": { - "version": "7.28.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.6.tgz", - "integrity": "sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", "dev": true, "license": "MIT", "dependencies": { @@ -454,9 +421,9 @@ "license": "MIT" }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", - "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", + "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", "cpu": [ "ppc64" ], @@ -467,13 +434,13 @@ "aix" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", - "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", + "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", "cpu": [ "arm" ], @@ -484,13 +451,13 @@ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", - "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", + "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", "cpu": [ "arm64" ], @@ -501,13 +468,13 @@ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", - "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", + "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", "cpu": [ "x64" ], @@ -518,13 +485,13 @@ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", - "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", + "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", "cpu": [ "arm64" ], @@ -535,13 +502,13 @@ "darwin" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", - "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", + "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", "cpu": [ "x64" ], @@ -552,13 +519,13 @@ "darwin" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", - "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", + "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", "cpu": [ "arm64" ], @@ -569,13 +536,13 @@ "freebsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", - "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", + "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", "cpu": [ "x64" ], @@ -586,13 +553,13 @@ "freebsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", - "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", + "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", "cpu": [ "arm" ], @@ -603,13 +570,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", - "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", + "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", "cpu": [ "arm64" ], @@ -620,13 +587,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", - "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", + "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", "cpu": [ "ia32" ], @@ -637,13 +604,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", - "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", + "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", "cpu": [ "loong64" ], @@ -654,13 +621,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", - "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", + "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", "cpu": [ "mips64el" ], @@ -671,13 +638,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", - "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", + "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", "cpu": [ "ppc64" ], @@ -688,13 +655,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", - "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", + "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", "cpu": [ "riscv64" ], @@ -705,13 +672,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", - "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", + "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", "cpu": [ "s390x" ], @@ -722,13 +689,13 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", - "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", + "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", "cpu": [ "x64" ], @@ -739,15 +706,15 @@ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", - "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", + "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", "cpu": [ - "x64" + "arm64" ], "dev": true, "license": "MIT", @@ -756,13 +723,13 @@ "netbsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", - "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", + "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", "cpu": [ "x64" ], @@ -770,67 +737,67 @@ "license": "MIT", "optional": true, "os": [ - "openbsd" + "netbsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", - "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", + "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", "cpu": [ - "x64" + "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "sunos" + "openbsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", - "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", + "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", "cpu": [ - "arm64" + "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "win32" + "openbsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", - "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", + "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", "cpu": [ - "ia32" + "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "win32" + "openharmony" ], "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/@esbuild/win32-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", - "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", + "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", "cpu": [ "x64" ], @@ -838,171 +805,63 @@ "license": "MIT", "optional": true, "os": [ - "win32" + "sunos" ], "engines": { - "node": ">=12" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", - "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", - "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=18" } }, - "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@eslint/eslintrc/node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", + "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">= 4" - } - }, - "node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" + "node": ">=18" } }, - "node_modules/@eslint/js": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", - "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", + "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", + "cpu": [ + "ia32" + ], "dev": true, "license": "MIT", + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", - "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", - "deprecated": "Use @eslint/config-array instead", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.3", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" + "node": ">=18" } }, - "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "node_modules/@esbuild/win32-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", + "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" + "node": ">=18" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "deprecated": "Use @eslint/object-schema instead", - "dev": true, - "license": "BSD-3-Clause" - }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -1053,44 +912,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/@rc-component/async-validator": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/@rc-component/async-validator/-/async-validator-5.1.0.tgz", @@ -1134,9 +955,9 @@ } }, "node_modules/@rc-component/mini-decimal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@rc-component/mini-decimal/-/mini-decimal-1.1.0.tgz", - "integrity": "sha512-jS4E7T9Li2GuYwI6PyiVXmxTiM6b07rlD9Ge8uGZSCz3WlzcG5ZK7g5bbuKNeZ9pgUuPK/5guV781ujdVpm4HQ==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@rc-component/mini-decimal/-/mini-decimal-1.1.3.tgz", + "integrity": "sha512-bk/FJ09fLf+NLODMAFll6CfYrHPBioTedhW6lxDBuuWucJEqFUd4l/D/5JgIi3dina6sYahB8iuPAZTNz2pMxw==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.18.0" @@ -1238,26 +1059,17 @@ "react-dom": ">=16.9.0" } }, - "node_modules/@remix-run/router": { - "version": "1.23.2", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.2.tgz", - "integrity": "sha512-Ic6m2U/rMjTkhERIa/0ZtXJP17QUi2CbWE7cqx4J58M8aA3QTfW+2UlQ4psvTX9IO1RfNVhK3pcpdjej7L+t2w==", - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, "node_modules/@rolldown/pluginutils": { - "version": "1.0.0-beta.27", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", - "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", + "version": "1.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz", + "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==", "dev": true, "license": "MIT" }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.56.0.tgz", - "integrity": "sha512-LNKIPA5k8PF1+jAFomGe3qN3bbIgJe/IlpDBwuVjrDKrJhVWywgnJvflMt/zkbVNLFtF1+94SljYQS6e99klnw==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.3.tgz", + "integrity": "sha512-x35CNW/ANXG3hE/EZpRU8MXX1JDN86hBb2wMGAtltkz7pc6cxgjpy1OMMfDosOQ+2hWqIkag/fGok1Yady9nGw==", "cpu": [ "arm" ], @@ -1269,9 +1081,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.56.0.tgz", - "integrity": "sha512-lfbVUbelYqXlYiU/HApNMJzT1E87UPGvzveGg2h0ktUNlOCxKlWuJ9jtfvs1sKHdwU4fzY7Pl8sAl49/XaEk6Q==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.3.tgz", + "integrity": "sha512-xw3xtkDApIOGayehp2+Rz4zimfkaX65r4t47iy+ymQB2G4iJCBBfj0ogVg5jpvjpn8UWn/+q9tprxleYeNp3Hw==", "cpu": [ "arm64" ], @@ -1283,9 +1095,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.56.0.tgz", - "integrity": "sha512-EgxD1ocWfhoD6xSOeEEwyE7tDvwTgZc8Bss7wCWe+uc7wO8G34HHCUH+Q6cHqJubxIAnQzAsyUsClt0yFLu06w==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.3.tgz", + "integrity": "sha512-vo6Y5Qfpx7/5EaamIwi0WqW2+zfiusVihKatLvtN1VFVy3D13uERk/6gZLU1UiHRL6fDXqj/ELIeVRGnvcTE1g==", "cpu": [ "arm64" ], @@ -1297,9 +1109,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.56.0.tgz", - "integrity": "sha512-1vXe1vcMOssb/hOF8iv52A7feWW2xnu+c8BV4t1F//m9QVLTfNVpEdja5ia762j/UEJe2Z1jAmEqZAK42tVW3g==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.3.tgz", + "integrity": "sha512-D+0QGcZhBzTN82weOnsSlY7V7+RMmPuF1CkbxyMAGE8+ZHeUjyb76ZiWmBlCu//AQQONvxcqRbwZTajZKqjuOw==", "cpu": [ "x64" ], @@ -1311,9 +1123,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.56.0.tgz", - "integrity": "sha512-bof7fbIlvqsyv/DtaXSck4VYQ9lPtoWNFCB/JY4snlFuJREXfZnm+Ej6yaCHfQvofJDXLDMTVxWscVSuQvVWUQ==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.3.tgz", + "integrity": "sha512-6HnvHCT7fDyj6R0Ph7A6x8dQS/S38MClRWeDLqc0MdfWkxjiu1HSDYrdPhqSILzjTIC/pnXbbJbo+ft+gy/9hQ==", "cpu": [ "arm64" ], @@ -1325,9 +1137,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.56.0.tgz", - "integrity": "sha512-KNa6lYHloW+7lTEkYGa37fpvPq+NKG/EHKM8+G/g9WDU7ls4sMqbVRV78J6LdNuVaeeK5WB9/9VAFbKxcbXKYg==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.3.tgz", + "integrity": "sha512-KHLgC3WKlUYW3ShFKnnosZDOJ0xjg9zp7au3sIm2bs/tGBeC2ipmvRh/N7JKi0t9Ue20C0dpEshi8WUubg+cnA==", "cpu": [ "x64" ], @@ -1339,9 +1151,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.56.0.tgz", - "integrity": "sha512-E8jKK87uOvLrrLN28jnAAAChNq5LeCd2mGgZF+fGF5D507WlG/Noct3lP/QzQ6MrqJ5BCKNwI9ipADB6jyiq2A==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.3.tgz", + "integrity": "sha512-DV6fJoxEYWJOvaZIsok7KrYl0tPvga5OZ2yvKHNNYyk/2roMLqQAbGhr78EQ5YhHpnhLKJD3S1WFusAkmUuV5g==", "cpu": [ "arm" ], @@ -1353,9 +1165,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.56.0.tgz", - "integrity": "sha512-jQosa5FMYF5Z6prEpTCCmzCXz6eKr/tCBssSmQGEeozA9tkRUty/5Vx06ibaOP9RCrW1Pvb8yp3gvZhHwTDsJw==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.3.tgz", + "integrity": "sha512-mQKoJAzvuOs6F+TZybQO4GOTSMUu7v0WdxEk24krQ/uUxXoPTtHjuaUuPmFhtBcM4K0ons8nrE3JyhTuCFtT/w==", "cpu": [ "arm" ], @@ -1367,9 +1179,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.56.0.tgz", - "integrity": "sha512-uQVoKkrC1KGEV6udrdVahASIsaF8h7iLG0U0W+Xn14ucFwi6uS539PsAr24IEF9/FoDtzMeeJXJIBo5RkbNWvQ==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.3.tgz", + "integrity": "sha512-Whjj2qoiJ6+OOJMGptTYazaJvjOJm+iKHpXQM1P3LzGjt7Ff++Tp7nH4N8J/BUA7R9IHfDyx4DJIflifwnbmIA==", "cpu": [ "arm64" ], @@ -1381,9 +1193,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.56.0.tgz", - "integrity": "sha512-vLZ1yJKLxhQLFKTs42RwTwa6zkGln+bnXc8ueFGMYmBTLfNu58sl5/eXyxRa2RarTkJbXl8TKPgfS6V5ijNqEA==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.3.tgz", + "integrity": "sha512-4YTNHKqGng5+yiZt3mg77nmyuCfmNfX4fPmyUapBcIk+BdwSwmCWGXOUxhXbBEkFHtoN5boLj/5NON+u5QC9tg==", "cpu": [ "arm64" ], @@ -1395,9 +1207,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.56.0.tgz", - "integrity": "sha512-FWfHOCub564kSE3xJQLLIC/hbKqHSVxy8vY75/YHHzWvbJL7aYJkdgwD/xGfUlL5UV2SB7otapLrcCj2xnF1dg==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.3.tgz", + "integrity": "sha512-SU3kNlhkpI4UqlUc2VXPGK9o886ZsSeGfMAX2ba2b8DKmMXq4AL7KUrkSWVbb7koVqx41Yczx6dx5PNargIrEA==", "cpu": [ "loong64" ], @@ -1409,9 +1221,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.56.0.tgz", - "integrity": "sha512-z1EkujxIh7nbrKL1lmIpqFTc/sr0u8Uk0zK/qIEFldbt6EDKWFk/pxFq3gYj4Bjn3aa9eEhYRlL3H8ZbPT1xvA==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.3.tgz", + "integrity": "sha512-6lDLl5h4TXpB1mTf2rQWnAk/LcXrx9vBfu/DT5TIPhvMhRWaZ5MxkIc8u4lJAmBo6klTe1ywXIUHFjylW505sg==", "cpu": [ "loong64" ], @@ -1423,9 +1235,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.56.0.tgz", - "integrity": "sha512-iNFTluqgdoQC7AIE8Q34R3AuPrJGJirj5wMUErxj22deOcY7XwZRaqYmB6ZKFHoVGqRcRd0mqO+845jAibKCkw==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.3.tgz", + "integrity": "sha512-BMo8bOw8evlup/8G+cj5xWtPyp93xPdyoSN16Zy90Q2QZ0ZYRhCt6ZJSwbrRzG9HApFabjwj2p25TUPDWrhzqQ==", "cpu": [ "ppc64" ], @@ -1437,9 +1249,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.56.0.tgz", - "integrity": "sha512-MtMeFVlD2LIKjp2sE2xM2slq3Zxf9zwVuw0jemsxvh1QOpHSsSzfNOTH9uYW9i1MXFxUSMmLpeVeUzoNOKBaWg==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.3.tgz", + "integrity": "sha512-E0L8X1dZN1/Rph+5VPF6Xj2G7JJvMACVXtamTJIDrVI44Y3K+G8gQaMEAavbqCGTa16InptiVrX6eM6pmJ+7qA==", "cpu": [ "ppc64" ], @@ -1451,9 +1263,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.56.0.tgz", - "integrity": "sha512-in+v6wiHdzzVhYKXIk5U74dEZHdKN9KH0Q4ANHOTvyXPG41bajYRsy7a8TPKbYPl34hU7PP7hMVHRvv/5aCSew==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.3.tgz", + "integrity": "sha512-oZJ/WHaVfHUiRAtmTAeo3DcevNsVvH8mbvodjZy7D5QKvCefO371SiKRpxoDcCxB3PTRTLayWBkvmDQKTcX/sw==", "cpu": [ "riscv64" ], @@ -1465,9 +1277,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.56.0.tgz", - "integrity": "sha512-yni2raKHB8m9NQpI9fPVwN754mn6dHQSbDTwxdr9SE0ks38DTjLMMBjrwvB5+mXrX+C0npX0CVeCUcvvvD8CNQ==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.3.tgz", + "integrity": "sha512-Dhbyh7j9FybM3YaTgaHmVALwA8AkUwTPccyCQ79TG9AJUsMQqgN1DDEZNr4+QUfwiWvLDumW5vdwzoeUF+TNxQ==", "cpu": [ "riscv64" ], @@ -1479,9 +1291,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.56.0.tgz", - "integrity": "sha512-zhLLJx9nQPu7wezbxt2ut+CI4YlXi68ndEve16tPc/iwoylWS9B3FxpLS2PkmfYgDQtosah07Mj9E0khc3Y+vQ==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.3.tgz", + "integrity": "sha512-cJd1X5XhHHlltkaypz1UcWLA8AcoIi1aWhsvaWDskD1oz2eKCypnqvTQ8ykMNI0RSmm7NkTdSqSSD7zM0xa6Ig==", "cpu": [ "s390x" ], @@ -1493,9 +1305,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.56.0.tgz", - "integrity": "sha512-MVC6UDp16ZSH7x4rtuJPAEoE1RwS8N4oK9DLHy3FTEdFoUTCFVzMfJl/BVJ330C+hx8FfprA5Wqx4FhZXkj2Kw==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.3.tgz", + "integrity": "sha512-DAZDBHQfG2oQuhY7mc6I3/qB4LU2fQCjRvxbDwd/Jdvb9fypP4IJ4qmtu6lNjes6B531AI8cg1aKC2di97bUxA==", "cpu": [ "x64" ], @@ -1507,9 +1319,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.56.0.tgz", - "integrity": "sha512-ZhGH1eA4Qv0lxaV00azCIS1ChedK0V32952Md3FtnxSqZTBTd6tgil4nZT5cU8B+SIw3PFYkvyR4FKo2oyZIHA==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.3.tgz", + "integrity": "sha512-cRxsE8c13mZOh3vP+wLDxpQBRrOHDIGOWyDL93Sy0Ga8y515fBcC2pjUfFwUe5T7tqvTvWbCpg1URM/AXdWIXA==", "cpu": [ "x64" ], @@ -1521,9 +1333,9 @@ ] }, "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.56.0.tgz", - "integrity": "sha512-O16XcmyDeFI9879pEcmtWvD/2nyxR9mF7Gs44lf1vGGx8Vg2DRNx11aVXBEqOQhWb92WN4z7fW/q4+2NYzCbBA==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.3.tgz", + "integrity": "sha512-QaWcIgRxqEdQdhJqW4DJctsH6HCmo5vHxY0krHSX4jMtOqfzC+dqDGuHM87bu4H8JBeibWx7jFz+h6/4C8wA5Q==", "cpu": [ "x64" ], @@ -1535,9 +1347,9 @@ ] }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.56.0.tgz", - "integrity": "sha512-LhN/Reh+7F3RCgQIRbgw8ZMwUwyqJM+8pXNT6IIJAqm2IdKkzpCh/V9EdgOMBKuebIrzswqy4ATlrDgiOwbRcQ==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.3.tgz", + "integrity": "sha512-AaXwSvUi3QIPtroAUw1t5yHGIyqKEXwH54WUocFolZhpGDruJcs8c+xPNDRn4XiQsS7MEwnYsHW2l0MBLDMkWg==", "cpu": [ "arm64" ], @@ -1549,9 +1361,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.56.0.tgz", - "integrity": "sha512-kbFsOObXp3LBULg1d3JIUQMa9Kv4UitDmpS+k0tinPBz3watcUiV2/LUDMMucA6pZO3WGE27P7DsfaN54l9ing==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.3.tgz", + "integrity": "sha512-65LAKM/bAWDqKNEelHlcHvm2V+Vfb8C6INFxQXRHCvaVN1rJfwr4NvdP4FyzUaLqWfaCGaadf6UbTm8xJeYfEg==", "cpu": [ "arm64" ], @@ -1563,9 +1375,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.56.0.tgz", - "integrity": "sha512-vSSgny54D6P4vf2izbtFm/TcWYedw7f8eBrOiGGecyHyQB9q4Kqentjaj8hToe+995nob/Wv48pDqL5a62EWtg==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.3.tgz", + "integrity": "sha512-EEM2gyhBF5MFnI6vMKdX1LAosE627RGBzIoGMdLloPZkXrUN0Ckqgr2Qi8+J3zip/8NVVro3/FjB+tjhZUgUHA==", "cpu": [ "ia32" ], @@ -1577,9 +1389,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.56.0.tgz", - "integrity": "sha512-FeCnkPCTHQJFbiGG49KjV5YGW/8b9rrXAM2Mz2kiIoktq2qsJxRD5giEMEOD2lPdgs72upzefaUvS+nc8E3UzQ==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.3.tgz", + "integrity": "sha512-E5Eb5H/DpxaoXH++Qkv28RcUJboMopmdDUALBczvHMf7hNIxaDZqwY5lK12UK1BHacSmvupoEWGu+n993Z0y1A==", "cpu": [ "x64" ], @@ -1591,9 +1403,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.56.0.tgz", - "integrity": "sha512-H8AE9Ur/t0+1VXujj90w0HrSOuv0Nq9r1vSZF2t5km20NTfosQsGGUXDaKdQZzwuLts7IyL1fYT4hM95TI9c4g==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.3.tgz", + "integrity": "sha512-hPt/bgL5cE+Qp+/TPHBqptcAgPzgj46mPcg/16zNUmbQk0j+mOEQV/+Lqu8QRtDV3Ek95Q6FeFITpuhl6OTsAA==", "cpu": [ "x64" ], @@ -1604,32 +1416,6 @@ "win32" ] }, - "node_modules/@tanstack/query-core": { - "version": "5.90.19", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.90.19.tgz", - "integrity": "sha512-GLW5sjPVIvH491VV1ufddnfldyVB+teCnpPIvweEfkpRx7CfUmUGhoh9cdcUKBh/KwVxk22aNEDxeTsvmyB/WA==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - } - }, - "node_modules/@tanstack/react-query": { - "version": "5.90.19", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.90.19.tgz", - "integrity": "sha512-qTZRZ4QyTzQc+M0IzrbKHxSeISUmRB3RPGmao5bT+sI6ayxSRhn0FXEnT5Hg3as8SBFcRosrXXRFB+yAcxVxJQ==", - "license": "MIT", - "dependencies": { - "@tanstack/query-core": "5.90.19" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/tannerlinsley" - }, - "peerDependencies": { - "react": "^18 || ^19" - } - }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -1675,74 +1461,25 @@ "@babel/types": "^7.28.2" } }, - "node_modules/@types/debug": { - "version": "4.1.12", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", - "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", - "license": "MIT", - "dependencies": { - "@types/ms": "*" - } - }, "node_modules/@types/estree": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "license": "MIT" - }, - "node_modules/@types/estree-jsx": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz", - "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==", - "license": "MIT", - "dependencies": { - "@types/estree": "*" - } - }, - "node_modules/@types/hast": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", - "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", - "license": "MIT", - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/@types/mdast": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", - "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", - "license": "MIT", - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/@types/ms": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", - "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "25.0.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.10.tgz", - "integrity": "sha512-zWW5KPngR/yvakJgGOmZ5vTBemDoSqF3AcV/LrO5u5wTWyEAVVh+IT39G4gtyAkh3CtTZs8aX/yRM82OfzHJRg==", "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~7.16.0" - } + "license": "MIT" }, "node_modules/@types/prop-types": { "version": "15.7.15", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", + "dev": true, "license": "MIT" }, "node_modules/@types/react": { - "version": "18.3.27", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.27.tgz", - "integrity": "sha512-cisd7gxkzjBKU2GgdYrTdtQx1SORymWyaAFhaxQPK9bYO9ot3Y5OikQRvY0VYQtvwjeQnizCINJAenh/V7MK2w==", + "version": "18.3.28", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.28.tgz", + "integrity": "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==", + "dev": true, "license": "MIT", "dependencies": { "@types/prop-types": "*", @@ -1759,342 +1496,31 @@ "@types/react": "^18.0.0" } }, - "node_modules/@types/unist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", - "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", - "license": "MIT" - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.53.1.tgz", - "integrity": "sha512-cFYYFZ+oQFi6hUnBTbLRXfTJiaQtYE3t4O692agbBl+2Zy+eqSKWtPjhPXJu1G7j4RLjKgeJPDdq3EqOwmX5Ag==", + "node_modules/@vitejs/plugin-react": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz", + "integrity": "sha512-YmKkfhOAi3wsB1PhJq5Scj3GXMn3WvtQ/JC0xoopuHoXSdmtdStOpFrYaT1kie2YgFBcIe64ROzMYRjCrYOdYw==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.53.1", - "@typescript-eslint/type-utils": "8.53.1", - "@typescript-eslint/utils": "8.53.1", - "@typescript-eslint/visitor-keys": "8.53.1", - "ignore": "^7.0.5", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.4.0" + "@babel/core": "^7.29.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-rc.3", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.18.0" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "node": "^20.19.0 || >=22.12.0" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.53.1", - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/@typescript-eslint/parser": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.53.1.tgz", - "integrity": "sha512-nm3cvFN9SqZGXjmw5bZ6cGmvJSyJPn0wU9gHAZZHDnZl2wF9PhHv78Xf06E0MaNk4zLVHL8hb2/c32XvyJOLQg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/scope-manager": "8.53.1", - "@typescript-eslint/types": "8.53.1", - "@typescript-eslint/typescript-estree": "8.53.1", - "@typescript-eslint/visitor-keys": "8.53.1", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.53.1.tgz", - "integrity": "sha512-WYC4FB5Ra0xidsmlPb+1SsnaSKPmS3gsjIARwbEkHkoWloQmuzcfypljaJcR78uyLA1h8sHdWWPHSLDI+MtNog==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.53.1", - "@typescript-eslint/types": "^8.53.1", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.53.1.tgz", - "integrity": "sha512-Lu23yw1uJMFY8cUeq7JlrizAgeQvWugNQzJp8C3x8Eo5Jw5Q2ykMdiiTB9vBVOOUBysMzmRRmUfwFrZuI2C4SQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.53.1", - "@typescript-eslint/visitor-keys": "8.53.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.53.1.tgz", - "integrity": "sha512-qfvLXS6F6b1y43pnf0pPbXJ+YoXIC7HKg0UGZ27uMIemKMKA6XH2DTxsEDdpdN29D+vHV07x/pnlPNVLhdhWiA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.53.1.tgz", - "integrity": "sha512-MOrdtNvyhy0rHyv0ENzub1d4wQYKb2NmIqG7qEqPWFW7Mpy2jzFC3pQ2yKDvirZB7jypm5uGjF2Qqs6OIqu47w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.53.1", - "@typescript-eslint/typescript-estree": "8.53.1", - "@typescript-eslint/utils": "8.53.1", - "debug": "^4.4.3", - "ts-api-utils": "^2.4.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.53.1.tgz", - "integrity": "sha512-jr/swrr2aRmUAUjW5/zQHbMaui//vQlsZcJKijZf3M26bnmLj8LyZUpj8/Rd6uzaek06OWsqdofN/Thenm5O8A==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.53.1.tgz", - "integrity": "sha512-RGlVipGhQAG4GxV1s34O91cxQ/vWiHJTDHbXRr0li2q/BGg3RR/7NM8QDWgkEgrwQYCvmJV9ichIwyoKCQ+DTg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.53.1", - "@typescript-eslint/tsconfig-utils": "8.53.1", - "@typescript-eslint/types": "8.53.1", - "@typescript-eslint/visitor-keys": "8.53.1", - "debug": "^4.4.3", - "minimatch": "^9.0.5", - "semver": "^7.7.3", - "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.4.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.53.1.tgz", - "integrity": "sha512-c4bMvGVWW4hv6JmDUEG7fSYlWOl3II2I4ylt0NM+seinYQlZMQIaKaXIIVJWt9Ofh6whrpM+EdDQXKXjNovvrg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.53.1", - "@typescript-eslint/types": "8.53.1", - "@typescript-eslint/typescript-estree": "8.53.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.53.1.tgz", - "integrity": "sha512-oy+wV7xDKFPRyNggmXuZQSBzvoLnpmJs+GhzRhPjrxl2b/jIlyjVokzm47CZCDUdXKr2zd7ZLodPfOBpOPyPlg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.53.1", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@ungap/structured-clone": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", - "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", - "license": "ISC" - }, - "node_modules/@vitejs/plugin-react": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", - "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.28.0", - "@babel/plugin-transform-react-jsx-self": "^7.27.1", - "@babel/plugin-transform-react-jsx-source": "^7.27.1", - "@rolldown/pluginutils": "1.0.0-beta.27", - "@types/babel__core": "^7.20.5", - "react-refresh": "^0.17.0" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "peerDependencies": { - "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" - } - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/antd": { - "version": "5.29.3", - "resolved": "https://registry.npmjs.org/antd/-/antd-5.29.3.tgz", - "integrity": "sha512-3DdbGCa9tWAJGcCJ6rzR8EJFsv2CtyEbkVabZE14pfgUHfCicWCj0/QzQVLDYg8CPfQk9BH7fHCoTXHTy7MP/A==", + "node_modules/antd": { + "version": "5.29.3", + "resolved": "https://registry.npmjs.org/antd/-/antd-5.29.3.tgz", + "integrity": "sha512-3DdbGCa9tWAJGcCJ6rzR8EJFsv2CtyEbkVabZE14pfgUHfCicWCj0/QzQVLDYg8CPfQk9BH7fHCoTXHTy7MP/A==", "license": "MIT", "dependencies": { "@ant-design/colors": "^7.2.1", @@ -2156,71 +1582,23 @@ "react-dom": ">=16.9.0" } }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "license": "MIT" - }, - "node_modules/axios": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz", - "integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==", - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.4", - "proxy-from-env": "^1.1.0" - } - }, - "node_modules/bail": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", - "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, "node_modules/baseline-browser-mapping": { - "version": "2.9.17", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.17.tgz", - "integrity": "sha512-agD0MgJFUP/4nvjqzIB29zRPUuCF7Ge6mEv9s8dHrtYD7QWXRcx75rOADE/d5ah1NI+0vkDl0yorDd5U852IQQ==", + "version": "2.10.29", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.29.tgz", + "integrity": "sha512-Asa2krT+XTPZINCS+2QcyS8WTkObE77RwkydwF7h6DmnKqbvlalz93m/dnphUyCa6SWSP51VgtEUf2FN+gelFQ==", "dev": true, "license": "Apache-2.0", "bin": { - "baseline-browser-mapping": "dist/cli.js" - } - }, - "node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" } }, "node_modules/browserslist": { - "version": "4.28.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", - "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", "dev": true, "funding": [ { @@ -2238,11 +1616,11 @@ ], "license": "MIT", "dependencies": { - "baseline-browser-mapping": "^2.9.0", - "caniuse-lite": "^1.0.30001759", - "electron-to-chromium": "^1.5.263", - "node-releases": "^2.0.27", - "update-browserslist-db": "^1.2.0" + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" }, "bin": { "browserslist": "cli.js" @@ -2251,33 +1629,10 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/caniuse-lite": { - "version": "1.0.30001765", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001765.tgz", - "integrity": "sha512-LWcNtSyZrakjECqmpP4qdg0MMGdN368D7X8XvvAqOcqMv0RxnlqVKZl2V6/mBR68oYMxOZPLw/gO7DuisMHUvQ==", + "version": "1.0.30001792", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001792.tgz", + "integrity": "sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw==", "dev": true, "funding": [ { @@ -2295,134 +1650,18 @@ ], "license": "CC-BY-4.0" }, - "node_modules/ccount": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", - "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/character-entities": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", - "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-html4": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", - "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-legacy": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", - "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-reference-invalid": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz", - "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, "node_modules/classnames": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==", "license": "MIT" }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/comma-separated-tokens": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", - "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, "node_modules/compute-scroll-into-view": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.1.1.tgz", "integrity": "sha512-VRhuHOLoKYOy4UbilLbUzbYg93XLjv2PncJC50EuTWPA3gaja1UjBsUP/D/9/juV3vQFr6XBEzn9KCAHdUvOHw==", "license": "MIT" }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -2439,21 +1678,6 @@ "toggle-selection": "^1.0.6" } }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/csstype": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", @@ -2461,15 +1685,16 @@ "license": "MIT" }, "node_modules/dayjs": { - "version": "1.11.19", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz", - "integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==", + "version": "1.11.20", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.20.tgz", + "integrity": "sha512-YbwwqR/uYpeoP4pu043q+LTDLFBLApUP6VxRihdfNTqu4ubqMlGDLd6ErXhEgsyvY0K6nCs7nggYumAN+9uEuQ==", "license": "MIT" }, "node_modules/debug": { "version": "4.4.3", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -2480,1952 +1705,206 @@ "peerDependenciesMeta": { "supports-color": { "optional": true - } - } - }, - "node_modules/decode-named-character-reference": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz", - "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==", - "license": "MIT", - "dependencies": { - "character-entities": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/dequal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/devlop": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", - "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", - "license": "MIT", - "dependencies": { - "dequal": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.5.267", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", - "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", - "dev": true, - "license": "ISC" - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/esbuild": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", - "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.21.5", - "@esbuild/android-arm": "0.21.5", - "@esbuild/android-arm64": "0.21.5", - "@esbuild/android-x64": "0.21.5", - "@esbuild/darwin-arm64": "0.21.5", - "@esbuild/darwin-x64": "0.21.5", - "@esbuild/freebsd-arm64": "0.21.5", - "@esbuild/freebsd-x64": "0.21.5", - "@esbuild/linux-arm": "0.21.5", - "@esbuild/linux-arm64": "0.21.5", - "@esbuild/linux-ia32": "0.21.5", - "@esbuild/linux-loong64": "0.21.5", - "@esbuild/linux-mips64el": "0.21.5", - "@esbuild/linux-ppc64": "0.21.5", - "@esbuild/linux-riscv64": "0.21.5", - "@esbuild/linux-s390x": "0.21.5", - "@esbuild/linux-x64": "0.21.5", - "@esbuild/netbsd-x64": "0.21.5", - "@esbuild/openbsd-x64": "0.21.5", - "@esbuild/sunos-x64": "0.21.5", - "@esbuild/win32-arm64": "0.21.5", - "@esbuild/win32-ia32": "0.21.5", - "@esbuild/win32-x64": "0.21.5" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", - "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", - "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.1", - "@humanwhocodes/config-array": "^0.13.0", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-plugin-react-hooks": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz", - "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" - } - }, - "node_modules/eslint-plugin-react-refresh": { - "version": "0.4.26", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.26.tgz", - "integrity": "sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "eslint": ">=8.40" - } - }, - "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/eslint/node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/eslint/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", - "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-util-is-identifier-name": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz", - "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "license": "MIT" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fastq": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", - "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", - "dev": true, - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true, - "license": "ISC" - }, - "node_modules/follow-redirects": { - "version": "1.15.11", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", - "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "license": "MIT", - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/form-data": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", - "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true, - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true, - "license": "MIT" - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hast-util-to-jsx-runtime": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz", - "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==", - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "devlop": "^1.0.0", - "estree-util-is-identifier-name": "^3.0.0", - "hast-util-whitespace": "^3.0.0", - "mdast-util-mdx-expression": "^2.0.0", - "mdast-util-mdx-jsx": "^3.0.0", - "mdast-util-mdxjs-esm": "^2.0.0", - "property-information": "^7.0.0", - "space-separated-tokens": "^2.0.0", - "style-to-js": "^1.0.0", - "unist-util-position": "^5.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/hast-util-whitespace": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", - "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/html-url-attributes": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz", - "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/ignore": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", - "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "dev": true, - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/inline-style-parser": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz", - "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==", - "license": "MIT" - }, - "node_modules/is-alphabetical": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", - "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-alphanumerical": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", - "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", - "license": "MIT", - "dependencies": { - "is-alphabetical": "^2.0.0", - "is-decimal": "^2.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-decimal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", - "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-hexadecimal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz", - "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/json2mq": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz", - "integrity": "sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==", - "license": "MIT", - "dependencies": { - "string-convert": "^0.2.0" - } - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/longest-streak": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", - "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/mdast-util-from-markdown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz", - "integrity": "sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0", - "@types/unist": "^3.0.0", - "decode-named-character-reference": "^1.0.0", - "devlop": "^1.0.0", - "mdast-util-to-string": "^4.0.0", - "micromark": "^4.0.0", - "micromark-util-decode-numeric-character-reference": "^2.0.0", - "micromark-util-decode-string": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0", - "unist-util-stringify-position": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-mdx-expression": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz", - "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==", - "license": "MIT", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-mdx-jsx": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz", - "integrity": "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==", - "license": "MIT", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "@types/unist": "^3.0.0", - "ccount": "^2.0.0", - "devlop": "^1.1.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0", - "parse-entities": "^4.0.0", - "stringify-entities": "^4.0.0", - "unist-util-stringify-position": "^4.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-mdxjs-esm": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz", - "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==", - "license": "MIT", - "dependencies": { - "@types/estree-jsx": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-phrasing": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", - "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0", - "unist-util-is": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-hast": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz", - "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "@ungap/structured-clone": "^1.0.0", - "devlop": "^1.0.0", - "micromark-util-sanitize-uri": "^2.0.0", - "trim-lines": "^3.0.0", - "unist-util-position": "^5.0.0", - "unist-util-visit": "^5.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-markdown": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz", - "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0", - "@types/unist": "^3.0.0", - "longest-streak": "^3.0.0", - "mdast-util-phrasing": "^4.0.0", - "mdast-util-to-string": "^4.0.0", - "micromark-util-classify-character": "^2.0.0", - "micromark-util-decode-string": "^2.0.0", - "unist-util-visit": "^5.0.0", - "zwitch": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/mdast-util-to-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", - "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/micromark": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz", - "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "@types/debug": "^4.0.0", - "debug": "^4.0.0", - "decode-named-character-reference": "^1.0.0", - "devlop": "^1.0.0", - "micromark-core-commonmark": "^2.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-chunked": "^2.0.0", - "micromark-util-combine-extensions": "^2.0.0", - "micromark-util-decode-numeric-character-reference": "^2.0.0", - "micromark-util-encode": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0", - "micromark-util-resolve-all": "^2.0.0", - "micromark-util-sanitize-uri": "^2.0.0", - "micromark-util-subtokenize": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-core-commonmark": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz", - "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "devlop": "^1.0.0", - "micromark-factory-destination": "^2.0.0", - "micromark-factory-label": "^2.0.0", - "micromark-factory-space": "^2.0.0", - "micromark-factory-title": "^2.0.0", - "micromark-factory-whitespace": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-chunked": "^2.0.0", - "micromark-util-classify-character": "^2.0.0", - "micromark-util-html-tag-name": "^2.0.0", - "micromark-util-normalize-identifier": "^2.0.0", - "micromark-util-resolve-all": "^2.0.0", - "micromark-util-subtokenize": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-destination": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz", - "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-label": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz", - "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "devlop": "^1.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-space": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz", - "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-title": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz", - "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-factory-whitespace": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz", - "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-factory-space": "^2.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-character": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", - "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-chunked": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz", - "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-classify-character": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", - "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-combine-extensions": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", - "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-chunked": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-decode-numeric-character-reference": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", - "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-decode-string": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", - "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "decode-named-character-reference": "^1.0.0", - "micromark-util-character": "^2.0.0", - "micromark-util-decode-numeric-character-reference": "^2.0.0", - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-encode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", - "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT" - }, - "node_modules/micromark-util-html-tag-name": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz", - "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT" - }, - "node_modules/micromark-util-normalize-identifier": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz", - "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-resolve-all": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz", - "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-sanitize-uri": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", - "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "micromark-util-character": "^2.0.0", - "micromark-util-encode": "^2.0.0", - "micromark-util-symbol": "^2.0.0" - } - }, - "node_modules/micromark-util-subtokenize": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz", - "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT", - "dependencies": { - "devlop": "^1.0.0", - "micromark-util-chunked": "^2.0.0", - "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" - } - }, - "node_modules/micromark-util-symbol": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", - "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT" - }, - "node_modules/micromark-util-types": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", - "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", - "funding": [ - { - "type": "GitHub Sponsors", - "url": "https://github.com/sponsors/unifiedjs" - }, - { - "type": "OpenCollective", - "url": "https://opencollective.com/unified" - } - ], - "license": "MIT" - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + } } }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" + "node_modules/electron-to-chromium": { + "version": "1.5.353", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.353.tgz", + "integrity": "sha512-kOrWphBi8TOZyiJZqsgqIle0lw+tzmnQK83pV9dZUd01Nm2POECSyFQMAuarzZdYqQW7FH9RaYOuaRo3h+bQ3w==", + "dev": true, + "license": "ISC" }, - "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "node_modules/esbuild": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", + "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], + "hasInstallScript": true, "license": "MIT", "bin": { - "nanoid": "bin/nanoid.cjs" + "esbuild": "bin/esbuild" }, "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.7", + "@esbuild/android-arm": "0.27.7", + "@esbuild/android-arm64": "0.27.7", + "@esbuild/android-x64": "0.27.7", + "@esbuild/darwin-arm64": "0.27.7", + "@esbuild/darwin-x64": "0.27.7", + "@esbuild/freebsd-arm64": "0.27.7", + "@esbuild/freebsd-x64": "0.27.7", + "@esbuild/linux-arm": "0.27.7", + "@esbuild/linux-arm64": "0.27.7", + "@esbuild/linux-ia32": "0.27.7", + "@esbuild/linux-loong64": "0.27.7", + "@esbuild/linux-mips64el": "0.27.7", + "@esbuild/linux-ppc64": "0.27.7", + "@esbuild/linux-riscv64": "0.27.7", + "@esbuild/linux-s390x": "0.27.7", + "@esbuild/linux-x64": "0.27.7", + "@esbuild/netbsd-arm64": "0.27.7", + "@esbuild/netbsd-x64": "0.27.7", + "@esbuild/openbsd-arm64": "0.27.7", + "@esbuild/openbsd-x64": "0.27.7", + "@esbuild/openharmony-arm64": "0.27.7", + "@esbuild/sunos-x64": "0.27.7", + "@esbuild/win32-arm64": "0.27.7", + "@esbuild/win32-ia32": "0.27.7", + "@esbuild/win32-x64": "0.27.7" } }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=6" + } }, - "node_modules/node-releases": { - "version": "2.0.27", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", - "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, - "license": "ISC", - "dependencies": { - "wrappy": "1" + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, "engines": { - "node": ">= 0.8.0" + "node": ">=6.9.0" } }, - "node_modules/p-limit": { + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/jsesc": { "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" + "bin": { + "jsesc": "bin/jsesc" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=6" } }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, + "node_modules/json2mq": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz", + "integrity": "sha512-SzoRg7ux5DWTII9J2qkrZrqV1gt+rTaoufMxEzXbS26Uid0NwaJd123HcoB80TgubEppxxIGdNxCx50fEoEWQA==", "license": "MIT", "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "string-convert": "^0.2.0" } }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" + "bin": { + "json5": "lib/cli.js" }, "engines": { "node": ">=6" } }, - "node_modules/parse-entities": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz", - "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==", + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "license": "MIT", "dependencies": { - "@types/unist": "^2.0.0", - "character-entities-legacy": "^3.0.0", - "character-reference-invalid": "^2.0.0", - "decode-named-character-reference": "^1.0.0", - "is-alphanumerical": "^2.0.0", - "is-decimal": "^2.0.0", - "is-hexadecimal": "^2.0.0" + "js-tokens": "^3.0.0 || ^4.0.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "bin": { + "loose-envify": "cli.js" } }, - "node_modules/parse-entities/node_modules/@types/unist": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", - "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==", - "license": "MIT" - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, "engines": { - "node": ">=0.10.0" + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "node_modules/node-releases": { + "version": "2.0.44", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.44.tgz", + "integrity": "sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } + "license": "MIT" }, "node_modules/picocolors": { "version": "1.1.1", @@ -4435,9 +1914,9 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", "engines": { @@ -4448,9 +1927,9 @@ } }, "node_modules/postcss": { - "version": "8.5.6", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "version": "8.5.14", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz", + "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==", "dev": true, "funding": [ { @@ -4476,63 +1955,6 @@ "node": "^10 || ^12 || >=14" } }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/property-information": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz", - "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "license": "MIT" - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/rc-cascader": { "version": "3.34.0", "resolved": "https://registry.npmjs.org/rc-cascader/-/rc-cascader-3.34.0.tgz", @@ -5156,170 +2578,40 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", "license": "MIT", - "dependencies": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.2" - }, - "peerDependencies": { - "react": "^18.3.1" - } - }, - "node_modules/react-is": { - "version": "18.3.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", - "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", - "license": "MIT" - }, - "node_modules/react-markdown": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-9.1.0.tgz", - "integrity": "sha512-xaijuJB0kzGiUdG7nc2MOMDUDBWPyGAjZtUrow9XxUeua8IqeP+VlIfAZ3bphpcLTnSZXz6z9jcVC/TCwbfgdw==", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "devlop": "^1.0.0", - "hast-util-to-jsx-runtime": "^2.0.0", - "html-url-attributes": "^3.0.0", - "mdast-util-to-hast": "^13.0.0", - "remark-parse": "^11.0.0", - "remark-rehype": "^11.0.0", - "unified": "^11.0.0", - "unist-util-visit": "^5.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - }, - "peerDependencies": { - "@types/react": ">=18", - "react": ">=18" - } - }, - "node_modules/react-refresh": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", - "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-router": { - "version": "6.30.3", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.3.tgz", - "integrity": "sha512-XRnlbKMTmktBkjCLE8/XcZFlnHvr2Ltdr1eJX4idL55/9BbORzyZEaIkBFDhFGCEWBBItsVrDxwx3gnisMitdw==", - "license": "MIT", - "dependencies": { - "@remix-run/router": "1.23.2" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "react": ">=16.8" - } - }, - "node_modules/react-router-dom": { - "version": "6.30.3", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.30.3.tgz", - "integrity": "sha512-pxPcv1AczD4vso7G4Z3TKcvlxK7g7TNt3/FNGMhfqyntocvYKj+GCatfigGDjbLozC4baguJ0ReCigoDJXb0ag==", - "license": "MIT", - "dependencies": { - "@remix-run/router": "1.23.2", - "react-router": "6.30.3" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "react": ">=16.8", - "react-dom": ">=16.8" - } - }, - "node_modules/remark-parse": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz", - "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==", - "license": "MIT", - "dependencies": { - "@types/mdast": "^4.0.0", - "mdast-util-from-markdown": "^2.0.0", - "micromark-util-types": "^2.0.0", - "unified": "^11.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/remark-rehype": { - "version": "11.1.2", - "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz", - "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/mdast": "^4.0.0", - "mdast-util-to-hast": "^13.0.0", - "unified": "^11.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/resize-observer-polyfill": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", - "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==", - "license": "MIT" - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" } }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "license": "MIT" + }, + "node_modules/react-refresh": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", + "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", "dev": true, "license": "MIT", "engines": { - "iojs": ">=1.0.0", "node": ">=0.10.0" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "deprecated": "Rimraf versions prior to v4 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } + "node_modules/resize-observer-polyfill": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==", + "license": "MIT" }, "node_modules/rollup": { - "version": "4.56.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.56.0.tgz", - "integrity": "sha512-9FwVqlgUHzbXtDg9RCMgodF3Ua4Na6Gau+Sdt9vyCN4RhHfVKX2DCHy3BjMLTDd47ITDhYAnTwGulWTblJSDLg==", + "version": "4.60.3", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.3.tgz", + "integrity": "sha512-pAQK9HalE84QSm4Po3EmWIZPd3FnjkShVkiMlz1iligWYkWQ7wHYd1PF/T7QZ5TVSD6uSTon5gBVMSM4JfBV+A==", "dev": true, "license": "MIT", "dependencies": { @@ -5333,58 +2625,34 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.56.0", - "@rollup/rollup-android-arm64": "4.56.0", - "@rollup/rollup-darwin-arm64": "4.56.0", - "@rollup/rollup-darwin-x64": "4.56.0", - "@rollup/rollup-freebsd-arm64": "4.56.0", - "@rollup/rollup-freebsd-x64": "4.56.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.56.0", - "@rollup/rollup-linux-arm-musleabihf": "4.56.0", - "@rollup/rollup-linux-arm64-gnu": "4.56.0", - "@rollup/rollup-linux-arm64-musl": "4.56.0", - "@rollup/rollup-linux-loong64-gnu": "4.56.0", - "@rollup/rollup-linux-loong64-musl": "4.56.0", - "@rollup/rollup-linux-ppc64-gnu": "4.56.0", - "@rollup/rollup-linux-ppc64-musl": "4.56.0", - "@rollup/rollup-linux-riscv64-gnu": "4.56.0", - "@rollup/rollup-linux-riscv64-musl": "4.56.0", - "@rollup/rollup-linux-s390x-gnu": "4.56.0", - "@rollup/rollup-linux-x64-gnu": "4.56.0", - "@rollup/rollup-linux-x64-musl": "4.56.0", - "@rollup/rollup-openbsd-x64": "4.56.0", - "@rollup/rollup-openharmony-arm64": "4.56.0", - "@rollup/rollup-win32-arm64-msvc": "4.56.0", - "@rollup/rollup-win32-ia32-msvc": "4.56.0", - "@rollup/rollup-win32-x64-gnu": "4.56.0", - "@rollup/rollup-win32-x64-msvc": "4.56.0", + "@rollup/rollup-android-arm-eabi": "4.60.3", + "@rollup/rollup-android-arm64": "4.60.3", + "@rollup/rollup-darwin-arm64": "4.60.3", + "@rollup/rollup-darwin-x64": "4.60.3", + "@rollup/rollup-freebsd-arm64": "4.60.3", + "@rollup/rollup-freebsd-x64": "4.60.3", + "@rollup/rollup-linux-arm-gnueabihf": "4.60.3", + "@rollup/rollup-linux-arm-musleabihf": "4.60.3", + "@rollup/rollup-linux-arm64-gnu": "4.60.3", + "@rollup/rollup-linux-arm64-musl": "4.60.3", + "@rollup/rollup-linux-loong64-gnu": "4.60.3", + "@rollup/rollup-linux-loong64-musl": "4.60.3", + "@rollup/rollup-linux-ppc64-gnu": "4.60.3", + "@rollup/rollup-linux-ppc64-musl": "4.60.3", + "@rollup/rollup-linux-riscv64-gnu": "4.60.3", + "@rollup/rollup-linux-riscv64-musl": "4.60.3", + "@rollup/rollup-linux-s390x-gnu": "4.60.3", + "@rollup/rollup-linux-x64-gnu": "4.60.3", + "@rollup/rollup-linux-x64-musl": "4.60.3", + "@rollup/rollup-openbsd-x64": "4.60.3", + "@rollup/rollup-openharmony-arm64": "4.60.3", + "@rollup/rollup-win32-arm64-msvc": "4.60.3", + "@rollup/rollup-win32-ia32-msvc": "4.60.3", + "@rollup/rollup-win32-x64-gnu": "4.60.3", + "@rollup/rollup-win32-x64-msvc": "4.60.3", "fsevents": "~2.3.2" } }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", @@ -5404,39 +2672,13 @@ } }, "node_modules/semver": { - "version": "7.7.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", - "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" } }, "node_modules/source-map-js": { @@ -5449,104 +2691,16 @@ "node": ">=0.10.0" } }, - "node_modules/space-separated-tokens": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", - "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, "node_modules/string-convert": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz", "integrity": "sha512-u/1tdPl4yQnPBjnVrmdLo9gtuLvELKsAoRapekWggdiQNvvvum+jYF329d84NAa660KQw7pB2n36KrIKVoXa3A==", "license": "MIT" }, - "node_modules/stringify-entities": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", - "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", - "license": "MIT", - "dependencies": { - "character-entities-html4": "^2.0.0", - "character-entities-legacy": "^3.0.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/style-to-js": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz", - "integrity": "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==", - "license": "MIT", - "dependencies": { - "style-to-object": "1.0.14" - } - }, - "node_modules/style-to-object": { - "version": "1.0.14", - "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz", - "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==", - "license": "MIT", - "dependencies": { - "inline-style-parser": "0.2.7" - } - }, "node_modules/stylis": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.6.tgz", - "integrity": "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==", - "license": "MIT" - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true, + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.4.0.tgz", + "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==", "license": "MIT" }, "node_modules/throttle-debounce": { @@ -5559,14 +2713,14 @@ } }, "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", + "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", "dev": true, "license": "MIT", "dependencies": { "fdir": "^6.5.0", - "picomatch": "^4.0.3" + "picomatch": "^4.0.4" }, "engines": { "node": ">=12.0.0" @@ -5581,65 +2735,6 @@ "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==", "license": "MIT" }, - "node_modules/trim-lines": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", - "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/trough": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", - "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/ts-api-utils": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz", - "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/typescript": { "version": "5.9.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", @@ -5654,100 +2749,6 @@ "node": ">=14.17" } }, - "node_modules/undici-types": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", - "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", - "dev": true, - "license": "MIT" - }, - "node_modules/unified": { - "version": "11.0.5", - "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", - "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "bail": "^2.0.0", - "devlop": "^1.0.0", - "extend": "^3.0.0", - "is-plain-obj": "^4.0.0", - "trough": "^2.0.0", - "vfile": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-is": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", - "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-position": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", - "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-stringify-position": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", - "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz", - "integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-is": "^6.0.0", - "unist-util-visit-parents": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/unist-util-visit-parents": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz", - "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-is": "^6.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, "node_modules/update-browserslist-db": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", @@ -5779,60 +2780,25 @@ "browserslist": ">= 4.21.0" } }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/vfile": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", - "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/vfile-message": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz", - "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==", - "license": "MIT", - "dependencies": { - "@types/unist": "^3.0.0", - "unist-util-stringify-position": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, "node_modules/vite": { - "version": "5.4.21", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", - "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.3.tgz", + "integrity": "sha512-/4XH147Ui7OGTjg3HbdWe5arnZQSbfuRzdr9Ec7TQi5I7R+ir0Rlc9GIvD4v0XZurELqA035KVXJXpR61xhiTA==", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.21.3", - "postcss": "^8.4.43", - "rollup": "^4.20.0" + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^20.19.0 || >=22.12.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -5841,19 +2807,25 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", - "less": "*", + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" }, "peerDependenciesMeta": { "@types/node": { "optional": true }, + "jiti": { + "optional": true + }, "less": { "optional": true }, @@ -5874,100 +2846,21 @@ }, "terser": { "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true } } }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true, - "license": "ISC" - }, "node_modules/yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true, "license": "ISC" - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zustand": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.10.tgz", - "integrity": "sha512-U1AiltS1O9hSy3rul+Ub82ut2fqIAefiSuwECWt6jlMVUGejvf+5omLcRBSzqbRagSM3hQZbtzdeRc6QVScXTg==", - "license": "MIT", - "engines": { - "node": ">=12.20.0" - }, - "peerDependencies": { - "@types/react": ">=18.0.0", - "immer": ">=9.0.6", - "react": ">=18.0.0", - "use-sync-external-store": ">=1.2.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "immer": { - "optional": true - }, - "react": { - "optional": true - }, - "use-sync-external-store": { - "optional": true - } - } - }, - "node_modules/zwitch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", - "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } } } } diff --git a/frontend/package.json b/frontend/package.json index 828fbd6..917fa09 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,37 +1,23 @@ { "name": "docsearch-frontend", - "version": "1.0.0", + "version": "0.1.0", "private": true, "type": "module", "scripts": { "dev": "vite", "build": "tsc && vite build", - "preview": "vite preview", - "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0" + "preview": "vite preview" }, "dependencies": { - "@ant-design/icons": "^5.6.1", - "@tanstack/react-query": "^5.90.19", - "antd": "^5.22.0", - "axios": "^1.7.7", - "dayjs": "^1.11.13", + "antd": "^5.27.6", "react": "^18.3.1", - "react-dom": "^18.3.1", - "react-markdown": "^9.0.1", - "react-router-dom": "^6.28.0", - "zustand": "^5.0.0" + "react-dom": "^18.3.1" }, "devDependencies": { - "@types/node": "^25.0.10", - "@types/react": "^18.3.12", - "@types/react-dom": "^18.3.1", - "@typescript-eslint/eslint-plugin": "^8.15.0", - "@typescript-eslint/parser": "^8.15.0", - "@vitejs/plugin-react": "^4.3.3", - "eslint": "^8.57.1", - "eslint-plugin-react-hooks": "^5.0.0", - "eslint-plugin-react-refresh": "^0.4.14", - "typescript": "^5.6.3", - "vite": "^5.4.10" + "@types/react": "^18.3.23", + "@types/react-dom": "^18.3.7", + "@vitejs/plugin-react": "^5.1.0", + "typescript": "^5.9.3", + "vite": "^7.2.1" } } diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx deleted file mode 100644 index 041743a..0000000 --- a/frontend/src/App.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom' -import MainLayout from '@/layouts/MainLayout' -import SearchPage from '@/pages/SearchPage' -import ChatPage from '@/pages/ChatPage' -import DocumentsPage from '@/pages/DocumentsPage' -import DocumentDetailPage from '@/pages/DocumentDetailPage' -import AdminPage from '@/pages/AdminPage' - -function App() { - return ( - - - }> - } /> - } /> - } /> - } /> - } /> - } /> - - - - ) -} - -export default App diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts deleted file mode 100644 index 35ea447..0000000 --- a/frontend/src/api/index.ts +++ /dev/null @@ -1,181 +0,0 @@ -import axios, { AxiosError, AxiosResponse } from 'axios' - -const API_BASE_URL = import.meta.env.VITE_API_URL || '/api' - -const api = axios.create({ - baseURL: API_BASE_URL, - timeout: 60000, - headers: { - 'Content-Type': 'application/json', - }, -}) - -// Response interceptor - handle errors -api.interceptors.response.use( - (response: AxiosResponse) => response, - async (error: AxiosError) => { - return Promise.reject(error) - } -) - -export default api - -// Auth API -export const authApi = { - login: (username: string, password: string) => - api.post('/auth/login', { username, password }), - - register: (data: { username: string; email: string; password: string; full_name: string }) => - api.post('/auth/register', data), - - me: () => api.get('/auth/me'), - - changePassword: (currentPassword: string, newPassword: string) => - api.post('/auth/change-password', { - current_password: currentPassword, - new_password: newPassword, - }), -} - -// Documents API -export const documentsApi = { - list: (params?: { - page?: number - page_size?: number - status_filter?: string - search?: string - }) => api.get('/documents', { params }), - - get: (id: string, includeChunks = false) => - api.get(`/documents/${id}`, { params: { include_chunks: includeChunks } }), - - upload: (file: File, data?: { - title?: string - classification?: string - department_id?: string - project_id?: string - tags?: string - }) => { - const formData = new FormData() - formData.append('file', file) - if (data?.title) formData.append('title', data.title) - if (data?.classification) formData.append('classification', data.classification) - if (data?.department_id) formData.append('department_id', data.department_id) - if (data?.project_id) formData.append('project_id', data.project_id) - if (data?.tags) formData.append('tags', data.tags) - - return api.post('/documents/upload', formData, { - headers: { 'Content-Type': 'multipart/form-data' }, - }) - }, - - delete: (id: string, hardDelete = false) => - api.delete(`/documents/${id}`, { params: { hard_delete: hardDelete } }), - - download: (id: string) => api.get(`/documents/${id}/download`), - - getStatus: (id: string) => api.get(`/documents/${id}/status`), -} - -// Search API -export const searchApi = { - search: (data: { - query: string - top_k?: number - top_n?: number - use_rerank?: boolean - use_hybrid?: boolean - department_id?: string - project_id?: string - }) => api.post('/search', data), - - quickSearch: (query: string, limit = 5) => - api.get('/search/quick', { params: { q: query, limit } }), -} - -// Chat API -export const chatApi = { - chat: (data: { - query: string - top_k?: number - top_n?: number - use_rerank?: boolean - use_hybrid?: boolean - use_query_rewrite?: boolean - stream?: boolean - }) => api.post('/chat', data), - - chatStream: async function* (data: { - query: string - top_k?: number - top_n?: number - use_rerank?: boolean - use_hybrid?: boolean - }) { - const response = await fetch(`${API_BASE_URL}/chat`, { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ ...data, stream: true }), - }) - - const reader = response.body?.getReader() - if (!reader) return - - const decoder = new TextDecoder() - - while (true) { - const { done, value } = await reader.read() - if (done) break - - const chunk = decoder.decode(value) - const lines = chunk.split('\n') - - for (const line of lines) { - if (line.startsWith('data: ')) { - const data = JSON.parse(line.slice(6)) - yield data - } - } - } - }, - - submitFeedback: (searchLogId: string, helpful: boolean, comment?: string) => - api.post('/chat/feedback', { search_log_id: searchLogId, helpful, comment }), -} - -// Admin API -export const adminApi = { - getStats: () => api.get('/admin/stats'), - - listUsers: (params?: { page?: number; page_size?: number }) => - api.get('/admin/users', { params }), - - updateUser: (userId: string, data: { - role?: string - department_id?: string - max_classification?: string - is_active?: boolean - }) => api.patch(`/admin/users/${userId}`, data), - - getAuditLogs: (params?: { - page?: number - page_size?: number - user_id?: string - action?: string - }) => api.get('/admin/audit-logs', { params }), - - listDepartments: () => api.get('/admin/departments'), - - createDepartment: (data: { name: string; code: string; parent_id?: string }) => - api.post('/admin/departments', data), - - listProjects: () => api.get('/admin/projects'), - - createProject: (data: { name: string; code: string; department_id?: string }) => - api.post('/admin/projects', data), - - getSearchAnalytics: (days = 7) => - api.get('/admin/search-analytics', { params: { days } }), -} diff --git a/frontend-v2/src/app/App.tsx b/frontend/src/app/App.tsx similarity index 85% rename from frontend-v2/src/app/App.tsx rename to frontend/src/app/App.tsx index d82d347..d2fcbeb 100644 --- a/frontend-v2/src/app/App.tsx +++ b/frontend/src/app/App.tsx @@ -6,15 +6,15 @@ const { Paragraph, Title } = Typography; const panels = [ { title: "Upload", - description: "Document ingestion workflow will land here.", + description: "Document ingestion surfaces will land here.", }, { title: "Search", - description: "Retrieval and ranking results surface will live here.", + description: "Retrieval and ranking flows will land here.", }, { title: "Chat", - description: "Cited RAG responses will be shown here.", + description: "Cited answer experiences will land here.", }, ]; @@ -31,10 +31,10 @@ export default function App() { > - DocSearch AI V2 + DocSearch AI - On-premise document search and RAG shell + On-premise document search and RAG scaffold diff --git a/frontend/src/index.css b/frontend/src/index.css deleted file mode 100644 index d17e27c..0000000 --- a/frontend/src/index.css +++ /dev/null @@ -1,97 +0,0 @@ -@import 'antd/dist/reset.css'; - -:root { - --primary-color: #1677ff; - --bg-color: #f5f5f5; - --sidebar-width: 240px; -} - -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -html, body { - height: 100%; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, - 'Noto Sans', 'Noto Sans KR', sans-serif; -} - -#root { - height: 100%; -} - -/* Custom scrollbar */ -::-webkit-scrollbar { - width: 8px; - height: 8px; -} - -::-webkit-scrollbar-track { - background: #f1f1f1; -} - -::-webkit-scrollbar-thumb { - background: #c1c1c1; - border-radius: 4px; -} - -::-webkit-scrollbar-thumb:hover { - background: #a1a1a1; -} - -/* Chat message styles */ -.chat-message { - margin-bottom: 16px; - padding: 12px 16px; - border-radius: 8px; - max-width: 80%; -} - -.chat-message.user { - background: #e6f4ff; - margin-left: auto; -} - -.chat-message.assistant { - background: #fff; - border: 1px solid #f0f0f0; -} - -/* Code block styles */ -pre { - background: #1e1e1e; - color: #d4d4d4; - padding: 16px; - border-radius: 8px; - overflow-x: auto; - margin: 8px 0; -} - -code { - font-family: 'Fira Code', 'Consolas', monospace; -} - -/* Search highlight */ -.highlight { - background: #ffe58f; - padding: 0 2px; - border-radius: 2px; -} - -/* Loading spinner */ -.loading-container { - display: flex; - justify-content: center; - align-items: center; - height: 100%; - min-height: 200px; -} - -/* Document card hover */ -.document-card:hover { - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); - transform: translateY(-2px); - transition: all 0.2s ease; -} diff --git a/frontend/src/layouts/MainLayout.tsx b/frontend/src/layouts/MainLayout.tsx deleted file mode 100644 index c4b3586..0000000 --- a/frontend/src/layouts/MainLayout.tsx +++ /dev/null @@ -1,119 +0,0 @@ -import { useState } from 'react' -import { Outlet, useNavigate, useLocation } from 'react-router-dom' -import { Layout, Menu, Typography } from 'antd' -import { - SearchOutlined, - MessageOutlined, - FileOutlined, - SettingOutlined, - MenuFoldOutlined, - MenuUnfoldOutlined, -} from '@ant-design/icons' - -const { Header, Sider, Content } = Layout -const { Text } = Typography - -function MainLayout() { - const [collapsed, setCollapsed] = useState(false) - const navigate = useNavigate() - const location = useLocation() - - const menuItems = [ - { - key: '/chat', - icon: , - label: 'AI 채팅', - }, - { - key: '/search', - icon: , - label: '문서 검색', - }, - { - key: '/documents', - icon: , - label: '문서 관리', - }, - { - key: '/admin', - icon: , - label: '관리자', - }, - ] - - return ( - - -
- {collapsed ? ( - - DS - - ) : ( - - DocSearch AI - - )} -
- navigate(key)} - style={{ borderRight: 0 }} - /> - - - -
-
setCollapsed(!collapsed)} - style={{ cursor: 'pointer', fontSize: 18 }} - > - {collapsed ? : } -
- - DocSearch AI -
- - - - -
- - ) -} - -export default MainLayout diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index b8b506d..7345980 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -1,34 +1,11 @@ -import React from 'react' -import ReactDOM from 'react-dom/client' -import { QueryClient, QueryClientProvider } from '@tanstack/react-query' -import { ConfigProvider } from 'antd' -import koKR from 'antd/locale/ko_KR' -import App from './App' -import './index.css' +import React from "react"; +import ReactDOM from "react-dom/client"; -const queryClient = new QueryClient({ - defaultOptions: { - queries: { - staleTime: 1000 * 60 * 5, // 5 minutes - retry: 1, - }, - }, -}) +import App from "./app/App"; +import "./styles.css"; -ReactDOM.createRoot(document.getElementById('root')!).render( +ReactDOM.createRoot(document.getElementById("root")!).render( - - - - - + , -) +); diff --git a/frontend/src/pages/AdminPage.tsx b/frontend/src/pages/AdminPage.tsx deleted file mode 100644 index 7c7adc0..0000000 --- a/frontend/src/pages/AdminPage.tsx +++ /dev/null @@ -1,307 +0,0 @@ -import { useQuery } from '@tanstack/react-query' -import { Routes, Route, useNavigate, useLocation } from 'react-router-dom' -import type { AxiosResponse } from 'axios' -import { - Card, - Row, - Col, - Statistic, - Table, - Menu, - Typography, - Space, - Tag, -} from 'antd' -import { - DashboardOutlined, - UserOutlined, - FileOutlined, - SearchOutlined, - SettingOutlined, - CheckCircleOutlined, - CloseCircleOutlined, -} from '@ant-design/icons' -import { adminApi } from '@/api' -import dayjs from 'dayjs' - -const { Title } = Typography - -function AdminDashboard() { - const { data, isLoading } = useQuery({ - queryKey: ['admin', 'stats'], - queryFn: () => adminApi.getStats(), - select: (res: AxiosResponse) => res.data, - }) - - if (isLoading) { - return - } - - return ( -
- 대시보드 - - - - - } - /> - - - - - } - /> - - - - - - - - - - } - /> - - - - - - - - - - - - - - - - {data?.vector_store.status || 'unknown'} - - - - - - - - - {data?.llm.healthy ? '정상' : '비정상'} - -
- 사용 가능 모델: {data?.llm.models?.join(', ') || '-'} -
-
-
- -
- - - - -
- ) -} - -function AdminUsers() { - const { data, isLoading } = useQuery({ - queryKey: ['admin', 'users'], - queryFn: () => adminApi.listUsers(), - select: (res: AxiosResponse) => res.data, - }) - - return ( - - ( - - {role} - - ), - }, - { title: '부서', dataIndex: 'department', key: 'department' }, - { - title: '상태', - dataIndex: 'is_active', - key: 'is_active', - render: (active: boolean) => ( - - {active ? '활성' : '비활성'} - - ), - }, - { - title: '마지막 로그인', - dataIndex: 'last_login', - key: 'last_login', - render: (date: string) => - date ? dayjs(date).format('YYYY-MM-DD HH:mm') : '-', - }, - ]} - /> - - ) -} - -function AdminAuditLogs() { - const { data, isLoading } = useQuery({ - queryKey: ['admin', 'audit-logs'], - queryFn: () => adminApi.getAuditLogs(), - select: (res: AxiosResponse) => res.data, - }) - - return ( - -
dayjs(date).format('YYYY-MM-DD HH:mm:ss'), - }, - { title: '사용자', dataIndex: 'user', key: 'user' }, - { - title: '작업', - dataIndex: 'action', - key: 'action', - render: (action: string) => {action}, - }, - { title: '리소스 유형', dataIndex: 'resource_type', key: 'resource_type' }, - { title: 'IP', dataIndex: 'ip_address', key: 'ip_address' }, - ]} - pagination={{ pageSize: 20 }} - /> - - ) -} - -function AdminAnalytics() { - const { data, isLoading } = useQuery({ - queryKey: ['admin', 'analytics'], - queryFn: () => adminApi.getSearchAnalytics(7), - select: (res: AxiosResponse) => res.data, - }) - - if (isLoading) { - return - } - - return ( -
- 검색 분석 (최근 7일) - - -
- - - - - - - - - - - - - - - - - -
- - - ) -} - -function AdminPage() { - const navigate = useNavigate() - const location = useLocation() - - const menuItems = [ - { key: '/admin', icon: , label: '대시보드' }, - { key: '/admin/users', icon: , label: '사용자' }, - { key: '/admin/audit', icon: , label: '감사 로그' }, - { key: '/admin/analytics', icon: , label: '검색 분석' }, - ] - - return ( -
- - navigate(key)} - style={{ border: 0 }} - /> - - -
- - } /> - } /> - } /> - } /> - -
-
- ) -} - -export default AdminPage diff --git a/frontend/src/pages/ChatPage.tsx b/frontend/src/pages/ChatPage.tsx deleted file mode 100644 index 2c1b82b..0000000 --- a/frontend/src/pages/ChatPage.tsx +++ /dev/null @@ -1,232 +0,0 @@ -import React, { useState, useRef, useEffect, ChangeEvent, KeyboardEvent } from 'react' -import { - Card, - Input, - Button, - Space, - Typography, - Spin, - Tag, - Collapse, - Empty, - Tooltip, -} from 'antd' -import { - SendOutlined, - ClearOutlined, - FileTextOutlined, - ClockCircleOutlined, -} from '@ant-design/icons' -import ReactMarkdown from 'react-markdown' -import { chatApi } from '@/api' -import { useChatStore, type ChatMessage, type Citation } from '@/stores/chat' - -const { Text, Paragraph } = Typography -const { TextArea } = Input - -function ChatPage() { - const [input, setInput] = useState('') - const messagesEndRef = useRef(null) - const { messages, isLoading, addMessage, setLoading, clearMessages } = useChatStore() - - const scrollToBottom = () => { - messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' }) - } - - useEffect(() => { - scrollToBottom() - }, [messages]) - - const handleSend = async () => { - if (!input.trim() || isLoading) return - - const query = input.trim() - setInput('') - - // Add user message - addMessage({ role: 'user', content: query }) - setLoading(true) - - try { - const response = await chatApi.chat({ - query, - top_k: 50, - top_n: 5, - use_rerank: true, - use_hybrid: true, - }) - - const { answer, citations, metrics } = response.data - - addMessage({ - role: 'assistant', - content: answer, - citations, - metrics, - }) - } catch (error) { - addMessage({ - role: 'assistant', - content: '죄송합니다. 응답 생성 중 오류가 발생했습니다. 다시 시도해 주세요.', - }) - } finally { - setLoading(false) - } - } - - const handleKeyPress = (e: KeyboardEvent) => { - if (e.key === 'Enter' && !e.shiftKey) { - e.preventDefault() - handleSend() - } - } - - return ( -
- } onClick={clearMessages}> - 대화 초기화 - - } - style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden' }} - styles={{ body: { flex: 1, overflow: 'auto', padding: '16px 24px' } }} - > - {messages.length === 0 ? ( - - 문서에 대해 질문해 보세요 - - 예: "프로젝트 일정에 대해 알려줘", "계약서의 주요 조건은?" - - - } - style={{ marginTop: 100 }} - /> - ) : ( -
- {messages.map((msg: ChatMessage) => ( - - - - ))} - {isLoading && ( -
- -
- )} -
-
- )} - - - - -